/* ==========================================================================
   CEYLIN'S LOVE DIARY - MODERN ROMANTIC THEME
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #e11d48;         /* Vibrant Romantic Rose */
  --primary-light: #f43f5e;
  --primary-dark: #9f1239;
  --blush: #ffe4e6;           /* Soft rose blush */
  --blush-light: #fff1f2;     /* Whisper light blush */
  --cream: #fffaf7;           /* Warm journal cream */
  --gold: #d4af37;            /* Subtle gold foil */
  --gold-light: #fde68a;
  --text-dark: #271d24;       /* Deep rich espresso text */
  --text-muted: #7c6874;      /* Soft rose-gray text */
  --border-light: rgba(225, 29, 72, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 16px 40px -10px rgba(225, 29, 72, 0.12), 0 0 20px rgba(244, 63, 94, 0.05);

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Caveat', 'Dancing Script', cursive;

  /* Spacing */
  --bottom-bar-height: 80px;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f3 35%, #fff8f5 70%, #fdf2f8 100%);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Floating Hearts Background Canvas */
#hearts-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   PASSWORD / LOCK SCREEN OVERLAY
   ========================================================================== */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 245, 247, 0.96) 0%, rgba(254, 226, 233, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-screen.unlocked {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.lock-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 30px 60px -15px rgba(225, 29, 72, 0.2);
  border-radius: 28px;
  padding: 44px 36px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.lock-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.lock-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.25);
  position: relative;
  animation: pulse-gentle 3s ease-in-out infinite;
}

.lock-heart-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(225, 29, 72, 0.2));
}

.lock-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.lock-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.lock-input-group {
  margin-bottom: 20px;
  position: relative;
}

.lock-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(244, 63, 94, 0.25);
  border-radius: 16px;
  outline: none;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.lock-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}

.lock-input::placeholder {
  letter-spacing: normal;
  font-size: 0.95rem;
  font-weight: 400;
  color: #c4b5bd;
}

.lock-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px -6px rgba(225, 29, 72, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(225, 29, 72, 0.5);
  filter: brightness(1.04);
}

.lock-btn:active {
  transform: translateY(1px);
}

.lock-error {
  color: var(--primary);
  font-size: 0.88rem;
  margin-top: 14px;
  min-height: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lock-error.show {
  opacity: 1;
}

.shake-animation {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   NAVIGATION BAR (FLOATING BOTTOM BAR)
   ========================================================================== */
.bottom-nav-container {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 16px;
}

.bottom-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -10px rgba(225, 29, 72, 0.2), 0 0 15px rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 40px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 28px;
  transition: all 0.25s ease;
  position: relative;
  min-width: 68px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.25s ease;
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

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

.nav-link:hover .nav-icon {
  transform: translateY(-2px) scale(1.1);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 18px -4px rgba(225, 29, 72, 0.45);
}

.nav-link.active .nav-icon {
  transform: scale(1.12);
}

.nav-link.active .nav-icon svg {
  stroke: #ffffff;
}

/* ==========================================================================
   TOP HEADER / CONTROLS
   ========================================================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 900;
  transition: transform 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  animation: pulse-gentle 2.5s infinite;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--primary);
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  margin-left: 2px;
}

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

.header-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.header-btn:hover {
  color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.15);
}

.header-btn svg {
  width: 18px;
  height: 18px;
}

.header-add-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff !important;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.header-add-btn:hover {
  background: linear-gradient(135deg, #f43f5e 0%, var(--primary) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
}

.header-add-btn svg {
  stroke: #ffffff;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
section {
  padding: 100px 0 70px;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 1: HERO & LIVE LOVE COUNTER
   ========================================================================== */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.08);
  margin-bottom: 22px;
}

.hero-badge-heart {
  width: 18px;
  height: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .cursive {
  font-family: var(--font-handwriting);
  color: var(--primary);
  font-size: 3.8rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(244, 63, 94, 0.15);
}

.hero-quote {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
  max-width: 520px;
  font-style: italic;
  border-left: 3px solid var(--primary-light);
  padding-left: 16px;
}

/* Live Love Counter */
.counter-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}

.counter-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.counter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.counter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(225, 29, 72, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.counter-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.1);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.counter-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.12);
}

.counter-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  display: block;
}

.counter-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 16px;
  box-shadow: 0 10px 24px -6px rgba(225, 29, 72, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(225, 29, 72, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(225, 29, 72, 0.3);
  transform: translateY(-2px);
}

/* Hero Polaroid Card Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.polaroid-hero {
  background: #ffffff;
  padding: 16px 16px 28px 16px;
  border-radius: 12px;
  box-shadow: 0 24px 50px -12px rgba(225, 29, 72, 0.25), 0 0 15px rgba(0, 0, 0, 0.03);
  transform: rotate(2.5deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-width: 360px;
  width: 100%;
}

.polaroid-hero:hover {
  transform: rotate(0deg) scale(1.02);
}

.washi-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: rgba(254, 205, 211, 0.7);
  box-shadow: inset 0 0 2px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  border-left: 3px dashed rgba(225, 29, 72, 0.25);
  border-right: 3px dashed rgba(225, 29, 72, 0.25);
  z-index: 5;
}

.polaroid-img-wrap {
  width: 100%;
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  background: #fce7eb;
  position: relative;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-hero:hover .polaroid-img-wrap img {
  transform: scale(1.04);
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: 16px;
  line-height: 1.2;
}

.hero-doodle-heart {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 75px;
  height: 75px;
  z-index: 10;
  filter: drop-shadow(0 6px 12px rgba(225, 29, 72, 0.25));
  animation: float-slow 4s ease-in-out infinite;
}

/* ==========================================================================
   SECTION 2: DIARY JOURNAL ENTRIES
   ========================================================================== */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.diary-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(225, 29, 72, 0.04);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.diary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.28);
}

