#nocodevn-love-wrapper {
  --bg-root: #050507;
  --bg-glass: rgba(255, 255, 255, 0.02);
  --border-glass: rgba(255, 255, 255, 0.06);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;

  --boy-color: #38BDF8;
  --boy-bg: rgba(56, 189, 248, 0.1);
  --girl-color: #FB7185;
  --girl-bg: rgba(251, 113, 133, 0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  background-color: var(--bg-root);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 140px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

#nocodevn-love-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* --- HIỆU ỨNG NỀN & RIPPLE --- */
#nocodevn-love-wrapper .ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#nocodevn-love-wrapper #magicCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

#nocodevn-love-wrapper .glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: floatSlow 20s infinite alternate ease-in-out;
}

#nocodevn-love-wrapper .blob-1 {
  width: 50vw;
  height: 50vw;
  background: var(--boy-color);
  top: -10%;
  left: 10%;
}

#nocodevn-love-wrapper .blob-2 {
  width: 60vw;
  height: 60vw;
  background: var(--girl-color);
  bottom: 10%;
  right: 5%;
  animation-delay: -10s;
}

@keyframes floatSlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, 60px) scale(1.2);
  }
}

#nocodevn-love-wrapper .progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--boy-color), #FFF, var(--girl-color));
  z-index: 9999;
  transition: width 0.1s;
}

#nocodevn-love-wrapper .ripple-effect {
  position: fixed;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
  animation: rippleAnim 0.6s var(--ease-out) forwards;
}

@keyframes rippleAnim {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
    transform: translate(-50%, -50%);
    border-width: 0px;
  }
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
#nocodevn-love-wrapper header {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 60px auto 60px;
  padding: 0 20px;
  text-align: center;
}

#nocodevn-love-wrapper .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

#nocodevn-love-wrapper .status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

#nocodevn-love-wrapper .main-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 36px;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

#nocodevn-love-wrapper .couple-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 55px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  width: 100%;
}

#nocodevn-love-wrapper .name-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 12px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  cursor: pointer;
  animation: popUp 0.8s var(--ease-bounce) forwards;
  opacity: 0;
  transform: scale(0.8);
  flex: 0 1 auto;
}

#nocodevn-love-wrapper .name-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

#nocodevn-love-wrapper .name-pill.boy {
  animation-delay: 0.1s;
}

#nocodevn-love-wrapper .name-pill.girl {
  animation-delay: 0.3s;
}

#nocodevn-love-wrapper .name-pill .avatar-glow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: 0.3s;
  flex-shrink: 0;
  overflow: visible !important;
}

#nocodevn-love-wrapper .name-pill:hover .avatar-glow {
  transform: scale(1.1) rotate(10deg);
}

#nocodevn-love-wrapper .name-pill.boy .avatar-glow {
  background: var(--boy-bg);
  box-shadow: 0 0 20px var(--boy-color);
}

#nocodevn-love-wrapper .name-pill.girl .avatar-glow {
  background: var(--girl-bg);
  box-shadow: 0 0 20px var(--girl-color);
}

#nocodevn-love-wrapper .name-pill .name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

#nocodevn-love-wrapper .name-pill.boy .name {
  color: var(--boy-color);
}

#nocodevn-love-wrapper .name-pill.girl .name {
  color: var(--girl-color);
}

#nocodevn-love-wrapper .heart-connector {
  font-size: 2rem;
  animation: beat 1.2s infinite;
  filter: drop-shadow(0 0 15px rgba(251, 113, 133, 0.8));
  opacity: 0;
  animation: popUp 0.8s var(--ease-bounce) 0.2s forwards, beat 1.2s infinite 1s;
  flex-shrink: 0;
}

@keyframes beat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

@keyframes popUp {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Counter Island */
#nocodevn-love-wrapper .counter-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  padding: 24px 48px;
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  /* max-width: 720px; */
  margin: 0 auto;
  gap: 30px;
  position: relative;
  overflow: hidden;
  animation: slideUpFade 1s var(--ease-out) 0.4s forwards;
  opacity: 0;
  transform: translateY(40px);
}

#nocodevn-love-wrapper .counter-island::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: shineGlow 6s infinite;
}

@keyframes shineGlow {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

#nocodevn-love-wrapper .counter-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

#nocodevn-love-wrapper .days-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(to right, #FFF 20%, var(--boy-color) 40%, var(--girl-color) 60%, #FFF 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s linear infinite;
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.15));
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

#nocodevn-love-wrapper .counter-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 1.5px;
}

#nocodevn-love-wrapper .counter-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
}

