
:root {
  /* Palette chaleureuse façon MySpace (coucher de soleil + océan) */
  --lanlove-pink: #8fe6ae;
  --lanlove-pink-dark: #4ca46f;
  --lanlove-blue: #5fd7c1;
  --lanlove-teal: #3fb37d;
  --lanlove-orange: #b8ff96;
  --lanlove-deep: #11281d;
  --lanlove-bg: radial-gradient(1200px 800px at 10% 0%, #f2fff5 0%, transparent 60%),
                radial-gradient(900px 700px at 100% 10%, #e1fff2 0%, transparent 62%),
                linear-gradient(180deg, #eefcf1 0%, #dff8ec 45%, #e8fff5 100%);
  --lanlove-soft: rgba(255, 255, 255, 0.78);
  --bs-body-font-family: 'Trebuchet MS', 'Comic Sans MS', 'Verdana', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #eaf8ff 0%, #d8f5ff 35%, #cdf0f5 60%, #c3ebea 100%);
  color: var(--lanlove-deep);
  cursor: url('/cute-little-frogs-cc/01%20Frog%20Normal%20Select.cur'), auto;
  display: flex;
  flex-direction: column;
}

body[data-theme='night'] {
  background: linear-gradient(180deg, #0a1c2b 0%, #0b2739 45%, #0f2f46 100%);
  color: #f3f7fb;
}

body[data-theme='night'] .hero-card,
body[data-theme='night'] .floating-card,
body[data-theme='night'] .chat-panel {
  background: rgba(12, 21, 32, 0.72);
  color: inherit;
  box-shadow: 0 20px 60px rgba(2, 4, 10, 0.4);
}

body[data-theme='night'] .hero-card,
body[data-theme='night'] .floating-card,
body[data-theme='night'] .memory-card,
body[data-theme='night'] .card {
  color: rgba(243, 247, 251, 0.92);
}
body[data-theme='night'] .hero-card *:not(svg),
body[data-theme='night'] .floating-card *:not(svg),
body[data-theme='night'] .memory-card *:not(svg),
body[data-theme='night'] .card *:not(svg) {
  color: rgba(243, 247, 251, 0.9);
}

body[data-theme='night'] .hero-card,
body[data-theme='night'] .floating-card,
body[data-theme='night'] .memory-card,
body[data-theme='night'] .card {
  color: rgba(243, 247, 251, 0.92);
}
body[data-theme='night'] .hero-card *:not(svg),
body[data-theme='night'] .floating-card *:not(svg),
body[data-theme='night'] .memory-card *:not(svg),
body[data-theme='night'] .card *:not(svg) {
  color: rgba(243, 247, 251, 0.9) !important;
}

body[data-theme='night'] p,
body[data-theme='night'] .text-muted,
body[data-theme='night'] small,
body[data-theme='night'] .memory-meta,
body[data-theme='night'] .badge-lanlove,
body[data-theme='night'] .chat-body,
body[data-theme='night'] .chat-bubble-meta,
body[data-theme='night'] .moment-meta {
  color: rgba(247, 248, 255, 0.86);
}

body[data-theme='night'] .badge-lanlove {
  background: rgba(4, 18, 32, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme='night'] .navbar-lanlove {
  background: linear-gradient(90deg, rgba(2, 6, 12, 0.95), rgba(7, 25, 41, 0.9));
}

body[data-theme='night'] .text-muted {
  color: rgba(243, 247, 251, 0.6) !important;
}
body[data-theme='night'] .text-dark {
  color: rgba(243, 247, 251, 0.88) !important;
}

body[data-theme='night'] .btn-lanlove {
  background: linear-gradient(135deg, #284d8b, #3d82b8);
  color: #eef5ff;
}
body[data-theme='night'] .btn-lanlove:hover,
body[data-theme='night'] .btn-lanlove:focus-visible {
  color: #091730;
}

body[data-theme='night'] .chat-bubble {
  background: var(--chat-bubble-color, rgba(255, 255, 255, 0.08));
}

body[data-theme='night'] .profile-page .profile-pill {
  background: rgba(5, 12, 20, 0.8);
  color: #f7f9ff;
}
body[data-theme='night'] .profile-avatar-placeholder {
  background: rgba(255, 255, 255, 0.15);
}

body[data-theme='night'] .profile-page .timeline-count {
  background: rgba(63, 179, 125, 0.18) !important;
  color: #e8fff5;
}

body[data-theme='night'] .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
body[data-theme='night'] .badge.bg-primary-subtle,
body[data-theme='night'] .badge.text-primary,
body[data-theme='night'] .badge.text-bg-light {
  background: rgba(97, 129, 255, 0.22) !important;
  color: #f2f6ff !important;
  border-color: rgba(255, 255, 255, 0.25);
}

body[data-theme='night'] .card,
body[data-theme='night'] .memory-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

main {
  flex: 1;
  min-height: 60vh;
}

.sleeping-frog {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: frogSleep 5s ease-in-out infinite;
}
.sleeping-frog-lily {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(62,109,87,0.9) 65%, rgba(0,0,0,0) 100%);
  filter: blur(0.8px);
  position: relative;
}
.sleeping-frog-img {
  width: 44px;
  height: 44px;
  display: block;
  position: absolute;
  left: 0;
  top: -6px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}
.sleeping-frog-zzz {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  animation: zzzFloat 2s ease-in-out infinite;
}

@keyframes frogSleep {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes zzzFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.lanlove-blur {
  backdrop-filter: blur(18px);
}

.random-launch-section {
  padding-top: 1.5rem;
}

.profile-page .timeline-list {
  border-radius: 18px;
  border: 1px solid rgba(17, 40, 29, 0.08);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.45);
}

body[data-theme='night'] .profile-page .timeline-list {
  background: rgba(4, 12, 24, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-page .timeline-entry {
  border-color: rgba(17, 40, 29, 0.1) !important;
}

.profile-page .timeline-entry:last-child {
  border-bottom: none !important;
}

body[data-theme='night'] .profile-page .timeline-entry {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.profile-page .timeline-date {
  letter-spacing: 0.08em;
  color: rgba(17, 40, 29, 0.55) !important;
}

body[data-theme='night'] .profile-page .timeline-date {
  color: rgba(255, 255, 255, 0.65) !important;
}

.profile-page .timeline-title {
  font-weight: 600;
}

.profile-page .timeline-description {
  color: rgba(17, 40, 29, 0.72) !important;
}

body[data-theme='night'] .profile-page .timeline-description {
  color: rgba(235, 242, 255, 0.8) !important;
}

.profile-page .timeline-delete {
  color: #c0392b !important;
  font-weight: 600;
}

.profile-page .timeline-delete:hover {
  text-decoration: underline;
}

body[data-theme='night'] .profile-page .timeline-delete {
  color: #ffaea7 !important;
}

.profile-page .timeline-form .form-control {
  border-radius: 12px;
}

body[data-theme='night'] .profile-page .timeline-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5ff;
}

body[data-theme='night'] .profile-page .timeline-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(95, 215, 193, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(95, 215, 193, 0.25);
  color: #fff;
}

.profile-page .timeline-alert {
  border-radius: 999px;
  border: 1px solid rgba(63, 179, 125, 0.4);
  background: rgba(143, 230, 174, 0.2);
  color: #10422f;
}

body[data-theme='night'] .profile-page .timeline-alert {
  background: rgba(143, 230, 174, 0.08);
  border-color: rgba(143, 230, 174, 0.35);
  color: #eafff3;
}

.profile-mood-preview {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(17, 40, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}
body[data-theme='night'] .profile-mood-preview {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.profile-mood-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.mood-picker .mood-option {
  border: 1px solid rgba(17, 40, 29, 0.12);
  border-radius: 18px;
  padding: 0.65rem 1rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.85);
}
.mood-picker .mood-option.is-active {
  border-color: rgba(65, 199, 160, 0.8);
  box-shadow: 0 10px 25px rgba(5, 25, 32, 0.15);
}
.mood-picker img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.mood-picker .mood-option input {
  cursor: pointer;
}
body[data-theme='night'] .mood-picker .mood-option {
  background: rgba(8, 18, 35, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f4f8ff;
}
.mood-log-list {
  border-top: 1px solid rgba(17, 40, 29, 0.08);
}
.mood-log-entry:last-child {
  border-bottom: none !important;
}
.mood-log-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.navbar-lanlove {
  background: linear-gradient(130deg, rgba(6, 22, 32, 0.94), rgba(14, 50, 63, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(7, 20, 28, 0.35);
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  width: min(1280px, 96%);
  margin: 0.85rem auto 0;
}

@media (min-width: 992px) {
  .navbar-lanlove {
    width: 100%;
    border-radius: 0;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }
}

.navbar-lanlove .navbar-brand,
.navbar-lanlove .nav-link,
.navbar-lanlove .navbar-text {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar-lanlove .nav-link.active,
.navbar-lanlove .nav-link:hover {
  color: var(--lanlove-teal);
}
.nav-actions .btn {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

.nav-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.chat-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.45)), linear-gradient(135deg, #f97316, #ef4444);
  color: #0b0411;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.35rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}
.chat-nav-badge.is-pulse {
  animation: chatPulse 1.4s ease-in-out infinite;
}

.nav-offcanvas .chat-nav-badge {
  margin-left: auto;
}

@keyframes chatPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.nav-menu-btn {
  color: #fff;
  padding: 0.25rem 0.6rem;
}
.nav-menu-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.nav-offcanvas {
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.96), rgba(8, 21, 28, 0.96));
  color: #f4f8ff;
}
.nav-offcanvas .nav-link {
  color: inherit;
}
.nav-offcanvas .btn-close {
  filter: invert(1);
}
.nav-offcanvas .nav-avatar-link {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 0.25rem 0.8rem 0.25rem 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-offcanvas .nav-avatar-link .nav-avatar-img {
  width: 56px;
  height: 56px;
}
.nav-offcanvas .nav-avatar-link span {
  color: #f5f9ff;
}
.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-lanlove .navbar-toggler {
  border-color: transparent;
  color: #fff;
}
.navbar-lanlove .navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 992px) {
  .navbar-lanlove {
    width: calc(100% - 1rem);
    margin: 0.75rem auto 0;
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .navbar-lanlove {
    padding: 0.55rem 1rem;
  }
  .navbar-lanlove .navbar-collapse {
    width: 100%;
    margin-top: 0.75rem;
    background: rgba(5, 16, 12, 0.92);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }
  .navbar-lanlove .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .navbar-lanlove .nav-link,
  .navbar-lanlove .btn,
  .navbar-lanlove form {
    width: 100%;
  }
  .navbar-lanlove .nav-link {
    text-align: left;
    padding-left: 0;
  }
  .navbar-lanlove .btn {
    justify-content: center;
  }
  .navbar-lanlove .nav-avatar-link {
    justify-content: flex-start;
  }
}

.hero-start-btn {
  width: clamp(320px, 42vw, 540px);
  height: clamp(320px, 42vw, 540px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #04161f;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, bottom 0.3s ease, right 0.3s ease;
  animation: heroPulse 3s ease-in-out infinite;
  box-shadow: 0 35px 80px rgba(6, 18, 28, 0.3);
}
.random-launch-section.has-moment .hero-start-btn {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
  position: fixed;
  bottom: 4rem;
  right: 2rem;
  z-index: 1030;
  box-shadow: 0 24px 50px rgba(4, 12, 24, 0.35);
}

@media (max-width: 768px) {
  .random-launch-section.has-moment .hero-start-btn {
    bottom: 6rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
  }
}

.random-launch-section.has-moment .hero-start-btn {
  animation: none;
  box-shadow: 0 24px 50px rgba(4, 12, 24, 0.35);
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 35px 80px rgba(6, 18, 28, 0.3), 0 0 0 0 rgba(95, 215, 193, 0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 45px 90px rgba(6, 18, 28, 0.35), 0 0 0 18px rgba(95, 215, 193, 0);
  }
}

.btn-lanlove {
  background: linear-gradient(135deg, var(--lanlove-teal), var(--lanlove-blue));
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 1.8rem;
  box-shadow: 0 12px 28px rgba(17, 40, 29, 0.24);
  position: relative;
  overflow: hidden;
}
.btn-lanlove::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-120%);
}
.btn-lanlove:hover::after { transform: translateX(120%); transition: transform .6s ease; }

.btn-lanlove:hover,
.btn-lanlove:focus-visible {
  color: #0b2416;
  background: linear-gradient(135deg, var(--lanlove-orange), var(--lanlove-pink));
}
.btn,
button,
[role='button'],
.nav-link,
.heart-btn {
  cursor: url('/cute-little-frogs-cc/14%20Frog%20Aleternate-Left%20Select.cur'), pointer;
}

input,
textarea,
.form-control {
  cursor: url('/cute-little-frogs-cc/07%20Frog%20Handwriting%20Ver%201.cur'), text;
}

input[type='date'],
input[type='number'],
input[type='time'],
input[type='color'] {
  cursor: url('/cute-little-frogs-cc/05%20Frog%20Precision%20Select%20Ver%201.cur'), text;
}

.btn-pond {
  border: none;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #f5ffd7, transparent 55%), linear-gradient(135deg, #59d3c3, #567df4);
  color: #021c1a;
  font-weight: 800;
  padding: 0.95rem 2.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 40px rgba(18, 35, 38, 0.25);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-pond span {
  position: relative;
  z-index: 2;
}
.btn-pond::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-120%);
}
.btn-pond:hover::after { transform: translateX(120%); transition: transform .55s ease; }

.btn-icon-only {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.3rem;
}

.btn-back {
  border-radius: 999px;
  border: 1px solid rgba(90, 162, 255, 0.65);
  background: radial-gradient(circle at 15% 20%, rgba(92, 181, 255, 0.35), transparent 45%), rgba(6, 18, 48, 0.45);
  color: #8dc7ff;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.35rem;
  box-shadow: 0 12px 24px rgba(3, 8, 20, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-back i {
  font-size: 1rem;
}
.btn-back:hover,
.btn-back:focus-visible {
  color: #05162f;
  border-color: rgba(255, 255, 255, 0.8);
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.7), transparent 45%), linear-gradient(135deg, #8ec5ff, #a5b4fc);
  box-shadow: 0 18px 35px rgba(3, 8, 20, 0.5);
  transform: translateY(-1px);
}
body[data-theme='day'] .btn-back {
  color: #155bc4;
  border-color: rgba(34, 111, 255, 0.6);
  background: linear-gradient(135deg, rgba(219, 237, 255, 0.9), rgba(204, 244, 255, 0.85));
}
.btn-pond:hover,
.btn-pond:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 52px rgba(18, 35, 38, 0.35);
  color: #041917;
}
body[data-theme='night'] .btn-pond {
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.2), transparent 45%), linear-gradient(135deg, #5ad1ff, #8b6dff);
  color: #04161f;
}
.hero-start-btn {
  margin-top: 1.2rem;
  min-width: 260px;
  text-transform: uppercase;
}
.hero-start-btn .btn-label {
  font-weight: 700;
}
.hero-start-btn i {
  font-size: 1.3rem;
}
.hero-start-btn.is-active .btn-label {
  display: none;
}
.hero-start-btn.is-active i {
  margin-right: 0;
}

.memory-card {
  border: none;
  background: linear-gradient(145deg, rgba(4, 9, 20, 0.8), rgba(10, 18, 32, 0.85));
  padding: 0.35rem;
  border-radius: 32px;
  position: relative;
}

.memory-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(11, 18, 34, 0.92), rgba(3, 7, 15, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 55px rgba(3, 6, 18, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}

.memory-card > a > * {
  position: relative;
  z-index: 1;
}

.memory-card:hover > a {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(148, 210, 255, 0.45);
  box-shadow: 0 36px 70px rgba(3, 6, 18, 0.65);
}

.memory-card .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: var(--card-thumb-ratio, 4 / 3);
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 45px rgba(2, 5, 12, 0.4);
  background: #0c1629;
  filter: saturate(1.05) contrast(1.04);
}

.memory-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  color: rgba(248, 252, 255, 0.88);
}

.memory-card .card-body h3 {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.memory-card .card-body p {
  color: rgba(230, 237, 247, 0.72);
  line-height: 1.5;
  font-weight: 500;
}

.memory-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.badge-lanlove {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f9ff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.memory-meta .badge-lanlove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body[data-theme='day'] .memory-card > a {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.98));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}
body[data-theme='day'] .memory-card {
  background: linear-gradient(135deg, rgba(244, 247, 255, 0.9), rgba(239, 249, 255, 0.9));
}

body[data-theme='day'] .memory-card .card-body p {
  color: rgba(28, 27, 45, 0.76);
}

body[data-theme='day'] .badge-lanlove {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(17, 24, 39, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.favorite-pin {
  z-index: 5;
  pointer-events: auto;
}

.floating-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed rgba(24, 18, 43, 0.12);
  border-radius: 20px;
  box-shadow: 0 22px 48px rgba(24, 18, 43, 0.22);
}

.image-preview {
  background: linear-gradient(180deg, rgba(139, 211, 255, 0.18), rgba(255, 153, 102, 0.15));
  border-radius: 16px;
  border: 1px dashed rgba(26, 22, 53, 0.25);
  padding: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(26, 22, 53, 0.25);
}

.image-preview.is-empty img {
  display: none;
}

.image-preview figcaption {
  font-weight: 600;
  color: rgba(26, 22, 53, 0.65);
  margin-top: 0.65rem;
}

.moment-view {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.moment-view.is-hidden {
  display: none;
}

.moment-view img {
  width: min(520px, 95vw);
  border-radius: 26px;
  box-shadow: 0 36px 70px rgba(24, 18, 43, 0.28);
}

@media (min-width: 992px) {
  .moment-view img {
    max-height: 70vh;
    object-fit: contain;
  }
}

.moment-view h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.moment-view small {
  font-weight: 600;
  color: rgba(26, 22, 53, 0.6);
}

.modal-lanlove .modal-content {
  border-radius: 24px;
  border: none;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(26, 22, 53, 0.3);
}

.modal-lanlove .modal-header {
  border-bottom: none;
}

body[data-theme='night'] .modal-lanlove .modal-content {
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  color: #f4f8ff;
}

.moment-detail-card {
  border-radius: 32px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.moment-detail-media {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.moment-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.moment-detail-tags {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.moment-detail-body {
  padding: 0.5rem 1rem 1rem;
}
.moment-detail-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(17, 40, 29, 0.85);
}
body[data-theme='night'] .moment-detail-description {
  color: rgba(244, 248, 255, 0.9);
}
.moment-review-summary {
  font-weight: 600;
  color: rgba(17, 40, 29, 0.85);
}
body[data-theme='night'] .moment-review-summary {
  color: rgba(244, 248, 255, 0.85);
}
.moment-review-panel {
  background: rgba(247, 250, 255, 0.9);
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}
body[data-theme='night'] .moment-review-panel {
  background: rgba(3, 7, 15, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.moment-review-panel .btn {
  min-width: 180px;
}
.moment-review-panel textarea {
  min-height: 110px;
}
.moment-review-inline textarea {
  resize: vertical;
}
.moment-review-panel form .form-select,
.moment-review-panel form textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f9ff;
}
.review-primary-form .form-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.65);
}
body[data-theme='night'] .review-primary-form .form-label {
  color: rgba(244, 248, 255, 0.8);
}
.review-primary-form select {
  background: rgba(248, 250, 255, 0.9);
  color: #04161f;
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.review-primary-form textarea {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  color: #04161f;
  border-color: rgba(15, 23, 42, 0.1);
}
body[data-theme='night'] .review-primary-form select,
body[data-theme='night'] .review-primary-form textarea {
  background: rgba(3, 10, 24, 0.88);
  color: rgba(244, 248, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}
.review-primary-form select option,
.review-header-select option {
  background: rgba(248, 250, 255, 0.98);
  color: #04161f;
}
body[data-theme='night'] .review-primary-form select option,
body[data-theme='night'] .review-header-select option {
  background: rgba(0, 11, 24, 0.95);
  color: rgba(244, 248, 255, 0.98);
}
.review-primary-form .col-lg-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.review-primary-form .col-lg-3 select {
  min-width: 160px;
}
.review-primary-form .btn {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.review-primary-form .btn i {
  font-size: 1rem;
}
.review-primary-form .btn span {
  font-weight: 600;
}
.moment-review-panel form .form-select:focus,
.moment-review-panel form textarea:focus {
  border-color: rgba(126, 216, 214, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(126, 216, 214, 0.2);
}
.moment-review-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.moment-review-list .review-card {
  border-radius: 20px;
  border: 1px solid rgba(17, 40, 29, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(17, 40, 29, 0.12);
}
body[data-theme='night'] .moment-review-list .review-card {
  background: rgba(5, 15, 29, 0.75);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(6, 18, 28, 0.15);
  font-weight: 700;
  color: #0b2541;
}
body[data-theme='night'] .review-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: #f4f8ff;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-admin-form textarea {
  min-height: 90px;
}

body[data-theme='night'] .modal-lanlove .modal-header p {
  color: rgba(244, 248, 255, 0.65);
}

body[data-theme='night'] .modal-lanlove .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.8;
}

body[data-theme='night'] .modal-lanlove .btn-close:hover,
body[data-theme='night'] .modal-lanlove .btn-close:focus-visible {
  opacity: 1;
}

.form-control,
.form-select,
.form-floating > .form-control {
  border-radius: 14px;
  border: 1px solid rgba(26, 22, 53, 0.1);
  background-color: rgba(255, 255, 255, 0.85);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--lanlove-pink);
  box-shadow: 0 0 0 0.2rem rgba(248, 139, 220, 0.25);
}

body[data-theme='night'] .form-control,
body[data-theme='night'] .form-select,
body[data-theme='night'] .form-control-color,
body[data-theme='night'] input[type='file'] {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f8ff;
  border-color: rgba(255, 255, 255, 0.22);
}

body[data-theme='night'] .form-control:focus,
body[data-theme='night'] .form-select:focus {
  border-color: rgba(129, 204, 255, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(71, 126, 211, 0.35);
}

body[data-theme='night'] .form-control::placeholder,
body[data-theme='night'] textarea::placeholder,
body[data-theme='night'] input[type='date']::placeholder {
  color: rgba(244, 248, 255, 0.6);
}

.glass-alert {
  border-radius: 18px;
  border: 2px dashed rgba(24, 18, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(24, 18, 43, 0.18);
}
.visitor-alert {
  border-style: solid;
  border-color: rgba(39, 94, 166, 0.25);
  background: rgba(229, 244, 255, 0.9);
  color: rgba(8, 32, 68, 0.92);
}
body[data-theme='night'] .visitor-alert {
  background: rgba(11, 28, 52, 0.75);
  color: rgba(222, 237, 255, 0.95);
  border-color: rgba(111, 162, 255, 0.35);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(420px, 100%);
  padding: 2.5rem;
  border: 2px dashed rgba(24, 18, 43, 0.12);
}

.moment-detail-img {
  border-radius: 28px;
  width: 100%;
  box-shadow: 0 32px 64px rgba(26, 22, 53, 0.25);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(26, 22, 53, 0.1);
  font-weight: 600;
  color: rgba(26, 22, 53, 0.75);
}

.footer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Liens façon MySpace: texte brillant + soulignement custom
   (appliquer .lanlove-link seulement là où tu veux l'effet) */
.lanlove-link {
  text-decoration: none;
  font-weight: 700;
}
.lanlove-link:hover {
  color: var(--lanlove-pink);
}
.lanlove-link::after {
  content:'';
  display:block;
  height:3px;
  margin-top:2px;
  background: linear-gradient(90deg, var(--lanlove-orange), var(--lanlove-pink), var(--lanlove-blue));
  opacity: 0;
  transform: translateY(-4px);
  transition: .2s ease;
}
.lanlove-link:hover::after {
  opacity: 1;
  transform: none;
}

/* Scrollbar custom (WebKit) */
*::-webkit-scrollbar{height:10px;width:10px}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--lanlove-pink),var(--lanlove-blue));border-radius:10px}
*::-webkit-scrollbar-track{background:rgba(24,18,43,.06)}

@media (max-width: 575px) {
  .navbar-lanlove .navbar-brand {
    font-size: 1.1rem;
  }
  .navbar-lanlove .navbar-collapse {
    padding: 0.75rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-card {
    border-radius: 20px;
    padding: 1.4rem 1.1rem !important;
  }
  .hero-card .btn-pond {
    width: 100%;
    margin-top: 0.6rem;
  }
}

/* HTMX indicator spinner */
.htmx-indicator { display: none; vertical-align: middle; }
.htmx-request .htmx-indicator { display: inline-block; }
.spinner-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: rgba(0,0,0,0.6);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.heart-btn {
  position: relative;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2c8c55;
  box-shadow: 0 10px 24px rgba(22, 64, 44, 0.25);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.heart-btn .heart-ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(63, 179, 125, 0.35), transparent 65%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: -1;
}
.heart-btn .heart-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.heart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 64, 44, 0.3);
}
.heart-btn:active {
  transform: scale(0.96);
}
.heart-btn:focus-visible {
  outline: 3px solid rgba(63, 179, 125, 0.45);
  outline-offset: 2px;
}
.heart-btn[aria-pressed='true'] {
  background: linear-gradient(135deg, #ff6f91, #ff3d68);
  color: #fff;
  box-shadow: 0 18px 32px rgba(191, 65, 98, 0.35);
}
.heart-btn[aria-pressed='true'] .heart-ring {
  opacity: 0.45;
  transform: scale(1.1);
  background: radial-gradient(circle, rgba(255, 109, 148, 0.35), transparent 65%);
}
.heart-btn.is-animating .heart-icon {
  animation: heart-pop 0.45s ease;
}
.heart-btn.is-animating .heart-ring {
  animation: heart-ring 0.6s ease;
}
body[data-theme='night'] .heart-btn {
  background: rgba(6, 18, 32, 0.85);
  color: #5cf0ba;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
body[data-theme='night'] .heart-btn .heart-ring {
  background: radial-gradient(circle, rgba(92, 240, 186, 0.35), transparent 65%);
}
body[data-theme='night'] .heart-btn[aria-pressed='true'] {
  background: linear-gradient(135deg, #ff6f91, #ff3d68);
  color: #fff;
  box-shadow: 0 18px 32px rgba(191, 65, 98, 0.45);
}
body[data-theme='night'] .heart-btn[aria-pressed='true'] .heart-ring {
  background: radial-gradient(circle, rgba(255, 109, 148, 0.45), transparent 65%);
}
@keyframes heart-pop {
  0% { transform: scale(0.85); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes heart-ring {
  0% { opacity: 0.5; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

.frog-runner,
.star-runner {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star-runner {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
}

.night-star {
  position: absolute;
  background: linear-gradient(180deg, #ffe887, #f9c74f);
  border-radius: 50%;
  opacity: 0.8;
  animation: starBlink 5s ease-in-out infinite;
}

.sparkle-star {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: radial-gradient(circle, #ffe98a 0%, #f8c645 60%, rgba(255,255,255,0) 70%);
  filter: drop-shadow(0 0 8px rgba(255, 216, 94, 0.8));
  animation: sparkleBlink 3s ease-in-out infinite;
}

@keyframes sparkleBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.7) rotate(45deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes starBlink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

body[data-theme='night'] .frog-runner {
  opacity: 0;
}
body[data-theme='day'] .star-runner {
  opacity: 0;
}

.lanlove-footer {
  margin-top: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem 1rem;
}
.lanlove-footer-inner {
  width: min(1100px, 100%);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(17, 40, 29, 0.08);
  padding: 1.15rem 1.5rem;
  box-shadow: 0 12px 32px rgba(17, 40, 29, 0.08);
  backdrop-filter: blur(6px);
}
body[data-theme='night'] .lanlove-footer-inner {
  background: rgba(5, 15, 29, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(243, 247, 251, 0.85);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}
.lanlove-footer p {
  margin: 0;
}
.lanlove-footer .badge {
  border-radius: 999px;
  padding-inline: 1rem;
}
.footer-frog {
  font-size: 1.3rem;
}
.footer-social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #f9e6a2;
  background: rgba(9, 17, 35, 0.35);
  border: 1px solid rgba(249, 230, 162, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  color: #fff3c4;
}
body[data-theme='day'] .footer-social-link {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

/* ==================================================
   Cartes de moments (image principale + boutons)
   ================================================== */

.moment-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(26, 35, 49, 0.22);
}
.moment-image-wrap img {
  width: 100%;
  display: block;
  border-radius: inherit;
}
.moment-image-info {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 1.4rem 1.7rem 1rem;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.72), rgba(4, 19, 32, 0.4), transparent 85%);
  color: #fff;
  pointer-events: none;
}
.moment-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.moment-meta-overlay {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding-inline: 1.7rem;
  gap: 1rem;
}
.moment-chip-ghost {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(5, 12, 24, 0.45);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.moment-chip-left {
  margin-right: auto;
}
.moment-chip-right {
  margin-left: auto;
  text-align: right;
}
.moment-description {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.92);
  padding: 1.3rem 1.6rem;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(24, 18, 43, 0.18);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(17, 40, 29, 0.85);
}
body[data-theme='night'] .moment-description {
  background: rgba(6, 14, 28, 0.86);
  color: rgba(244, 248, 255, 0.9);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.45);
}

.mobile-add-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.2rem;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1050;
  box-shadow: 0 25px 45px rgba(5, 16, 12, 0.45);
}
.mobile-add-btn span {
  line-height: 1;
  margin-top: -0.2rem;
}
.moment-image-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}
.moment-image-actions .heart-btn {
  width: 48px;
  height: 48px;
}

.moment-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-weight: 600;
  margin-top: 0.75rem;
}
.moment-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #203636;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(23, 35, 29, 0.12);
}
body[data-theme='night'] .moment-chip {
  background: rgba(5, 20, 34, 0.7);
  color: #f3f6ff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

/* ==================================================
   Chat
   ================================================== */

.chat-wrapper {
  max-width: 960px;
}
.chat-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(26, 35, 49, 0.15);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.chat-messages {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}
.chat-form textarea {
  resize: none;
  min-height: 48px;
  max-height: 180px;
  overflow-y: auto;
}
.chat-form [data-chat-status] {
  min-height: 1em;
}

.chat-bubble {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--chat-bubble-color, #f4fbf6);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  max-width: min(90%, 640px);
  width: fit-content;
  flex: 0 1 auto;
}
.chat-bubble + .chat-bubble {
  margin-top: 0.4rem;
}
.chat-bubble-self {
  margin-left: auto;
  flex-direction: row-reverse;
  text-align: right;
}
.chat-bubble-self .chat-bubble-meta {
  justify-content: flex-end;
}
.chat-bubble-other {
  margin-right: auto;
}
.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1f3d2c;
  box-shadow: 0 6px 20px rgba(17, 40, 29, 0.15);
  overflow: hidden;
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-avatar span {
  font-size: 1.1rem;
}
.chat-bubble-content {
  flex: 1;
}
.chat-body {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(17, 25, 27, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
body[data-theme='night'] .chat-body {
  color: rgba(243, 247, 251, 0.9);
}
.chat-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(17, 40, 29, 0.2);
}

/* ==================================================
   Profil
   ================================================== */

.profile-page .profile-pill {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  box-shadow: 0 12px 30px rgba(17, 40, 29, 0.15);
}
.profile-pill-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.profile-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card .floating-card {
  border-radius: 24px;
}
.profile-avatar-preview img,
.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(17, 40, 29, 0.2);
}
.profile-avatar-placeholder {
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
}
.chat-preview-bubble {
  padding: 1rem;
  border-radius: 18px;
  color: #fff;
  background: var(--chat-preview-color, #3fb37d);
  box-shadow: 0 14px 36px rgba(17, 40, 29, 0.25);
}
.chat-preview-name {
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.nav-avatar-link {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-placeholder {
  font-weight: 700;
  color: #142c22;
}
.nav-inline-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.35rem;
  vertical-align: middle;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nav-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 1.2rem;
  background: transparent;
  color: #f5f9ff;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-1px);
}
body[data-theme='day'] .btn-ghost {
  border-color: rgba(17, 40, 29, 0.3);
  color: #0b2419;
}
body[data-theme='day'] .btn-ghost:hover,
body[data-theme='day'] .btn-ghost:focus-visible {
  border-color: rgba(17, 40, 29, 0.5);
  color: #041917;
}
.theme-toggle-btn {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffc857;
  transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.theme-toggle-btn .theme-icon {
  pointer-events: none;
  font-size: 1.2rem;
}
.theme-toggle-inline {
  width: 38px;
  height: 38px;
}

/* ==================================================
   Responsive
   ================================================== */

@media (max-width: 992px) {
  .nav-actions {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .hero-card {
    margin-inline: 0.5rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  .hero-card {
    padding: 2rem 1.5rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .btn-pond,
  .navbar-lanlove .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .navbar-lanlove .nav-link {
    text-align: right;
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  .hero-card::after {
    display: none;
  }
  .hero-lead {
    font-size: 1rem;
  }
  .floating-card,
  .hero-card,
  .memory-card {
    border-radius: 16px;
  }
}

/* ============================
   Folder cards – style Windows 💾
   ============================ */

.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem 1.2rem;
  justify-items: center;
}

@media (min-width: 992px) {
  .folders-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem 1.5rem;
  }
}

.folder-icon-card {
  position: relative;
  width: 110px;
  min-height: 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.3rem 0.9rem;
  animation: folderFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

.folders-grid .folder-icon-card:nth-child(3n+1) {
  animation-duration: 5.8s;
  animation-delay: -0.8s;
}
.folders-grid .folder-icon-card:nth-child(3n+2) {
  animation-duration: 6.9s;
  animation-delay: -1.4s;
}
.folders-grid .folder-icon-card:nth-child(4n) {
  animation-duration: 7.4s;
  animation-delay: -0.4s;
}

.folder-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.folder-icon-link:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}

.folder-icon-link:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.7);
  outline-offset: 3px;
}

.folder-icon-img {
  width: 86px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.folder-count-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.2rem;
  background: rgba(3, 8, 20, 0.75);
  color: #f9fafb;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
}

.folder-name {
  max-width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f9fafb;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-delete-form {
  position: absolute;
  left: 0;
  bottom: 0.15rem;
}
.folder-delete-btn {
  font-size: 1rem;
  line-height: 1;
  color: rgba(191, 65, 65, 0.85) !important;
  transition: transform 0.2s ease, color 0.2s ease;
}
.folder-delete-btn:hover {
  transform: scale(1.08);
  color: #c51631 !important;
}

@keyframes folderFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.photo-picker-buttons .btn {
  min-width: 180px;
}
@media (max-width: 576px) {
  .photo-picker-buttons .btn {
    flex: 1 1 auto;
  }
}
.photo-picker-feedback {
  margin-top: 0.35rem;
}
.nav-profile-utilities {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  position: relative;
}
.nav-profile-utilities .nav-profile-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-profile-utilities form {
  margin: 0;
}
.nav-profile-desktop {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}
.nav-profile-desktop .nav-profile-controls {
  gap: 0.9rem;
}
.nav-profile-desktop .nav-profile-dropdown {
  min-width: 220px;
}
.nav-profile-mobile {
  width: 100%;
  align-items: stretch;
}
.nav-profile-mobile .nav-profile-controls {
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.nav-profile-mobile .theme-toggle-btn {
  width: 100%;
  justify-content: center;
}
.nav-profile-mobile .nav-avatar-btn {
  margin-left: auto;
}
.nav-profile-guest {
  width: 100%;
  display: block;
  position: static;
}
.nav-profile-guest-card {
  width: 100%;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 31, 30, 0.12);
  box-shadow: 0 18px 38px rgba(10, 26, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
body[data-theme='night'] .nav-profile-guest-card {
  background: rgba(4, 11, 21, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.nav-profile-guest-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-profile-guest-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 45, 40, 0.1);
  color: #0e2722;
  font-size: 1.1rem;
}
body[data-theme='night'] .nav-profile-guest-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f9ff;
}
.nav-profile-guest-title {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 26, 24, 0.8);
}
.nav-profile-guest-text {
  font-size: 0.9rem;
  color: rgba(7, 26, 24, 0.65);
}
body[data-theme='night'] .nav-profile-guest-title,
body[data-theme='night'] .nav-profile-guest-text {
  color: rgba(255, 255, 255, 0.7);
}
.nav-profile-guest-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.nav-profile-guest-theme {
  flex: 0 0 auto;
  min-width: 48px;
  width: auto;
  height: auto;
  padding: 0.35rem 0.85rem;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: center;
}
.nav-profile-guest-theme span {
  font-size: 0.75rem;
}
.nav-profile-guest-login {
  flex: 1 1 auto;
  width: 100%;
}
.nav-profile-panel {
  width: 100%;
  display: block;
  position: static;
}
.nav-profile-panel-card {
  width: 100%;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 31, 30, 0.12);
  box-shadow: 0 22px 40px rgba(10, 26, 23, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body[data-theme='night'] .nav-profile-panel-card {
  background: rgba(4, 11, 21, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.55);
}
.nav-profile-panel-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav-profile-panel-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(21, 45, 40, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-profile-panel-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-profile-panel-avatar-placeholder {
  font-weight: 700;
  font-size: 1.4rem;
  color: #0e2722;
}
body[data-theme='night'] .nav-profile-panel-avatar {
  background: rgba(255, 255, 255, 0.1);
}
body[data-theme='night'] .nav-profile-panel-avatar-placeholder {
  color: #f5f9ff;
}
.nav-profile-panel-status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(7, 26, 24, 0.7);
}
.nav-profile-panel-note {
  color: rgba(7, 26, 24, 0.6);
}
body[data-theme='night'] .nav-profile-panel-status,
body[data-theme='night'] .nav-profile-panel-note {
  color: rgba(255, 255, 255, 0.7);
}
.nav-profile-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.nav-profile-panel-theme {
  width: 100%;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-profile-panel-theme span {
  font-size: 0.75rem;
}
.nav-profile-panel-profile,
.nav-profile-panel-admin {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
}
.nav-profile-panel-admin {
  border-width: 2px;
}
body[data-theme='day'] .nav-profile-panel-admin {
  color: #102422;
  border-color: rgba(16, 36, 34, 0.25);
}
body[data-theme='night'] .nav-profile-panel-admin {
  color: #f5f9ff;
  border-color: rgba(255, 255, 255, 0.3);
}
.nav-profile-panel-logout,
.nav-profile-panel-logout-btn {
  width: 100%;
}
.nav-profile-panel-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-width: 2px;
}
body[data-theme='day'] .nav-profile-panel-logout-btn {
  color: #102422;
  border-color: rgba(16, 36, 34, 0.25);
}
body[data-theme='night'] .nav-profile-panel-logout-btn {
  color: #f5f9ff;
  border-color: rgba(255, 255, 255, 0.3);
}
@media (min-width: 768px) {
  .nav-profile-guest-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nav-profile-guest-actions {
    flex-wrap: nowrap;
  }
  .nav-profile-guest-login {
    flex: 0 0 auto;
    width: auto;
  }
  .nav-profile-guest-theme {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }
  .nav-profile-guest-theme span {
    display: none;
  }
}
@media (min-width: 768px) {
  .nav-profile-panel-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nav-profile-panel-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-profile-panel-theme {
    width: 44px;
    height: 44px;
    font-size: 0;
  }
  .nav-profile-panel-theme span {
    display: none;
  }
  .nav-profile-panel-profile,
  .nav-profile-panel-admin,
  .nav-profile-panel-logout-btn {
    flex: 1 1 auto;
    min-width: auto;
  }
}
.nav-profile-dropdown-mobile {
  position: static;
  width: 100%;
  margin-top: 0.75rem;
}
.nav-avatar-btn {
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: 240px;
  padding: 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(17, 40, 29, 0.25);
  border: 1px solid rgba(17, 40, 29, 0.08);
  z-index: 1100;
}
body[data-theme='night'] .nav-profile-dropdown {
  background: rgba(4, 11, 21, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}
.nav-profile-dropdown:before {
  content: '';
  position: absolute;
  top: -10px;
  right: 28px;
  width: 18px;
  height: 18px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
  z-index: -1;
}
.nav-profile-dropdown-mobile:before {
  display: none;
}
.nav-profile-dropdown-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 32, 31, 0.1);
  margin-bottom: 0.5rem;
}
body[data-theme='night'] .nav-profile-dropdown-header {
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-profile-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 0.55rem 0;
}
.nav-profile-link i {
  width: 1rem;
  text-align: center;
}
.nav-inline-avatar-placeholder {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #102422;
  font-weight: 700;
}
body[data-theme='night'] .nav-inline-avatar-placeholder {
  background: rgba(255, 255, 255, 0.1);
  color: #eef5ff;
}
.nav-profile-dropdown form .nav-profile-link {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0;
}
.admin-page {
  color: #04161f;
}
.admin-section-card {
  border-radius: 28px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 65px rgba(7, 14, 26, 0.12);
  border: 1px solid rgba(14, 31, 30, 0.08);
}
.admin-section-card .text-muted {
  color: rgba(17, 40, 29, 0.6) !important;
}
body[data-theme='night'] .admin-section-card {
  background: rgba(3, 10, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(243, 247, 251, 0.9);
}
body[data-theme='night'] .admin-section-card .text-muted {
  color: rgba(242, 247, 255, 0.68) !important;
}
body[data-theme='night'] .admin-page p {
  color: rgba(243, 247, 255, 0.82);
}
.admin-section-card select,
.admin-section-card input,
.admin-section-card textarea {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
body[data-theme='night'] .admin-section-card select,
body[data-theme='night'] .admin-section-card input,
body[data-theme='night'] .admin-section-card textarea {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.admin-section-card option {
  color: #0f172a;
}
body[data-theme='night'] .admin-section-card option {
  color: #0f172a;
}
.admin-section-card input::placeholder,
.admin-section-card textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}
body[data-theme='night'] .admin-section-card input::placeholder,
body[data-theme='night'] .admin-section-card textarea::placeholder {
  color: rgba(247, 247, 255, 0.5);
}

.admin-toolbox-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-toolbox-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(90, 116, 255, 0.15);
  color: #7da4ff;
  font-size: 1.2rem;
}
body[data-theme='day'] .admin-toolbox-icon {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}
.admin-subcard {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.08);
}
.admin-timeline-form {
  background: rgba(248, 250, 255, 0.95);
}
body[data-theme='night'] .admin-timeline-form {
  background: rgba(4, 11, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-review-form-card {
  background: rgba(248, 250, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-review-form-card .form-control,
.admin-review-form-card .form-select,
.admin-review-form-card textarea {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
.review-filter-select {
  min-width: 160px;
}

.admin-timeline-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.4rem;
}
body[data-theme='night'] .admin-subcard {
  background: rgba(7, 14, 27, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 32px rgba(0, 0, 0, 0.4);
}
body[data-theme='night'] .admin-review-form-card {
  background: rgba(6, 13, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}
body[data-theme='night'] .admin-review-form-card .form-control,
body[data-theme='night'] .admin-review-form-card .form-select,
body[data-theme='night'] .admin-review-form-card textarea {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}
body[data-theme='night'] .review-filter-select {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}
.admin-stat-card {
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.8));
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(16, 36, 33, 0.08);
}
body[data-theme='night'] .admin-stat-card {
  background: linear-gradient(135deg, rgba(7, 17, 35, 0.95), rgba(2, 6, 14, 0.9));
  border-color: rgba(255, 255, 255, 0.08);
}
.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #1e3d59;
  background: rgba(64, 218, 189, 0.15);
}
body[data-theme='night'] .admin-stat-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #92f7ff;
}
.mood-pill-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.25rem;
  box-shadow: 0 8px 18px rgba(6, 18, 28, 0.18);
}
.admin-table th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(17, 40, 29, 0.6);
}
body[data-theme='night'] .admin-table th {
  color: rgba(247, 248, 255, 0.6);
}
.admin-table td {
  vertical-align: middle;
}
.admin-table td:last-child {
  text-align: right;
}
.admin-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
body[data-theme='night'] .admin-table {
  background: rgba(4, 11, 21, 0.88);
  color: rgba(244, 248, 255, 0.92);
}
.admin-table thead {
  background: rgba(15, 23, 42, 0.05);
}
.admin-table thead th {
  background-color: rgba(15, 23, 42, 0.05);
}
body[data-theme='night'] .admin-table thead {
  background: rgba(255, 255, 255, 0.04);
}
body[data-theme='night'] .admin-table thead th {
  background-color: rgba(255, 255, 255, 0.04);
}
.admin-table tbody tr {
  background: rgba(255, 255, 255, 0.9);
}
.admin-table tbody tr > * {
  background-color: rgba(255, 255, 255, 0.9);
}
body[data-theme='night'] .admin-table tbody tr {
  background: rgba(6, 12, 24, 0.92);
  color: rgba(244, 248, 255, 0.9);
}
body[data-theme='night'] .admin-table tbody tr > * {
  background-color: rgba(6, 12, 24, 0.92);
  color: inherit;
}
.admin-table tbody tr + tr {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body[data-theme='night'] .admin-table tbody tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-table .btn-outline-danger {
  border-color: rgba(220, 38, 38, 0.6);
  color: #dc2626;
}
body[data-theme='night'] .admin-table .btn-outline-danger {
  color: #ff9f9f;
  border-color: rgba(255, 159, 159, 0.5);
}
.admin-user-credential-form {
  background: rgba(6, 18, 28, 0.04);
}
body[data-theme='night'] .admin-user-credential-form {
  background: rgba(255, 255, 255, 0.06);
}
.admin-page .timeline-list {
  border-radius: 18px;
  border: 1px solid rgba(17, 40, 29, 0.08);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}
body[data-theme='night'] .admin-page .timeline-list {
  background: rgba(6, 12, 22, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}
.fav-toggle.is-active,
.fav-toggle[aria-pressed='true'] {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.fav-toggle.is-active i,
.fav-toggle[aria-pressed='true'] i {
  color: #fff;
}
.review-comment textarea {
  min-height: 150px;
}
.review-submit-btn {
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.review-submit-btn i {
  font-size: 1rem;
}
.review-header-rating {
  font-weight: 700;
  min-width: 160px;
}
.review-header-select {
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #04161f;
}
body[data-theme='night'] .review-header-select {
  background: rgba(3, 10, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(244, 248, 255, 0.95);
}

.valentine-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 7, 15, 0.8);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.valentine-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.valentine-modal-card {
  width: min(420px, 100%);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 204, 229, 0.9));
  box-shadow:
    0 25px 65px rgba(6, 24, 38, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #0f1b2b;
}
body[data-theme='night'] .valentine-modal-card {
  background: linear-gradient(135deg, rgba(22, 25, 51, 0.95), rgba(54, 18, 66, 0.9));
  color: rgba(255, 242, 246, 0.96);
}
.valentine-modal-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.valentine-modal-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.valentine-modal-copy {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.valentine-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.valentine-modal-actions .btn {
  min-width: 120px;
  font-weight: 700;
}
body.valentine-modal-open {
  overflow: hidden;
}
