/* ============================================================
   DAEEE・同行集 - Global Styles (Enhanced)
   ============================================================ */

:root {
  /* Brand Colors */
  --primary-color: #E8A87C;
  --primary-dark: #D4946A;
  --secondary-color: #F5E6D3;
  --accent-color: #C38D9E;
  --accent-dark: #B07A8B;

  /* Neutrals */
  --warm-white: #FAF8F5;
  --cream: #FFF9F2;
  --white: #FFFFFF;
  --light-brown: #D4A574;
  --soft-pink: #F8D7DA;
  --warm-gray: #9A8C98;

  /* Text */
  --text-dark: #4A4A4A;
  --text-medium: #666666;
  --text-light: #7A7A7A;
  --text-muted: #AAAAAA;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-warm: linear-gradient(135deg, var(--primary-color), #F0C27A, var(--accent-color));
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  --gradient-hero: linear-gradient(135deg, #E8A87C 0%, #F0C27A 30%, #C38D9E 70%, #E8A87C 100%);

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-sm: 0 4px 16px rgba(232, 168, 124, 0.08);
  --shadow: 0 4px 20px rgba(232, 168, 124, 0.1);
  --shadow-hover: 0 8px 32px rgba(232, 168, 124, 0.2);
  --shadow-lg: 0 16px 48px rgba(232, 168, 124, 0.15);
  --shadow-xl: 0 24px 64px rgba(195, 141, 158, 0.2);
  --shadow-glow: 0 0 30px rgba(232, 168, 124, 0.3);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration: 0.35s;
  --duration-slow: 0.6s;
}

/* ============================================================
   Base Reset & Scrollbar
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--warm-white);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--warm-white);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(232, 168, 124, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(195, 141, 158, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(232, 168, 124, 0.02) 0%, transparent 50%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

::selection {
  background: rgba(232, 168, 124, 0.3);
  color: var(--text-dark);
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(232, 168, 124, 0.15);
  transition: all var(--duration) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  background: rgba(250, 248, 245, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(232, 168, 124, 0.35);
  transition: transform var(--duration) var(--ease-spring);
}

.brand-logo:hover {
  transform: rotate(-10deg) scale(1.1);
}

.brand-logo i {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease-out);
}

.nav-link:hover i,
.nav-link.active i {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: transform var(--duration) var(--ease-spring);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(232, 168, 124, 0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  border-radius: var(--radius-full);
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  z-index: -1;
}

.login-btn:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.25);
}

.login-btn:hover::before {
  opacity: 1;
}

/* Dark mode toggle */
.dark-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(232, 168, 124, 0.3);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease-out);
}

.dark-toggle:hover {
  background: rgba(232, 168, 124, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle:hover {
  background: rgba(232, 168, 124, 0.1);
  color: var(--primary-color);
}

/* ============================================================
   Main Content
   ============================================================ */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.section {
  display: none;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
}

.section.active {
  display: block;
  animation: sectionEnter 0.5s var(--ease-out) forwards;
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero-section {
  background: var(--gradient-hero);
  background-size: 300% 300%;
  padding: 7rem 2rem 6rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 40%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-600px) translateX(40px) scale(0);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
  animation: heroTitleIn 1s var(--ease-out);
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-slogan {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 2px;
  animation: heroSloganIn 1s 0.2s var(--ease-out) both;
}

@keyframes heroSloganIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: heroScrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 15px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: var(--radius-full);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  100% { top: 32px; opacity: 0; }
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   Stats Dashboard
   ============================================================ */

.dashboard-container {
  margin-bottom: 3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 40%;
  background: var(--gradient-primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: height var(--duration) var(--ease-spring);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(232, 168, 124, 0.3);
}

.stat-card:hover::before {
  height: 100%;
  border-radius: 0;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  border-color: var(--primary-color);
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--secondary-color), var(--soft-pink));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease-out);
}

.stat-card:hover .stat-icon {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(-5deg) scale(1.08);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  transition: color var(--duration) var(--ease-out);
}

.stat-card:hover .stat-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   Quick Access Cards
   ============================================================ */

.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quick-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.08), transparent);
  border-radius: var(--radius-full);
  transition: all var(--duration-slow) var(--ease-out);
}

