/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core palette - Vibrant Tropical Travel Vibes */
  --primary: #0284c7;      /* Ocean Blue */
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.08);
  --accent: #f97316;       /* Sunset Orange */
  --accent-light: #fdba74;
  --accent-dark: #c2410c;
  --success: #059669;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Background tones - Light & Airy */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-heavy: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --bg-hover: rgba(2, 132, 199, 0.05);
  --bg-input: rgba(255, 255, 255, 0.95);

  /* Text - High contrast */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #0284c7;

  /* Borders - Soft & subtle */
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(2, 132, 199, 0.25);
  --border-focus: rgba(2, 132, 199, 0.4);

  /* Shadows - Elegant & lifted */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(2, 132, 199, 0.15);

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0284c7, #0ea5e9, #38bdf8);
  --gradient-accent: linear-gradient(135deg, #f97316, #fb923c);
  --gradient-ocean: linear-gradient(135deg, #0ea5e9, #0284c7);
  --gradient-sunset: linear-gradient(135deg, #f97316, #ec4899);
  --gradient-aurora: linear-gradient(135deg, #10b981, #0ea5e9, #8b5cf6);
  --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.85));

  /* Font */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(249, 115, 22, 0.03) 0%, transparent 40%);
}

a { color: var(--text-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding-top: 80px;
  min-height: 100vh;
}

.page-header {
  padding: 40px 0 24px;
}

.page-header h1 {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 1.05rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 20px; gap: 20px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
}

/* === FEED 3-COLUMN LAYOUT === */
.feed-layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  grid-gap: 24px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.feed-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  color: var(--primary-light);
  background: var(--primary-glow);
}

.sidebar-widget {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1024px) {
  .feed-layout { grid-template-columns: 240px 1fr; }
  .feed-sidebar.right { display: none; }
}

@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar.left { display: none; }
}

/* === CARDS === */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

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

/* === MICRO-ANIMATIONS === */
@keyframes heart-burst {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.btn:active {
  transform: scale(0.96) !important;
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* === PROFILE VISUAL REDESIGN === */
.profile-cover-immersive {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.profile-cover-immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.timeline-route-node {
  transition: all var(--transition-normal);
}
.timeline-route-node:hover {
  transform: translateX(4px);
  border-color: var(--primary) !important;
}

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

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.travel-personality {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(16, 185, 129, 0.05));
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === INPUTS === */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.85); /* Light translucent background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand span.globe { font-size: 1.5rem; -webkit-text-fill-color: initial; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-links a:hover, .navbar-links a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.navbar-links a.active {
  color: var(--primary-light);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.navbar-avatar:hover { border-color: var(--primary-light); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }
}

/* === AVATAR === */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; }
.avatar-xxl { width: 128px; height: 128px; border-width: 3px; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
}

.avatar-placeholder.avatar-sm { font-size: 0.75rem; }
.avatar-placeholder.avatar-lg { font-size: 1.4rem; }
.avatar-placeholder.avatar-xl { font-size: 2rem; }
.avatar-placeholder.avatar-xxl { font-size: 2.5rem; }

/* === TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--primary-glow);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.tag:hover { background: rgba(99, 102, 241, 0.25); }

.tag-accent {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
}

.tag-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

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

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--gradient-aurora);
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.badge-explorer { background: var(--gradient-ocean); }
.badge-nomad { background: var(--gradient-sunset); }
.badge-trekker { background: var(--gradient-aurora); }

/* === COMPATIBILITY SCORE === */
.compat-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.compat-ring {
  position: relative;
  width: 48px;
  height: 48px;
}

.compat-ring svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.compat-ring .bg { stroke: var(--bg-tertiary); }
.compat-ring .fill { transition: stroke-dasharray 1s ease; }
.compat-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* === STAT CARDS === */
.stat-card {
  text-align: center;
  padding: 20px;
}

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

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

/* === POST CARD === */
.post-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px) scale(1.01);
}

.post-cover-image {
  width: calc(100% + 48px);
  height: 220px;
  object-fit: cover;
  margin: -24px -24px 20px -24px;
  display: block;
}

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

.post-meta {
  flex: 1 1;
}

.post-meta h4 { font-size: 0.95rem; }
.post-meta span { font-size: 0.8rem; color: var(--text-muted); }

.post-type-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-type-experience { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.post-type-collaboration { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.post-type-advice { background: rgba(245, 158, 11, 0.15); color: var(--accent-light); }
.post-type-trip_plan { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.post-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.post-destination {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.post-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.post-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.post-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.post-detail-item strong { color: var(--text-primary); }

.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.post-action-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.post-action-btn.liked { color: var(--danger); }
.post-action-btn.liked svg { animation: heart-burst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.post-action-btn.saved { color: var(--accent); }

/* === TRAVELER CARD === */
.traveler-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

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

.traveler-card .avatar-wrap {
  margin-bottom: 16px;
}

.traveler-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.traveler-card .location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.traveler-card .countries {
  font-size: 0.85rem;
  color: var(--text-accent);
  margin-bottom: 12px;
}

.traveler-card .travel-style {
  margin-bottom: 16px;
}

/* === CHAT === */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px);
  margin-top: 64px;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg-secondary);
}

.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.chat-sidebar-header h2 {
  font-size: 1.2rem;
}

.chat-list { list-style: none; }

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.chat-item:hover, .chat-item.active {
  background: var(--bg-hover);
}

.chat-item-meta {
  flex: 1 1;
  min-width: 0;
}

.chat-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-item-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-unread {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.chat-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.message {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.5;
}

.message.sent {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.received {
  align-self: flex-start;
  background: var(--bg-tertiary);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-align: right;
}

.message.received .message-time { color: var(--text-muted); }

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.chat-input-area input {
  flex: 1 1;
}

@media (max-width: 768px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    display: none;
  }
  .chat-sidebar.open {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 100;
  }
}

/* === TABS === */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); }
.tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s var(--transition-slow);
}

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

.modal-header h2 { font-size: 1.3rem; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover { background: var(--danger); color: white; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* === LOADING === */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* === WORLD MAP (CSS-based) === */
.world-map-container {
  position: relative;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 200px;
}

.visited-countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary-light);
  transition: all var(--transition-fast);
}

.country-chip:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: scale(1.05);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.25); }
}

.animate-in { animation: slideUp 0.5s ease both; }
.animate-in-delay-1 { animation: slideUp 0.5s ease 0.1s both; }
.animate-in-delay-2 { animation: slideUp 0.5s ease 0.2s both; }
.animate-in-delay-3 { animation: slideUp 0.5s ease 0.3s both; }

/* === LANDING PAGE === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f1f5f9, #818cf8, #f59e0b, #f1f5f9);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary { padding: 14px 32px; font-size: 1rem; }
.hero-actions .btn-secondary { padding: 14px 32px; font-size: 1rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
}

.hero-stat { text-align: center; }
.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.15;
}

.features-section {
  padding: 80px 0;
  position: relative;
}

.features-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
}

.feature-card {
  padding: 32px;
  text-align: center;
}

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

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 1.5rem; }
  .features-section h2 { font-size: 1.6rem; }
}

/* === PROFILE PAGE === */
.profile-hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.profile-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.profile-info { position: relative; z-index: 1; }

.profile-info h1 { font-size: 1.8rem; margin-top: 16px; }

.profile-info .location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.profile-bio {
  max-width: 600px;
  margin: 12px auto 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

.profile-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { padding: 40px 0 24px; }
  .profile-info h1 { font-size: 1.4rem; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }

