:root {
  --brand-primary: #FF5A5F;
  --text-main: #2D3748;
  --text-light: #718096;
  --bg-color: #F7FAFC;
  --surface: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: #E2E8F0;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--surface);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.logo-area h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(90deg, #FF5A5F, #B14BF4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-area .subtitle {
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 700;
  margin-top: 4px;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  margin-right: 12px;
}

.profile-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  stroke: var(--text-main);
}

.profile-name {
  font-size: 12px;
  font-weight: 600;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 10px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: 12px;
}

.nav-item:hover {
  background-color: var(--bg-color);
}

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

.nav-item .icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.mockup-nav {
  justify-content: space-evenly;
  padding: 12px 10px;
}

.mockup-nav .nav-item {
  gap: 4px;
}

.mockup-nav .nav-item .icon {
  width: 24px;
  height: 24px;
}

.mockup-nav .nav-item .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.inline-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  stroke: currentColor;
  display: inline-block;
  margin-top: -3px;
  margin-right: 4px;
}

.nav-item .label {
  font-size: 11px;
  font-weight: 600;
}

/* Main Screens */
.screen {
  flex: 1;
  padding: 20px;
  display: block;
}

.screen.hidden {
  display: none !important;
}

/* Screen 1: Banner */
.main-banner {
  background: linear-gradient(90deg, #FF5A5F, #B14BF4);
  border-radius: var(--radius-md);
  padding: 40px 24px 32px;
  color: white;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.main-banner h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-banner p {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.banner-text {
  flex: 1;
}

.ai-consult-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ai-consult-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.ai-consult-btn svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.ai-consult-btn span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .main-banner h2 {
    font-size: 17px;
  }
  .main-banner p {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .ai-consult-btn {
    padding: 8px 10px;
  }
  .ai-consult-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 768px) {
  .ai-consult-btn {
    position: absolute;
    top: 16px;
    bottom: 16px;
    right: 24px;
    width: 100px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .ai-consult-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  
  .ai-consult-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
  
  .ai-consult-btn span {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-sm);
}

/* Question Form */
.question-group {
  margin-bottom: 28px;
}

.question-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-btn {
  background: var(--surface);
  border: 2px solid var(--border-color);
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-btn.active {
  border-color: var(--brand-primary);
  background: rgba(255, 90, 95, 0.05);
  color: var(--brand-primary);
}

/* Screen 2: Results */
.results-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-result {
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.card {
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  position: relative;
}

.card-image .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: white;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dest-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.dest-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.price-estimate {
  background: rgba(255, 90, 95, 0.1);
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--border-color);
}

.day-label {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--brand-primary);
  position: relative;
}

.day-label::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

.time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.spot-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.spot-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.spot-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.spot-img:hover {
  transform: scale(1.02);
}

.other-candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.small-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.small-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 8px;
  display: inline-block;
}

.small-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.small-card p {
  font-size: 11px;
  color: var(--text-light);
}

.bottom-filters {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 12px 0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background: var(--bg-color);
}

.secondary-btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: var(--bg-color);
}

/* Primary CTA Button */
.primary-cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 32px;
}

.primary-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.5);
}

.primary-cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 90, 95, 0.4);
}