#nocodevn-love-wrapper .island-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

#nocodevn-love-wrapper .counter-right {
  text-align: right;
}

#nocodevn-love-wrapper .counter-right span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#nocodevn-love-wrapper .counter-right strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #FFF;
  margin-top: 4px;
  display: block;
}

/* --- THANG MÁY THỜI GIAN NHANH BÊN PHẢI --- */
#nocodevn-love-wrapper .year-elevator {
  position: fixed;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  padding: 16px 8px;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.6s var(--ease-bounce);
  opacity: 0;
  pointer-events: none;
}

#nocodevn-love-wrapper .year-elevator.visible {
  opacity: 1;
  right: 24px;
  pointer-events: auto;
}

#nocodevn-love-wrapper .year-elevator::before {
  content: '⏳';
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
  animation: floatSmall 2s infinite ease-in-out;
}

@keyframes floatSmall {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

#nocodevn-love-wrapper .btn-year {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.4s var(--ease-bounce);
  position: relative;
  border: 1px solid transparent;
  z-index: 1;
}

#nocodevn-love-wrapper .btn-year::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FFF;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.4s var(--ease-bounce);
  z-index: -1;
}

#nocodevn-love-wrapper .btn-year:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#nocodevn-love-wrapper .btn-year.active {
  color: #000;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

#nocodevn-love-wrapper .btn-year.active::after {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   2. DÒNG CHẢY TẠP CHÍ & BỐ CỤC Z-PATTERN
   ========================================================================== */
#nocodevn-love-wrapper .stream-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

#nocodevn-love-wrapper .journal-card {
  position: relative;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s var(--ease-out);
  --mood-glow: rgba(255, 255, 255, 0.3);
  --mood-solid: #FFF;
}

#nocodevn-love-wrapper .journal-card[data-mood="di-choi"] {
  --mood-glow: rgba(0, 229, 255, 0.4);
  --mood-solid: #00E5FF;
}

#nocodevn-love-wrapper .journal-card[data-mood="gian-nhau"] {
  --mood-glow: rgba(255, 59, 48, 0.4);
  --mood-solid: #FF3B30;
}

#nocodevn-love-wrapper .journal-card[data-mood="ky-niem"] {
  --mood-glow: rgba(191, 90, 242, 0.4);
  --mood-solid: #BF5AF2;
}

#nocodevn-love-wrapper .journal-card[data-mood="an-uong"] {
  --mood-glow: rgba(255, 159, 10, 0.4);
  --mood-solid: #FF9F0A;
}

#nocodevn-love-wrapper .journal-card[data-mood="khac"] {
  --mood-glow: rgba(255, 45, 85, 0.4);
  --mood-solid: #FF2D55;
}

#nocodevn-love-wrapper .journal-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

#nocodevn-love-wrapper .card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 48px;
  backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: 0.4s;
}

#nocodevn-love-wrapper .card-glass:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

#nocodevn-love-wrapper .mood-bar {
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 4px;
  background: var(--mood-solid);
  box-shadow: 0 0 20px var(--mood-glow);
  border-radius: 10px;
  transition: 0.4s;
}

#nocodevn-love-wrapper .watermark-date {
  position: absolute;
  top: -15px;
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: 0.4s;
}

#nocodevn-love-wrapper .card-glass:hover .watermark-date {
  color: rgba(255, 255, 255, 0.04);
  transform: scale(1.02);
}

#nocodevn-love-wrapper .split-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start; /* Căn đỉnh thay vì căn giữa để nội dung dài không làm méo/lệch cột ảnh */
  position: relative;
  z-index: 2;
}

#nocodevn-love-wrapper .text-zone {
  flex: 1.2; /* Tăng nhẹ độ rộng cho cột chữ khi nội dung dài */
  min-width: 0;
}

#nocodevn-love-wrapper .visual-zone {
  flex: 0.8; /* Cột ảnh chiếm tỷ lệ gọn gàng hơn */
  width: 100%;
  max-width: 380px; /* Giới hạn chiều rộng của cột ảnh để bố cục cân đối */
  position: relative;
  display: flex;
  justify-content: center;
}

#nocodevn-love-wrapper .meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

#nocodevn-love-wrapper .meta-line .dot {
  color: var(--border-glass);
}

#nocodevn-love-wrapper .meta-line .author {
  color: #FFF;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
}

#nocodevn-love-wrapper .meta-line .mood-tag {
  color: var(--mood-solid);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--mood-glow);
}

#nocodevn-love-wrapper .text-zone h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 16px;
  line-height: 1.3;
}