.diary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.diary-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--blush-light);
  padding: 4px 12px;
  border-radius: 14px;
}

.diary-stamp {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.85;
}

.diary-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.diary-card-text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.diary-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed rgba(225, 29, 72, 0.15);
}

.diary-tag {
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  color: var(--primary);
}

.diary-read-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.diary-read-btn:hover {
  gap: 8px;
}

.add-diary-wrap {
  text-align: center;
}

/* ==========================================================================
   SECTION 3: PHOTO GALLERY & POLAROIDS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 36px;
}

/* Delete Button on Polaroid */
.polaroid-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.polaroid-card:hover .polaroid-del-btn {
  opacity: 1;
}

.polaroid-del-btn:hover {
  background: var(--primary);
  transform: scale(1.15);
}

/* Quick Change Button on Polaroid Card */
.polaroid-quick-change-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(225, 29, 72, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.polaroid-card:hover .polaroid-quick-change-btn {
  opacity: 1;
}

.polaroid-quick-change-btn:hover {
  background: var(--primary);
  transform: scale(1.15);
}

.polaroid-quick-change-btn svg {
  stroke: #ffffff;
}

/* Click hint overlay on polaroid */
.polaroid-click-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.polaroid-card:hover .polaroid-click-hint {
  opacity: 1;
}

/* Empty gallery state when all memories are deleted */
.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 2px dashed rgba(225, 29, 72, 0.25);
  border-radius: 24px;
  margin: 10px auto;
  max-width: 460px;
  width: 100%;
}

@media (max-width: 768px) {
  .polaroid-del-btn,
  .polaroid-quick-change-btn {
    opacity: 0.82;
  }
}

/* Image Upload Dropzone inside Modal */
.image-upload-dropzone {
  border: 2px dashed rgba(225, 29, 72, 0.35);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: #fff8f9;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
}

.image-upload-dropzone:hover {
  background: #fff0f3;
  border-color: var(--primary);
}

.image-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.image-upload-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 10px;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.08), 0 0 10px rgba(225, 29, 72, 0.05);
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.polaroid-card:nth-child(even) {
  transform: rotate(1.8deg);
}

.polaroid-card:nth-child(odd) {
  transform: rotate(-2deg);
}

.polaroid-card:nth-child(3n) {
  transform: rotate(1deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.04) translateY(-8px);
  box-shadow: 0 24px 45px -10px rgba(225, 29, 72, 0.22);
  z-index: 10;
}

.polaroid-tape-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: rgba(254, 205, 211, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 2px dashed rgba(225, 29, 72, 0.2);
  border-right: 2px dashed rgba(225, 29, 72, 0.2);
  z-index: 2;
}

.polaroid-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fce7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.polaroid-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-container img {
  transform: scale(1.06);
}

.polaroid-badge-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.polaroid-text {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: 14px;
  line-height: 1.25;
}

/* ==========================================================================
   SECTION 4: LOVE LETTER & ROMANTIC MUSIC PLAYER
   ========================================================================== */
.letters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Interactive Envelope */
.envelope-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envelope-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -10px rgba(225, 29, 72, 0.18);
}

.wax-seal {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 35% 35%, #e11d48 0%, #9f1239 85%);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(159, 18, 57, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  animation: pulse-gentle 3s infinite;
}

.wax-seal-img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.envelope-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.envelope-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 320px;
}

.envelope-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.envelope-card:hover .envelope-action-btn {
  background: var(--primary);
  color: #ffffff;
}

/* Spotify-style Romantic Player */
.music-player-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f7 100%);
  border-radius: 24px;
  padding: 34px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.vinyl-record {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, #2b1f24 0%, #150d11 60%, #362930 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  position: relative;
}

.vinyl-record.spinning {
  animation: spin 5s linear infinite;
}

.vinyl-center {
  width: 28px;
  height: 28px;
  background: #e11d48;
  border-radius: 50%;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-center-dot {
  width: 6px;
  height: 6px;
  background: #2b1f24;
  border-radius: 50%;
}

.player-info {
  flex-grow: 1;
}

.song-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.song-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin: 2px 0;
}

.song-artist {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.player-progress-wrap {
  margin-bottom: 22px;
}

.player-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(225, 29, 72, 0.12);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 6px;
  transition: width 0.1s linear;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.player-play-btn {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.4);
}

.player-play-btn:hover {
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 10px 24px -4px rgba(225, 29, 72, 0.55);
}

/* Quote of the Day Box */
.quote-generator-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px 30px;
  margin-top: 32px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.05);
}

.quote-bubble {
  font-family: var(--font-handwriting);
  font-size: 1.65rem;
  color: var(--text-dark);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  line-height: 1.3;
}

/* ==========================================================================
   SECTION 5: BUCKET LIST & OUR DREAMS
   ========================================================================== */
.bucket-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 34px;
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  max-width: 760px;
  margin: 0 auto;
}

.bucket-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.bucket-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: max-height 0.35s ease, margin 0.35s ease, opacity 0.3s ease, transform 0.25s ease;
  max-height: 120px;
}

.bucket-item.deleting {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  transform: scale(0.9);
  pointer-events: none;
}

.bucket-delete-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 1;
  pointer-events: none;
}

.delete-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.bucket-item-surface {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff8f9;
  border: 1px solid rgba(225, 29, 72, 0.1);
  border-radius: 16px;
  cursor: grab;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bucket-item-surface:active {
  cursor: grabbing;
}

.bucket-item.completed .bucket-item-surface {
  background: #fdf2f4;
  border-color: rgba(225, 29, 72, 0.2);
}

.bucket-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 72, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bucket-item.completed .bucket-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.bucket-checkbox svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bucket-item.completed .bucket-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.bucket-text {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  flex-grow: 1;
  transition: all 0.2s ease;
}

.bucket-item.completed .bucket-text {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.75;
}

.bucket-quick-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(225, 29, 72, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all 0.2s ease;
  margin-left: auto;
}

.bucket-quick-del-btn:hover {
  background: var(--primary);
  color: #ffffff;
  opacity: 1;
  transform: scale(1.1);
}

.bucket-swipe-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 4px;
  font-weight: 600;
}

.bucket-add-form {
  display: flex;
  gap: 12px;
}

.bucket-input {
  flex-grow: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(225, 29, 72, 0.2);
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.bucket-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* ==========================================================================
   MODALS (Love Letter & New Diary Entry & Lightbox)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 29, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.letter-modal-box {
  background: #fffdfa;
  background-image: radial-gradient(rgba(225, 29, 72, 0.03) 1px, transparent 0);
  background-size: 20px 20px;
  border-radius: 20px;
  padding: 42px 36px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(225, 29, 72, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .letter-modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.08);
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.letter-body {
  font-family: var(--font-handwriting);
  font-size: 1.55rem;
  line-height: 1.55;
  color: #38252f;
  margin-bottom: 28px;
}

.letter-sign {
  text-align: right;
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 16px;
}

/* Lightbox Modal */
.lightbox-modal {
  max-width: 820px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-handwriting);
  font-size: 1.7rem;
  color: #ffffff;
  margin-top: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Lightbox Bottom Action Bar */
.lightbox-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.lightbox-btn-change {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lightbox-btn-change:hover {
  background: linear-gradient(135deg, #f43f5e 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.55);
}

.lightbox-btn-change:active {
  transform: scale(0.96);
}

.lightbox-btn-change svg {
  stroke: #ffffff;
}

.lightbox-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn-edit:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.lightbox-btn-edit:active {
  transform: scale(0.96);
}

.lightbox-btn-edit svg {
  stroke: #ffffff;
}

.lightbox-toast {
  display: inline-block;
  margin: 14px auto 0;
  background: rgba(225, 29, 72, 0.95);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Padding for Bottom Bar */
.site-footer {
  text-align: center;
  padding: 40px 20px calc(var(--bottom-bar-height) + 40px);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-heart {
  color: var(--primary);
  display: inline-block;
  animation: pulse-gentle 2s infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse-gentle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-2px, 0, 0);
  }
  20%, 80% {
    transform: translate3d(4px, 0, 0);
  }
  30%, 50%, 70% {
    transform: translate3d(-6px, 0, 0);
  }
  40%, 60% {
    transform: translate3d(6px, 0, 0);
  }
}

/* ==========================================================================
   PINK LINED NOTEBOOK (ANI DEFTERİ)
   ========================================================================== */
.notebook-wrapper {
  max-width: 820px;
  margin: 0 auto 40px;
  position: relative;
  filter: drop-shadow(0 20px 45px rgba(225, 29, 72, 0.16));
}

/* Spiral Binder at the Top */
.notebook-spiral-header {
  height: 30px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 36px;
  position: relative;
  z-index: 5;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.spiral-ring {
  width: 14px;
  height: 34px;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #64748b 100%);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.28), inset 0 1px 2px #ffffff;
  transform: translateY(-2px);
}

/* Notebook Sheet */
.pink-notebook-sheet {
  background-color: #fce7f3; /* Warm Romantic Pink */
  background-image: 
    /* Vertical red/rose margin line */
    linear-gradient(to right, transparent 56px, rgba(225, 29, 72, 0.32) 56px, rgba(225, 29, 72, 0.32) 58px, transparent 58px),
    /* Ruled lines every 34px */
    repeating-linear-gradient(to bottom, transparent, transparent 33px, rgba(225, 29, 72, 0.16) 33px, rgba(225, 29, 72, 0.16) 34px);
  background-size: 100% 100%, 100% 34px;
  border-radius: 0 0 22px 22px;
  padding: 26px 32px 32px;
  box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.08), inset 0 -4px 10px rgba(225, 29, 72, 0.08);
  position: relative;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-top: none;
}

/* Top corner heart doodle stamp */
.notebook-corner-doodle {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(225, 29, 72, 0.2));
  pointer-events: none;
}

/* Notebook Header info */
.notebook-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 48px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px dashed rgba(225, 29, 72, 0.22);
  padding-bottom: 14px;
}

.notebook-date-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notebook-date-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notebook-date-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
}

/* Notebook Table of Contents (İçindekiler) Button - Sağ Tarafta (Sola doğru kaydırıldı) */
.notebook-toc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-right: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.32);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  transform: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.notebook-toc-btn:hover,
.notebook-toc-btn:focus,
.notebook-toc-btn:active {
  background: linear-gradient(135deg, #f43f5e 0%, var(--primary) 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
  transform: none !important;
}

.notebook-toc-btn svg {
  color: #ffffff;
  stroke: #ffffff;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.toc-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  line-height: 1;
  margin-left: 2px;
}

/* Title Input */
.notebook-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-handwriting);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-left: 48px;
  margin-bottom: 6px;
  line-height: 34px;
}