footer {
  margin-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

footer p {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

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

/* --- New Additions for Proposal 1 & 2 --- */

/* Weather Badge */
.weather-badge {
  font-size: 11px;
  font-weight: 700;
  background: #EBF8FF;
  color: #3182CE;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

/* Price Breakdown */
.price-breakdown-box {
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.total-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.total-price-row .label { font-size: 13px; font-weight: 700; }
.total-price-row .price { font-size: 18px; font-weight: 800; color: var(--brand-primary); }

.breakdown-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

/* Flight Timeline Item */
.flight-item::before {
  background: #3182CE !important;
}
.flight-item .spot-title { color: #3182CE; }

/* Booking Action Button */
.book-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #2D3748;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  margin-top: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.book-action-btn:hover {
  background: #1A202C;
  transform: translateY(-2px);
}

/* My Page / Booking Updates */
.section-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.upcoming-trip-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.trip-card-header {
  background: var(--bg-color);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.status-badge {
  background: #48BB78;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
}
.trip-date { font-size: 12px; color: var(--text-main); font-weight: 700; }

.upcoming-trip-card h3 {
  padding: 16px 16px 8px;
  font-size: 18px;
  font-weight: 800;
}

.ticket-info {
  padding: 0 16px 16px;
}
.ticket-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.ticket-row:last-child { border-bottom: none; padding-bottom: 0; }
.t-icon { font-size: 18px; }
.t-details { font-size: 13px; line-height: 1.5; }
.t-meta { font-size: 11px; color: var(--text-light); margin-top: 4px; }

.qr-code-area {
  padding: 12px 16px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
}
.qr-btn {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s;
}
.qr-btn:hover { background: #E2E8F0; }

.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.h-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}
.h-info { flex: 1; }
.h-info h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.h-info p { font-size: 11px; color: var(--text-light); font-weight: 600; }
.h-price { font-size: 14px; font-weight: 700; color: var(--text-main); }

/* --- New Additions for Proposal 3 & 4 (Collaborative & Custom AI) --- */

/* Share Action Button */
.share-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.share-action-btn:hover { background: var(--bg-color); }

/* Chat Screen */
.msg-row { display: flex; gap: 12px; margin-bottom: 8px; }
.msg-row.my-msg { flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; color: white; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.msg-bubble { background: white; padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; box-shadow: var(--shadow-sm); max-width: 80%; }
.my-msg .msg-bubble { background: var(--brand-primary); color: white; border-bottom-right-radius: 4px; }
.ai-msg .msg-bubble { border-top-left-radius: 4px; border: 1px solid rgba(255, 90, 95, 0.2); }
.friend-msg .msg-bubble { border-top-left-radius: 4px; }

.chat-action-btn { background: var(--brand-primary); color: white; border: none; padding: 8px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.chat-action-btn.outline { background: white; color: var(--brand-primary); border: 1px solid var(--brand-primary); }

/* My Travel AI */
.ai-persona-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 16px; box-shadow: var(--shadow-sm); }
.ai-desc { font-size: 12px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ai-tag { background: rgba(255, 90, 95, 0.1); color: var(--brand-primary); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.ai-edit-btn { width: 100%; padding: 12px; background: white; border: 1px dashed var(--border-color); border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: all 0.2s; }
.ai-edit-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* --- New Additions for Proposal 1-4 Details --- */

/* Favorite Button */
.favorite-btn { background: none; border: none; color: var(--text-light); cursor: pointer; padding: 4px; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.favorite-btn:hover { color: #FF8A8E; }
.favorite-btn.active { color: #FF416C; }
.favorite-btn.active .heart-icon { fill: #FF416C; animation: heartBurst 0.4s ease forwards; }
@keyframes heartBurst { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Toast */
.toast-container { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: rgba(45, 55, 72, 0.95); color: white; padding: 12px 24px; border-radius: 24px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(20px); opacity: 0; animation: toastEnter 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.toast.hide { animation: toastExit 0.3s ease forwards; }
@keyframes toastEnter { to { transform: translateY(0); opacity: 1; } }
@keyframes toastExit { to { transform: translateY(-10px); opacity: 0; } }

/* Modal & Bottom Sheet */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: flex-end; opacity: 1; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-overlay.hidden .bottom-sheet { transform: translateY(100%); }
.bottom-sheet { width: 100%; background: white; border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 24px 20px 32px; transform: translateY(0); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.1); max-width: 480px; margin: 0 auto; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sheet-header h3 { font-size: 18px; font-weight: 800; }
.close-modal-btn { background: none; border: none; font-size: 24px; color: var(--text-light); cursor: pointer; }
.sheet-desc { font-size: 12px; color: var(--text-light); margin-bottom: 24px; line-height: 1.5; }

.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.setting-item:last-of-type { border-bottom: none; }
.s-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.s-info p { font-size: 11px; color: var(--text-light); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E0; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--brand-primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* ===============================
   My Page (Booking & History)
   =============================== */
.upcoming-trip-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.trip-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.status-badge {
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.trip-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.trip-dest {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}
.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.ticket-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.t-icon {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--brand-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.t-details {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
}
.t-details strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.t-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.qr-code-area {
  text-align: center;
}
.qr-btn {
  background: var(--text-main);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.qr-btn:active {
  opacity: 0.8;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.h-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-color);
}
.h-info {
  flex: 1;
}
.h-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}
.h-info p {
  font-size: 11px;
  color: var(--text-light);
}
.h-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* ===============================
   Desktop Responsive Layout
   =============================== */
@media (min-width: 768px) {
  .app-container {
    max-width: 860px;
    margin: 40px auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-height: calc(100vh - 80px);
  }

  .app-header {
    border-bottom: none;
    position: static;
    padding: 32px 40px 0;
  }

  .top-nav {
    position: static;
    justify-content: center;
    gap: 16px;
    padding: 16px 40px 24px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-item {
    flex-direction: row;
    padding: 12px 24px;
    border-radius: 24px;
  }

  .nav-item .label {
    font-size: 14px;
  }

  .screen {
    padding: 40px;
  }

  /* Home screen: 2-column layout */
  .result-card .card-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
  }
  
  .card-left-pane {
    position: sticky;
    top: 40px;
  }

  /* Search screen: 3-column layout (better fit for 860px) */
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* MyPage screen: 2-column layout */
  #mypage-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    align-content: start;
  }

  #mypage-screen .mypage-header {
    grid-column: 1 / -1;
  }

  #mypage-screen .mypage-col:nth-child(3) .section-title {
    margin-top: 0 !important;
  }

  /* Booking Portal Modal */
  .bottom-sheet {
    border-radius: var(--radius-md);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
  }

  .modal-overlay:not(.hidden) .bottom-sheet {
    transform: scale(1);
    transform-origin: center;
  }

  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
}

/* ===============================
   Settings Screen (Light Theme)
   =============================== */
.settings-layout {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 0;
  height: 100%;
}

.settings-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background-color: var(--surface);
  z-index: 10;
}

.settings-header .back-btn {
  background: none;
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-color);
}

.settings-header .back-btn svg {
  width: 20px;
  height: 20px;
}

.settings-header h2 {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  margin-right: 36px;
}

.settings-content {
  overflow-y: auto;
  height: calc(100vh - 69px);
  background-color: var(--bg-color);
}

.settings-section {
  border-bottom: 8px solid var(--border-color);
  background-color: var(--surface);
}

.settings-section:not(:first-child) {
  border-top: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 8px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.section-header .meta-logo {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  background-color: var(--surface);
  transition: background-color 0.2s;
}

.settings-item:hover {
  background-color: var(--bg-color);
}

.item-icon {
  width: 28px;
  height: 28px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-main);
}

.item-body {
  flex: 1;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.item-subtitle {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.item-right-text {
  font-size: 14px;
  color: var(--text-light);
  margin-right: 8px;
}

.item-arrow {
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.item-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===============================
   Discount Screen
   =============================== */
.discount-layout .screen-header {
  margin-bottom: 24px;
}

.discount-layout .screen-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.discount-layout .screen-header p {
  font-size: 13px;
  color: var(--text-light);
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coupon-card {
  display: flex;
  background: var(--surface);
  border: 2px dashed var(--brand-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.coupon-card::before, .coupon-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: var(--bg-color);
  border-radius: 50%;
  transform: translateY(-50%);
  border: 2px dashed var(--brand-primary);
}

.coupon-card::before {
  left: -10px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.coupon-card::after {
  right: -10px;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-top-color: transparent;
}

.coupon-left {
  background: rgba(255, 90, 95, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px dashed rgba(255, 90, 95, 0.3);
  min-width: 100px;
}

.discount-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
  line-height: 1.1;
}

.discount-amount small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.coupon-right {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coupon-right h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.coupon-right p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
}

.use-coupon-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.use-coupon-btn:hover {
  opacity: 0.9;
}

/* ===============================
   SNS Screen
   =============================== */
.sns-layout .screen-header {
  margin-bottom: 24px;
}

.sns-layout .screen-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sns-layout .screen-header p {
  font-size: 13px;
  color: var(--text-light);
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.sns-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sns-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--border-color);
  overflow: hidden;
}

.sns-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sns-card:hover .sns-image img {
  transform: scale(1.05);
}

.sns-content {
  padding: 12px;
}

.sns-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sns-user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.sns-user span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.sns-content p {
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sns-tags span {
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 600;
}

/* ===============================
   Version Indicator
   =============================== */
.version-indicator {
  text-align: right;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 24px;
  opacity: 0.6;
  font-family: monospace;
}

/* ===============================
   Free Word Search
   =============================== */
.search-input-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
}

#free-word-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-color);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#free-word-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
}

.search-suggestions {
  margin-bottom: 32px;
}

.suggestions-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* ===============================
   Chat Room Mockup
   =============================== */
.chat-room-mockup {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-color);
}

.chat-message {
  display: flex;
  max-width: 95%;
  gap: 8px;
}

.chat-message.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.ai-msg {
  align-self: flex-start;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-msg .msg-bubble {
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-msg .msg-bubble {
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.ai-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #FF5A5F, #B14BF4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.ai-avatar svg {
  width: 14px;
  height: 14px;
  color: white;
}

.chat-input-area {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: white;
  border-top: 1px solid var(--border-color);
}

.chat-input-area input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  background: var(--bg-color);
  color: var(--text-main);
}

.chat-input-area .send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(255, 90, 95, 0.2);
}

.chat-input-area .send-btn svg {
  width: 18px;
  height: 18px;
  margin-left: -2px;
}

.chat-message.friend-msg {
  align-self: flex-start;
}

.friend-msg .msg-bubble {
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.friend-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 4px;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