.quick-card:hover::before {
  top: -30%;
  right: -30%;
  width: 180px;
  height: 180px;
}

.quick-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(232, 168, 124, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-header h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.card-tag {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(232, 168, 124, 0.2);
}

.diary-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.card-footer .date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mini Map */
.mini-map-container {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.mini-map {
  height: 180px;
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.5), rgba(255,255,255,0.8));
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 168, 124, 0.15);
}

.china-outline {
  width: 100%;
  height: 100%;
}

.map-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  border: 3px solid white;
  cursor: pointer;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: 0 2px 8px rgba(232, 168, 124, 0.5);
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(232, 168, 124, 0.4); }
  50% { box-shadow: 0 2px 20px rgba(232, 168, 124, 0.7); }
}

.map-marker:hover {
  transform: scale(1.5);
  z-index: 10;
}

.marker-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease-out);
  pointer-events: none;
}

.map-marker:hover .marker-tooltip {
  opacity: 1;
  visibility: visible;
}

.progress-text {
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Quote Section
   ============================================================ */

.quote-section {
  text-align: center;
}

.quote-card {
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.6), rgba(248, 215, 218, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid rgba(232, 168, 124, 0.15);
  overflow: hidden;
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 2rem;
  font-size: 6rem;
  color: rgba(232, 168, 124, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.quote-author {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.35);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 168, 124, 0.45);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(232, 168, 124, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.1);
}

/* ============================================================
   Tabs & Filters
   ============================================================ */

.tab-btn {
  padding: 0.65rem 1.5rem;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.3);
  border-color: transparent;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.85rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.25);
}

.filter-tag {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: 1.5px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ============================================================
   Diary Section
   ============================================================ */

.diary-container {
  margin-top: 2rem;
}

.diary-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.diary-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diary-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all var(--duration) var(--ease-out);
}

.diary-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.diary-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.diary-card:hover .diary-cover img {
  transform: scale(1.05);
}

.diary-info {
  padding: 1.5rem;
}

.diary-info h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.diary-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.diary-meta i {
  margin-right: 0.25rem;
  margin-left: 0.75rem;
}

.diary-meta i:first-child {
  margin-left: 0;
}

.diary-preview {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.diary-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.diary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
}

.filter-section h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(232, 168, 124, 0.25);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.1);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   Map Section
   ============================================================ */

.map-container {
  margin-top: 2rem;
}

.map-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
}

.city-selector label {
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
}

.city-selector select {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid rgba(232, 168, 124, 0.25);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  font-family: inherit;
  min-width: 150px;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.city-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.1);
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 2px solid rgba(232, 168, 124, 0.1);
}

.amap-container {
  height: 500px;
  width: 100%;
}

#map-legend {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  border: 1px solid rgba(255,255,255,0.6);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

.legend-dot.visited {
  background: var(--primary-color);
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(232, 168, 124, 0.4);
}

.legend-dot.footprint {
  background: var(--accent-color);
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(195, 141, 158, 0.4);
}

.city-summary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
}

.city-summary h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.city-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  border: 1.5px solid transparent;
}

.city-item:hover {
  background: rgba(232, 168, 124, 0.15);
  border-color: rgba(232, 168, 124, 0.3);
  transform: translateY(-2px);
}

.city-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(232, 168, 124, 0.3);
}

.city-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.city-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  opacity: 0;
  transition: all var(--duration) var(--ease-out);
  margin-left: 0.3rem;
}

.city-item:hover .city-delete {
  opacity: 1;
}

.city-delete:hover {
  background: rgba(231, 76, 60, 0.12);
  color: #E74C3C;
}