.notebook-title-input::placeholder {
  color: rgba(159, 18, 57, 0.45);
}

/* Lined Textarea */
.notebook-lined-textarea {
  width: 100%;
  min-height: 340px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-handwriting);
  font-size: 1.55rem;
  line-height: 34px;
  padding-left: 48px;
  padding-right: 14px;
  padding-top: 2px;
  color: #3b1220;
  resize: vertical;
}

.notebook-lined-textarea::placeholder {
  color: rgba(124, 104, 116, 0.55);
}

/* Notebook Footer Actions */
.notebook-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 48px;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px dashed rgba(225, 29, 72, 0.18);
  padding-top: 16px;
}

.notebook-status-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #15803d;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notebook-status-msg.show {
  opacity: 1;
}

.notebook-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notebook-right-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notebook-active-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(225, 29, 72, 0.22);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.08);
  transition: all 0.2s ease;
}

.notebook-active-badge:hover {
  background: #ffe4e6;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   TABLE OF CONTENTS (İÇİNDEKİLER) MODAL
   ========================================================================== */
.toc-modal-box {
  background: #fffdfa;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(225, 29, 72, 0.18);
  transform: translateY(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay.open .toc-modal-box {
  transform: translateY(0);
}

.toc-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.toc-header-icon {
  font-size: 1.8rem;
  background: rgba(225, 29, 72, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toc-search-container {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.toc-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.toc-search-field {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid rgba(225, 29, 72, 0.2);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.toc-search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.toc-list-wrap {
  overflow-y: auto;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.toc-list-wrap::-webkit-scrollbar {
  width: 6px;
}
.toc-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(225, 29, 72, 0.2);
  border-radius: 6px;
}

.toc-card-item {
  background: #ffffff;
  border: 1.5px solid rgba(225, 29, 72, 0.14);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.toc-card-item:hover {
  background: #fff8f9;
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.08);
}

.toc-card-item.active-in-editor {
  border-color: var(--primary);
  background: #fff1f2;
}

.toc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toc-page-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
}

.toc-item-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-item-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

.toc-item-snippet {
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.toc-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(225, 29, 72, 0.12);
}

.toc-item-open-btn {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toc-item-del-btn {
  background: none;
  border: none;
  color: #9f1239;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.toc-item-del-btn:hover {
  opacity: 1;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  section {
    padding: 70px 0 50px;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-quote {
    margin: 0 auto 28px;
    border-left: none;
    border-bottom: 2px solid var(--primary-light);
    padding-left: 0;
    padding-bottom: 12px;
  }

  .hero-actions {
    justify-content: center;
  }

  .counter-box {
    margin: 0 auto 30px;
    max-width: 500px;
  }

  .letters-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  /* Container & Sections */
  .container {
    padding: 0 14px;
  }

  section {
    padding: 55px 0 35px;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-tag {
    font-size: 0.76rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 1.95rem;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 0.92rem;
    padding: 0 6px;
  }

  /* Top Header */
  .top-header {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

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

  .header-btn {
    width: 36px;
    height: 36px;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(75px + env(safe-area-inset-top, 0px));
    padding-bottom: 36px;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-title .cursive {
    font-size: 2.5rem;
    margin-top: 4px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Counter Box */
  .counter-box {
    padding: 18px 14px;
    border-radius: 20px;
    margin-bottom: 26px;
  }

  .counter-header {
    margin-bottom: 14px;
  }

  .counter-label {
    font-size: 0.78rem;
  }

  .counter-date {
    font-size: 0.78rem;
    padding: 3px 10px;
  }

  .counter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .counter-item {
    padding: 10px 4px;
    border-radius: 14px;
  }

  .counter-num {
    font-size: 1.45rem;
  }

  .counter-unit {
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  /* Hero Polaroid */
  .polaroid-hero {
    max-width: 280px;
    padding: 12px 12px 20px 12px;
    transform: rotate(1deg);
  }

  .polaroid-img-wrap {
    height: 280px;
  }

  .polaroid-caption {
    font-size: 1.35rem;
    margin-top: 12px;
  }

  .hero-doodle-heart {
    width: 55px;
    height: 55px;
    bottom: -15px;
    right: -15px;
  }

  /* Pink Lined Notebook on Mobile */
  .notebook-spiral-header {
    height: 24px;
    padding: 0 16px;
  }

  .spiral-ring {
    width: 10px;
    height: 28px;
  }

  .pink-notebook-sheet {
    background-image: 
      linear-gradient(to right, transparent 38px, rgba(225, 29, 72, 0.3) 38px, rgba(225, 29, 72, 0.3) 40px, transparent 40px),
      repeating-linear-gradient(to bottom, transparent, transparent 31px, rgba(225, 29, 72, 0.16) 31px, rgba(225, 29, 72, 0.16) 32px);
    background-size: 100% 100%, 100% 32px;
    padding: 18px 12px 24px;
  }

  .notebook-corner-doodle {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
  }

  .notebook-meta-bar {
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .notebook-date-wrap {
    flex-shrink: 1;
    min-width: 0;
  }

  .notebook-date-label {
    font-size: 0.86rem;
    padding: 5px 10px;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .notebook-toc-btn {
    width: auto !important;
    padding: 6px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 6px;
    margin-right: 22px;
    transform: none !important;
  }

  .notebook-toc-btn svg {
    width: 15px;
    height: 15px;
  }

  .notebook-toc-btn .toc-count-pill {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.72rem;
  }

  .notebook-title-input {
    padding-left: 20px;
    font-size: 1.45rem;
    line-height: 32px;
  }

  .notebook-lined-textarea {
    padding-left: 20px;
    padding-right: 6px;
    font-size: 1.35rem;
    line-height: 32px;
    min-height: 260px;
  }

  .notebook-actions-bar {
    padding-left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .notebook-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .notebook-btn-group .btn-primary,
  .notebook-btn-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .notebook-right-status {
    justify-content: space-between;
    width: 100%;
  }

  .toc-modal-box {
    padding: 22px 16px;
    max-width: 95vw;
    border-radius: 20px;
  }

  .toc-modal-header h2 {
    font-size: 1.3rem !important;
  }

  .toc-modal-header p {
    font-size: 0.78rem !important;
  }

  .toc-list-wrap {
    max-height: 55vh;
  }

  /* Diary Cards */
  .diary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .diary-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .diary-card-title {
    font-size: 1.22rem;
    margin-bottom: 10px;
  }

  .diary-card-text {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .diary-tag {
    font-size: 1.15rem;
  }

  /* Gallery Polaroids */
  .gallery-intro-box {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 28px;
  }

  .gallery-info-text {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    gap: 26px;
  }

  .polaroid-card {
    transform: rotate(0deg) !important;
    padding: 12px 12px 18px 12px;
  }

  .polaroid-img-container {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .polaroid-text {
    font-size: 1.35rem;
    margin-top: 12px;
  }

  /* Letters & Music Player */
  .envelope-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .wax-seal {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }

  .wax-seal-img {
    width: 36px;
    height: 36px;
  }

  .envelope-title {
    font-size: 1.45rem;
  }

  .envelope-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .music-player-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .player-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .vinyl-record {
    width: 62px;
    height: 62px;
  }

  .vinyl-center {
    width: 24px;
    height: 24px;
  }

  .song-title {
    font-size: 1.2rem;
  }

  .song-artist {
    font-size: 0.82rem;
  }

  .quote-generator-box {
    padding: 20px 16px;
    border-radius: 18px;
    margin-top: 24px;
  }

  .quote-bubble {
    font-size: 1.35rem;
    min-height: 48px;
    margin-bottom: 12px;
  }

  /* Bucket List */
  .bucket-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .bucket-item-surface {
    padding: 12px 14px;
    gap: 12px;
  }

  .bucket-checkbox {
    width: 22px;
    height: 22px;
  }

  .bucket-text {
    font-size: 0.92rem;
  }

  .bucket-add-form {
    flex-direction: column;
    gap: 10px;
  }

  .bucket-input {
    padding: 12px 16px;
  }

  .bucket-add-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  /* Floating Bottom Navigation Bar */
  .bottom-nav-container {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 0 8px;
  }

  .bottom-nav {
    width: 100%;
    max-width: 390px;
    padding: 5px 6px;
    gap: 2px;
    justify-content: space-around;
    border-radius: 32px;
  }

  .nav-link {
    padding: 6px 4px;
    min-width: 0;
    flex: 1;
    border-radius: 22px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-label {
    font-size: 0.65rem;
    margin-top: 2px;
  }

  /* Modals on Mobile */
  .letter-modal-box {
    padding: 30px 18px;
    max-width: 94vw;
    border-radius: 18px;
  }

  .letter-heading {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .letter-body {
    font-size: 1.28rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .letter-sign {
    font-size: 1.45rem;
  }

  .lightbox-img-wrap {
    max-height: 62vh;
    border-radius: 12px;
  }

  .lightbox-caption {
    font-size: 1.3rem;
    margin-top: 10px;
  }

  /* Lock Screen on Mobile */
  .lock-card {
    padding: 32px 20px;
    max-width: 92vw;
    border-radius: 24px;
  }

  .lock-icon-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
  }

  .lock-heart-img {
    width: 40px;
    height: 40px;
  }

  .lock-title {
    font-size: 1.55rem;
  }

  .lock-subtitle {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .lock-input {
    font-size: 1.25rem;
    padding: 14px;
    letter-spacing: 0.25em;
  }

  .lock-btn {
    padding: 14px;
    font-size: 1rem;
  }

  /* Footer Padding */
  .site-footer {
    padding: 30px 14px calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px) + 25px);
    font-size: 0.82rem;
  }
}

@media (max-width: 360px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-label {
    display: none;
  }
  .nav-link {
    padding: 10px 4px;
  }
}

/* ==========================================================================
   MOBILE-ONLY SIPSAK (INSTANT CAMERA) FEATURE
   ========================================================================== */

/* 1. Strictly hidden on desktop and large screens (> 768px) */
@media (min-width: 769px) {
  .mobile-only-feature,
  .mobile-sipsak-section,
  .mobile-sipsak-fab,
  .mobile-sipsak-header-btn,
  #sipsak-section,
  #sipsak-modal,
  #sipsak-lightbox-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* 2. Mobile Styling (<= 768px) */
@media (max-width: 768px) {
  /* Header Quick Camera Button */
  .header-sipsak-btn {
    display: flex !important;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe4e6 100%);
    color: var(--primary) !important;
    border: 1.5px solid rgba(225, 29, 72, 0.25);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
  }

  .header-sipsak-btn:active {
    transform: scale(0.92);
  }

  .header-sipsak-btn svg {
    stroke: var(--primary);
  }

  /* Floating Action Button (FAB) */
  .mobile-sipsak-fab {
    display: flex;
    align-items: center;
    gap: 7px;
    position: fixed;
    right: 16px;
    bottom: 84px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px -2px rgba(225, 29, 72, 0.48), 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-sipsak-fab:active {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  }

  .sipsak-fab-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sipsak-fab-icon-wrap svg {
    stroke: #ffffff;
  }

  .sipsak-fab-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #fde047;
    border-radius: 50%;
    box-shadow: 0 0 6px #fde047;
    animation: sipsakPulse 1.8s infinite ease-in-out;
  }

  @keyframes sipsakPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
  }

  .sipsak-fab-label {
    letter-spacing: 0.02em;
  }

  /* Dedicated Mobile Section for Şipşak */
  .mobile-sipsak-section {
    padding: 24px 0;
    margin: 32px 0 24px;
    border-top: 1px dashed rgba(225, 29, 72, 0.2);
    border-bottom: 1px dashed rgba(225, 29, 72, 0.2);
  }

  .sipsak-section-action-wrap {
    margin: 0 auto 20px;
    max-width: 480px;
  }

  .sipsak-big-snap-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fed7aa 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.16);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .sipsak-big-snap-btn:active {
    transform: scale(0.97);
  }

  .snap-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  }

  .snap-icon-circle svg {
    stroke: #ffffff;
  }

  .snap-btn-text {
    display: flex;
    flex-direction: column;
  }

  .snap-btn-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
  }

  .snap-btn-text small {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
  }

  /* Dedicated Şipşak 2-Column Grid */
  .sipsak-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .sipsak-card {
    background: #ffffff;
    padding: 9px 9px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(225, 29, 72, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .sipsak-card:active {
    transform: scale(0.96);
  }

  .sipsak-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    background: #111;
  }

  .sipsak-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sipsak-card-bottom {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }

  .sipsak-card-stamp {
    font-family: var(--font-handwriting);
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.1;
  }

  .sipsak-card-flash {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f59e0b;
    background: #fffbeb;
    padding: 2px 5px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }

  .sipsak-empty-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 18px;
    background: rgba(255, 241, 242, 0.6);
    border: 1.5px dashed rgba(225, 29, 72, 0.3);
    border-radius: 20px;
    color: var(--text-muted);
  }

  .sipsak-empty-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 8px;
  }

  .sipsak-empty-card h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 4px;
  }

  .sipsak-empty-card p {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  /* Direct Camera Viewfinder Modal */
  .sipsak-overlay {
    background: rgba(10, 5, 8, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 3000;
  }

  .sipsak-viewfinder-box {
    background: #150d13;
    border: 1.5px solid rgba(225, 29, 72, 0.35);
    border-radius: 30px;
    padding: 18px 16px 22px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-overlay.open .sipsak-viewfinder-box {
    transform: translateY(0) scale(1);
  }

  .sipsak-viewfinder-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .sipsak-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .sipsak-circle-btn:active {
    transform: scale(0.9);
    background: rgba(225, 29, 72, 0.35);
  }

  .sipsak-circle-btn.close {
    background: rgba(255, 255, 255, 0.08);
  }

  .sipsak-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffe4e6;
  }

  .sipsak-dot-rec {
    width: 7px;
    height: 7px;
    background: #f43f5e;
    border-radius: 50%;
    box-shadow: 0 0 8px #f43f5e;
    animation: sipsakRec 1.2s infinite ease-in-out;
  }

  @keyframes sipsakRec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  /* Camera Viewport */
  .sipsak-camera-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: #000000;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  }

  .sipsak-live-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sipsak-flash-screen {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 10;
  }

  .sipsak-flash-screen.flash-active {
    opacity: 1;
  }

  /* Viewfinder Brackets */
  .sipsak-viewfinder-grid {
    position: absolute;
    inset: 12px;
    pointer-events: none;
  }

  .viewfinder-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, 0.85);
    border-style: solid;
  }

  .viewfinder-corner.tl { top: 0; left: 0; border-width: 2.5px 0 0 2.5px; border-radius: 5px 0 0 0; }
  .viewfinder-corner.tr { top: 0; right: 0; border-width: 2.5px 2.5px 0 0; border-radius: 0 5px 0 0; }
  .viewfinder-corner.bl { bottom: 0; left: 0; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 5px; }
  .viewfinder-corner.br { bottom: 0; right: 0; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 5px 0; }

  .viewfinder-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
    font-weight: 300;
  }

  /* Camera Fallback */
  .sipsak-camera-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e131b;
    padding: 24px;
    text-align: center;
  }

  .sipsak-fallback-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #fff;
  }

  .sipsak-fallback-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.35;
  }

  .sipsak-fallback-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
  }

  /* Shutter Bar */
  .sipsak-shutter-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px;
  }

  .shutter-hint {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    font-weight: 500;
  }

  .sipsak-big-shutter {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: transparent;
    border: 3.5px solid rgba(255, 255, 255, 0.95);
    padding: 4px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(225, 29, 72, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
  }

  .sipsak-big-shutter:active {
    transform: scale(0.88);
  }

  .shutter-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shutter-core {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #ffe4e6 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Developing Instant View */
  .sipsak-developing-view {
    position: absolute;
    inset: 0;
    background: rgba(18, 10, 16, 0.96);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    z-index: 25;
  }

  .sipsak-polaroid-frame-dev {
    background: #ffffff;
    padding: 10px 10px 14px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-width: 260px;
    width: 100%;
    text-align: center;
  }

  .sipsak-polaroid-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
  }

  .sipsak-film-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: sipsakDevelopAnim 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes sipsakDevelopAnim {
    0% { filter: blur(6px) brightness(1.6) saturate(0.2); opacity: 0.5; }
    40% { filter: blur(2px) brightness(1.2) saturate(0.7); opacity: 0.85; }
    100% { filter: blur(0) brightness(1) saturate(1); opacity: 1; }
  }

  .sipsak-dev-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
  }

  .sipsak-polaroid-bottom {
    margin-top: 10px;
  }

  .sipsak-stamp-text {
    font-family: var(--font-handwriting);
    font-size: 1.15rem;
    color: var(--text-dark);
  }

  .sipsak-dev-status {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.94rem;
  }

  .sipsak-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
  }

  /* Sipsak Lightbox */
  .sipsak-lightbox-box {
    max-width: 380px;
    width: 100%;
    padding: 16px;
    position: relative;
    text-align: center;
  }

  .sipsak-lightbox-polaroid {
    background: #ffffff;
    padding: 12px 12px 18px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .sipsak-lightbox-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
  }

  .sipsak-lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sipsak-lightbox-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
  }

  .sipsak-lightbox-stamp {
    font-family: var(--font-handwriting);
    font-size: 1.25rem;
    color: var(--text-dark);
  }

  .sipsak-lightbox-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f59e0b;
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }
}

/* 3. Polaroid Gallery Sipsak Badges & Highlight (All screens where photos appear) */
.polaroid-sipsak-card {
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.12), 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

.polaroid-sipsak-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  letter-spacing: 0.02em;
}

@keyframes sipsakHighlight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 0 24px rgba(225, 29, 72, 0.5); }
  100% { transform: scale(1); box-shadow: 0 10px 25px rgba(225, 29, 72, 0.12); }
}

.sipsak-new-highlight {
  animation: sipsakHighlight 1.6s ease-in-out 2;
}

/* ==========================================================================
   BIOMETRIC FACE ID UNLOCK MODAL (WAX SEAL FOR LOVE LETTER)
   ========================================================================== */
.face-id-overlay {
  background: rgba(14, 8, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
}

.face-id-box {
  background: #170f15;
  background-image: radial-gradient(rgba(225, 29, 72, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  border-radius: 32px;
  padding: 34px 24px 26px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(225, 29, 72, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  color: #ffffff;
}

.modal-overlay.open .face-id-box {
  transform: translateY(0) scale(1);
}

.face-id-close {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.face-id-close:hover {
  background: rgba(225, 29, 72, 0.3);
  color: #ffffff;
}

.face-id-header {
  margin-bottom: 20px;
}

.face-id-lock-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.18);
  border: 1.5px solid rgba(225, 29, 72, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
  transition: all 0.35s ease;
}

.face-id-lock-icon-wrap.unlocked {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  transform: scale(1.1);
}

.face-id-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.face-id-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  padding: 0 10px;
}

/* Face ID Camera / Avatar Viewport */
.face-id-scanner-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 20px;
  border-radius: 44px;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.face-id-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror camera */
}

.face-id-fallback-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #2e1a24 0%, #0d070b 100%);
}

.face-id-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.15);
  border: 2px dashed rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-id-avatar-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.4));
}

