
.notes-page .notes-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 28px 44px;
}

.notes-page .notes-header-card {
  text-align: left !important;
  padding: 28px 30px !important;
  border-radius: 26px;
}

.notes-page .notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.notes-page .notes-header h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.notes-page .board-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 290px));
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  margin-top: 34px;
}

.notes-page .pin-card {
  width: 100%;
  min-height: 292px;
  height: 292px;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 18px;
  background: rgba(30, 25, 45, 0.44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  border-radius: 14px;
  position: relative;
  animation: fadeIn 0.45s ease forwards;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
  overflow: hidden;
}

.notes-page .pin-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4), 0 0 18px rgba(168, 85, 247, 0.16);
  z-index: 3;
}

.notes-page .pin-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 92px;
  height: 31px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  z-index: 2;
}

.notes-page .pin-card.sezin::before {
  background: rgba(244, 114, 182, 0.22);
}

.notes-page .pin-card.batikan::before {
  background: rgba(168, 85, 247, 0.22);
}

.notes-page .note-date {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.96);
  display: block;
  margin-bottom: 14px;
  text-align: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.notes-page .note-text {
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  white-space: pre-wrap;
  text-align: center;
  flex: 1 1 auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.notes-page .note-author {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.notes-page .pin-card.sezin .note-author {
  color: var(--accent);
}

.notes-page .pin-card.batikan .note-author {
  color: var(--primary);
}

.notes-page .view-note-text {
  display: block !important;
  font-size: 17px;
  line-height: 1.85;
  color: #fff;
  white-space: pre-wrap !important;
  text-align: left;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-height: min(56vh, 420px) !important;
  overflow-y: auto !important;
  text-overflow: initial !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 14px;
  margin: 18px 0 20px;
  scrollbar-width: thin;
}

.notes-page .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.notes-page .form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.notes-page .form-group textarea,
.notes-page .form-group input.flatpickr-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
}

.notes-page .form-group textarea {
  min-height: 120px;
  resize: none;
}

.notes-page .author-select {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.notes-page .author-select label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.notes-page #readNoteModal .modal-card {
  width: min(760px, 94vw);
  padding: 24px;
}

.notes-page #scrollTopBtn {
  bottom: 24px;
  right: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1440px) {
  .notes-page .notes-wrapper {
    max-width: 1180px;
  }
}

@media (max-width: 980px) {
  .notes-page .notes-wrapper {
    padding: 24px 20px 38px;
  }

  .notes-page .board-container {
    grid-template-columns: repeat(auto-fit, minmax(245px, 276px));
    gap: 18px;
  }

  .notes-page .pin-card {
    min-height: 280px;
    height: 280px;
    padding: 28px 20px 16px;
  }
}

@media (max-width: 700px) {
  .notes-page .notes-wrapper {
    padding: 18px 14px 30px;
  }

  .notes-page .notes-header-card {
    padding: 22px 18px !important;
    border-radius: 22px;
  }

  .notes-page .board-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 26px;
  }

  .notes-page .pin-card {
    max-width: 100%;
    width: 100%;
    min-height: 252px;
    height: 252px;
    padding: 26px 18px 16px;
    transform: none !important;
  }

  .notes-page .pin-card:hover {
    transform: translateY(-2px) !important;
  }

  .notes-page .note-date {
    font-size: 22px;
  }

  .notes-page .note-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .notes-page .view-note-text {
    max-height: 48vh !important;
    font-size: 15.5px;
    line-height: 1.75;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .notes-page #readNoteModal .modal-card {
    width: min(96vw, 760px);
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .notes-page .notes-wrapper {
    padding: 14px 12px 26px;
  }

  .notes-page .pin-card {
    min-height: 244px;
    height: 244px;
  }
}

/* === 2026 v3 notes page consistency pass === */
.notes-page .notes-wrapper {
  max-width: 1040px;
  padding: 26px 28px 46px;
}

.notes-page .notes-header-card {
  background:
    radial-gradient(540px circle at 12% 18%, rgba(244,114,182,.14), transparent 56%),
    radial-gradient(520px circle at 86% 12%, rgba(168,85,247,.16), transparent 52%),
    rgba(22,17,36,.68);
  box-shadow:
    0 0 24px rgba(168,85,247,.08),
    0 18px 42px rgba(0,0,0,.28);
}

.notes-page .notes-back-row {
  margin-top: 18px;
  margin-bottom: 22px;
  text-align: left;
}

.notes-page .notes-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(180px circle at 0% 0%, rgba(244,114,182,.10), transparent 56%),
    rgba(255,255,255,0.08);
  box-shadow:
    0 0 16px rgba(168,85,247,.08),
    0 8px 24px rgba(0,0,0,.18);
  transition: transform .24s ease, box-shadow .28s ease, border-color .28s ease;
}

.notes-page .notes-back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(244,114,182,.22);
  box-shadow:
    0 0 18px rgba(244,114,182,.10),
    0 12px 24px rgba(0,0,0,.20);
}

.notes-page .notes-back-icon {
  font-size: 18px;
}

.notes-page .board-container {
  grid-template-columns: repeat(auto-fit, minmax(248px, 276px));
  gap: 20px;
}

.notes-page .pin-card {
  min-height: 284px;
  height: 284px;
  background:
    radial-gradient(220px circle at 12% 0%, rgba(244,114,182,.10), transparent 56%),
    radial-gradient(220px circle at 100% 0%, rgba(168,85,247,.12), transparent 52%),
    rgba(30,25,45,.44);
  box-shadow:
    0 0 18px rgba(168,85,247,.08),
    0 14px 32px rgba(0,0,0,.34);
}

.notes-page .pin-card:hover {
  border-color: rgba(244,114,182,.24);
  box-shadow:
    0 0 20px rgba(244,114,182,.10),
    0 0 28px rgba(168,85,247,.12),
    0 18px 38px rgba(0,0,0,.40);
}

@media (max-width: 980px) {
  .notes-page .notes-wrapper {
    padding: 22px 18px 38px;
  }

  .notes-page .board-container {
    grid-template-columns: repeat(auto-fit, minmax(230px, 262px));
    gap: 18px;
  }

  .notes-page .pin-card {
    min-height: 272px;
    height: 272px;
  }
}

@media (max-width: 700px) {
  .notes-page .notes-wrapper {
    padding: 18px 14px 30px;
  }

  .notes-page .notes-header-card {
    padding: 22px 18px !important;
  }

  .notes-page .board-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .notes-page .pin-card {
    min-height: 248px;
    height: 248px;
  }
}


/* === 2026 v4 notes size pass === */
.notes-page .notes-wrapper {
  max-width: 1100px;
  padding: 28px 28px 46px;
}

.notes-page .board-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  justify-content: stretch;
}

.notes-page .pin-card {
  min-height: 298px;
  height: 298px;
  border-radius: 18px;
}

@media (max-width: 1080px) {
  .notes-page .board-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-page .pin-card {
    min-height: 286px;
    height: 286px;
  }
}

@media (max-width: 700px) {
  .notes-page .board-container {
    grid-template-columns: 1fr;
  }

  .notes-page .pin-card {
    min-height: 252px;
    height: 252px;
  }
}


/* === v5 premium consistency polish === */
.notes-wrapper {
  max-width: 1120px;
}

.notes-header-card,
.board-note,
.modal-card {
  box-shadow:
    0 0 18px rgba(244,114,182,.08),
    0 0 30px rgba(168,85,247,.10),
    0 20px 46px rgba(0,0,0,.26);
}

.board-note {
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(260px circle at 10% 0%, rgba(244,114,182,.11), transparent 58%),
    radial-gradient(260px circle at 100% 0%, rgba(168,85,247,.12), transparent 56%),
    linear-gradient(180deg, rgba(35,24,54,.90), rgba(23,17,37,.92));
}

.notes-back-link,
#openNoteModalBtn {
  box-shadow:
    0 0 12px rgba(244,114,182,.10),
    0 0 22px rgba(168,85,247,.12),
    0 12px 24px rgba(0,0,0,.18);
}

@media (max-width: 1280px) {
  .notes-wrapper {
    max-width: 1020px;
  }
}


/* === v7 soft luxe notes pass === */
.notes-page .notes-header-card,
.notes-page .pin-card {
  box-shadow: 0 14px 32px rgba(0,0,0,.24), 0 0 14px rgba(168,85,247,.06);
}
.notes-page .notes-header-card {
  background:
    radial-gradient(320px circle at 12% 18%, rgba(244,114,182,.08), transparent 56%),
    radial-gradient(300px circle at 86% 12%, rgba(168,85,247,.09), transparent 52%),
    linear-gradient(180deg, rgba(28,20,43,.86), rgba(20,15,32,.90));
}
.notes-page .pin-card {
  background:
    radial-gradient(180px circle at 12% 0%, rgba(244,114,182,.07), transparent 56%),
    radial-gradient(200px circle at 100% 0%, rgba(168,85,247,.08), transparent 52%),
    linear-gradient(180deg, rgba(33,24,50,.90), rgba(22,16,35,.93));
}
.notes-page .pin-card:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,.26), 0 0 18px rgba(168,85,247,.08);
  border-color: rgba(244,114,182,.18);
}
.notes-page .notes-back-link {
  box-shadow: 0 10px 22px rgba(0,0,0,.18), 0 0 12px rgba(168,85,247,.08);
}


/* === v16 final premium note modal fix === */
#readNoteModal.show { align-items: flex-start !important; overflow-y: auto !important; padding: 24px 0 !important; }
#readNoteModal .modal-card { margin: auto !important; }
.notes-page .view-note-text { max-height: none !important; overflow: visible !important; overflow-y: visible !important; scrollbar-width: none !important; }
.notes-page .view-note-text::-webkit-scrollbar { display: none !important; }


/* Extracted inline notlar styles */
.notes-page .author-option-sezin { color: var(--accent); }
.notes-page .author-option-batikan { color: var(--primary); }
.notes-page .notes-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 25px;
}
.notes-page .btn-flex-1 { flex: 1; }
.notes-page .btn-ghost {
  background: transparent;
  border: 1px solid var(--ring);
  box-shadow: none;
}
.notes-page .btn-ghost-danger {
  background: transparent;
  border: 1px solid #ff8abf66;
  box-shadow: none;
}
.notes-page .note-date-large {
  font-size: 32px;
  border-bottom: none;
}
.notes-page .read-note-author {
  font-weight: 700;
  font-size: 15px;
  text-align: right;
  margin-bottom: 25px;
}
.notes-page .read-note-author.is-sezin { color: var(--accent); }
.notes-page .read-note-author.is-batikan { color: var(--primary); }
.notes-page .read-note-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.notes-page .btn-full-ghost {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ring);
  margin-top: 10px;
}
.notes-page .empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}


/* === v2.1 future letter system === */
.notes-page .future-toggle-group {
  margin-top: 10px;
}

.notes-page .future-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(220px circle at 0% 0%, rgba(244,114,182,.08), transparent 58%),
    rgba(255,255,255,.045);
  cursor: pointer;
}

.notes-page .future-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.notes-page .future-toggle-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.notes-page .future-toggle-copy small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.notes-page .future-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.notes-page .future-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notes-page .future-toggle-ui {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.notes-page .future-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,244,248,.80));
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transition: transform .25s ease;
}

.notes-page .future-toggle-switch input:checked + .future-toggle-ui {
  background: linear-gradient(135deg, rgba(244,114,182,.65), rgba(168,85,247,.70));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 16px rgba(244,114,182,.18), inset 0 0 0 1px rgba(255,255,255,.05);
}

.notes-page .future-toggle-switch input:checked + .future-toggle-ui::after {
  transform: translateX(26px);
}

.notes-page .future-date-group {
  margin-top: 12px;
}

.notes-page .future-date-group.is-visible {
  animation: fadeIn .26s ease;
}

.notes-page .read-note-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.notes-page .pin-card.future-letter {
  background:
    linear-gradient(180deg, rgba(255,246,232,.98), rgba(246,231,212,.96));
  border: 1px solid rgba(128,87,56,.20);
  box-shadow:
    0 16px 32px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.25) inset;
}

.notes-page .pin-card.future-letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112px;
  transform: none;
  background:
    linear-gradient(180deg, rgba(243,225,200,.96), rgba(236,214,188,.96));
  clip-path: polygon(0 0, 100% 0, 50% 80%);
  border: none;
  box-shadow: none;
  border-radius: 18px 18px 0 0;
  z-index: 1;
}

.notes-page .pin-card.future-letter::after {
  content: "💌";
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f472b6, #c026d3);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  z-index: 2;
}

.notes-page .pin-card.future-letter .note-date,
.notes-page .pin-card.future-letter .note-text {
  position: relative;
  z-index: 3;
  color: #4a2d23;
  text-shadow: none;
}