/* ============================================================
   Empty State
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 2px dashed rgba(232, 168, 124, 0.2);
}

.empty-state.small {
  padding: 1.5rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.empty-state .hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-state button {
  margin-top: 1rem;
}

/* ============================================================
   Ledger Section
   ============================================================ */

.ledger-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.budget-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.budget-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
  text-align: center;
  transition: all var(--duration) var(--ease-out);
}

.budget-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.budget-card h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.budget-ring {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
}

.budget-ring svg circle:last-child {
  transition: stroke-dasharray 1s var(--ease-out);
}

.budget-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.budget-percent {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.budget-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

.expense-chart {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
}

.expense-chart h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  width: 60px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.bar-track {
  flex: 1;
  height: 22px;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}

.bar-value {
  width: 80px;
  text-align: right;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.recent-transactions {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
}

.recent-transactions h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
  border: 1px solid transparent;
}

.transaction-item:hover {
  border-color: rgba(232, 168, 124, 0.2);
  transform: translateX(4px);
}

.transaction-icon {
  font-size: 1.5rem;
}

.transaction-info {
  flex: 1;
}

.transaction-name {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
}

.transaction-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.transaction-amount {
  color: #E74C3C;
  font-weight: 700;
  font-size: 1.05rem;
}

.add-transaction-btn {
  display: block;
  margin: 0 auto;
}

/* ============================================================
   Plan Section
   ============================================================ */

.plan-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.plan-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan-list {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.plan-item:hover,
.plan-item.active {
  background: var(--secondary-color);
  transform: translateX(3px);
}

.plan-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.plan-status {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.plan-detail {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
}

.plan-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.plan-meta i {
  margin-right: 0.35rem;
  color: var(--primary-color);
}

.daily-plan {
  margin-bottom: 2rem;
}

.day-tab {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.day-btn {
  padding: 0.45rem 1rem;
  border: 1.5px solid transparent;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.85rem;
}

.day-btn.active,
.day-btn:hover {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.25);
}

.day-content h4 {
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
}

.schedule-item:hover {
  background: var(--warm-white);
}

.schedule-time {
  width: 80px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.schedule-info {
  flex: 1;
}

.schedule-title {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
}

.schedule-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plan-budget {
  background: var(--warm-white);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.plan-budget h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.budget-comparison {
  display: flex;
  justify-content: space-around;
}

.budget-item {
  text-align: center;
}

.budget-label {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.budget-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.budget-value.highlight {
  color: var(--primary-color);
}

/* ============================================================
   Wishlist Section
   ============================================================ */

.wishlist-container {
  margin-top: 2rem;
  text-align: center;
}

.wishlist-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.wish-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all var(--duration) var(--ease-out);
}

.wish-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.wish-card.completed {
  opacity: 0.75;
}

.wish-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.wish-card:hover .wish-image img {
  transform: scale(1.08);
}

.wish-content {
  padding: 1.25rem;
}

.wish-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.wish-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.priority {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.priority.high {
  background: #F8D7DA;
  color: #C73E3A;
}

.priority.medium {
  background: #FFF3CD;
  color: #B8860B;
}

.priority.low {
  background: #D4EDDA;
  color: #155724;
}

.wish-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.wish-status.completed {
  color: #27AE60;
}

.wishlist-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ============================================================
   Album Section
   ============================================================ */

.album-container {
  margin-top: 2rem;
  text-align: center;
}

.album-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.album-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.album-item:hover img {
  transform: scale(1.12);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.album-item:hover .album-overlay {
  opacity: 1;
}

.overlay-icon {
  color: white;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.upload-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Stamps Section
   ============================================================ */

.stamps-container {
  margin-top: 2rem;
}

.stamps-progress {
  text-align: center;
  margin-bottom: 3rem;
}

.stamps-progress h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.progress-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}

.progress-ring svg circle:last-child {
  transition: stroke-dasharray 1.2s var(--ease-out);
}

.progress-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.progress-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stamps-progress > p {
  color: var(--text-light);
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}

.stamp-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease-out);
  cursor: default;
}

.stamp-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.6);
}

.stamp-inner {
  width: 85px;
  height: 85px;
  margin: 0 auto 0.75rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  transition: all var(--duration) var(--ease-spring);
  box-shadow: 0 6px 24px rgba(232, 168, 124, 0.35);
}

.stamp-card:hover .stamp-inner {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 32px rgba(232, 168, 124, 0.5);
}

.stamp-card.locked .stamp-inner {
  background: var(--secondary-color);
  box-shadow: none;
}

.stamp-card.locked:hover .stamp-inner {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.locked-inner {
  color: var(--text-muted);
}

.stamp-city {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.stamp-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.stamp-hint {
  display: block;
  color: var(--primary-color);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ============================================================
   Profile & Couple Section
   ============================================================ */

.profile-container {
  max-width: 720px;
  margin: 2rem auto 0;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--duration) var(--ease-out);
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(232, 168, 124, 0.3);
}

.profile-details h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.profile-username {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Couple Section */

.couple-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.couple-section .section-header {
  margin-bottom: 2rem;
}

.couple-section .section-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.couple-section .section-header h3 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.couple-empty {
  text-align: center;
  padding: 2rem 0;
}

.couple-empty i {
  font-size: 3.5rem;
  color: var(--accent-color);
  opacity: 0.6;
  margin-bottom: 1rem;
  display: block;
}

.couple-empty p {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.couple-empty .hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.couple-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.couple-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  color: var(--text-muted);
}

.couple-divider::before,
.couple-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232, 168, 124, 0.25);
}

.couple-divider span {
  padding: 0 1rem;
  font-size: 0.85rem;
}

.invite-accept-group {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 380px;
}

.invite-code-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(232, 168, 124, 0.25);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--text-dark);
  transition: all var(--duration-fast) var(--ease-out);
}

.invite-code-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.15);
  background: white;
}

