/* nicekin.css - Modern Pinterest-style design for FreeCouchSurf.com */
/* Travel & Community theme — sunset orange, emerald, warm coral */

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  /* Brand colors — warm sunset travel palette */
  --primary:         #FF6B35;   /* Sunset orange */
  --primary-hover:   #e55920;
  --primary-light:   #fff3ee;
  --primary-glow:    rgba(255,107,53,0.15);

  /* Accent */
  --teal:            #06D6A0;   /* Emerald mint */
  --teal-hover:      #04b88a;
  --coral:           #EF476F;   /* Vivid coral */
  --female-safe:     #E91E8C;   /* Female safe pink */
  --female-light:    #fce4f3;
  --bff-color:       #9B59B6;   /* BFF purple */
  --bff-light:       #f5eeff;
  --verified:        #00C853;   /* Verified green */
  --gold:            #FFB703;   /* Warm gold */

  /* Neutrals */
  --bg:              #FFF8F5;
  --surface:         #FFFFFF;
  --surface-2:       #FDF5F0;
  --border:          #F0E6E0;
  --text-primary:    #2D1B14;
  --text-secondary:  #7A6860;
  --text-muted:      #B0A098;

  /* Status colors */
  --hosting-yes:     #00C853;
  --hosting-maybe:   #FF9800;
  --hosting-no:      #F44336;
  --travelling:      #FF6B35;

  /* Shadows */
  --shadow-xs:       0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.09);
  --shadow:          0 6px 20px rgba(0,0,0,0.11);
  --shadow-lg:       0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:       0 24px 64px rgba(0,0,0,0.20);

  /* Shape */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius:          16px;
  --radius-lg:       24px;
  --radius-full:     9999px;

  /* Motion */
  --transition:      all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Typography */
  --font:            'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  background: var(--surface) !important;
  box-shadow: 0 1px 0 var(--border) !important;
  padding: .55rem 0 !important;
  position: sticky !important;
  top: 0; z-index: 1030;
}
.navbar-brand {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  letter-spacing: -1px;
  display: flex; align-items: center; gap: 8px;
}
.navbar-brand .brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.navbar-brand:hover { color: var(--primary-hover) !important; }

/* Search bar */
.navbar-search { flex:1; max-width:560px; margin:0 1rem; }
.navbar-search .search-wrap {
  background: var(--bg);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  display: flex; align-items: center;
  padding: 0 1rem;
  transition: var(--transition);
}
.navbar-search .search-wrap:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.navbar-search .search-icon { color: var(--text-secondary); font-size:1rem; margin-right:8px; }
.navbar-search input {
  background: transparent; border: none; outline: none;
  padding: .55rem 0; font-size:.9rem; font-weight:600;
  font-family: var(--font); color: var(--text-primary); width:100%;
}
.navbar-search input::placeholder { color: var(--text-secondary); }

/* Nav icon buttons */
.nav-icon-btn {
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  color: var(--text-primary) !important;
  font-size:1.1rem;
  transition: var(--transition);
  background:transparent; border:none; cursor:pointer; position:relative;
}
.nav-icon-btn:hover { background: var(--bg); }
.nav-profile-thumb {
  width:36px; height:36px; border-radius:50%;
  object-fit:cover; border:2px solid var(--border); cursor:pointer;
  transition: var(--transition);
}
.nav-profile-thumb:hover { border-color: var(--primary); }

/* Notification badge */
.notification-count {
  position:absolute; top:-4px; right:-4px;
  background: var(--coral); color:white;
  border-radius:9999px; font-size:.65rem;
  font-weight:900; min-width:18px; height:18px;
  display:flex; align-items:center; justify-content:center;
  padding:0 4px; border:2px solid white;
}

/* Dropdown */
.dropdown-menu {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: .5rem !important;
}
.dropdown-item {
  border-radius: var(--radius-sm) !important;
  font-weight:700 !important; font-size:.875rem !important;
  padding:.55rem .85rem !important;
  display:flex; align-items:center; gap:8px;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--primary-light) !important; color: var(--primary) !important; }