#nocodevn-love-wrapper .text-zone p {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.8;
  white-space: pre-line;
  font-weight: 400;
}

@media (min-width: 769px) {
  #nocodevn-love-wrapper .journal-card:nth-child(odd) .split-layout {
    flex-direction: row;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(even) .split-layout {
    flex-direction: row-reverse;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(odd) .mood-bar {
    left: 0;
    border-radius: 0 6px 6px 0;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(even) .mood-bar {
    right: 0;
    border-radius: 6px 0 0 6px;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(odd) .watermark-date {
    left: 48px;
    right: auto;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(even) .watermark-date {
    right: 48px;
    left: auto;
  }

  #nocodevn-love-wrapper .journal-card:nth-child(odd) .visual-zone {
    transform: translateX(12px) scale(1.03);
  }

  #nocodevn-love-wrapper .journal-card:nth-child(even) .visual-zone {
    transform: translateX(-12px) scale(1.03);
  }
}

/* ALBUM ẢNH */
#nocodevn-love-wrapper .gallery-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

#nocodevn-love-wrapper .gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  position: relative;
  transition: 0.4s var(--ease-bounce);
  background: #000;
}

#nocodevn-love-wrapper .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ẢNH PHỦ KÍN TOÀN BỘ KHÔNG BỊ PHÂN TÂM BỞI VIỀN ĐEN/MỜ */
  display: block;
  transition: 0.5s;
  opacity: 0.9;
}

#nocodevn-love-wrapper .gallery-item:hover {
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

#nocodevn-love-wrapper .gallery-item:hover img {
  transform: scale(1.12); /* Chỉ phóng to ảnh bên trong, khung giữ nguyên */
  opacity: 1;
}

/* Làm mờ hẳn bức ảnh cuối cùng có chữ số lượng ảnh ẩn để text nổi bật */
#nocodevn-love-wrapper .gallery-item:has(.more-overlay) img {
  filter: blur(8px) brightness(0.4) !important;
}

#nocodevn-love-wrapper .grid-1 {
  grid-template-columns: 1fr;
}

#nocodevn-love-wrapper .grid-1 .gallery-item {
  aspect-ratio: 4/5;
  max-height: 400px;
}

#nocodevn-love-wrapper .grid-multi {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 200px;
}

#nocodevn-love-wrapper .grid-multi .gallery-item:nth-child(1) {
  grid-row: span 2;
}

#nocodevn-love-wrapper .grid-multi .gallery-item:nth-child(2),
#nocodevn-love-wrapper .grid-multi .gallery-item:nth-child(3) {
  height: 100%;
}

/* ALBUM GRID 4 IMAGES (2x2 GRID - TĂNG CHIỀU CAO HÀNG LÊN 180PX) */
#nocodevn-love-wrapper .grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 10px;
}
#nocodevn-love-wrapper .grid-4 .gallery-item {
  height: 100%;
}

/* ALBUM GRID 5+ IMAGES (PORTRAIT LEFT 328PX, 2x2 SQUARE RIGHT 160PX) */
#nocodevn-love-wrapper .grid-5 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 8px;
}
#nocodevn-love-wrapper .grid-5 .gallery-item {
  height: 100%;
}
#nocodevn-love-wrapper .grid-5 .gallery-item:nth-child(1) {
  grid-column: span 1;
  grid-row: span 2;
}
#nocodevn-love-wrapper .grid-5 .gallery-item:nth-child(2),
#nocodevn-love-wrapper .grid-5 .gallery-item:nth-child(3),
#nocodevn-love-wrapper .grid-5 .gallery-item:nth-child(4),
#nocodevn-love-wrapper .grid-5 .gallery-item:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
}

#nocodevn-love-wrapper .more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  transition: 0.3s;
}

#nocodevn-love-wrapper .more-overlay:hover {
  background: rgba(5, 5, 7, 0.5);
}

/* --- MAGNETIC STICKY BUTTON --- */
#nocodevn-love-wrapper .sticky-dock {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 90%;
  max-width: 380px;
}

#nocodevn-love-wrapper .magnetic-wrap {
  display: inline-block;
  width: 100%;
}

#nocodevn-love-wrapper .btn-create {
  width: 100%;
  background: #FFF;
  color: #000;
  border: none;
  padding: 18px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
}

#nocodevn-love-wrapper .btn-create:hover {
  box-shadow: 0 30px 60px rgba(255, 255, 255, 0.3);
}

#nocodevn-love-wrapper .btn-create .plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #050507;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: 0.3s;
}

