* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark mode */
body.dark {
  background: #121212;
  color: #e0e0e0;
}
body.dark .navbar        { background: #1e1e1e; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
body.dark .nav-links a   { color: #bbb; }
body.dark .section       { background: #121212; }
body.dark .journal-section { background: #1a1a1a; }
body.dark .card          { background: #1e1e1e; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark .card-body h3  { color: #eee; }
body.dark .card-body p   { color: #999; }
body.dark .section-title { color: #eee; }
body.dark .section-sub   { color: #777; }
body.dark .recorder-box  { background: #1e1e1e; }
body.dark .recorder-fields input,
body.dark .recorder-fields select { background: #2a2a2a; border-color: #444; color: #eee; }
body.dark .journal-compose-fields select,
body.dark .journal-compose-fields input,
body.dark .journal-compose-box textarea { background: #2a2a2a; border-color: #444; color: #eee; }
body.dark .gallery-section { background: #121212; }
body.dark .gf-btn        { background: #1e1e1e; border-color: #444; color: #aaa; }
body.dark .dest-search-wrap input { background: #1e1e1e; border-color: #444; color: #eee; }
body.dark .voice-entry   { background: #1e1e1e; }
body.dark .voice-entry-header strong { color: #eee; }

/* Scroll progress bar */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e07b39, #fc4a1a);
  z-index: 9999;
  transition: width 0.1s linear;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e07b39;
  letter-spacing: 1px;
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #555;
  border-radius: 4px;
  transition: all 0.3s;
}
body.dark .hamburger span { background: #bbb; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark toggle */
.dark-toggle {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-toggle:hover { border-color: #e07b39; background: #fff3e0; }
body.dark .dark-toggle { border-color: #555; background: #2a2a2a; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e07b39;
}

.nav-auth-btn {
  padding: 9px 22px;
  background: #e07b39;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: #c9652a;
  transform: translateY(-1px);
}

#authArea {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
body.dark .nav-user { color: #ccc; }

.loading-msg,
.no-entries {
  color: #888;
  font-size: 0.95rem;
  padding: 20px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: 90vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-1 {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)),
              url('trip.jpeg') center center / cover no-repeat;
}
.hero-slide-2 { background: linear-gradient(135deg, #b2dfdb, #00796b); }
.hero-slide-3 { background: linear-gradient(135deg, #fff59d, #fbc02d); }
.hero-slide-4 { background: linear-gradient(135deg, #c8e6c9, #66bb6a); }

.hero-emoji {
  display: block;
  font-size: 3.2rem;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: 3.2rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .hero-arrow { display: none; }
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #e07b39;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Sections */
.section {
  padding: 80px 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: #222;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: #888;
  font-size: 1rem;
  margin-bottom: 50px;
}

/* Destination search */
.dest-search-wrap {
  max-width: 420px;
  margin: 0 auto 36px;
}
.dest-search-wrap input {
  width: 100%;
  padding: 13px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #333;
}
.dest-search-wrap input:focus {
  border-color: #e07b39;
  box-shadow: 0 0 0 3px rgba(224,123,57,0.12);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card-body {
  padding: 20px 22px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.card-body p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Favourite button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fav-btn:hover { transform: scale(1.2); background: #fff; }
.fav-btn.active { color: #e53935; }

.card { position: relative; }

/* Scroll fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.tag {
  display: inline-block;
  background: #fff3e0;
  color: #e07b39;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 6px;
}

/* Destination Modal */
.dest-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dest-modal-overlay.open { display: flex; }

.dest-modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  animation: popIn 0.25s ease;
}
body.dark .dest-modal-box { background: #1e1e1e; color: #eee; }

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.dm-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.dm-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dm-body { padding: 24px 28px 28px; }
.dm-body h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.dm-body p  { font-size: 0.95rem; color: #666; line-height: 1.65; margin-bottom: 14px; }
body.dark .dm-body p { color: #aaa; }
.dm-body .dm-tags { margin-bottom: 14px; }
.dm-info { display: flex; gap: 24px; font-size: 0.88rem; color: #888; flex-wrap: wrap; }
.dm-info span strong { color: #e07b39; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #e07b39;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(224,123,57,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  z-index: 400;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover   { transform: translateY(-3px); background: #c9652a; }

/* Toast */
.toast {
  position: fixed;
  bottom: 86px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
  max-width: 280px;
}
.toast.show { opacity: 1; }

/* Journal */
.journal-section {
  background: #fafafa;
}

.journal-compose-box {
  max-width: 680px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.dark .journal-compose-box { background: #1e1e1e; }

.journal-compose-fields {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.journal-compose-fields select,
.journal-compose-fields input,
.journal-compose-box textarea {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  color: #333;
  font-family: inherit;
  transition: border-color 0.2s;
}

.journal-compose-fields select,
.journal-compose-fields input {
  flex: 1;
  min-width: 160px;
}

.journal-compose-box textarea {
  width: 100%;
  resize: vertical;
  margin-bottom: 14px;
}

.journal-compose-fields select:focus,
.journal-compose-fields input:focus,
.journal-compose-box textarea:focus {
  border-color: #e07b39;
}

.submit-journal-btn {
  padding: 12px 26px;
  font-size: 0.95rem;
}

.journal-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #e07b39;
  font-weight: 600;
  min-height: 20px;
}

.journal-login-prompt {
  text-align: center;
  color: #666;
  font-size: 0.98rem;
}
.journal-login-prompt a { color: #e07b39; font-weight: 600; }

.journal-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.journal-entry {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.dark .journal-entry { background: #1e1e1e; }

.journal-entry-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.journal-entry-header strong { color: #222; }
body.dark .journal-entry-header strong { color: #eee; }

.je-destination {
  background: #fff3e0;
  color: #e07b39;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.je-time {
  font-size: 0.8rem;
  color: #aaa;
}

.journal-entry-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}
body.dark .journal-entry-title { color: #eee; }

.journal-entry-body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  white-space: pre-wrap;
}
body.dark .journal-entry-body { color: #aaa; }

.journal-delete-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.06);
  color: #888;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.journal-delete-btn:hover { background: #e53935; color: #fff; }

/* Gallery */
.gallery-section {
  background: #fff;
}

.gallery-upload-box {
  max-width: 680px;
  margin: 0 auto 36px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.dark .gallery-upload-box { background: #1e1e1e; }

.gallery-upload-fields {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.gallery-upload-fields input,
.gallery-upload-fields select {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  color: #333;
  transition: border-color 0.2s;
}

.gallery-upload-fields input:focus,
.gallery-upload-fields select:focus {
  border-color: #e07b39;
}
body.dark .gallery-upload-fields input,
body.dark .gallery-upload-fields select { background: #2a2a2a; border-color: #444; color: #eee; }

.gallery-upload-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-upload-controls input[type="file"] {
  flex: 1;
  min-width: 180px;
  font-size: 0.88rem;
  color: #666;
}
body.dark .gallery-upload-controls input[type="file"] { color: #aaa; }

.gallery-upload-controls input[type="file"]::file-selector-button {
  padding: 10px 20px;
  margin-right: 12px;
  border: none;
  border-radius: 50px;
  background: #e07b39;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-upload-controls input[type="file"]::file-selector-button:hover {
  background: #c9652a;
}

.submit-photo-btn {
  padding: 12px 26px;
  font-size: 0.95rem;
}

.gallery-upload-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #e07b39;
  font-weight: 600;
  min-height: 20px;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.gf-btn {
  padding: 8px 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.gf-btn:hover,
.gf-btn.active {
  background: #e07b39;
  border-color: #e07b39;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.gallery-item:hover .gallery-delete-btn { opacity: 1; }
.gallery-delete-btn:hover { background: #e53935; }

.gallery-edit-btn {
  position: absolute;
  top: 10px;
  right: 46px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.gallery-item:hover .gallery-edit-btn { opacity: 1; }
.gallery-edit-btn:hover { background: #2f7ed8; }

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.62));
  color: #fff;
  padding: 12px 14px 10px;
  transform: translateY(100%);
  transition: transform 0.25s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gallery-overlay span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.gallery-item.hidden-item {
  display: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  text-align: center;
  max-width: 94vw;
  max-height: 94vh;
}

.lightbox-photo-wrap {
  max-width: 92vw;
  max-height: 80vh;
  overflow: hidden;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-photo {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform-origin: center center;
  transition: transform 0.15s ease;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.lightbox-photo.zoomed {
  cursor: grab;
}

.lightbox-photo.dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox-thumb-placeholder {
  width: 340px;
  height: 340px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  margin: 0 auto 16px;
}

.lightbox-caption {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-zoom-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1000;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px;
}

.lightbox-zoom-controls button {
  background: transparent;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-zoom-controls button:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-item.large {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }
}

/* Voice Entries */
.voice-section {
  background: #f9f9f9;
}

.recorder-box {
  max-width: 680px;
  margin: 0 auto 50px;
  background: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.recorder-fields {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.recorder-fields input,
.recorder-fields select {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  color: #333;
  transition: border-color 0.2s;
}

.recorder-fields input:focus,
.recorder-fields select:focus {
  border-color: #e07b39;
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rec-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #e07b39;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.rec-btn:hover {
  background: #c9652a;
  transform: translateY(-1px);
}

.rec-btn.recording {
  background: #e53935;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(229,57,53,0); }
}

.rec-timer {
  font-size: 1.1rem;
  font-weight: 700;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.recorder-preview {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.recorder-preview audio {
  flex: 1;
  min-width: 200px;
  height: 40px;
}

.submit-voice-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.discard-btn {
  background: none;
  border: 1.5px solid #ccc;
  color: #888;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.discard-btn:hover {
  border-color: #e53935;
  color: #e53935;
}

.rec-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #e07b39;
  font-weight: 600;
  min-height: 20px;
}

/* Voice Feed */
.voice-feed {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.voice-entry {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-delete-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.06);
  color: #888;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.voice-delete-btn:hover { background: #e53935; color: #fff; }

.voice-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-entry-header strong {
  font-size: 1rem;
  color: #222;
}

.voice-entry-header .ve-destination {
  background: #fff3e0;
  color: #e07b39;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.voice-entry-header .ve-time {
  font-size: 0.8rem;
  color: #aaa;
}

.voice-entry audio {
  width: 100%;
  height: 38px;
}

.no-entries {
  text-align: center;
  color: #bbb;
  font-size: 0.95rem;
  padding: 20px 0;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #e07b39, #fc4a1a);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter p {
  font-size: 1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  width: 320px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.confirm-msg {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 600;
  min-height: 24px;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 32px 20px;
}

.footer strong {
  color: #e07b39;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo { font-size: 1.3rem; }

  .hamburger { display: flex; }

  .dark-toggle { width: 32px; height: 32px; font-size: 0.9rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: #fff;
    padding: 8px 0 16px;
    order: 3;
  }
  body.dark .nav-links { background: #1e1e1e; }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
  }

  .nav-auth-btn {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .hero-content h1 { font-size: 2.2rem; }

  .section { padding: 60px 24px; }

  .section-title { font-size: 1.7rem; }

  .journal-compose-fields {
    flex-direction: column;
  }

  .back-to-top { bottom: 20px; right: 20px; }
  .toast       { bottom: 74px; right: 20px; }

  .footer { padding-bottom: 84px; }

  .journal-entry,
  .voice-entry { padding-right: 46px; }

  .recorder-controls { flex-wrap: wrap; gap: 12px; }
  .rec-btn { padding: 12px 22px; font-size: 0.92rem; white-space: nowrap; }

  .gallery-delete-btn,
  .gallery-edit-btn { opacity: 1; }
  .gallery-overlay { transform: translateY(0); }
}