.invite-code-input::placeholder {
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-muted);
}

/* Pending State */

.couple-pending-card {
  text-align: center;
  padding: 1.5rem 0;
}

.pending-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #F0C27A, #E8A87C);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  box-shadow: 0 4px 16px rgba(240, 194, 122, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.couple-pending-card h4 {
  color: var(--text-dark);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pending-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.invite-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 2px dashed var(--primary-color);
  margin-bottom: 0.75rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.code-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.code-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 6px;
  color: var(--primary-color);
  user-select: all;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
  font-size: 1rem;
}

.btn-copy:hover {
  color: var(--primary-color);
  background: rgba(232, 168, 124, 0.1);
}

.expire-countdown {
  color: var(--accent-color);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
}

/* Bound State */

.couple-bound-card {
  text-align: center;
  padding: 1.5rem 0;
}

.bound-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.heart-left, .heart-right {
  text-align: center;
}

.heart-left i, .heart-right i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.heart-left i {
  color: #FF6B6B;
}

.heart-right i {
  color: #FFD166;
}

.heart-center i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.heart-nickname {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.bound-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.bound-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Danger Button */

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-danger:active {
  transform: translateY(0);
}

.unbind-warning {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Map Legend - Couple Colors */

#map-legend .legend-item.partner-male .legend-dot {
  background: #FF6B6B;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

#map-legend .legend-item.partner-female .legend-dot {
  background: #FFD166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
}

/* ============================================================
   Modal
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.35s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.6);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.3rem;
  text-align: center;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: transparent;
}

.close-modal:hover {
  color: var(--primary-color);
  background: rgba(232, 168, 124, 0.1);
}

/* ============================================================
   Forms
   ============================================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(232, 168, 124, 0.25);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
  background: white;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions button {
  flex: 1;
}

.login-hint,
.register-link {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.register-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration) var(--ease-out);
}

.register-link a:hover {
  color: var(--accent-color);
}

.message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.message.success {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.message.error {
  background: #F8D7DA;
  color: #C73E3A;
  border: 1px solid #F5C6CB;
}

/* ============================================================
   Upload Area
   ============================================================ */

.upload-area {
  border: 2px dashed rgba(232, 168, 124, 0.3);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  background: var(--warm-white);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(232, 168, 124, 0.04);
}

.upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(232, 168, 124, 0.08);
  transform: scale(1.02);
}