#nocodevn-love-wrapper .btn-create:hover .plus {
  transform: rotate(90deg);
  background: var(--boy-color);
}

/* --- MODAL FORM --- */
#nocodevn-love-wrapper .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  padding: 16px;
  perspective: 1000px;
}

#nocodevn-love-wrapper .modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

#nocodevn-love-wrapper .modal-box {
  width: 100%;
  max-width: 850px;
  background: #0A0B10;
  border-radius: 36px;
  padding: 25px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
  transform: rotateX(20deg) translateY(50px) scale(0.9);
  transition: 0.5s var(--ease-bounce);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#nocodevn-love-wrapper .modal-overlay.open .modal-box {
  transform: rotateX(0) translateY(0) scale(1);
}

#nocodevn-love-wrapper .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

#nocodevn-love-wrapper .modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
}

#nocodevn-love-wrapper .btn-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #FFF;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nocodevn-love-wrapper .btn-close:hover {
  background: rgba(255, 0, 85, 0.8);
  transform: rotate(90deg);
  border-color: transparent;
}

#nocodevn-love-wrapper .form-group {
  margin-bottom: 24px;
}

#nocodevn-love-wrapper .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#nocodevn-love-wrapper .input-ui {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #FFF;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#nocodevn-love-wrapper input[type="date"].input-ui {
  display: block !important;
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  line-height: 24px !important;
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Clear native iOS Safari shadow/inner elements inside date input */
#nocodevn-love-wrapper input[type="date"].input-ui::-webkit-date-and-time-value {
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 24px !important;
  line-height: 24px !important;
}

#nocodevn-love-wrapper input[type="date"].input-ui::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.8) !important;
  opacity: 0.7 !important;
  cursor: pointer !important;
}

#nocodevn-love-wrapper textarea.input-ui {
  resize: vertical;
  min-height: 120px;
}

#nocodevn-love-wrapper .dropzone-box {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

#nocodevn-love-wrapper .dropzone-box:hover {
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

#nocodevn-love-wrapper .dropzone-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#nocodevn-love-wrapper .drop-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

#nocodevn-love-wrapper .drop-text b {
  color: #FFF;
  font-weight: 700;
}

#nocodevn-love-wrapper .preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

#nocodevn-love-wrapper .preview-grid::-webkit-scrollbar {
  width: 6px;
}
#nocodevn-love-wrapper .preview-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
#nocodevn-love-wrapper .preview-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
#nocodevn-love-wrapper .preview-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#nocodevn-love-wrapper .preview-thumb {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  animation: popUp 0.4s var(--ease-bounce) forwards;
}

#nocodevn-love-wrapper .preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#nocodevn-love-wrapper .thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

#nocodevn-love-wrapper .btn-submit {
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  border: none;
  background: #FFF;
  color: #000;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s var(--ease-bounce);
}

#nocodevn-love-wrapper .btn-submit:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* --- LIGHTBOX & AUTO-SLIDE PROGRESS BAR --- */
#nocodevn-love-wrapper .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

#nocodevn-love-wrapper .lightbox.open {
  opacity: 1;
  visibility: visible;
}

#nocodevn-love-wrapper .lb-img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: 0.4s var(--ease-bounce);
}

#nocodevn-love-wrapper .lightbox.open .lb-img {
  transform: scale(1);
}

#nocodevn-love-wrapper .lb-close,
#nocodevn-love-wrapper .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.3s var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

#nocodevn-love-wrapper .lb-close {
  top: 30px;
  right: 40px;
}

#nocodevn-love-wrapper .lb-close:hover {
  background: rgba(255, 0, 85, 0.8);
  transform: rotate(90deg) scale(1.1);
}

#nocodevn-love-wrapper .lb-nav {
  top: 50%;
  transform: translateY(-50%);
}

#nocodevn-love-wrapper .lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.15);
}

#nocodevn-love-wrapper .lb-prev {
  left: 30px;
}

#nocodevn-love-wrapper .lb-next {
  right: 30px;
}

#nocodevn-love-wrapper .lb-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2001;
}

#nocodevn-love-wrapper .lightbox.open.multi .lb-indicator {
  opacity: 1;
}

#nocodevn-love-wrapper .lb-progress {
  height: 100%;
  width: 0%;
  background: #FFF;
}

/* ==========================================================================
   BẢN TỐI ƯU CHO ĐIỆN THOẠI
   ========================================================================== */
@media (max-width: 768px) {
  #nocodevn-love-wrapper header {
    margin: 30px auto 30px;
  }

  #nocodevn-love-wrapper .main-title {
    font-size: 2.2rem;
    margin-bottom: 28px;
  }

  #nocodevn-love-wrapper .couple-display {
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    margin-top: 45px;
    margin-bottom: 32px;
  }

  #nocodevn-love-wrapper .name-pill {
    flex: 0 1 auto;
    padding: 8px 16px 8px 8px;
    justify-content: center;
  }

  #nocodevn-love-wrapper .name-pill .avatar-glow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  #nocodevn-love-wrapper .name-pill .name {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  #nocodevn-love-wrapper .heart-connector {
    font-size: 1.6rem;
    margin: 0 4px;
  }

  #nocodevn-love-wrapper .counter-island {
    flex-direction: column;
    padding: 28px 20px;
    gap: 20px;
    border-radius: 32px;
    text-align: center;
  }

  #nocodevn-love-wrapper .island-divider {
    width: 60%;
    height: 1px;
  }

  #nocodevn-love-wrapper .counter-right {
    text-align: center;
  }

  #nocodevn-love-wrapper .days-num {
    font-size: 4rem;
  }

  #nocodevn-love-wrapper #magicCanvas {
    display: none !important;
  }

  #nocodevn-love-wrapper .glow-blob {
    animation: none !important;
    filter: blur(80px) !important;
    opacity: 0.1 !important;
  }

  #nocodevn-love-wrapper .year-elevator {
    right: 6px;
    padding: 8px 4px;
    gap: 6px;
  }

  #nocodevn-love-wrapper .btn-year {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  #nocodevn-love-wrapper .stream-container {
    padding: 0 16px;
    gap: 40px;
  }

  #nocodevn-love-wrapper .card-glass {
    padding: 28px 20px;
    border-radius: 24px;
  }

  #nocodevn-love-wrapper .split-layout {
    flex-direction: column !important;
    gap: 24px;
  }

  #nocodevn-love-wrapper .mood-bar {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 6px 6px 0 !important;
  }

  #nocodevn-love-wrapper .watermark-date {
    font-size: 100px;
    right: 10px !important;
    left: auto !important;
    top: -10px;
  }

  #nocodevn-love-wrapper .visual-zone {
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }

  #nocodevn-love-wrapper .text-zone h3 {
    font-size: 1.5rem;
  }

  #nocodevn-love-wrapper .grid-multi {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  #nocodevn-love-wrapper .grid-4 {
    grid-auto-rows: 120px !important;
    gap: 8px !important;
  }

  #nocodevn-love-wrapper .grid-5 {
    grid-auto-rows: 80px !important;
    gap: 8px !important;
  }

  #nocodevn-love-wrapper .lb-close {
    width: 44px;
    height: 44px;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
  }

  #nocodevn-love-wrapper .lb-nav {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  #nocodevn-love-wrapper .lb-prev {
    left: 15px;
  }

  #nocodevn-love-wrapper .lb-next {
    right: 15px;
  }

  #nocodevn-love-wrapper .lb-indicator {
    width: 120px;
    bottom: 20px;
  }

  #nocodevn-love-wrapper .sticky-dock {
    width: auto;
  }

  #nocodevn-love-wrapper .magnetic-wrap {
    display: block;
    text-align: center;
  }

  #nocodevn-love-wrapper .btn-create {
    width: auto;
    transform: none !important;
    padding: 12px 24px;
    font-size: 0.95rem;
    gap: 10px;
    margin: 0 auto;
  }

  #nocodevn-love-wrapper .btn-create .plus {
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
  }

  #nocodevn-love-wrapper .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #nocodevn-love-wrapper .stats-grid .stat-box:first-child {
    grid-column: span 2;
  }

  #nocodevn-love-wrapper .filter-bar {
    border-radius: 20px;
    padding: 16px;
  }

  /* Modal popup mobile optimizations */
  #nocodevn-love-wrapper .modal-overlay {
    padding: 12px;
  }

  #nocodevn-love-wrapper .modal-box {
    padding: 24px 18px;
    border-radius: 24px;
    max-height: 95vh;
  }

  #nocodevn-love-wrapper .modal-header {
    margin-bottom: 24px;
  }

  #nocodevn-love-wrapper .modal-title {
    font-size: 1.4rem;
  }

  #nocodevn-love-wrapper .btn-close {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  #nocodevn-love-wrapper .form-group {
    margin-bottom: 16px;
  }

  #nocodevn-love-wrapper .input-ui {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  #nocodevn-love-wrapper .modal-box div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #nocodevn-love-wrapper .love-select-trigger {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  #nocodevn-love-wrapper .dropzone-box {
    padding: 24px 12px;
    border-radius: 16px;
  }

  #nocodevn-love-wrapper .preview-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
  }

  #nocodevn-love-wrapper .btn-submit {
    padding: 16px;
    border-radius: 16px;
    font-size: 1.05rem;
  }

  #nocodevn-love-wrapper #love-music-player-container {
    left: auto !important;
    right: 16px !important;
    bottom: 120px !important;
  }
}

/* --- BỘ LỌC & THỐNG KÊ --- */
#nocodevn-love-wrapper .stats-filter-island {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

#nocodevn-love-wrapper .stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

#nocodevn-love-wrapper .stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease-out);
}

#nocodevn-love-wrapper .stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

#nocodevn-love-wrapper .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.2;
  margin-bottom: 6px;
}

#nocodevn-love-wrapper .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

#nocodevn-love-wrapper .filter-bar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  padding: 12px 24px;
  backdrop-filter: blur(20px);
}

#nocodevn-love-wrapper .filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#nocodevn-love-wrapper .filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

#nocodevn-love-wrapper .filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

#nocodevn-love-wrapper .filter-pill.active {
  background: #fff;
  color: #000;
  font-weight: 700;
}

#nocodevn-love-wrapper .filter-divider {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

/* --- CUSTOM SELECT DROPDOWN (GLASSMORPHISM) --- */
#nocodevn-love-wrapper .love-custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

#nocodevn-love-wrapper .love-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #FFF;
  cursor: pointer;
  transition: all 0.3s;
}

#nocodevn-love-wrapper .love-select-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

#nocodevn-love-wrapper .love-select-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

#nocodevn-love-wrapper .love-custom-select.open .love-select-arrow {
  transform: rotate(180deg);
}

#nocodevn-love-wrapper .love-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0A0B10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  animation: modalSlideUp 0.3s var(--ease-out) forwards;
}

#nocodevn-love-wrapper .love-custom-select.open .love-select-options {
  display: block;
}

#nocodevn-love-wrapper .love-select-option {
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

#nocodevn-love-wrapper .love-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
}

#nocodevn-love-wrapper .love-select-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  font-weight: 700;
}

/* --- PREVIEW THUMB CONTROLS (FE UPLOAD) --- */
#nocodevn-love-wrapper .preview-thumb {
  position: relative;
}

#nocodevn-love-wrapper .btn-remove-preview {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #FFF;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
  outline: none;
}

#nocodevn-love-wrapper .btn-remove-preview:hover {
  background: #EF4444;
  transform: scale(1.1);
}

#nocodevn-love-wrapper .preview-move-controls {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}

#nocodevn-love-wrapper .preview-thumb:hover .preview-move-controls {
  opacity: 1;
}

#nocodevn-love-wrapper .btn-move-preview {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  outline: none;
}

#nocodevn-love-wrapper .btn-move-preview:hover {
  background: #FFF;
  color: #000;
  border-color: #FFF;
}

#nocodevn-love-wrapper #love-music-player-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 9999;
}

/* --- RICH TEXT EDITOR FRONT-END STYLES --- */
#nocodevn-love-wrapper .love-rt-toolbar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

#nocodevn-love-wrapper .love-rt-toolbar button {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  box-sizing: border-box;
  outline: none;
}

#nocodevn-love-wrapper .love-rt-toolbar button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

#nocodevn-love-wrapper .love-rt-editor {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 14px 16px;
  min-height: 160px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  outline: none;
  text-align: left;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

#nocodevn-love-wrapper .love-rt-editor:focus {
  border-color: var(--boy-color);
}

/* --- JOURNAL DESC DISPLAY STYLES --- */
#nocodevn-love-wrapper .journal-desc {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  word-wrap: break-word;
  text-align: justify;
  font-family: var(--font-body);
}

#nocodevn-love-wrapper .journal-desc p {
  margin: 0 0 8px 0;
}

#nocodevn-love-wrapper .journal-desc b,
#nocodevn-love-wrapper .journal-desc strong {
  font-weight: 700;
}

#nocodevn-love-wrapper .journal-desc i,
#nocodevn-love-wrapper .journal-desc em {
  font-style: italic;
}

#nocodevn-love-wrapper .journal-desc u {
  text-decoration: underline;
}

#nocodevn-love-wrapper .journal-desc ul,
#nocodevn-love-wrapper .love-rt-editor ul {
  list-style: disc !important;
  padding-left: 24px !important;
  margin: 8px 0 !important;
  display: block !important;
}

