#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-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; }
#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: center; position: relative; z-index: 2; }
#nocodevn-love-wrapper .text-zone { flex: 1; min-width: 0; }
#nocodevn-love-wrapper .visual-zone { flex: 1; 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(40px) scale(1.1); }
  #nocodevn-love-wrapper .journal-card:nth-child(even) .visual-zone { transform: translateX(-40px) scale(1.1); }
}

/* 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); border: 1px solid rgba(255,255,255,0.1); background: #000; }
#nocodevn-love-wrapper .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.5s; opacity: 0.9; }
#nocodevn-love-wrapper .gallery-item:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 30px 60px rgba(0,0,0,0.8); border-color: rgba(255,255,255,0.3); }
#nocodevn-love-wrapper .gallery-item:hover img { transform: scale(1.1); opacity: 1; }

#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: 180px; }
#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%; }
#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: 1000; 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: 600px; background: #0A0B10; border-radius: 36px; padding: 40px; 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: 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; outline: none; transition: 0.3s; }
#nocodevn-love-wrapper .input-ui:focus { border-color: var(--boy-color); background: rgba(255,255,255,0.06); }
#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; }
#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-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 .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%; 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 .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 .magnetic-wrap { display: block; }
  #nocodevn-love-wrapper .btn-create { transform: none !important; }

  #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;
  }
}

/* --- 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;
}

