/* ===== JHCWCH EXACT ORIGINAL DESIGN SYSTEM ===== */
:root {
  --bg-main: linear-gradient(180deg, #090514 0%, #120924 50%, #07030e 100%);
  --accent: #a855f7;
  --accent-dark: #7c3aed;
  --accent-light: #e9d5ff;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #a78bfa;
  --glass-bg: rgba(24, 15, 46, 0.5);
  --nav-bg: rgba(9, 5, 20, 0.75);
  --border: rgba(168, 85, 247, 0.15);
  --border-hover: rgba(168, 85, 247, 0.4);
  --stat-bg: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  --title-gradient: linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #a855f7 100%);
  --badge-bg: rgba(168, 85, 247, 0.15);
  --badge-border: rgba(168, 85, 247, 0.3);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.25);
  --modal-bg: #120924;
  --lightbox-bg: #07030e;
  --input-bg: rgba(255, 255, 255, 0.03);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-main: linear-gradient(180deg, #fffaff 0%, #f7f1ff 48%, #ffffff 100%);
  --accent: #b88cff;
  --accent-dark: #8b5cf6;
  --accent-light: #6d28d9;
  --text-main: #211335;
  --text-soft: #5b4a72;
  --text-muted: #574075;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --nav-bg: rgba(255, 250, 255, 0.82);
  --border: rgba(184, 140, 255, 0.28);
  --border-hover: rgba(139, 92, 246, 0.48);
  --stat-bg: linear-gradient(135deg, rgba(184, 140, 255, 0.18) 0%, rgba(255, 255, 255, 0.58) 100%);
  --title-gradient: linear-gradient(135deg, #7c3aed 0%, #b88cff 48%, #d8b4fe 100%);
  --badge-bg: rgba(184, 140, 255, 0.16);
  --badge-border: rgba(139, 92, 246, 0.34);
  --card-shadow: 0 10px 30px rgba(91, 74, 114, 0.14);
  --shadow-glow: 0 0 22px rgba(184, 140, 255, 0.28);
  --modal-bg: #f7f1ff;
  --lightbox-bg: #ffffff;
  --input-bg: rgba(255, 255, 255, 0.78);
}

/* Base Global Reset & Complete Scrollbar Invisibility */
html, body, * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE & Old Edge */
}

/* Webkit / Chromium / Safari / Mobile Invisible Scrollbars */
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
section::-webkit-scrollbar,
main::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  background-color: #090514;
  color: var(--text-main);
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background-color: #fffaff;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .main-container {
    padding: 0 3rem 4rem;
  }
}

@media (min-width: 768px) {
  .main-container {
    padding: 0 4rem 5rem;
  }
}

/* Floating Theme Switcher */
.theme-switcher-box {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
}

.theme-switcher-btn {
  background-color: rgba(24, 15, 46, 0.72);
  color: #e9d5ff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease-in-out;
}

[data-theme="light"] .theme-switcher-btn {
  background-color: rgba(255, 250, 255, 0.9);
  color: #7c3aed;
}

.theme-switcher-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
}

.hero-heading {
  font-family: 'Gloria Hallelujah', 'Caveat', cursive, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #fbcfe8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  line-height: 1.25;
  filter: drop-shadow(0 4px 15px rgba(168, 85, 247, 0.35));
}

[data-theme="light"] .hero-heading {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.days-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

[data-theme="light"] .days-counter-badge {
  background: rgba(244, 114, 182, 0.18);
  color: #334155;
}

.days-counter-number {
  color: #f472b6;
  font-weight: 800;
}

/* Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 850px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--stat-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow), var(--shadow-glow);
}

.stat-card.active-timeline {
  border: 1px solid var(--accent);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.stat-card.active-highlights {
  border: 1px solid #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.stat-card.active-map {
  border: 1px solid #10b981;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.stat-card.active-plans {
  border: 1px solid #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.stat-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

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

/* Google Keep Style Interactive Checklist */
.keep-checklist-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1.75rem;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.keep-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  position: relative;
}

.keep-item-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.keep-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.keep-checkbox:hover {
  border-color: var(--accent);
}