#nocodevn-love-wrapper .journal-desc ol,
#nocodevn-love-wrapper .love-rt-editor ol {
  list-style: decimal !important;
  padding-left: 24px !important;
  margin: 8px 0 !important;
  display: block !important;
}

#nocodevn-love-wrapper .journal-desc li,
#nocodevn-love-wrapper .love-rt-editor li {
  display: list-item !important;
  list-style: inherit !important;
  margin-bottom: 4px;
}

#nocodevn-love-wrapper .journal-desc ul li {
  list-style-type: disc !important;
}

#nocodevn-love-wrapper .journal-desc ol li {
  list-style-type: decimal !important;
}

/* --- RT TOOLBAR SEPARATOR --- */
#nocodevn-love-wrapper .love-rt-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  vertical-align: middle;
}

/* --- RT COLOR PICKER --- */
#nocodevn-love-wrapper .love-rt-color-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#nocodevn-love-wrapper .love-rt-color-palette {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  gap: 6px;
  flex-wrap: wrap;
  width: 145px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
  backdrop-filter: blur(12px);
}

#nocodevn-love-wrapper .love-rt-color-palette.visible {
  display: flex !important;
}

#nocodevn-love-wrapper .love-rt-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s, border-color 0.15s;
}

#nocodevn-love-wrapper .love-rt-color-swatch:hover {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- HEADING DISPLAY (Journal Cards + Editor) --- */
#nocodevn-love-wrapper .journal-desc h2,
#nocodevn-love-wrapper .love-rt-editor h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--text-main);
  line-height: 1.4;
}

#nocodevn-love-wrapper .journal-desc h3,
#nocodevn-love-wrapper .love-rt-editor h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 10px 0 4px;
  color: var(--text-main);
  line-height: 1.4;
}

/* --- TOAST NOTIFICATIONS --- */
.love-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.love-toast {
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F8FAFC;
  padding: 14px 22px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.love-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.love-toast.success {
  border-left: 4px solid #38BDF8;
}

.love-toast.error {
  border-left: 4px solid #FB7185;
}

.love-toast .toast-icon {
  font-size: 1.1rem;
}

.love-toast.success .toast-icon {
  color: #38BDF8;
}

.love-toast.error .toast-icon {
  color: #FB7185;
}

/* --- Facebook Reactions CSS --- */
.love-reactions-area {
  position: relative;
}

.love-reactions-floating-panel {
  display: none !important;
  position: absolute !important;
  bottom: 50px !important;
  left: 0 !important;
  right: auto !important;
  background: #ffffff !important;
  border-radius: 50px !important;
  padding: 8px 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  z-index: 9999 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
  width: max-content !important;
  flex-direction: row !important;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease !important;
  pointer-events: none;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Invisible bridge to prevent hover loss when moving mouse over the gap */
.love-reactions-floating-panel::before {
  content: '' !important;
  position: absolute !important;
  bottom: -22px !important;
  left: 0 !important;
  right: 0 !important;
  height: 22px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Trigger floating panel on wrapper hover (desktop) ONLY if authenticated */
.love-react-btn-wrapper.love-react-auth:hover .love-reactions-floating-panel,
.love-react-btn-wrapper.love-react-auth .love-reactions-floating-panel.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.love-emoji-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.love-emoji-item img,
.love-emoji-remove .love-emoji-remove-btn {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), filter 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
  pointer-events: none !important;
  width: 32px !important;
  height: 32px !important;
}

.love-emoji-item:hover img,
.love-emoji-remove:hover .love-emoji-remove-btn {
  animation: loveEmojiWiggle 0.8s ease-in-out infinite !important;
}

.love-emoji-item:hover img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 12px rgba(255, 71, 126, 0.2)) !important;
}

.love-emoji-remove:hover .love-emoji-remove-btn {
  background-color: #e4e6eb !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #050505 !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) !important;
}

@keyframes loveEmojiWiggle {

  0%,
  100% {
    transform: scale(1.35) translateY(-8px) rotate(0deg);
  }

  25% {
    transform: scale(1.35) translateY(-8px) rotate(-4deg);
  }

  75% {
    transform: scale(1.35) translateY(-8px) rotate(4deg);
  }
}

/* Facebook-styled Tooltip */
.love-emoji-item::after {
  content: attr(data-label) !important;
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-10px) !important;
  background: rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 100000 !important;
}

.love-emoji-item:hover::after {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-22px) !important;
}

