/* ============================================
   🌊 Đà Nẵng Travel Website — Design System
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary-50: #e6f4ff;
  --primary-100: #b3e0ff;
  --primary-500: #0084d6;
  --primary-600: #006bb3;
  --primary-700: #005290;

  --accent-50: #fff8e6;
  --accent-100: #ffecb3;
  --accent-500: #ff9800;
  --accent-600: #f57c00;

  --gray-50: #fafbfc;
  --gray-100: #f4f5f7;
  --gray-200: #e8eaed;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --breakfast-color: #ff6b35;
  --snack-color: #ffc107;
  --restaurant-color: #e91e63;
  --cafe-color: #795548;
  --seafood-color: #00bcd4;
  --play-color: #4caf50;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gray-50);
  color: var(--gray-800);
  overflow-x: hidden;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

* {
  touch-action: manipulation;
}

/* ---- Pages ---- */
.page {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  animation: pageEnter 0.35s ease;
}

.page.active {
  display: block;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   🏠 HERO SECTION 
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-lg);
  padding-bottom: calc(var(--spacing-2xl) + 70px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c2340 0%, #0a4d8c 40%, #064273 70%, #1a1a2e 100%);
}

.hero-bg img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.6s ease 0.35s both;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease 0.65s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-500);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.65;
  margin-top: 2px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 30px;
  background: var(--primary-500);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 132, 214, 0.4);
  animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-cta:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 132, 214, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  animation: fadeInUp 0.6s ease 1s both;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

/* ============================================
   📦 QUICK ACCESS CARDS
   ============================================ */
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.quick-access {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  padding: 0 var(--spacing-lg);
}

.quick-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-500);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}

.quick-card:active::after {
  opacity: 1;
}

.quick-card:nth-child(2)::after {
  background: var(--play-color);
}

.quick-card:nth-child(3)::after {
  background: var(--restaurant-color);
}

.quick-card.card-cafe::after {
  background: var(--cafe-color);
}

.quick-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.quick-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.quick-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   🌟 HIGHLIGHTS HORIZONTAL SCROLL  
   ============================================ */
.highlights {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.highlight-scroll {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding: 0 var(--spacing-lg);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.highlight-scroll::-webkit-scrollbar {
  display: none;
}

.highlight-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.highlight-card:active {
  transform: scale(0.97);
}

.highlight-card-img {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.highlight-card-img.temple {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.highlight-card-img.ancient {
  background: linear-gradient(135deg, #ffd54f 0%, #ff9800 100%);
}

.highlight-card-img.mountain {
  background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
}

.highlight-card-img.night {
  background: linear-gradient(135deg, #7c4dff 0%, #304ffe 100%);
}

.highlight-card-img.beach {
  background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
}

.highlight-card-img.island {
  background: linear-gradient(135deg, #26c6da 0%, #00838f 100%);
}

.highlight-time-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
}

.highlight-info {
  padding: var(--spacing-md);
}

.highlight-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.highlight-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   🔥 MUST TRY 
   ============================================ */
.must-try {
  padding: 0 0 var(--spacing-2xl);
}

.must-try-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-lg);
}

.must-try-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.must-try-item:active {
  transform: scale(0.98);
}

.must-try-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.must-try-icon.breakfast {
  background: #fff3e0;
}

.must-try-icon.snack {
  background: #fff8e1;
}

.must-try-icon.seafood {
  background: #e0f7fa;
}

.must-try-icon.cafe-icon {
  background: #efebe9;
}

.must-try-info {
  flex: 1;
  min-width: 0;
}

.must-try-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.must-try-info p {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.must-try-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.must-try-badge.must {
  background: #fce4ec;
  color: var(--restaurant-color);
}

.must-try-badge.hot {
  background: #fff3e0;
  color: var(--breakfast-color);
}

.must-try-badge.chill {
  background: #efebe9;
  color: var(--cafe-color);
}

/* ============================================
   📋 PAGE HEADER
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  padding-top: calc(var(--spacing-lg) + env(safe-area-inset-top, 0px));
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--gray-200);
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gray-800);
  background: var(--gray-100);
  transition: all 0.2s ease;
}

.back-btn:active {
  transform: scale(0.92);
  background: var(--gray-200);
}

.page-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* ============================================
   📋 SCHEDULE / TIMELINE  
   ============================================ */
.day-tabs {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  box-shadow: 0 1px 0 var(--gray-200);
}

.day-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  transition: all 0.25s ease;
}

.day-tab.active {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 132, 214, 0.3);
}

.timeline-container {
  padding: var(--spacing-lg);
}

.timeline-day {
  display: none;
}

.timeline-day.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

.day-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.day-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-500);
  opacity: 0.12;
  line-height: 1;
}

.day-info h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.day-info p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.timeline-items {
  padding-left: 12px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-line {
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-500);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary-500), 0 2px 8px rgba(0, 132, 214, 0.3);
  z-index: 1;
}

