/* ============================================================
   Dragon Travel AI — Dark Mode Styles
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Views */
.view { display: none; }
.view.active { display: flex; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-container {
  margin: auto;
  width: 100%;
  max-width: 420px;
  padding: 40px 24px;
}

.brand {
  text-align: center;
  margin-bottom: 48px;
}

.logo {
  font-size: 4rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.auth-form { width: 100%; }

.input-group {
  margin-bottom: 16px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  display: block;
  text-align: center;
  width: 100%;
}

.btn-link:hover { color: var(--accent-light); }

.otp-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 20px;
}

.otp-info strong { color: var(--accent-light); }

#otp-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.error-msg {
  color: #f87171;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

.hidden { display: none !important; }

/* ============================================================
   DASHBOARD
   ============================================================ */
#dashboard-view {
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 15, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
}

.topbar-brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.dashboard {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-card {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--accent-light);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CHAT
   ============================================================ */
#chat-view {
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

.chat-topbar {
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-welcome {
  margin: auto;
  text-align: center;
  padding: 48px 24px;
  opacity: 0.7;
}

.chat-welcome-icon { font-size: 3rem; margin-bottom: 16px; }
.chat-welcome h3 { font-size: 1.3rem; margin-bottom: 8px; }
.chat-welcome p { color: var(--text-muted); font-size: 0.95rem; }

.chat-bubble {
  max-width: 720px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.65;
  word-wrap: break-word;
  animation: fadeIn 0.2s ease-out;
}

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

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.assistant strong { color: var(--accent-light); }
.chat-bubble.assistant a { color: var(--accent-light); text-decoration: underline; }
.chat-bubble.assistant ul, .chat-bubble.assistant ol { padding-left: 20px; margin: 8px 0; }
.chat-bubble.assistant li { margin-bottom: 4px; }
.chat-bubble.assistant h1, .chat-bubble.assistant h2, .chat-bubble.assistant h3 {
  font-size: 1.05rem; font-weight: 600; margin: 12px 0 6px;
}
.chat-bubble.assistant p { margin-bottom: 8px; }
.chat-bubble.assistant p:last-child { margin-bottom: 0; }
.chat-bubble.assistant code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chat-typing span {
  width: 8px; height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-bar {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.9);
  backdrop-filter: blur(12px);
}

.chat-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.chat-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-form input::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 48px; height: 48px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.1s;
}

.chat-send-btn:hover { opacity: 0.85; }
.chat-send-btn:active { transform: scale(0.95); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-card-active {
  opacity: 1 !important;
  cursor: pointer !important;
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.btn-card-active:hover {
  opacity: 0.9 !important;
  transform: scale(1.02);
}

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
.view {
  animation: viewFadeIn 0.3s ease-out;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ============================================================
   DESTINATIONS
   ============================================================ */
#destinations-view {
  flex-direction: column;
  min-height: 100vh;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.dest-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.dest-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.dest-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
}

.dest-card-flag {
  font-size: 2rem;
  margin-bottom: 8px;
}

.dest-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dest-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  line-height: 1.4;
}

.dest-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dest-card-price {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
}

.dest-card-price span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.btn-dest-explore {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-dest-explore:hover { opacity: 0.85; }

/* ============================================================
   HOT DEALS
   ============================================================ */
#deals-view {
  flex-direction: column;
  min-height: 100vh;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.deal-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

.deal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.deal-dest {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.deal-route {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.deal-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.deal-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.deal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #34d399;
}

.deal-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.deal-timer-icon { font-size: 1rem; }

/* ============================================================
   MY TRIPS
   ============================================================ */
#trips-view {
  flex-direction: column;
  min-height: 100vh;
}

.trips-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.trips-empty-art {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.5;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.trips-empty h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.trips-empty p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.trips-cta {
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
#admin-view, #profile-view {
  flex-direction: column;
  min-height: 100vh;
}

.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  text-align: center;
  backdrop-filter: blur(8px);
}

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

.admin-stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.admin-section {
  margin-bottom: 32px;
}

.admin-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.admin-invite-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.admin-invite-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-invite-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-invite-btn {
  width: auto !important;
  padding: 12px 24px !important;
  white-space: nowrap;
}

.admin-msg {
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
  color: #34d399;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.admin-user-email {
  font-size: 0.9rem;
}

.admin-user-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-user-badge.admin {
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-light);
}

.admin-user-badge.invited {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.admin-user-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-remove {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-icon {
  font-size: 1.1rem;
  padding: 6px 10px !important;
  line-height: 1;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-card {
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.profile-field {
  margin-bottom: 24px;
}

.profile-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-email-display {
  font-size: 0.95rem;
  color: var(--accent-light);
  padding: 12px 0;
}

.profile-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.profile-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-toggle-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.toggle-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.toggle-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.toggle-btn.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
  font-weight: 600;
}

.profile-save-btn {
  margin-top: 8px;
}

/* ============================================================
   TRIP CARDS & MODAL
   ============================================================ */
.trips-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.trip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.trip-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

.trip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trip-card-dest {
  font-size: 1.2rem;
  font-weight: 700;
}

.trip-card-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-card-badge.planned { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.trip-card-badge.booked { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.trip-card-badge.completed { background: rgba(124, 58, 237, 0.15); color: var(--accent-light); }

.trip-card-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trip-card-budget {
  font-size: 1.1rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 8px;
}

.trip-card-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-card-actions {
  display: flex;
  gap: 8px;
}

.trip-card-actions button {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

.trip-card-actions button:hover { border-color: var(--accent); color: var(--accent-light); }

.trip-card-actions .btn-trip-delete:hover { border-color: #ef4444; color: #f87171; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #0e0e1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.trip-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trip-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

/* Save as Trip button in chat */
.btn-save-trip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-trip:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent);
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(7, 7, 15, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
  transition: color 0.2s;
}

.bottom-nav-icon { font-size: 1.3rem; }
.bottom-nav-label { font-weight: 500; }

.bottom-nav-item.active {
  color: var(--accent-light);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: var(--text);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: toastIn 0.3s ease-out forwards;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.toast-success {
  border-color: rgba(52, 211, 153, 0.3);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }

.skeleton-bubble {
  height: 60px;
  max-width: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skeleton-bubble.right { align-self: flex-end; max-width: 200px; }

.fade-in {
  animation: contentFadeIn 0.4s ease-out;
}

@keyframes contentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   CONVERSATION SIDEBAR
   ============================================================ */
.conv-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: rgba(10, 10, 20, 0.98);
  border-right: 1px solid var(--border);
  z-index: 15;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.conv-sidebar.open {
  transform: translateX(0);
}

.conv-sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 14;
}

.conv-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.conv-sidebar-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.conv-new-btn {
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
}

.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.conv-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 4px;
}

.conv-item:hover {
  background: var(--bg-card-hover);
}

.conv-item.active {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.conv-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.conv-toggle-btn {
  position: absolute;
  top: 60px;
  left: 8px;
  z-index: 13;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.conv-toggle-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.conv-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   DESTINATION DETAIL
   ============================================================ */
#dest-detail-view {
  flex-direction: column;
  min-height: 100vh;
}

.dest-detail-hero {
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.dest-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.15;
  z-index: 0;
}

.dest-detail-hero * { position: relative; z-index: 1; }

.dest-detail-hero .dest-flag { font-size: 3.5rem; margin-bottom: 12px; }
.dest-detail-hero h2 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.dest-detail-hero .dest-highlight { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.dest-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dest-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.dest-info-item .info-icon { font-size: 1.5rem; margin-bottom: 8px; }
.dest-info-item .info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.dest-info-item .info-value { font-size: 0.95rem; font-weight: 600; }

.dest-section {
  margin-bottom: 32px;
}

.dest-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.dest-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.dest-list-item .item-num {
  background: var(--gradient);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dest-budget-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dest-budget-table th, .dest-budget-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.dest-budget-table th {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dest-budget-table td { font-size: 0.95rem; }
.dest-budget-table tr:last-child td { border-bottom: none; }
.dest-budget-table .budget-val { color: #34d399; font-weight: 600; }

.dest-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.dest-detail-actions .btn-primary { max-width: 300px; }

.dest-detail-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.dest-detail-loading .spinner-large {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

/* ============================================================
   BUDGET CALCULATOR
   ============================================================ */
#budget-view {
  flex-direction: column;
  min-height: 100vh;
}

.budget-calculator {
  max-width: 600px;
}

.budget-inputs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.budget-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.budget-select option { background: #0e0e1a; color: var(--text); }

.budget-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin-top: 8px;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.budget-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.budget-row:last-child { border-bottom: none; }
.budget-row .budget-label { color: var(--text-muted); }
.budget-row .budget-amount { font-weight: 600; }
.budget-row.budget-total { background: rgba(124, 58, 237, 0.08); }
.budget-row.budget-total .budget-label { color: var(--text); font-weight: 600; }
.budget-row.budget-total .budget-amount { color: #34d399; font-size: 1.2rem; font-weight: 700; }

.budget-save-btn { max-width: 300px; }

/* ============================================================
   SMART SEARCH
   ============================================================ */
.dest-search-bar {
  margin-bottom: 24px;
}

.dest-search-bar .profile-input {
  font-size: 1rem;
  padding: 14px 20px;
  margin-bottom: 12px;
}

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

.dest-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s;
}

.dest-tag:hover { border-color: var(--accent); color: var(--accent-light); }
.dest-tag.active { background: rgba(124, 58, 237, 0.15); border-color: var(--accent); color: var(--accent-light); font-weight: 600; }

.dest-card.hidden-by-search { display: none; }

/* Desktop sidebar always visible */
@media (min-width: 769px) {
  #chat-view {
    position: relative;
  }
  .conv-sidebar {
    position: relative;
    transform: translateX(0);
    flex-shrink: 0;
  }
  .conv-sidebar-overlay { display: none !important; }
  .conv-toggle-btn { display: none; }
  #chat-view .chat-topbar,
  #chat-view .chat-messages,
  #chat-view .chat-input-bar {
    /* these stay in the flex flow */
  }
  #chat-view {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #chat-view .chat-topbar {
    width: 100%;
    order: -1;
  }
  .conv-sidebar {
    order: 0;
    height: calc(100vh - 57px);
  }
  #chat-view .chat-messages {
    flex: 1;
    order: 1;
    min-width: 0;
    height: calc(100vh - 57px - 80px);
  }
  #chat-view .chat-input-bar {
    flex: 1;
    order: 2;
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .topbar-right .btn-ghost:not(.btn-icon),
  .topbar-right .btn-icon,
  .topbar-right .user-email { display: none; }
  /* Add padding for bottom nav */
  .site-footer,
  .dashboard { padding-bottom: 80px; }
  #chat-view .chat-input-bar { padding-bottom: calc(12px + 64px); }
  .toast-container { bottom: 80px; right: 16px; left: 16px; }
  /* Hide bottom nav on login */
  #login-view.active ~ .mobile-bottom-nav { display: none; }
}

/* ============================================================
   WEATHER BADGES
   ============================================================ */
.weather-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  z-index: 3;
  cursor: default;
}

/* Weather Detail */
.weather-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.weather-detail-item { text-align: center; }
.weather-big { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.weather-stat { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.weather-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Currency Converter */
.currency-display {
  font-size: 1.2rem;
  margin: 12px 0 16px;
  color: var(--accent-light);
}
.currency-converter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.currency-input { max-width: 120px !important; }
.currency-label { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.currency-result { font-weight: 600; font-size: 1.05rem; color: var(--accent-light); }

/* Trip Export/Share Buttons */
.btn-trip-export, .btn-trip-share {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--accent-light);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-trip-export:hover, .btn-trip-share:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
}

/* Share Modal */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.share-modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 100%;
}
.share-link-row {
  display: flex;
  gap: 8px;
}
.share-link-input {
  flex: 1;
  font-size: 0.85rem !important;
}
.share-copy-btn {
  white-space: nowrap;
  padding: 10px 16px !important;
}

/* ============================================================
   TRIP DETAIL — Status Bar, Expenses, Pie Chart
   ============================================================ */
.trip-detail-header { margin-bottom: 24px; }
.trip-detail-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.trip-detail-title-row h2 { font-size: 1.8rem; font-weight: 700; }
.trip-detail-dates { color: var(--text-muted); font-size: 0.95rem; }
.dest-link { color: var(--accent-light); text-decoration: none; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.dest-link:hover { text-decoration: underline; }
.dest-clickable { cursor: pointer; color: var(--accent-light); transition: color 0.2s; }
.dest-clickable:hover { text-decoration: underline; }

/* Status Bar */
.status-bar {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px; flex-wrap: wrap; justify-content: center;
}
.status-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); background: transparent; flex-shrink: 0; transition: all 0.3s; }
.status-step.done .status-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.status-step.current .status-dot { background: var(--accent-light); border-color: var(--accent-light); box-shadow: 0 0 12px var(--accent-glow); }
.status-step.done { color: var(--text); }
.status-step.current { color: var(--accent-light); font-weight: 600; }
.status-line { width: 32px; height: 2px; background: var(--border); margin: 0 8px; flex-shrink: 0; }

/* Timeline */
.trip-timeline { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.timeline-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; }
.timeline-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }

/* Expense Summary */
.expense-summary-row { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.expense-total-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 32px; text-align: center; min-width: 180px; backdrop-filter: blur(8px);
}
.expense-total-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.expense-total-amount { font-size: 2rem; font-weight: 700; color: #34d399; }

/* Pie Chart */
.expense-pie-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; flex: 1; min-width: 280px; backdrop-filter: blur(8px);
}
.pie-chart { width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0; }
.pie-legend { display: flex; flex-direction: column; gap: 6px; }
.pie-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.pie-legend-color { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* Budget Comparison Bar */
.budget-comparison { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.budget-comp-header { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 12px; }
.budget-ok { color: #34d399; font-weight: 600; }
.budget-over { color: #f87171; font-weight: 600; }
.budget-bar-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.budget-bar-fill { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 0.5s ease; }
.budget-bar-fill.over { background: linear-gradient(135deg, #ef4444, #f97316); }
.budget-comp-footer { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; text-align: right; }

/* Expense Actions */
.expense-actions-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.expense-actions-row h3 { font-size: 1.1rem; font-weight: 700; }

/* Expense Groups & Items */
.expense-group { margin-bottom: 16px; }
.expense-group-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: rgba(124,58,237,0.06); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border); border-bottom: none; font-weight: 600; font-size: 0.9rem;
}
.expense-group-total { color: #34d399; }
.expense-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border: 1px solid var(--border); border-top: none;
  background: var(--bg-card); font-size: 0.85rem;
}
.expense-item:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.expense-item-info { display: flex; flex-direction: column; gap: 2px; }
.expense-desc { color: var(--text); }
.expense-date { color: var(--text-muted); font-size: 0.75rem; }
.expense-item-right { display: flex; align-items: center; gap: 10px; }
.expense-amount { font-weight: 600; white-space: nowrap; }
.btn-expense-delete {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
  padding: 2px 6px; border-radius: 4px; transition: all 0.2s;
}
.btn-expense-delete:hover { color: #f87171; background: rgba(239,68,68,0.1); }

/* Trip Detail Notes */
.trip-detail-notes { margin-top: 24px; }
.trip-detail-notes h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.trip-detail-notes p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; }

/* Trip card expenses badge */
.trip-card-expenses { font-size: 0.9rem; color: #34d399; font-weight: 600; margin-bottom: 8px; }
.trip-card { cursor: pointer; }

/* City link in chat */
.city-link { color: var(--accent-light); text-decoration: underline; cursor: pointer; font-weight: 500; }
.city-link:hover { color: #c4b5fd; }

/* Budget dest detail link */
.budget-dest-detail-link {
  display: inline-block; margin-top: 8px; font-size: 0.85rem;
  color: var(--accent-light); text-decoration: none; transition: color 0.2s;
}
.budget-dest-detail-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .login-container { padding: 32px 16px; }
  .brand h1 { font-size: 1.5rem; }
  .logo { font-size: 3rem; }
  .dashboard { padding: 32px 16px; }
  .dashboard-header h2 { font-size: 1.4rem; }
  .topbar { padding: 12px 16px; }
  .user-email { display: none; }
  .chat-messages { padding: 16px; }
  .chat-input-bar { padding: 12px 16px; }
  .chat-bubble { max-width: 90%; }
}