.upload-area i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.upload-input {
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(232, 168, 124, 0.4);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--text-dark);
  cursor: pointer;
}

/* ============================================================
   Toast Notifications
   ============================================================ */

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.4s var(--ease-out);
  min-width: 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast.success {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.toast.error {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.toast.info {
  background: linear-gradient(135deg, #3498DB, #2980B9);
}

.toast.warning {
  background: linear-gradient(135deg, #F39C12, #E67E22);
}

.toast.removing {
  animation: toastOut 0.3s var(--ease-out) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
}

/* ============================================================
   Back to Top
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(232, 168, 124, 0.5);
}

/* ============================================================
   Skeleton Loading
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, var(--secondary-color) 25%, #EDE0D4 50%, var(--secondary-color) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius);
}

.skeleton-circle {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s var(--ease-out);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   Image Lightbox
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  animation: lightboxIn 0.3s var(--ease-out);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

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

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: linear-gradient(180deg, #3A3A3A, #2A2A2A);
  color: white;
  padding: 3.5rem 2rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-logo {
  background: var(--gradient-primary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-brand .brand-name {
  color: white;
  -webkit-text-fill-color: white;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

/* ============================================================
   Toolbar (Diary, Album, Wishlist)
   ============================================================ */

.diary-toolbar, .album-toolbar, .wishlist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.diary-filters {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.diary-filters select {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid rgba(232, 168, 124, 0.25);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.diary-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.1);
}

/* ============================================================
   Diary Actions & Small Buttons
   ============================================================ */

.diary-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-sm) !important;
}

/* ============================================================
   Form Row (Side by side fields)
   ============================================================ */

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* ============================================================
   Album Detail & Photo Grid
   ============================================================ */

.album-detail-toolbar {
  margin-bottom: 1.5rem;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.album-photo-grid .album-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}

.album-photo-grid .album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--duration-slow) var(--ease-out);
}

.album-photo-grid .album-item:hover img {
  transform: scale(1.08);
}

.photo-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(231, 76, 60, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.album-photo-grid .album-item:hover .photo-delete-btn {
  opacity: 1;
}

.photo-delete-btn:hover {
  background: #E74C3C;
  transform: scale(1.1);
}

/* ============================================================
   Day Card (Plan)
   ============================================================ */

.day-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(232, 168, 124, 0.15);
  transition: all var(--duration) var(--ease-out);
}

.day-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(232, 168, 124, 0.3);
}

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

@media (max-width: 1024px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }

  .nav-link i {
    display: none;
  }

  .diary-content {
    grid-template-columns: 1fr;
  }

  .diary-sidebar {
    order: -1;
  }

  .plan-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid rgba(232, 168, 124, 0.15);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links li {
    padding: 0.3rem;
  }

  .nav-link {
    display: flex;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .nav-link i {
    display: inline-block;
  }

  .nav-toggle {
    display: block;
  }

  .hero-section {
    padding: 5rem 1.5rem 4rem;
  }

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

  .hero-slogan {
    font-size: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-access {
    grid-template-columns: 1fr;
  }

  .wishlist-stats {
    gap: 2rem;
  }

  .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stamps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .map-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .city-selector {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .city-selector select {
    width: 100%;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .invite-accept-group {
    flex-direction: column;
    width: 100%;
  }

  .invite-code-display {
    max-width: 100%;
  }

  .diary-toolbar, .album-toolbar, .wishlist-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .album-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .bound-hearts {
    gap: 1rem;
  }

  .invite-accept-group {
    flex-direction: column;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .album-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-tabs, .day-tab {
    gap: 0.3rem;
  }

  .filter-btn, .day-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .city-list {
    flex-direction: column;
  }

  .wishlist-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}