.love-react-action-btn:hover {
  background: rgba(255, 71, 126, 0.08) !important;
  color: var(--girl-color) !important;
  border-color: rgba(255, 71, 126, 0.3) !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 6px 20px rgba(255, 71, 126, 0.15) !important;
}

.love-react-action-btn.active {
  background: var(--girl-bg) !important;
  color: var(--girl-color) !important;
  border-color: rgba(255, 71, 126, 0.3) !important;
}

/* Optimized floating emoji particle */
.love-floating-emoji-particle {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 999999 !important;
  font-size: 2.4rem !important;
  transform: translate(-50%, -50%) scale(0.6);
  animation: floatEmojiParticle 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  will-change: transform, opacity;
}

@keyframes floatEmojiParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.5);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -220%) scale(0.7);
  }
}

.love-reaction-icons {
  display: flex;
  align-items: center;
}

.love-summary-emoji {
  transition: transform 0.2s;
  display: inline-block;
  cursor: default;
  line-height: 1 !important;
}

.love-summary-emoji:hover {
  transform: scale(1.3);
  z-index: 100 !important;
}

/* --- HEAVY LAYOUT (LONG CONTENT / MULTIPLE IMAGES) --- */
#nocodevn-love-wrapper .journal-card.heavy-layout .split-layout {
  flex-direction: column !important;
  gap: 32px;
  align-items: stretch !important;
}

#nocodevn-love-wrapper .journal-card.heavy-layout .text-zone {
  width: 100% !important;
  flex: none !important;
}

#nocodevn-love-wrapper .journal-card.heavy-layout .visual-zone {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  #nocodevn-love-wrapper .journal-card.heavy-layout .grid-multi {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 140px !important;
  }
}

/* Touch dragging active state on mobile */
#nocodevn-love-wrapper .love-emoji-item.hovered img {
  animation: loveEmojiWiggle 0.8s ease-in-out infinite !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 12px rgba(255, 71, 126, 0.2)) !important;
}
#nocodevn-love-wrapper .love-emoji-item.hovered::after {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-22px) !important;
}

/* Reactions tick count pop animation */
@keyframes popTick {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: #ff477e; }
  100% { transform: scale(1); }
}
#nocodevn-love-wrapper .pop-tick {
  display: inline-block;
  animation: popTick 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Floating emoji burst particle style */
#nocodevn-love-wrapper .love-floating-emoji-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 2.2rem;
  animation: floatUpAndOut 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}
@keyframes floatUpAndOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-60px) scale(1.3) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-120px) scale(0.9) rotate(15deg);
  }
}

/* Prevent text/image selection and translator extension popups on double/triple clicking reactions */
#nocodevn-love-wrapper .love-react-action-btn,
#nocodevn-love-wrapper .love-react-btn-wrapper,
#nocodevn-love-wrapper .love-reactions-area {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* --- STATUS PRESETS GRID --- */
#nocodevn-love-wrapper .love-status-presets,
.love-status-presets {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 8px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
}
.love-status-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.love-status-preset-btn .preset-icon {
  font-style: normal;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.love-status-preset-btn .preset-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.love-status-preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.love-status-preset-btn:active {
  transform: translateY(0) scale(0.97);
}
.love-status-preset-btn.active {
  background: linear-gradient(135deg, rgba(255, 71, 126, 0.32) 0%, rgba(255, 107, 149, 0.32) 100%);
  border-color: rgba(255, 71, 126, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 71, 126, 0.35);
}

/* Special styling for 'Nhớ đối phương' preset button */
.love-status-preset-btn.preset-love {
  background: linear-gradient(135deg, rgba(255, 71, 126, 0.18) 0%, rgba(255, 107, 149, 0.1) 100%);
  border-color: rgba(255, 71, 126, 0.35);
  color: #ff85a2;
}
.love-status-preset-btn.preset-love:hover {
  background: linear-gradient(135deg, rgba(255, 71, 126, 0.28) 0%, rgba(255, 107, 149, 0.2) 100%);
  border-color: rgba(255, 71, 126, 0.6);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 71, 126, 0.3);
}

@media (max-width: 580px) {
  #nocodevn-love-wrapper .love-status-modal-box {
    padding: 24px 18px !important;
  }
  .love-status-presets {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 14px;
  }
  .love-status-preset-btn {
    padding: 12px 12px;
    font-size: 0.85rem;
    gap: 8px;
  }
  .love-status-preset-btn .preset-icon {
    font-size: 1.2rem;
  }
}

/* Force Toast Notification Container above all Popup Modals */
.love-toast-container {
  z-index: 99999999 !important;
  top: 30px !important;
}