/* Apple-style corner brackets */
.face-id-brackets {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  pointer-events: none;
}

.face-id-brackets .bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3.5px solid rgba(255, 255, 255, 0.85);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.face-id-brackets .top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 12px;
}

.face-id-brackets .top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 12px;
}

.face-id-brackets .bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 12px;
}

.face-id-brackets .bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 12px;
}

.face-id-scanner-wrap.scanning .bracket {
  border-color: #f43f5e;
  animation: bracketPulse 1.4s infinite ease-in-out;
}

@keyframes bracketPulse {
  0%, 100% { transform: scale(1); border-color: rgba(244, 63, 94, 0.8); }
  50% { transform: scale(1.08); border-color: rgba(255, 255, 255, 1); }
}

/* Laser sweep bar */
.face-id-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f43f5e 20%, #ffffff 50%, #f43f5e 80%, transparent 100%);
  box-shadow: 0 0 16px 4px rgba(244, 63, 94, 0.85);
  animation: laserSweep 1.8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes laserSweep {
  0% { top: 8%; opacity: 0.7; }
  50% { top: 90%; opacity: 1; }
  100% { top: 8%; opacity: 0.7; }
}

/* Biometric mesh points */
.face-id-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mesh-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.9);
  animation: dotBlink 1.2s infinite ease-in-out alternate;
}