/* ===================================================
   CATEGORY NAV PILLS
   =================================================== */
.category-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  position: sticky; top: 58px; z-index: 1020;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
  display: inline-flex; gap: .4rem;
  padding: 0 1rem;
}
.cat-pill {
  display: inline-flex; align-items: center; gap:5px;
  background: var(--bg); color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: .4rem 1rem;
  font-weight:700; font-size:.82rem;
  transition: var(--transition);
  cursor: pointer; white-space: nowrap;
  border: 2px solid transparent;
}
.cat-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.cat-pill.active { background: var(--primary); color: white; }
.cat-pill.female { background: var(--female-light); color: var(--female-safe); border-color: var(--female-safe); }
.cat-pill.bff { background: var(--bff-light); color: var(--bff-color); border-color: var(--bff-color); }

/* ===================================================
   PAGE CONTENT WRAPPER
   =================================================== */
.page-content-wrapper { min-height: 80vh; }

/* ===================================================
   MASONRY GRID (Pinterest-style)
   =================================================== */
.masonry-grid {
  column-count: 5;
  column-gap: 12px;
  padding: 16px 12px;
}
@media (max-width: 1400px) { .masonry-grid { column-count: 4; } }
@media (max-width: 1100px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px)  { .masonry-grid { column-count: 2; } }
@media (max-width: 480px)  { .masonry-grid { column-count: 1; } }

.host-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
}
.host-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
}
.host-card-cover {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #ffe4d6);
}
.host-card-cover img {
  width: 100%; display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.host-card:hover .host-card-cover img { transform: scale(1.06); }

/* No-photo placeholder — centered avatar on gradient */
.host-card-cover.no-photo {
  min-height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff3ee, #fce4f3);
}
.host-card-cover.no-photo img {
  width: 80px !important; height: 80px !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.15) !important;
  object-fit: cover !important;
}
.host-card-cover.no-photo i { font-size: 2.2rem; color: var(--primary); opacity: .4; }

/* Overlay badges */
.host-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 3px;
  max-width: calc(100% - 16px);
}
.badge-hosting,
.badge-female,
.badge-verified,
.badge-traveller {
  border-radius: var(--radius-full);
  font-size: .67rem; font-weight: 800;
  padding: 3px 8px;
  display: inline-flex; align-items: center; gap: 3px;
  line-height: 1; backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-hosting { background: rgba(0,200,83,.9); color: white; }
.badge-hosting.maybe { background: rgba(255,152,0,.9); color: white; }
.badge-hosting.no    { background: rgba(244,67,54,.88); color: white; }
.badge-female  { background: rgba(233,30,140,.9); color: white; }
.badge-verified{ background: rgba(0,200,83,.9); color: white; }
.badge-traveller { background: rgba(255,107,53,.92); color: white; }
.badge-traveller {
  background: var(--travelling); color: white;
  border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 800;
  padding: 3px 9px;
  display: flex; align-items: center; gap: 4px;
  line-height: 1;
}
.badge-traveller i,
.badge-female i,
.badge-hosting i,
.badge-verified i {
  font-size: .65rem !important;
  line-height: 1;
}

/* Save button (top-right) */
.host-card-save {
  position: absolute; top: 10px; right: 10px;
  opacity: 0; transition: var(--transition);
}
.host-card:hover .host-card-save { opacity: 1; }
.btn-save {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: 6px 14px; font-size: .8rem; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-save:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Card body */
.host-card-body { padding: 12px 14px 14px; }
.host-card-name {
  font-weight: 800; font-size: .95rem;
  color: var(--text-primary); margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.host-card-location {
  font-size: .78rem; color: var(--text-secondary);
  font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.host-card-about {
  font-size: .8rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.host-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.host-card-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.host-card-stats {
  display: flex; gap: 10px; font-size: .75rem;
  color: var(--text-secondary); font-weight: 700;
}
.host-card-stats span { display: flex; align-items: center; gap: 3px; }

/* Quick action row */
.host-card-actions {
  display: flex; gap: 6px; margin-top: 8px;
}
.btn-xs {
  border: none; border-radius: var(--radius-full);
  padding: 4px 10px; font-size: .72rem; font-weight: 800;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.btn-request { background: var(--primary); color: white; }
.btn-request:hover { background: var(--primary-hover); }
.btn-message { background: var(--bg); color: var(--text-primary); }
.btn-message:hover { background: var(--border); }
.btn-videocall { background: var(--teal); color: white; }
.btn-videocall:hover { background: var(--teal-hover); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: white;
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section > * { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title .brand { color: rgba(255,255,255,0.9); }
.hero-subtitle {
  font-size: 1.15rem; opacity: .9;
  max-width: 600px; margin: 0 auto 2rem;
  font-weight: 600;
}
.hero-stats {
  display: flex; justify-content: center;
  gap: 3rem; margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-val {
  display: block; font-size: 2rem;
  font-weight: 900; line-height: 1;
}
.hero-stat-label {
  font-size: .85rem; opacity: .8; font-weight: 600;
}

/* Signup card */
.signup-card {
  background: white; border-radius: var(--radius-lg);
  max-width: 440px; box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.signup-card .card-header {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white; padding: 1.2rem 1.5rem;
  font-weight: 900; font-size: 1.1rem;
}
.signup-card .card-body { padding: 1.8rem; }
.form-control {
  border-radius: var(--radius-sm) !important;
  border: 2px solid var(--border) !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  transition: var(--transition) !important;
  padding: .6rem .9rem !important;
}
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.form-label { font-weight: 700; font-size: .875rem; margin-bottom: .4rem; }
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  transition: var(--transition) !important;
  padding: .65rem 1.5rem !important;
}
.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
}
.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: white !important;
}

/* ===================================================
   PROFILE PAGE
   =================================================== */
.profile-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  padding: 3rem 1rem 5rem;
  text-align: center;
  position: relative;
}
.profile-avatar-wrap {
  position: relative; display: inline-block; margin-bottom: 1rem;
}
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: var(--shadow-lg);
}
.profile-name {
  font-size: 1.8rem; font-weight: 900;
  color: white; margin-bottom: .3rem;
}
.profile-location {
  font-size: 1rem; color: rgba(255,255,255,.85);
  font-weight: 600; margin-bottom: 1rem;
}
.profile-badges {
  display: flex; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.profile-badge {
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.profile-badge.female { background: var(--female-safe); color: white; }
.profile-badge.verified { background: var(--verified); color: white; }
.profile-badge.traveller { background: var(--travelling); color: white; }
.profile-badge.hosting { background: var(--hosting-yes); color: white; }
.profile-stats-row {
  display: flex; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  background: white; border-radius: var(--radius-lg);
  max-width: 600px; margin: -30px auto 0;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative; z-index: 5;
}
.profile-stat { text-align: center; }
.profile-stat-val {
  font-size: 1.4rem; font-weight: 900;
  color: var(--primary); line-height: 1;
}
.profile-stat-label {
  font-size: .75rem; color: var(--text-secondary);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px;
}

/* Profile tabs */
.profile-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 1rem 1.3rem;
  font-weight: 800; font-size: .9rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.profile-tab:hover { color: var(--primary); }
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===================================================
   EXPERIENCE / BFF CARDS
   =================================================== */
.experience-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.experience-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.experience-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.2rem .5rem;
}
.experience-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
  flex-shrink: 0;
}
.experience-meta { flex: 1; min-width: 0; }
.experience-author {
  font-weight: 800; font-size: .9rem;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 5px;
}
.experience-time { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.experience-type-badge {
  border-radius: var(--radius-full);
  padding: 3px 10px; font-size: .7rem; font-weight: 800;
  flex-shrink: 0;
}
.type-experience { background: #e3f2fd; color: #1565c0; }
.type-bff { background: var(--bff-light); color: var(--bff-color); }
.type-event { background: #fff3e0; color: #e65100; }
.type-tip { background: #e8f5e9; color: #2e7d32; }
.experience-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.experience-body {
  padding: .8rem 1.2rem 1rem;
}
.experience-title {
  font-weight: 900; font-size: 1.05rem;
  margin-bottom: .4rem;
}
.experience-text {
  font-size: .875rem; color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.experience-actions {
  display: flex; gap: .5rem;
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
}
.btn-like, .btn-comment-btn, .btn-share {
  background: var(--bg); border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px; font-size: .8rem;
  font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
  color: var(--text-secondary);
}
.btn-like:hover { background: #fee2e2; color: var(--coral); }
.btn-like.liked { background: #fee2e2; color: var(--coral); }
.btn-comment-btn:hover { background: var(--primary-light); color: var(--primary); }
.btn-share:hover { background: var(--bg); color: var(--teal); }

/* ===================================================
   BFF SECTION
   =================================================== */
.bff-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.bff-card:hover {
  border-color: var(--bff-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.bff-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bff-color);
  margin: 0 auto .8rem;
}
.bff-name { font-weight: 900; font-size: 1rem; margin-bottom: .2rem; }
.bff-location { font-size: .8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: .8rem; }
.bff-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: .8rem; }
.bff-tag {
  background: var(--bff-light); color: var(--bff-color);
  border-radius: var(--radius-full);
  padding: 2px 8px; font-size: .7rem; font-weight: 700;
}

/* ===================================================
   MESSAGES
   =================================================== */
.inbox-sidebar {
  height: calc(100vh - 130px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.conversation-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.conversation-item:hover, .conversation-item.active {
  background: var(--primary-light);
}
.conversation-avatar {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
  position: relative;
}
.conversation-info { flex: 1; min-width: 0; }
.conversation-name {
  font-weight: 800; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conversation-preview {
  font-size: .78rem; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conversation-time { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.unread-dot {
  width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%; flex-shrink: 0;
}

/* Chat area */
.chat-area {
  display: flex; flex-direction: column;
  height: calc(100vh - 130px);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.2rem; display: flex; flex-direction: column; gap: 10px;
}
.message-bubble {
  max-width: 75%;
  display: flex; gap: 8px;
}
.message-bubble.own { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; align-self: flex-end;
}
.bubble-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .875rem; line-height: 1.5;
  position: relative;
}
.message-bubble.own .bubble-content {
  background: var(--primary); color: white;
  border-bottom-right-radius: 4px;
}
.bubble-time { font-size: .68rem; opacity: .7; margin-top: 3px; display: block; }
.chat-input-bar {
  border-top: 1px solid var(--border);
  padding: .8rem 1rem;
  display: flex; gap: .6rem; align-items: flex-end;
  background: var(--surface);
}
.chat-input {
  flex: 1; border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .6rem 1rem; font-family: var(--font);
  font-weight: 600; resize: none; outline: none;
  transition: var(--transition); font-size: .9rem;
  max-height: 120px;
}
.chat-input:focus { border-color: var(--primary); }
.btn-send {
  background: var(--primary); color: white;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.btn-send:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Video call suggestion banner */
.videocall-suggestion {
  background: linear-gradient(135deg, var(--teal), var(--primary));
  color: white; border-radius: var(--radius);
  padding: .8rem 1rem;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .6rem; font-size: .85rem;
  font-weight: 700;
}
.videocall-suggestion .btn-videocall-inline {
  background: rgba(255,255,255,.25);
  color: white; border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--radius-full);
  padding: 4px 14px; font-size: .78rem;
  font-weight: 800; cursor: pointer;
  transition: var(--transition); margin-left: auto;
  white-space: nowrap;
}
.videocall-suggestion .btn-videocall-inline:hover {
  background: rgba(255,255,255,.4);
}

/* ===================================================
   STAY REQUEST CARD
   =================================================== */
.request-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.request-card:hover { box-shadow: var(--shadow); }
.request-card.pending { border-left-color: var(--hosting-maybe); }
.request-card.accepted { border-left-color: var(--hosting-yes); }
.request-card.declined { border-left-color: var(--hosting-no); }
.request-status {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--radius-full);
  padding: 3px 10px; font-size: .75rem; font-weight: 800;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d1f2eb; color: #0a5c45; }
.status-declined { background: #fee2e2; color: #991b1b; }

/* ===================================================
   EVENTS
   =================================================== */
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card-banner {
  height: 160px; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.event-card-banner img { width:100%; height:100%; object-fit:cover; }
.event-date-badge {
  position: absolute; top: 12px; left: 12px;
  background: white; border-radius: var(--radius-sm);
  padding: 6px 10px; text-align: center;
  box-shadow: var(--shadow-sm); min-width: 52px;
}
.event-day { font-size: 1.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.event-month { font-size: .7rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; }
.event-card-body { padding: 1rem 1.2rem; }
.event-title { font-weight: 900; font-size: 1rem; margin-bottom: .3rem; }
.event-location { font-size: .8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: .6rem; }
.event-attendees {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text-secondary); font-weight: 700;
}
.event-attendee-avatars { display: flex; }
.event-attendee-avatars img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 2px solid white;
  margin-left: -6px;
}
.event-attendee-avatars img:first-child { margin-left: 0; }

/* ===================================================
   NOTIFICATIONS
   =================================================== */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none; color: inherit;
}
.notif-item:hover { background: var(--primary-light); }
.notif-item.unread { background: var(--primary-light); }
.notif-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: .875rem; font-weight: 700; line-height: 1.4; }
.notif-time { font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ===================================================
   SEARCH / FILTERS
   =================================================== */
.search-hero {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  padding: 3rem 1rem;
  text-align: center;
}
.search-hero h1 { color: white; font-size: 2.2rem; font-weight: 900; margin-bottom: .5rem; }
.search-hero p { color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 600; }
.search-big-bar {
  background: white; border-radius: var(--radius-full);
  padding: .7rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  max-width: 640px; margin: 1.5rem auto 0;
  box-shadow: var(--shadow-lg);
}
.search-big-bar input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-weight: 600;
  font-family: var(--font); color: var(--text-primary);
}
.search-big-bar .btn-search {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: .55rem 1.3rem; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  transition: var(--transition);
}
.search-big-bar .btn-search:hover { background: var(--primary-hover); }
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .6rem 1rem;
  display: flex; gap: .5rem; flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: .35rem .9rem; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary-light);
  border-color: var(--primary); color: var(--primary);
}
.filter-chip.female-filter.active {
  background: var(--female-light);
  border-color: var(--female-safe); color: var(--female-safe);
}

/* ===================================================
   SECTION TITLES
   =================================================== */
.section-title {
  font-size: 1.3rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.section-title-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

/* ===================================================
   INSTAGRAM LINK
   =================================================== */
.instagram-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white !important;
  border-radius: var(--radius-full);
  padding: 6px 16px; font-weight: 800; font-size: .85rem;
  transition: var(--transition);
  text-decoration: none;
}
.instagram-link:hover { transform: scale(1.04); box-shadow: var(--shadow-sm); }

/* ===================================================
   FEMALE SAFE SECTION
   =================================================== */
.female-safe-banner {
  background: linear-gradient(135deg, #fce4f3, #f8bbdd);
  border: 2px solid var(--female-safe);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.2rem;
}
.female-safe-icon {
  width: 44px; height: 44px;
  background: var(--female-safe); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.female-safe-text h5 { font-size: .95rem; font-weight: 900; color: var(--female-safe); margin-bottom: .2rem; }
.female-safe-text p { font-size: .82rem; color: #555; margin: 0; }

/* ===================================================
   FORM CARD (common panel)
   =================================================== */
.form-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  max-width: 500px; margin: 0 auto;
}
.form-panel-title {
  font-size: 1.5rem; font-weight: 900;
  margin-bottom: .3rem; color: var(--primary);
}
.form-panel-sub {
  font-size: .875rem; color: var(--text-secondary);
  font-weight: 600; margin-bottom: 1.5rem;
}

/* ===================================================
   HOSTING STATUS TOGGLE
   =================================================== */
.hosting-toggle {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.hosting-opt {
  flex: 1; min-width: 120px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem;
  text-align: center; cursor: pointer;
  transition: var(--transition);
}
.hosting-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.hosting-opt.selected.yes { border-color: var(--hosting-yes); background: #e8f8ef; }
.hosting-opt.selected.maybe { border-color: var(--hosting-maybe); background: #fff8e1; }
.hosting-opt.selected.no { border-color: var(--hosting-no); background: #fef2f2; }
.hosting-opt i { font-size: 1.4rem; display: block; margin-bottom: .3rem; }
.hosting-opt.yes i { color: var(--hosting-yes); }
.hosting-opt.maybe i { color: var(--hosting-maybe); }
.hosting-opt.no i { color: var(--hosting-no); }
.hosting-opt span { font-size: .8rem; font-weight: 800; }

/* ===================================================
   REVIEW STARS
   =================================================== */
.star-rating { display: flex; gap: 2px; }
.star-rating i { color: #FFD700; font-size: .9rem; }
.star-rating i.empty { color: var(--border); }
.review-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: .8rem;
}
.review-author {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: .5rem;
}
.review-author img { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.review-author-name { font-weight: 800; font-size: .875rem; }
.review-text { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

/* ===================================================
   MOBILE BOTTOM NAV
   =================================================== */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; z-index: 1040;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: .6rem .4rem;
  font-size: .65rem; font-weight: 800;
  color: var(--text-muted);
  text-decoration: none; transition: var(--transition);
  position: relative;
}
.mobile-nav-item i { font-size: 1.2rem; margin-bottom: 2px; }
.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--primary);
}
.mobile-nav-item.active::after {
  content: '';
  position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; background: var(--primary);
  border-radius: 0 0 3px 3px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #1A202C;
  color: rgba(255,255,255,.7);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-brand {
  font-size: 1.4rem; font-weight: 900;
  color: white; margin-bottom: .4rem;
}
.footer-tagline { font-size: .85rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 1.5rem 0 1rem; }
.footer-bottom { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ===================================================
   ALERTS / TOASTS
   =================================================== */
.alert { border-radius: var(--radius-sm) !important; font-weight: 700 !important; border:none !important; }
.alert-success { background: #d1f2eb !important; color: #0a5c45 !important; }
.alert-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.alert-info    { background: var(--primary-light) !important; color: var(--primary) !important; }
.alert-warning { background: #fff3cd !important; color: #856404 !important; }

/* ===================================================
   UTILITY
   =================================================== */
.text-primary { color: var(--primary) !important; }
.text-teal { color: var(--teal) !important; }
.text-female { color: var(--female-safe) !important; }
.text-bff { color: var(--bff-color) !important; }
.bg-primary-light { background: var(--primary-light) !important; }

.card-clean {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.2rem 1.4rem;
}
.divider { border-color: var(--border); margin: 1rem 0; }

/* Spinner */
.spinner-cs {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================
   TOP ANNOUNCEMENT BAR
   =================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--primary), var(--teal));
  color: white; text-align: center;
  padding: 7px 16px; font-size: .82rem;
  font-weight: 700; position: relative;
}
.top-bar a { color: white; text-decoration: underline; }

/* ===================================================
   RESPONSIVE TWEAKS
   =================================================== */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 1rem 2.5rem; }
  .hero-title { font-size: 1.8rem; }
  .profile-hero { padding: 2rem 1rem 4rem; }
  .form-panel { padding: 1.3rem; }
  .profile-stats-row { gap: 1rem; }
  .chat-area { height: calc(100vh - 180px); }
  .inbox-sidebar { height: auto; max-height: 280px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ===================================================
   BOOTSTRAP 5 PRIMARY COLOR OVERRIDES
   =================================================== */
:root {
  --bs-primary:           #FF6B35;
  --bs-primary-rgb:       255,107,53;
  --bs-link-color:        #FF6B35;
  --bs-link-hover-color:  #e55920;
}
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: white !important;
}
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.nav-link { color: var(--text-primary); font-weight: 700; }
.nav-link:hover { color: var(--primary); }
.site-footer { background: linear-gradient(180deg, #2D1B14 0%, #1a0e09 100%); }
.top-bar { background: linear-gradient(90deg, var(--primary), var(--coral)); }