.timeline-dot.food {
  background: var(--breakfast-color);
  box-shadow: 0 0 0 2px var(--breakfast-color), 0 2px 8px rgba(255, 107, 53, 0.3);
}

.timeline-dot.cafe {
  background: var(--cafe-color);
  box-shadow: 0 0 0 2px var(--cafe-color), 0 2px 8px rgba(121, 85, 72, 0.3);
}

.timeline-dot.shopping {
  background: var(--snack-color);
  box-shadow: 0 0 0 2px var(--snack-color), 0 2px 8px rgba(255, 193, 7, 0.3);
}

.timeline-dot.nightlife {
  background: #7c4dff;
  box-shadow: 0 0 0 2px #7c4dff, 0 2px 8px rgba(124, 77, 255, 0.3);
}

.timeline-dot.end {
  background: var(--gray-500);
  box-shadow: 0 0 0 2px var(--gray-500), 0 2px 8px rgba(107, 114, 128, 0.3);
}

.timeline-time {
  font-size: 0.7rem;
  color: var(--primary-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.timeline-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.timeline-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.timeline-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.timeline-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
}

.timeline-card-info p {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================
   🎯 ATTRACTIONS 
   ============================================ */
.attractions-grid {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.attraction-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.attraction-card:active {
  transform: scale(0.97);
}

.attraction-card-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.attraction-card-visual.temple {
  background: linear-gradient(135deg, #ff9a56, #ff6b35);
}

.attraction-card-visual.ancient {
  background: linear-gradient(135deg, #ffd54f, #ff9800);
}

.attraction-card-visual.theme {
  background: linear-gradient(135deg, #66bb6a, #2e7d32);
}

.attraction-card-visual.island {
  background: linear-gradient(135deg, #26c6da, #00838f);
}

.attraction-card-visual.mountain {
  background: linear-gradient(135deg, #90a4ae, #546e7a);
}

.attraction-card-visual.night {
  background: linear-gradient(135deg, #7c4dff, #304ffe);
}

.attraction-card-visual.beach {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
}

.attraction-card-visual.food {
  background: linear-gradient(135deg, #ef5350, #c62828);
}

.attraction-card-visual.market {
  background: linear-gradient(135deg, #ffb74d, #e65100);
}

.attraction-card-visual.bridge {
  background: linear-gradient(135deg, #ab47bc, #6a1b9a);
}

.attraction-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
}

.attraction-info {
  padding: var(--spacing-md) var(--spacing-lg);
}

.attraction-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.attraction-info p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.45;
}

/* ============================================
   🍜 FOOD / CATEGORY TABS + CARDS
   ============================================ */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: var(--spacing-md) var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  background: white;
  position: sticky;
  top: 64px;
  z-index: 99;
  box-shadow: 0 1px 0 var(--gray-200);
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: white;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.25s ease;
  scroll-snap-align: start;
}

.tab.active {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  box-shadow: 0 4px 12px rgba(0, 132, 214, 0.3);
}

.tab[data-category="an-sang"].active {
  background: var(--breakfast-color);
  border-color: var(--breakfast-color);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tab[data-category="an-vat"].active {
  background: var(--snack-color);
  border-color: var(--snack-color);
  color: var(--gray-800);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.tab[data-category="nha-hang"].active {
  background: var(--restaurant-color);
  border-color: var(--restaurant-color);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.tab[data-category="cafe"].active {
  background: var(--cafe-color);
  border-color: var(--cafe-color);
  box-shadow: 0 4px 12px rgba(121, 85, 72, 0.3);
}

.tab-icon {
  font-size: 1.15rem;
}

.food-count {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.food-cards-grid {
  padding: 0 var(--spacing-lg) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.food-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.food-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.food-card.hidden {
  display: none;
}

.food-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.food-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.food-card-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.food-card-badge.an-sang {
  background: #fff3e0;
  color: var(--breakfast-color);
}

.food-card-badge.an-vat {
  background: #fff8e1;
  color: #f57f17;
}

.food-card-badge.nha-hang {
  background: #fce4ec;
  color: var(--restaurant-color);
}

.food-card-badge.cafe {
  background: #efebe9;
  color: var(--cafe-color);
}

.food-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

/* ---- Star Ratings ---- */
.food-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rating-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-800);
}

.rating-count {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.michelin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #065f46, #10b981);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---- Real Images in Cards ---- */
.attraction-card-visual img,
.highlight-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.attraction-card-visual {
  position: relative;
}

.highlight-card-img {
  position: relative;
}

.attraction-badge {
  z-index: 2;
}

.highlight-time-badge {
  z-index: 2;
}

.food-card-desc {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
}

.food-card-note {
  font-size: 0.78rem;
  padding: 8px 12px;
  background: #fff3e0;
  border-radius: var(--radius-sm);
  color: #e65100;
  margin-bottom: var(--spacing-sm);
  border-left: 3px solid var(--accent-500);
}

.food-card-address {
  font-size: 0.8rem;
  color: var(--primary-500);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.food-card-address:active {
  color: var(--primary-700);
}

.map-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ---- Hotel Section ---- */
.hotel-section {
  padding: 0 0 var(--spacing-2xl);
}

.hotel-card {
  margin: 0 var(--spacing-lg);
  padding: var(--spacing-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.hotel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
}

.hotel-card-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.hotel-card-body {
  flex: 1;
  min-width: 0;
}

.hotel-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hotel-card-address {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-500);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  transition: color 0.2s ease;
}

.hotel-card-address:active {
  color: var(--primary-700);
}

.hotel-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hotel-tag {
  padding: 4px 10px;
  background: var(--primary-50);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-600);
}

.food-card-highlight {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: 4px 10px;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  color: var(--restaurant-color);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.food-card-sub {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.food-card-sub span {
  padding: 3px 10px;
  background: var(--primary-50);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--primary-600);
  font-weight: 500;
}

.food-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--spacing-sm);
}

.tag {
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 500;
}

.food-card-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--spacing-sm);
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================
   🧭 BOTTOM NAV
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--gray-500);
  font-size: 0.62rem;
  font-weight: 500;
  padding: 4px 12px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item.active {
  color: var(--primary-500);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 20px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 0 0 3px 3px;
}

.nav-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.nav-label {
  margin-top: 1px;
}

/* ============================================
   ✨ ANIMATIONS & MOBILE EFFECTS
   ============================================ */

/* --- Core Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

/* --- Page Enter --- */
@keyframes pageEnterSmooth {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page.active {
  animation: pageEnterSmooth 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Scroll-triggered Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entry for cards */
.food-card {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.food-card:nth-child(1) {
  animation-delay: 0s;
}

.food-card:nth-child(2) {
  animation-delay: 0.06s;
}

.food-card:nth-child(3) {
  animation-delay: 0.12s;
}

.food-card:nth-child(4) {
  animation-delay: 0.18s;
}

.food-card:nth-child(5) {
  animation-delay: 0.24s;
}

.food-card:nth-child(6) {
  animation-delay: 0.3s;
}

.food-card:nth-child(n+7) {
  animation-delay: 0.36s;
}

/* Staggered entry for attraction cards */
.attraction-card {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.attraction-card:nth-child(1) {
  animation-delay: 0.05s;
}

.attraction-card:nth-child(2) {
  animation-delay: 0.12s;
}

.attraction-card:nth-child(3) {
  animation-delay: 0.19s;
}

.attraction-card:nth-child(4) {
  animation-delay: 0.26s;
}

.attraction-card:nth-child(5) {
  animation-delay: 0.33s;
}

.attraction-card:nth-child(n+6) {
  animation-delay: 0.4s;
}

/* --- Image Zoom on Hover/Touch --- */
.attraction-card-visual img,
.highlight-card-img img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.attraction-card:active .attraction-card-visual img,
.highlight-card:active .highlight-card-img img {
  transform: scale(1.06);
}

/* --- Touch Bounce Effect --- */
.quick-card,
.timeline-card,
.must-try-item,
.food-card,
.attraction-card,
.highlight-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
  will-change: transform;
}

.quick-card:active,
.must-try-item:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-md);
}

.food-card:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.attraction-card:active {
  transform: scale(0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.highlight-card:active {
  transform: scale(0.96);
}

.timeline-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- Bottom Nav Touch Effect --- */
.nav-item {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:active {
  transform: scale(0.88);
}

.nav-item.active .nav-icon {
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Tab Switch Animation --- */
.tab {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab:active {
  transform: scale(0.94);
}

/* --- Day Tab Spring Effect --- */
.day-tab {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.day-tab:active {
  transform: scale(0.94);
}

/* --- CTA Button Pulse --- */
.hero-cta {
  animation: fadeInUp 0.6s ease 0.8s both;
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

.hero-cta:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 132, 214, 0.3);
}

/* --- Highlight Scroll Momentum --- */
.highlight-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* --- Food card hidden/shown transition --- */
.food-card.hidden {
  display: none;
}

/* --- Smooth image loading --- */
.attraction-card-visual img,
.highlight-card-img img {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* --- Timeline stagger --- */
.timeline-item:nth-child(1) {
  animation: fadeInUp 0.4s 0.1s both;
}

.timeline-item:nth-child(2) {
  animation: fadeInUp 0.4s 0.2s both;
}

.timeline-item:nth-child(3) {
  animation: fadeInUp 0.4s 0.3s both;
}

.timeline-item:nth-child(4) {
  animation: fadeInUp 0.4s 0.4s both;
}

.timeline-item:nth-child(5) {
  animation: fadeInUp 0.4s 0.5s both;
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }

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

  .food-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .food-card.hidden {
    display: none !important;
  }

  .attractions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .highlight-card {
    flex: 0 0 320px;
  }
}

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

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

  .hero-content,
  .quick-access,
  .highlights,
  .must-try,
  .timeline-container,
  .attractions-grid,
  .food-cards-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   💰 EXPENSE / CHI PHÍ PAGE
   ============================================ */

/* Key Gate */
.expense-key-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  margin: -1px -0px 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.expense-key-gate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  animation: floatBg 8s ease-in-out infinite;
}

@keyframes floatBg {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

.key-gate-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 28px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  max-width: 340px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.key-gate-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  animation: lockBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes lockBounce {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-6px) rotate(-3deg);
  }

  75% {
    transform: translateY(-3px) rotate(2deg);
  }
}

.key-gate-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.key-gate-card>p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: var(--spacing-xl);
}

.key-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-input-wrap input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
  background: var(--gray-50);
  color: var(--gray-900);
  box-sizing: border-box;
}

.key-input-wrap input:focus {
  border-color: #764ba2;
  background: white;
  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.12);
}

.key-input-wrap input::placeholder {
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
}

.key-input-wrap button {
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.key-input-wrap button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
  background-size: 200% 100%;
}

.key-input-wrap button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(118, 75, 162, 0.4);
}

.key-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--spacing-md);
  min-height: 1.2em;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* Expense Content */
.expense-content {
  padding-bottom: var(--spacing-2xl);
}

.expense-summary {
  padding: var(--spacing-lg);
}

.summary-total-card {
  background: linear-gradient(135deg, var(--primary-500), #7c3aed);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 132, 214, 0.3);
}

.summary-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.summary-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.summary-per-person {
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* Form */
.expense-form-section,
.expense-breakdown-section,
.expense-settlement-section,
.expense-list-section {
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.expense-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

.expense-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.expense-form input[type="text"],
.expense-form input[type="number"],
.expense-form select {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}

.expense-form input:focus,
.expense-form select:focus {
  border-color: var(--primary-500);
}

.split-options {
  display: flex;
  gap: var(--spacing-sm);
}

.split-radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.split-radio:has(input:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-600);
}

.split-radio input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary-500);
}

.split-custom-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-check {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.member-check:has(input:checked) {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.member-check input {
  width: 12px;
  height: 12px;
  accent-color: var(--primary-500);
}

.expense-submit-btn {
  padding: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: var(--spacing-xs);
}

.expense-submit-btn:active {
  transform: scale(0.97);
}

/* Per-person breakdown */
.person-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-row {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gray-300);
}

.person-row.positive {
  border-left-color: #10b981;
}

.person-row.negative {
  border-left-color: #ef4444;
}

.person-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.person-detail {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.person-net {
  font-size: 0.8rem;
  font-weight: 700;
}

.person-net.positive {
  color: #10b981;
}

.person-net.negative {
  color: #ef4444;
}

.person-net.zero {
  color: var(--gray-500);
}

/* Expense list */
.expense-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-empty {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  padding: var(--spacing-xl);
}

.expense-item {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}

.expense-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.expense-item-desc {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.expense-item-amount {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-500);
}

.expense-item-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.7rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.expense-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  font-size: 0.75rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 4px;
}

.expense-delete-btn:active {
  opacity: 1;
}

/* =========================================
   QR MODAL (TUẤN)
   ========================================= */

.person-qr-btn {
  background: linear-gradient(135deg, var(--primary-500), #7c3aed);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0, 132, 214, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.person-qr-btn:active {
  transform: scale(0.95);
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.qr-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 340px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
}

.qr-modal-content h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.qr-subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--spacing-lg);
}

.qr-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gray-100);
  margin: 0 auto;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hiệu ứng cắt ảnh lấy mã qr: zoom center để vào khung QR */
  object-position: center 40%;
  transform: scale(1.15);
}

/* =========================================
   SETTLEMENT (PHƯƠNG ÁN THANH TOÁN)
   ========================================= */

.expense-settlement-section {
  margin-top: var(--spacing-2xl);
}

.settlement-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.settlement-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.settlement-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #f093fb, #f5576c);
}

.settlement-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.from-avatar {
  background: #f5576c;
}

.to-avatar {
  background: #10b981;
}

.s-arrow {
  color: var(--gray-400);
  font-size: 0.8rem;
}

.settlement-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settle-names {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.settle-names strong {
  color: var(--gray-900);
}

.settle-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-500);
  letter-spacing: -0.5px;
}

.settle-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.settle-btn:active {
  transform: scale(0.95);
}