.dot-eye-left { top: 38%; left: 36%; animation-delay: 0.1s; }
.dot-eye-right { top: 38%; right: 36%; animation-delay: 0.2s; }
.dot-nose { top: 52%; left: calc(50% - 3px); animation-delay: 0.3s; }
.dot-smile { top: 68%; left: calc(50% - 3px); width: 14px; height: 3px; border-radius: 4px; animation-delay: 0.4s; }

@keyframes dotBlink {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}

/* Success verification badge */
.face-id-success-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.face-id-success-badge.show {
  opacity: 1;
  transform: scale(1);
}

.face-id-success-badge svg {
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.7));
}

/* Status Info */
.face-id-status-wrap {
  margin-bottom: 16px;
}

.face-id-status-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  min-height: 24px;
  margin-bottom: 10px;
  font-weight: 500;
}

.face-id-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.face-id-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Registered Face ID Profile Badge */
.face-id-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
}

.face-id-profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
  background: rgba(225, 29, 72, 0.2);
}

.face-id-pill-btn {
  background: rgba(225, 29, 72, 0.25);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #ffb3c1;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.face-id-pill-btn:hover {
  background: rgba(225, 29, 72, 0.5);
  color: #ffffff;
}

.face-id-unregistered-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fef08a;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-bottom: 12px;
  text-align: left;
}