.keep-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.keep-checkbox:checked::after {
  content: '✓';
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.keep-input-text {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.keep-input-text::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.keep-input-text.completed {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.65;
}

.keep-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.keep-item-row:hover .keep-delete-btn {
  opacity: 0.7;
}

.keep-delete-btn:hover {
  opacity: 1 !important;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.keep-add-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(168, 85, 247, 0.08);
  margin-top: 0.5rem;
}

.keep-add-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.keep-add-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.keep-completed-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0.25rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.keep-completed-toggle-row:hover {
  color: var(--accent-light);
}

.keep-completed-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Countdown Banner */
.countdown-banner-box {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow: var(--card-shadow), var(--shadow-glow);
  padding: 1rem 2rem;
  margin: 0 auto 1.5rem auto;
  max-width: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* View Container */
.view-content-wrapper {
  width: 100%;
  min-height: 40vh;
}

.view-section {
  display: none;
}

.view-section.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Horizontal Alternating Timeline with Drag & Snap */
.timeline-scroll-container {
  overflow-x: auto;
  width: 100%;
  padding: 1.5rem 0 1.75rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
  user-select: none;
}

.timeline-scroll-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.timeline-scroll-container.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* Smooth drag without snap locking while actively moving */
  scroll-behavior: auto;
}

.timeline-row {
  display: flex;
  align-items: center;
  min-width: max-content;
  margin: 0 auto;
}

.timeline-column {
  width: 360px;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

@media (max-width: 640px) {
  .timeline-scroll-container {
    padding: 1rem 0 1.5rem 0;
    scroll-padding: 0 calc(50vw - 42.5vw);
  }
  
  .timeline-row {
    padding: 0 calc(50vw - 42.5vw);
  }

  .timeline-column {
    width: 85vw;
    min-width: 85vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

.timeline-spacer {
  height: 324px;
  width: 100%;
}

.vertical-guide {
  width: 2px;
  height: 24px;
  opacity: 0.8;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(168, 85, 247, 0.4);
}

.vertical-guide.top {
  background: linear-gradient(to bottom, var(--accent), rgba(168, 85, 247, 0.15));
}

.vertical-guide.bottom {
  background: linear-gradient(to top, var(--accent), rgba(168, 85, 247, 0.15));
}

.timeline-axis-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-line-segment {
  height: 2px;
  flex: 1;
  background-color: var(--accent);
}

.timeline-center-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: var(--shadow-glow);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

/* Glass Card */
.glass-trip-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 300px;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.glass-trip-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow), var(--shadow-glow);
}

.trip-card-cover {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.trip-card-cover img,
.trip-card-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-media-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.trip-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 1rem;
  gap: 0.25rem;
}

.trip-badge-date {
  background-color: var(--badge-bg);
  color: var(--accent-light);
  border: 1px solid var(--badge-border);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.trip-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Highlights Grid */
.highlights-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .highlights-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .highlights-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Revamped Highlights Memory Wall */
.highlights-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fda4af;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

.highlights-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.hl-filter-btn {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hl-filter-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #fff;
}

.hl-filter-btn.active {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.highlights-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.polaroid-highlight-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.polaroid-highlight-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(236, 72, 153, 0.25);
}

.polaroid-media-box {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #000;
}

.polaroid-media-box img,
.polaroid-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.polaroid-highlight-card:hover .polaroid-media-box img,
.polaroid-highlight-card:hover .polaroid-media-box video {
  transform: scale(1.05);
}

.polaroid-info-bar {
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(24, 15, 46, 0.2), rgba(24, 15, 46, 0.7));
}

[data-theme="light"] .polaroid-info-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.9));
}

.polaroid-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heart-unfav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 12, 30, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.heart-unfav-btn:hover {
  transform: scale(1.2);
  background: rgba(236, 72, 153, 0.3);
}

.heart-burst {
  animation: heart-burst-anim 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-burst-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.5) rotate(-15deg); }
  100% { transform: scale(1); }
}

/* Bucket List / Plans View */
.checklist-wrapper {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem;
}

.category-tags-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-filter-btn {
  background-color: rgba(168, 85, 247, 0.08);
  color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-filter-btn:hover {
  background-color: rgba(168, 85, 247, 0.2);
}

.category-filter-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .checklist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow), var(--shadow-glow);
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.plan-category-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(168, 85, 247, 0.15);
  color: var(--accent-light);
}

.plan-category-badge.done {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

/* Modals */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.custom-modal-backdrop.open {
  display: flex;
}

.custom-modal-card {
  background: var(--bg-main);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  max-width: 850px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.custom-modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.edit-date-btn {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border);
  color: var(--accent-light);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-date-btn:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: #fff;
  transform: scale(1.1);
}

.date-inline-picker {
  background: var(--input-bg);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.8rem;
  color-scheme: dark;
  cursor: pointer;
  outline: none;
}

[data-theme="light"] .date-inline-picker {
  color-scheme: light;
}

.date-inline-save-btn,
.date-inline-cancel-btn {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.date-inline-save-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: #22c55e;
  color: #22c55e;
}

.date-inline-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ef4444;
}

.modal-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .modal-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .modal-media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid-item {
  position: relative;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.gallery-grid-item:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
}

.gallery-grid-item img,
.gallery-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  z-index: 10;
  transition: transform 0.2s ease;
}

.heart-fav-btn.active {
  color: #ec4899;
}

.heart-fav-btn:hover {
  transform: scale(1.15);
  background: rgba(236, 72, 153, 0.3);
}

.exif-date-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 12, 30, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 6px;
  padding: 2px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #e9d5ff;
  font-size: 0.65rem;
  font-weight: 500;
  z-index: 10;
}

/* Lightbox Modal */
.lightbox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal-backdrop.open {
  display: flex;
}

.lightbox-card {
  background: var(--bg-main);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-media-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lightbox-media-center img,
.lightbox-media-center video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Footer */
.app-footer {
  margin-top: 3rem;
  width: 100%;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background-color: rgba(168, 85, 247, 0.08);
  width: 100%;
  margin-bottom: 1.25rem;
}

.footer-content-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(168, 85, 247, 0.45);
}