.notes-page .pin-card.future-letter .note-date {
  margin-top: 104px;
  margin-bottom: 14px;
  border-bottom: 2px dashed rgba(116,79,52,.18);
  color: #7a4933;
}

.notes-page .pin-card.future-letter .note-text {
  font-size: 15px;
  line-height: 1.72;
  white-space: pre-wrap;
  text-align: center;
}

.notes-page .pin-card.future-letter .note-author {
  position: relative;
  z-index: 3;
  color: #7a4933 !important;
}

.notes-page .pin-card.future-letter.is-unlocked {
  background:
    linear-gradient(180deg, rgba(255,248,238,.99), rgba(249,236,220,.98));
}

.notes-page .pin-card.future-letter:hover {
  border-color: rgba(177,107,76,.26);
  box-shadow:
    0 18px 36px rgba(0,0,0,.26),
    0 0 22px rgba(244,114,182,.12);
}

.notes-page #readNoteModal.is-locked-letter .view-note-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
}

@media (max-width: 700px) {
  .notes-page .future-toggle-row {
    padding: 13px 14px;
  }

  .notes-page .pin-card.future-letter .note-date {
    margin-top: 96px;
  }
}



/* === v2.2 future letter refresh + modal polish === */
.notes-page .btn-full-ghost,
.notes-page #editNoteBtn,
.notes-page #deleteNoteBtn {
  min-height: 52px;
  border-radius: 18px;
  font-weight: 800;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    filter .22s ease,
    background .22s ease;
}

.notes-page #editNoteBtn {
  background: linear-gradient(135deg, rgba(168,85,247,.96), rgba(214,107,214,.92)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 12px 26px rgba(96,53,157,.30), 0 0 18px rgba(168,85,247,.18) !important;
}

.notes-page #editNoteBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(96,53,157,.34), 0 0 24px rgba(168,85,247,.24) !important;
}

.notes-page #deleteNoteBtn {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) !important;
  border: 1px solid rgba(244,114,182,.34) !important;
  color: #ffd5ea !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.02) !important;
}

.notes-page #deleteNoteBtn:hover,
.notes-page .btn-full-ghost:hover {
  transform: translateY(-2px);
}

.notes-page .btn-full-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.03) !important;
}

.notes-page .pin-card.future-letter {
  background:
    radial-gradient(260px circle at 0% 0%, rgba(255,255,255,.70), transparent 50%),
    linear-gradient(180deg, rgba(255,247,236,.995), rgba(250,236,218,.985)) !important;
  border: 1px solid rgba(183,131,98,.24) !important;
  box-shadow:
    0 16px 32px rgba(0,0,0,.22),
    0 0 24px rgba(244,114,182,.08),
    inset 0 0 0 1px rgba(255,255,255,.34) !important;
}

.notes-page .pin-card.future-letter::before {
  background:
    linear-gradient(180deg, rgba(243,224,202,.98), rgba(233,210,184,.98)) !important;
  height: 118px;
  clip-path: polygon(0 0, 100% 0, 50% 82%);
  border-radius: 18px 18px 0 0;
}

.notes-page .pin-card.future-letter::after {
  content: "💗";
  width: 50px;
  height: 50px;
  top: 82px;
  background: linear-gradient(135deg, #f472b6, #a855f7) !important;
  box-shadow: 0 12px 20px rgba(0,0,0,.18), 0 0 18px rgba(244,114,182,.18);
}

.notes-page .pin-card.future-letter .note-date,
.notes-page .pin-card.future-letter .note-text,
.notes-page .pin-card.future-letter .note-author {
  color: #5b3560 !important;
}

.notes-page .pin-card.future-letter .note-date {
  margin-top: 108px;
  margin-bottom: 16px;
  color: #7a4b78 !important;
  border-bottom: 2px dashed rgba(122,75,120,.18);
  font-size: 28px;
}

.notes-page .pin-card.future-letter .note-text {
  font-size: 15.2px;
  line-height: 1.76;
  color: #6b4b57 !important;
}

.notes-page .pin-card.future-letter .note-author {
  color: #8c5a74 !important;
}

.notes-page .pin-card.future-letter.is-unlocked {
  background:
    radial-gradient(240px circle at 0% 0%, rgba(255,255,255,.76), transparent 50%),
    linear-gradient(180deg, rgba(255,249,241,.998), rgba(252,241,227,.99)) !important;
}

.notes-page .pin-card.future-letter.is-unlocked .note-date {
  color: #7b4377 !important;
}

.notes-page .pin-card.future-letter:hover {
  border-color: rgba(244,114,182,.22) !important;
  box-shadow:
    0 20px 38px rgba(0,0,0,.24),
    0 0 22px rgba(244,114,182,.14),
    inset 0 0 0 1px rgba(255,255,255,.36) !important;
}

.notes-page #readNoteModal.is-letter-opening .modal-card {
  overflow: hidden;
  animation: letterRevealCard 1.25s cubic-bezier(.2,.78,.2,1);
}

.notes-page #readNoteModal.is-letter-opening .modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(243,224,202,.98), rgba(233,210,184,.98));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 3;
  animation: letterFlapOpen 1.1s cubic-bezier(.18,.8,.18,1) forwards;
}

.notes-page #readNoteModal.is-letter-opening .modal-card::after {
  content: "💗";
  position: absolute;
  top: calc(45% - 22px);
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
  z-index: 4;
  animation: letterSealPop 1.05s ease forwards;
}

.notes-page #readNoteModal.is-letter-opening .note-date-large,
.notes-page #readNoteModal.is-letter-opening .read-note-status,
.notes-page #readNoteModal.is-letter-opening .view-note-text,
.notes-page #readNoteModal.is-letter-opening .read-note-author,
.notes-page #readNoteModal.is-letter-opening .read-note-actions,
.notes-page #readNoteModal.is-letter-opening #closeReadNoteBtn {
  animation: letterContentFade 1.15s ease both;
  animation-delay: .28s;
}

@keyframes letterFlapOpen {
  0% { transform: rotateX(0deg); opacity: 1; }
  55% { transform: rotateX(-108deg); opacity: 1; }
  100% { transform: rotateX(-118deg); opacity: 0; }
}

@keyframes letterSealPop {
  0% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(.35); opacity: 0; }
}

@keyframes letterRevealCard {
  0% { transform: translateY(20px) scale(.96); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes letterContentFade {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

body.modal-locked {
  overscroll-behavior: none;
  touch-action: none;
}

@media (max-width: 700px) {
  .notes-page .pin-card.future-letter .note-date {
    margin-top: 98px;
    font-size: 24px;
  }
}



/* === v2.4 final polish: notes button parity + mobile fit === */
.notes-page .notes-back-link,
.notes-page #openNoteModalBtn,
.notes-page .btn,
.notes-page .btn-full-ghost,
.notes-page .btn-ghost,
.notes-page .btn-ghost-danger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.notes-page .notes-back-link::after,
.notes-page #openNoteModalBtn::after,
.notes-page .btn::after,
.notes-page .btn-full-ghost::after,
.notes-page .btn-ghost::after,
.notes-page .btn-ghost-danger::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .5s ease;
}

.notes-page .notes-back-link:hover::after,
.notes-page #openNoteModalBtn:hover::after,
.notes-page .btn:hover::after,
.notes-page .btn-full-ghost:hover::after,
.notes-page .btn-ghost:hover::after,
.notes-page .btn-ghost-danger:hover::after {
  transform: translateX(130%);
}

.notes-page .notes-back-link:hover,
.notes-page #openNoteModalBtn:hover,
.notes-page .btn:hover,
.notes-page .btn-full-ghost:hover,
.notes-page .btn-ghost:hover,
.notes-page .btn-ghost-danger:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 16px 34px rgba(8,6,18,.34),
    0 0 28px rgba(168,85,247,.14);
}

.notes-page .btn-ghost-danger:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 16px 34px rgba(8,6,18,.34),
    0 0 28px rgba(244,114,182,.18);
}

@media (max-width: 430px) {
  .notes-page .notes-wrapper { padding: 18px 12px 28px; }
  .notes-page .notes-header-card,
  .notes-page .pin-card { border-radius: 20px; }
  .notes-page .notes-back-link,
  .notes-page #openNoteModalBtn,
  .notes-page .btn,
  .notes-page .btn-full-ghost,
  .notes-page .btn-ghost,
  .notes-page .btn-ghost-danger { min-height: 48px; font-size: 14px; }
}

@media (max-width: 393px) {
  .notes-page .read-note-actions,
  .notes-page .notes-modal-actions { gap: 8px; }
}