/* Biometric Mismatch & Match States */
.face-id-lock-icon-wrap.mismatched {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.25);
  color: #e11d48;
  animation: lockShake 0.45s ease-in-out;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.face-id-brackets.mismatch .bracket {
  border-color: #e11d48;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.8);
}

.face-id-brackets.matched .bracket {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.9);
}

.face-id-mismatch-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 29, 72, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.face-id-mismatch-badge.show {
  opacity: 1;
  transform: scale(1);
}

.face-id-mismatch-badge svg {
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.7));
}

/* Enrollment & Action Buttons */
.face-id-enroll-controls,
.face-id-mismatch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.face-id-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.face-id-action-btn.btn-enroll-cam {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.face-id-action-btn.btn-enroll-cam:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
}

.face-id-action-btn.btn-enroll-upload {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.face-id-action-btn.btn-enroll-upload:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.face-id-action-btn.btn-retry {
  background: rgba(225, 29, 72, 0.2);
  border: 1.5px solid var(--primary);
  color: #ffffff;
}

.face-id-action-btn.btn-retry:hover {
  background: var(--primary);
}

.face-id-passcode-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.face-id-passcode-btn:hover {
  color: #ffffff;
}

/* Wax seal cracking animation on envelope */
@keyframes sealCrack {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-6deg); }
  50% { transform: scale(1.2) rotate(6deg); filter: brightness(1.4) drop-shadow(0 0 16px #e11d48); }
  75% { transform: scale(0.9) rotate(-3deg); opacity: 0.7; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.wax-seal.seal-cracking {
  animation: sealCrack 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
  .face-id-box {
    padding: 24px 16px 18px;
    border-radius: 26px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .face-id-scanner-wrap {
    width: 175px;
    height: 175px;
    border-radius: 36px;
    margin-bottom: 12px;
  }
  .face-id-title {
    font-size: 1.15rem;
  }
  .face-id-subtitle {
    font-size: 0.78rem;
  }
  .face-id-action-btn {
    padding: 9px 12px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   ANTI-COPY & ANTI-SAVE AS PROTECTION (PROPRIETARY LOVE JOURNAL)
   ========================================================================== */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, button, section, header, footer {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow typing and selection in form fields */
input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Prevent image dragging and mobile long-press callout menus */
img {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* Protected Toast Notice */
.protected-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(35px);
  background: rgba(18, 10, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(225, 29, 72, 0.25);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  text-align: center;
  max-width: 90vw;
}

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

/* Hero Image Click-to-Change */
.polaroid-img-wrap {
  cursor: pointer;
  position: relative;
}

.hero-change-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18, 10, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  z-index: 5;
  font-family: inherit;
}

.hero-change-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
}

/* Lightbox Clickable Photo to Change */
.lightbox-img-wrap {
  cursor: pointer;
}

.lightbox-img-wrap img {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.lightbox-img-wrap img:hover {
  filter: brightness(1.04);
}
