/* ==============================================
   DRINKEDIN – GLOBAL STYLESHEET
   Palette: #FCFC62 yellow | #FEFFEA cream
            #C9C9C9 light-grey | #A3A3A3 mid-grey | #424242 charcoal
   ============================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── TOKENS ── */
:root {
  --yellow:     #FCFC62;
  --yellow-dim: #d4d422;
  --cream:      #FEFFEA;
  --grey-light: #C9C9C9;
  --grey-mid:   #A3A3A3;
  --charcoal:   #424242;
  --bg:         #1c1c1c;
  --bg2:        #242424;
  --bg3:        #2e2e2e;
  --surface:    #343434;
  --surface2:   #3e3e3e;
  --border:     #484848;
  --border2:    #555;
  --text:       var(--cream);
  --text-sub:   var(--grey-light);
  --text-muted: var(--grey-mid);
  --accent:     var(--yellow);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-pill:99px;
}

/* ── BASE ── */
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.65; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
textarea, input { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }

/* ── ANIMATIONS ── */
@keyframes sway      { 0%,100%{transform:rotate(-10deg)} 50%{transform:rotate(10deg)} }
@keyframes floatUp   { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-14px) rotate(3deg)} }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideText { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,26,26,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; transition: box-shadow 0.3s;
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; height: 60px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
.logo-icon { font-size: 24px; animation: sway 4s ease-in-out infinite; display: inline-block; }
.logo-text {
  font-family: 'Bebas Neue', cursive; font-size: 26px;
  letter-spacing: 1px; color: var(--yellow); line-height: 1;
}
.logo-text em { color: var(--cream); font-style: normal; }

.nav-search {
  flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px; transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--yellow); }
.search-icon { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }
.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; padding: 8px 0;
}
.nav-search input::placeholder { color: var(--text-muted); }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 11px; text-decoration: none;
  position: relative; transition: all 0.2s;
}
.nav-link span:not(.badge) { font-size: 10px; }
.nav-link:hover, .nav-link.active { color: var(--yellow); background: var(--surface); }
.badge {
  position: absolute; top: 3px; right: 5px;
  background: var(--yellow); color: #000;
  font-size: 9px; font-weight: 700; width: 15px; height: 15px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--yellow); object-fit: cover; }

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; background: var(--yellow); color: #000;
  font-weight: 600; font-size: 14px; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252,252,98,0.25); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; background: none; color: var(--text);
  border: 1.5px solid var(--border2); border-radius: var(--radius-sm);
  font-size: 14px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.full-width { width: 100%; margin-top: 12px; }

.btn-follow {
  background: none; border: 1.5px solid var(--yellow); color: var(--yellow);
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-pill); cursor: pointer; transition: all 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-follow:hover, .btn-follow.following { background: var(--yellow); color: #000; }

.btn-gold {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, #a37d00, var(--yellow), #a37d00);
  border: none; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 13px; color: #000; cursor: pointer; transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.88; }

/* ================================================
   HERO BANNER
   ================================================ */
.hero-banner {
  position: relative; overflow: hidden; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 52px 48px; display: flex;
  align-items: center; justify-content: space-between; gap: 40px;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(252,252,98,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero-eyebrow { font-size: 14px; color: var(--yellow); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.hero-content h1 {
  font-family: 'Bebas Neue', cursive; font-size: clamp(48px,6vw,80px);
  line-height: 0.95; letter-spacing: 1px; color: var(--cream);
}
.hero-sub { font-size: 16px; color: var(--text-muted); margin: 16px 0 28px; max-width: 420px; }
.hero-bottles { display: flex; gap: 10px; font-size: 52px; position: relative; z-index: 1; }
.bottle { display: inline-block; animation: floatUp 3.5s ease-in-out infinite; }
.b1{animation-delay:0s} .b2{animation-delay:.35s} .b3{animation-delay:.7s} .b4{animation-delay:1.05s} .b5{animation-delay:1.4s}

/* ================================================
   LAYOUT (3-col)
   ================================================ */
.layout {
  max-width: 1300px; margin: 28px auto; padding: 0 20px;
  display: grid; grid-template-columns: 260px 1fr 280px;
  gap: 22px; align-items: start;
}
@media (max-width: 1100px) { .layout { grid-template-columns: 220px 1fr; } .sidebar-right { display: none; } }
@media (max-width: 700px)  { .layout { grid-template-columns: 1fr; } .sidebar-left { display: none; } }

/* ================================================
   SIDEBAR WIDGETS
   ================================================ */
.sidebar-widget {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.widget-title {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}

/* Profile card */
.profile-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; text-align: center;
}
.profile-banner-mini { height: 62px; background: var(--charcoal); position: relative; overflow: hidden; }
.banner-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(252,252,98,0.06) 8px, rgba(252,252,98,0.06) 16px);
}
.profile-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--yellow); margin: -36px auto 0;
  position: relative; z-index: 1; object-fit: cover;
}
.profile-card-body { padding: 10px 16px 16px; }
.profile-card-body h3 { font-family: 'Bebas Neue', cursive; font-size: 20px; color: var(--cream); margin-top: 6px; }
.profile-tagline { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.profile-stats { display: flex; justify-content: space-around; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 15px; font-weight: 700; color: var(--yellow); }
.stat span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 4px; }
.tag { background: var(--surface); border: 1px solid var(--border2); color: var(--grey-light); font-size: 11px; padding: 3px 9px; border-radius: var(--radius-pill); }

/* Bar / trending / suggest lists */
.bar-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.bar-list li { display: flex; align-items: center; gap: 10px; }
.bar-emoji { font-size: 18px; flex-shrink: 0; }
.bar-list div { flex: 1; }
.bar-list strong { font-size: 13px; display: block; color: var(--text); }
.bar-list small { font-size: 11px; color: var(--text-muted); }
.bar-rating { font-size: 12px; color: var(--yellow); white-space: nowrap; }

.trending-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trending-list li { display: flex; justify-content: space-between; align-items: center; }
.hashtag { font-weight: 600; font-size: 13px; color: var(--yellow); }
.trending-list small { color: var(--text-muted); font-size: 11px; }

.suggest-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.suggest-list li {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.suggest-list li:last-child { border-bottom: none; padding-bottom: 0; }
.suggest-list .suggest-user-row {
  display: flex; align-items: center; gap: 8px;
}
.suggest-list img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); object-fit: cover; flex-shrink: 0;
}
.suggest-list div.suggest-info { flex: 1; min-width: 0; }
.suggest-list strong {
  font-size: 12px; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-list small { font-size: 11px; color: var(--text-muted); display: block; }
.suggest-list .suggest-btns {
  display: flex; gap: 6px; width: 100%;
}
.suggest-list .suggest-btns .btn-follow {
  flex: 1; text-align: center; font-size: 11px; padding: 5px 8px;
}
/* Promo widget */
.promo-widget { background: linear-gradient(135deg, var(--charcoal), var(--bg3)); border-color: #5a5a00; position: relative; overflow: hidden; }
.promo-widget::after { content: ''; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(252,252,98,0.1) 0%, transparent 65%); pointer-events: none; }
.promo-badge { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); margin-bottom: 7px; }
.promo-widget h4 { font-family: 'Bebas Neue', cursive; font-size: 20px; margin-bottom: 6px; }
.promo-widget h4 em { color: var(--yellow); font-style: normal; }
.promo-widget p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

/* ================================================
   CREATE POST
   ================================================ */
.create-post-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.create-row { display: flex; gap: 12px; margin-bottom: 14px; }
.create-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--yellow); object-fit: cover; flex-shrink: 0; }
.create-row textarea {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--text); font-size: 14px; resize: none; outline: none;
  transition: border-color 0.2s; line-height: 1.6;
}
.create-row textarea:focus { border-color: var(--yellow); }
.create-row textarea::placeholder { color: var(--text-muted); }
.create-footer { border-top: 1px solid var(--border); padding-top: 12px; }
.drink-btns { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.drink-tag-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-sub); padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; transition: all 0.18s;
}
.drink-tag-btn:hover { border-color: var(--yellow); color: var(--yellow); background: var(--surface2); }
.create-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-label { font-size: 12px; color: var(--text-muted); }
.star-picker { display: flex; gap: 3px; }
.star-picker span { font-size: 22px; cursor: pointer; color: var(--surface2); transition: color 0.15s, transform 0.1s; }
.star-picker span:hover { transform: scale(1.2); }
.star-picker span.lit { color: var(--yellow); }

/* ================================================
   POST CARD
   ================================================ */
.post-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px;
  animation: fadeInUp 0.4s ease both; transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--surface2); }

.post-header { display: flex; align-items: center; gap: 12px; padding: 15px 18px 10px; }
.post-avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-meta strong { font-size: 14px; display: block; }
.post-meta small { font-size: 11px; color: var(--text-muted); }
.post-header-actions { display: flex; gap: 6px; flex-shrink: 0; }

.post-body { padding: 2px 18px 14px; }
.post-body p { font-size: 14px; line-height: 1.75; color: var(--text-sub); }

.post-actions { display: flex; border-top: 1px solid var(--border); padding: 3px 10px; }
.action-btn {
  flex: 1; background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 9px 4px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.18s;
}
.action-btn:hover { background: var(--surface); color: var(--yellow); }
.action-btn.cheered { color: var(--yellow); }
.action-btn.owner-btn { flex: 0 0 auto; font-size: 12px; padding: 6px 10px; }
.action-btn.del-btn:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

/* Comments */
.comment-section { padding: 12px 18px; border-top: 1px solid var(--border); display: none; }
.comment-section.open { display: block; animation: fadeIn 0.25s ease; }
.comment-input-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.comment-input-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-input-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 14px;
  color: var(--text); font-size: 13px; outline: none; transition: border-color 0.2s;
}
.comment-input-row input:focus { border-color: var(--yellow); }
.comment-send-btn {
  background: var(--yellow); border: none; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; flex-shrink: 0; transition: background 0.2s;
}
.comment-send-btn:hover { background: var(--cream); }
.comment-item { display: flex; gap: 10px; margin-bottom: 11px; }
.comment-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-bubble { background: var(--surface); border-radius: 12px 12px 12px 4px; padding: 8px 12px; flex: 1; }
.comment-bubble strong { font-size: 12px; color: var(--yellow); display: block; margin-bottom: 2px; }
.comment-bubble p { font-size: 13px; color: var(--text-sub); }

/* ================================================
   TOAST
   ================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--yellow); color: #000;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s, transform 0.28s; z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================
   PROFILE PAGE
   ================================================ */
.profile-hero { background: var(--bg2); border-bottom: 1px solid var(--border); }
.profile-cover { height: 200px; position: relative; overflow: hidden; background: var(--charcoal); }
.cover-pattern {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(252,252,98,0.04) 12px, rgba(252,252,98,0.04) 24px);
}
.cover-overlay-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 32px; letter-spacing: 10px; opacity: 0.15;
  white-space: nowrap; overflow: hidden; line-height: 1; padding: 8px 0;
  animation: slideText 20s linear infinite;
}
.profile-hero-body {
  max-width: 1300px; margin: 0 auto; padding: 0 28px 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.profile-hero-left { display: flex; align-items: flex-end; gap: 20px; flex: 1; }
.profile-avatar-wrapper { position: relative; flex-shrink: 0; }
.profile-avatar-xl { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--yellow); object-fit: cover; margin-top: -55px; }
.avatar-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--yellow); color: #000; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.profile-hero-info { padding-top: 12px; }
.profile-name { font-family: 'Bebas Neue', cursive; font-size: 36px; letter-spacing: 1px; color: var(--cream); line-height: 1; }
.profile-headline { font-size: 14px; color: var(--text-muted); margin: 5px 0 8px; }
.profile-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.profile-meta a { color: var(--yellow); }
.profile-tags-hero { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.profile-hero-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; padding-top: 16px; }
.profile-stats-big { display: flex; gap: 24px; }
.big-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.big-stat strong { font-family: 'Bebas Neue', cursive; font-size: 28px; color: var(--yellow); }
.big-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-action-btns { display: flex; gap: 10px; }

/* Profile layout */
.profile-layout { max-width: 1300px; margin: 26px auto; padding: 0 20px; display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 800px) { .profile-layout { grid-template-columns: 1fr; } .profile-hero-body { flex-direction: column; align-items: flex-start; } .profile-hero-right { align-items: flex-start; } .profile-stats-big { flex-wrap: wrap; gap: 16px; } }

/* About */
.about-text { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; line-height: 1.7; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.about-list li { font-size: 13px; color: var(--text-muted); }
.about-list em { color: var(--yellow); font-style: normal; }

/* Cellar */
.cellar-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cellar-list li { display: flex; align-items: center; gap: 10px; }
.cellar-emoji { font-size: 20px; flex-shrink: 0; }
.cellar-list div { flex: 1; }
.cellar-list strong { font-size: 13px; display: block; }
.cellar-list small { font-size: 11px; color: var(--text-muted); }
.cellar-stars { color: var(--yellow); font-size: 12px; white-space: nowrap; }

/* Badges */
.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center;
  gap: 5px; font-size: 24px; cursor: default; transition: border-color 0.2s, transform 0.2s;
}
.badge-item:hover { border-color: var(--yellow); transform: translateY(-2px); }
.badge-item span { font-size: 10px; color: var(--text-muted); text-align: center; }

/* Tabs */
.profile-tabs { display: flex; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.profile-tab { flex: 1; background: none; border: none; padding: 13px 10px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.profile-tab:hover { color: var(--text); background: var(--surface); }
.profile-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); background: var(--surface); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

/* Empty state */
.empty-state {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 52px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state h3 {
  font-family: 'Bebas Neue', cursive; font-size: 22px;
  letter-spacing: 0.5px; margin-bottom: 8px;
  width: 100%;
}
.empty-state p {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 20px; max-width: 320px;
}
.empty-state .btn-primary { margin-top: 4px; }
.upload-label { cursor: pointer; }
#imagePreview { margin: 0 0 10px; }
.img-preview-wrap { position: relative; display: inline-block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); max-width: 100%; }
.img-preview-wrap img { max-height: 260px; max-width: 100%; display: block; object-fit: cover; }
.remove-img-btn { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); color: var(--cream); border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.remove-img-btn:hover { background: rgba(255,70,70,0.85); }
.post-image-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; cursor: zoom-in; }
.post-image { width: 100%; max-height: 480px; object-fit: cover; display: block; transition: transform 0.3s; }
.post-image:hover { transform: scale(1.015); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox-inner { position: relative; }
.lightbox-inner img { max-width: 90vw; max-height: 88vh; border-radius: 12px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
.lb-close { position: absolute; top: -14px; right: -14px; background: var(--yellow); color: #000; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; }
.profile-avatar-xl { transition: filter 0.2s; cursor: pointer; }
.profile-avatar-xl:hover { filter: brightness(0.75); }
.avatar-edit-btn { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.72); color: var(--yellow); border: 1.5px solid var(--yellow); border-radius: 99px; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; opacity: 0; transition: opacity 0.2s; white-space: nowrap; z-index: 2; }
.profile-avatar-wrapper:hover .avatar-edit-btn { opacity: 1; }

/* ── IMAGE MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.85);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: 'Bebas Neue', cursive; font-size: 22px; letter-spacing: 0.5px; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.modal-body { display: flex; gap: 20px; padding: 20px; flex-wrap: wrap; }
.modal-preview-wrap {
  flex: 0 0 220px; max-width: 220px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); align-self: flex-start;
}
.modal-preview-wrap img { width: 100%; display: block; object-fit: cover; max-height: 260px; }

.modal-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 14px; }
.modal-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

.modal-fields textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 13px;
  color: var(--text); font-size: 14px; resize: none; outline: none;
  font-family: 'DM Sans', sans-serif; line-height: 1.6; transition: border-color 0.2s;
}
.modal-fields textarea:focus { border-color: var(--yellow); }

.tag-input-wrap { display: flex; flex-direction: column; gap: 8px; }
.tag-input-wrap input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 13px;
  color: var(--text); font-size: 14px; outline: none; transition: border-color 0.2s;
}
.tag-input-wrap input:focus { border-color: var(--yellow); }

.tags-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 10px; }
.tag-chip {
  background: var(--surface2); border: 1px solid var(--yellow);
  color: var(--yellow); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 5px;
}
.tag-chip button {
  background: none; border: none; color: var(--yellow);
  cursor: pointer; font-size: 11px; padding: 0; line-height: 1;
}

.popular-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.popular-tags button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; padding: 4px 10px;
  border-radius: var(--radius-pill); cursor: pointer; transition: all 0.18s;
}
.popular-tags button:hover { border-color: var(--yellow); color: var(--yellow); }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

/* ── POST TAGS in feed ── */
.post-tags-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
.post-tag {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--yellow); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill); cursor: pointer;
  transition: background 0.18s;
}
.post-tag:hover { background: var(--surface2); }

/* ── preview tags inside composer ── */
.preview-tags-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: rgba(0,0,0,0.4); }

/* ── EDIT PROFILE MODAL ── */
.edit-avatar-row {
  display: flex; align-items: center; gap: 20px;
  padding: 4px 0 8px;
}
.edit-avatar-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; flex-shrink: 0;
}
.edit-avatar-wrap img {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--yellow); object-fit: cover;
}
.edit-avatar-info p {
  font-size: 12px; color: var(--text-muted); margin-bottom: 4px;
}
.edit-field-group {
  display: flex; flex-direction: column; gap: 7px; width: 100%;
}
.edit-field-group input,
.edit-field-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 13px;
  color: var(--text); font-size: 14px; outline: none;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s;
  width: 100%;
}
.edit-field-group input:focus,
.edit-field-group textarea:focus { border-color: var(--yellow); }
.edit-field-group textarea { resize: vertical; line-height: 1.6; }


/* ── FOLLOW / UNFOLLOW ── */
.btn-follow.following {
  background: var(--yellow);
  color: #000;
}

.big-stat.clickable {
  cursor: pointer;
  transition: transform 0.2s;
}
.big-stat.clickable:hover { transform: translateY(-2px); }
.big-stat.clickable:hover strong { text-decoration: underline; }

.follow-user-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.follow-user-item:last-child { border-bottom: none; }
.follow-user-item img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover;
}
.follow-user-item div { flex: 1; }
.follow-user-item strong { font-size: 14px; display: block; }
.follow-user-item small { font-size: 12px; color: var(--text-muted); }


/* ================================================
   MESSAGES PAGE
   ================================================ */
.messages-layout {
  max-width: 1300px; margin: 28px auto; padding: 0 20px;
  display: grid; grid-template-columns: 320px 1fr;
  gap: 0; height: calc(100vh - 120px);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}

/* ── INBOX SIDEBAR ── */
.inbox-sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: calc(100vh - 120px); overflow: hidden;
}
.inbox-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px; border-bottom: 1px solid var(--border);
}
.inbox-header h2 {
  font-family: 'Bebas Neue', cursive; font-size: 22px; letter-spacing: 0.5px;
}
.new-msg-btn { padding: 7px 14px; font-size: 13px; }
.inbox-search { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 14px;
  color: var(--text); font-size: 13px; outline: none;
}
.inbox-search input:focus { border-color: var(--yellow); }
.conversations-list { flex: 1; overflow-y: auto; }
.inbox-empty { padding: 24px 16px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* Conversation item */
.conversation-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s; position: relative;
}
.conversation-item:hover { background: var(--surface); }
.conversation-item.active { background: var(--surface); border-left: 3px solid var(--yellow); }
.conversation-item img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border); flex-shrink: 0;
}
.convo-info { flex: 1; min-width: 0; }
.convo-top { display: flex; justify-content: space-between; align-items: center; }
.convo-top strong { font-size: 14px; }
.convo-top small { font-size: 11px; color: var(--text-muted); }
.convo-preview {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.unread-dot {
  background: var(--yellow); color: #000;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── CHAT WINDOW ── */
.chat-window {
  background: var(--bg); display: flex;
  flex-direction: column; position: relative;
  height: calc(100vh - 120px); overflow: hidden;
}
.chat-empty-state {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-muted);
}
.chat-empty-state span { font-size: 52px; }
.chat-empty-state h3 { font-family: 'Bebas Neue', cursive; font-size: 24px; color: var(--text); }
.chat-empty-state p { font-size: 14px; }

.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg2); flex-shrink: 0;
}
.chat-header img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--yellow); object-fit: cover;
}
.chat-header strong { font-size: 15px; display: block; }
.chat-header small { font-size: 12px; color: var(--text-muted); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.no-messages { color: var(--text-muted); font-size: 13px; text-align: center; margin: auto; }

/* Message bubbles */
.message-bubble-wrap {
  display: flex; align-items: flex-end; gap: 8px;
}
.message-bubble-wrap.mine    { flex-direction: row-reverse; }
.message-bubble-wrap.theirs  { flex-direction: row; }

.message-bubble {
  max-width: 65%; padding: 10px 14px;
  border-radius: 18px; position: relative;
}
.bubble-mine {
  background: var(--yellow); color: #000;
  border-bottom-right-radius: 4px;
}
.bubble-theirs {
  background: var(--surface2); color: var(--text);
  border-bottom-left-radius: 4px;
}
.message-bubble p { font-size: 14px; line-height: 1.5; }
.message-bubble small {
  font-size: 10px; display: block; margin-top: 4px;
  opacity: 0.6; text-align: right;
}
.del-msg-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; opacity: 0; transition: opacity 0.2s;
  padding: 4px; flex-shrink: 0;
}
.message-bubble-wrap:hover .del-msg-btn { opacity: 1; }

/* Chat input */
.chat-input-area {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
  background: var(--bg2); flex-shrink: 0; width: 100%;
}
.chat-input-area input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 11px 18px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s; min-width: 0;
}
.chat-input-area input:focus { border-color: var(--yellow); }
.chat-send-btn {
  background: var(--yellow); border: none;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--cream); }
/* ── USER SEARCH IN MODAL ── */
.user-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.user-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s;
}

.user-search-item:hover { background: var(--surface); }
.user-search-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-search-item strong { font-size: 14px; display: block; }
.user-search-item small { font-size: 12px; color: var(--text-muted); }

@media (max-width: 700px) {
  .messages-layout { grid-template-columns: 1fr; }
  .inbox-sidebar { display: none; }
}

/* ── DELETE COMMENT ── */
.comment-item { position: relative; }
.del-comment-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-muted);
  padding: 4px; border-radius: 6px;
  opacity: 0; transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0; align-self: center;
}
.comment-item:hover .del-comment-btn { opacity: 1; }
.del-comment-btn:hover { color: #ff6b6b; }


/* ── LIGHT MODE ── */
body.light-mode {
  --bg:         #f5f5f0;
  --bg2:        #ffffff;
  --bg3:        #efefea;
  --surface:    #e8e8e2;
  --surface2:   #ddddd7;
  --border:     #d0d0c8;
  --border2:    #b8b8b0;
  --text:       #1c1c1c;
  --text-sub:   #424242;
  --text-muted: #6b6b6b;
}

body.light-mode .navbar {
  background: rgba(245,245,240,0.94);
}
body.light-mode .hero-banner {
  background: #fffef5;
}
body.light-mode .promo-widget {
  background: linear-gradient(135deg, #f0efe8, #e8e8e0);
  border-color: #c8c800;
}
body.light-mode .bubble-theirs {
  background: #e8e8e2; color: #1c1c1c;
}
body.light-mode .post-image:hover { transform: scale(1.015); }

/* ── TOGGLE BUTTON ── */
.theme-toggle {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 12px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s; color: var(--text);
}
.theme-toggle:hover { border-color: var(--yellow); }

/* ── EDIT POST MODAL ── */
.edit-current-img-wrap {
  margin-top: 8px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
  max-height: 200px;
}
.edit-current-img-wrap img {
  width: 100%; max-height: 200px;
  object-fit: cover; display: block;
}
.edit-img-upload-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 14px;
  font-size: 13px; cursor: pointer; color: var(--text-sub);
  transition: all 0.2s;
}
.edit-img-upload-label:hover { border-color: var(--yellow); color: var(--yellow); }
.edit-remove-img-row {
  padding: 8px 0;
}
.edit-remove-img-row input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--yellow); cursor: pointer;
}

/* ================================================
   EXPLORE PAGE
   ================================================ */

/* Hero */
.explore-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 48px 28px; text-align: center;
  position: relative; overflow: hidden;
}
.explore-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(252,252,98,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.explore-hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.explore-hero h1 {
  font-family: 'Bebas Neue', cursive; font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 1px; color: var(--cream); line-height: 1; margin-bottom: 8px;
}
.explore-hero p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; }
.explore-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 8px 6px 18px;
  transition: border-color 0.2s;
}
.explore-search-bar:focus-within { border-color: var(--yellow); }
.explore-search-bar span { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }
.explore-search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; padding: 6px 0;
}
.explore-search-bar input::placeholder { color: var(--text-muted); }
.explore-search-bar .btn-primary { border-radius: var(--radius-pill); padding: 9px 20px; }

/* Layout */
.explore-layout {
  max-width: 1300px; margin: 28px auto; padding: 0 20px;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 22px; align-items: start;
}
@media (max-width: 900px) { .explore-layout { grid-template-columns: 1fr; } .explore-sidebar { display: none; } }

/* Category buttons */
.category-list { display: flex; flex-direction: column; gap: 6px; }
.category-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: all 0.18s; text-align: left; width: 100%;
}
.category-btn:hover { border-color: var(--yellow); color: var(--yellow); background: var(--surface); }
.category-btn.active { border-color: var(--yellow); color: var(--yellow); background: var(--surface); font-weight: 600; }

/* Trending tags */
.trending-tag-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: opacity 0.18s;
}
.trending-tag-item:last-child { border-bottom: none; }
.trending-tag-item:hover { opacity: 0.75; }
.trending-tag-item small { color: var(--text-muted); font-size: 11px; }

/* Explore stats */
.explore-stats {
  list-style: none; display: flex; justify-content: space-around;
}
.explore-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.explore-stats span { font-family: 'Bebas Neue', cursive; font-size: 28px; color: var(--yellow); }
.explore-stats small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.filter-bar-left { display: flex; align-items: center; gap: 10px; }
.filter-bar-left span { font-size: 13px; color: var(--text-muted); }
.clear-filter-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill);
  cursor: pointer; transition: all 0.18s; display: inline-flex; align-items: center; gap: 4px;
}
.clear-filter-btn:hover { border-color: #ff6b6b; color: #ff6b6b; }
.sort-btns { display: flex; gap: 8px; }
.sort-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; padding: 7px 14px;
  border-radius: var(--radius-pill); cursor: pointer; transition: all 0.18s;
}
.sort-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.sort-btn.active { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 600; }

/* Posts grid */
.explore-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* Explore card */
.explore-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  animation: fadeInUp 0.4s ease both;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.explore-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(252,252,98,0.1); }

.explore-card-img {
  position: relative; cursor: zoom-in; overflow: hidden;
  height: 220px;
}
.explore-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.explore-card:hover .explore-card-img img { transform: scale(1.06); }
.explore-img-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: var(--yellow); font-weight: 600; font-size: 13px;
  padding: 12px; opacity: 0; transition: opacity 0.25s;
}
.explore-card-img:hover .explore-img-overlay { opacity: 1; }

.explore-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.explore-card-header { display: flex; align-items: center; gap: 10px; }
.explore-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--yellow); object-fit: cover;
}
.explore-card-header strong { font-size: 13px; display: block; }
.explore-card-header small { font-size: 11px; color: var(--text-muted); }
.explore-card-story {
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.explore-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.explore-card-footer {
  display: flex; gap: 14px; padding-top: 10px;
  border-top: 1px solid var(--border); margin-top: auto;
}
.explore-card-footer span {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}

/* Category buttons improved */
.category-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: all 0.18s; text-align: left; width: 100%;
  font-weight: 500;
}
.category-btn:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(252,252,98,0.05); transform: translateX(4px); }
.category-btn.active { border-color: var(--yellow); color: var(--yellow); background: rgba(252,252,98,0.08); font-weight: 700; transform: translateX(4px); }

/* Filter bar improved */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}

/* Load more */
.load-more-wrap {
  display: flex; justify-content: center;
  margin-top: 28px;
}
.load-more-btn { padding: 12px 36px; font-size: 15px; }

/* ── AVATAR PICKER MODAL ── */
.avatar-picker-grid {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.avatar-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 10px; border-radius: var(--radius);
  border: 2px solid var(--border); transition: all 0.2s;
  flex: 1; min-width: 100px;
}
.avatar-option:hover { border-color: var(--yellow); }
.avatar-option.selected {
  border-color: var(--yellow);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(252,252,98,0.2);
}
.avatar-option img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
  transition: border-color 0.2s;
}
.avatar-option.selected img { border-color: var(--yellow); }
.avatar-option span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.avatar-option.selected span { color: var(--yellow); }

.avatar-divider {
  display: flex; align-items: center; gap: 12px; color: var(--text-muted);
}
.avatar-divider::before, .avatar-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.avatar-divider span { font-size: 12px; white-space: nowrap; }

/* ── COMMENT TIMESTAMP ── */
.comment-time {
  font-size: 10px; color: var(--text-muted);
  display: block; margin-top: 3px;
}
/* ── SOCKET / REAL-TIME ── */
.avatar-status-wrap { position: relative; flex-shrink: 0; }
.online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #4caf50; border: 2px solid var(--bg2);
}
.typing-indicator {
  font-size: 12px; color: var(--text-muted);
  padding: 4px 0 8px; font-style: italic;
  width: 100%;
}
/* ================================================
   NOTIFICATIONS PAGE
   ================================================ */
.notif-layout {
  max-width: 700px; margin: 32px auto; padding: 0 20px;
}
.notif-container {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.notif-header h2 {
  font-family: 'Bebas Neue', cursive; font-size: 26px; letter-spacing: 0.5px;
}
.notif-header-actions { display: flex; gap: 10px; }

/* Tabs */
.notif-tabs {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
}
.notif-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 12px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
}
.notif-tab:hover { color: var(--text); }
.notif-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Notification item */
.notif-item {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(252,252,98,0.04); }
.notif-item:hover { background: var(--surface); }

.notif-content {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; flex: 1; cursor: pointer;
}
.notif-avatar-wrap { position: relative; flex-shrink: 0; }
.notif-avatar-wrap img {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover;
}
.notif-type-icon {
  position: absolute; bottom: -2px; right: -4px;
  font-size: 16px; line-height: 1;
}
.notif-body { flex: 1; }
.notif-body p { font-size: 14px; line-height: 1.5; color: var(--text); }
.notif-body small { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }
.notif-unread-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
}
.notif-delete-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 14px; cursor: pointer; padding: 8px 16px;
  opacity: 0; transition: opacity 0.2s, color 0.2s;
}
.notif-item:hover .notif-delete-btn { opacity: 1; }
.notif-delete-btn:hover { color: #ff6b6b; }
.action-btn.saved{
  color: var(--yellow);
}

/* ================================================
   AI RECOMMENDER PAGE
   ================================================ */
.recommend-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 52px 28px; text-align: center; position: relative; overflow: hidden;
}
.recommend-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(252,252,98,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.recommend-hero-content { position: relative; z-index: 1; }
.ai-badge {
  display: inline-block; background: var(--surface);
  border: 1px solid var(--yellow); color: var(--yellow);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.recommend-hero h1 {
  font-family: 'Bebas Neue', cursive; font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 1px; color: var(--cream); line-height: 0.95; margin-bottom: 12px;
}
.recommend-hero p { font-size: 16px; color: var(--text-muted); }

/* Layout */
.recommend-layout {
  max-width: 1200px; margin: 28px auto; padding: 0 20px;
  display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start;
}
@media (max-width: 900px) { .recommend-layout { grid-template-columns: 1fr; } }

/* Preference buttons */
.pref-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-btn {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 13px; padding: 7px 13px;
  border-radius: var(--radius-pill); cursor: pointer; transition: all 0.18s;
}
.pref-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.pref-btn.active { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 600; }

.recommend-btn {
  width: 100%; padding: 14px; font-size: 16px;
  margin-top: 4px; border-radius: var(--radius);
}

/* Empty / loading */
.recommend-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 60px 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; color: var(--text-muted);
}
.recommend-empty span { font-size: 52px; }
.recommend-empty h3 { font-family: 'Bebas Neue', cursive; font-size: 22px; color: var(--text); }
.recommend-empty p { font-size: 14px; }

.recommend-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 60px 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; color: var(--text-muted);
  font-size: 14px;
}

/* AI thinking dots */
.ai-thinking { display: flex; gap: 6px; align-items: center; padding: 8px 0; }
.ai-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); animation: bounce 1.2s infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.4; }
  40%         { transform: translateY(-8px); opacity: 1; }
}

/* Recommendation results */
.recommend-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.recommend-results-header h3 {
  font-family: 'Bebas Neue', cursive; font-size: 24px; letter-spacing: 0.5px;
}

/* Recommend card */
.recommend-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  animation: fadeInUp 0.4s ease both; transition: border-color 0.2s;
}
.recommend-card:hover { border-color: var(--yellow); }

.recommend-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.recommend-emoji { font-size: 36px; flex-shrink: 0; }
.recommend-card-header h3 { font-size: 18px; font-weight: 700; display: block; }
.recommend-type { font-size: 12px; color: var(--text-muted); }
.recommend-price {
  margin-left: auto; font-size: 12px; font-weight: 700;
  background: var(--surface); padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.recommend-desc {
  font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 12px;
}
.recommend-why {
  background: var(--surface); border-left: 3px solid var(--yellow);
  padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--yellow); margin-bottom: 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.recommend-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.recommend-difficulty { font-size: 12px; color: var(--text-muted); }
.recommend-share-btn { padding: 7px 16px; font-size: 13px; }

/* Follow-up chat */
.recommend-chat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 16px;
}
.recommend-chat-history {
  max-height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 14px;
}
.chat-follow-msg {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.6; max-width: 85%;
}
.user-msg {
  background: var(--yellow); color: #000;
  align-self: flex-end; border-radius: 12px 12px 4px 12px;
}
.ai-msg {
  background: var(--surface); color: var(--text);
  align-self: flex-start; border-radius: 12px 12px 12px 4px;
}
.recommend-chat-input {
  display: flex; gap: 10px; align-items: center;
}
.recommend-chat-input input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 10px 16px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.recommend-chat-input input:focus { border-color: var(--yellow); }


.msg-action-btns {
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transition: opacity 0.2s;
}
.message-bubble-wrap:hover .msg-action-btns { opacity: 1; }


.widget-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.widget-header .widget-title { margin-bottom: 0; }
.widget-edit-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  cursor: pointer; transition: all 0.2s;
}
.widget-edit-btn:hover { border-color: var(--yellow); color: var(--yellow); }

/* ================================================
   EVENTS PAGE
   ================================================ */
.events-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 48px 28px; text-align: center; position: relative; overflow: hidden;
}
.events-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(252,252,98,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.events-hero-content { position: relative; z-index: 1; }
.events-hero h1 {
  font-family: 'Bebas Neue', cursive; font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 1px; color: var(--cream); line-height: 1; margin-bottom: 8px;
}
.events-hero p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }

.events-layout { max-width: 900px; margin: 28px auto; padding: 0 20px; }

/* Tabs */
.events-tabs {
  display: flex; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
}
.events-tab {
  flex: 1; background: none; border: none; padding: 14px 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s;
}
.events-tab:hover { color: var(--text); background: var(--surface); }
.events-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); background: var(--surface); }
.events-tab-content { display: none; animation: fadeIn 0.3s; }
.events-tab-content.active { display: block; }

/* Event card */
.event-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 16px; transition: border-color 0.2s, transform 0.2s;
  animation: fadeInUp 0.4s ease both;
}
.event-card:hover { border-color: var(--yellow); transform: translateY(-2px); }

.event-card-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.event-card-date {
  background: var(--yellow); color: #000;
  border-radius: var(--radius-sm); padding: 8px 12px;
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; min-width: 56px;
}
.event-card-date.past { background: var(--surface); color: var(--text-muted); }
.event-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.event-day   { font-family: 'Bebas Neue', cursive; font-size: 28px; line-height: 1; }

.event-card-info { flex: 1; }
.event-card-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.event-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 3px; }
.event-desc { font-size: 13px; color: var(--text-sub); margin-top: 8px; line-height: 1.6; }

.event-card-creator {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.event-card-creator img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover;
}
.event-card-creator small { font-size: 10px; color: var(--text-muted); }

.event-drinks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.event-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.event-invitees { display: flex; align-items: center; gap: 4px; }
.invitee-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg2); object-fit: cover;
  margin-left: -6px;
}
.invitee-avatar:first-child { margin-left: 0; }
.invitee-extra {
  font-size: 12px; color: var(--text-muted);
  background: var(--surface); border-radius: 50%;
  width: 28px; height: 28px; display: flex;
  align-items: center; justify-content: center;
  border: 2px solid var(--bg2); margin-left: -6px;
}
.invitees-count { font-size: 12px; color: var(--text-muted); margin-left: 8px; }

.event-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.event-action-btn { padding: 7px 14px; font-size: 13px; }
.event-status-badge {
  font-size: 13px; color: var(--yellow);
  background: var(--surface); padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Event detail */
.event-detail-info { display: flex; flex-direction: column; gap: 8px; }
.event-detail-info p { font-size: 14px; color: var(--text-sub); }
.event-rsvp-stats {
  display: flex; gap: 20px;
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 14px 20px;
}
.rsvp-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rsvp-stat strong { font-family: 'Bebas Neue', cursive; font-size: 28px; color: var(--yellow); }
.rsvp-stat span { font-size: 12px; color: var(--text-muted); }

/* Selected invitees */
.invitees-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.selected-invitee {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px 10px 4px 6px;
}
.selected-invitee img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.selected-invitee span { font-size: 12px; }
.selected-invitee button {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 12px; padding: 0; line-height: 1;
}
.selected-invitee button:hover { color: #ff6b6b; }

/* ================================================
   GLOBAL SEARCH DROPDOWN
   ================================================ */
.nav-search { position: relative; }

.search-dropdown {
  display: none; position: absolute; top: calc(100% + 8px);
  left: 0; right: 0; min-width: 320px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 500; overflow: hidden;
  animation: fadeInUp 0.15s ease;
}
.search-dropdown.open { display: block; }

.search-dropdown-header {
  padding: 10px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid var(--border);
}
.search-result-item:last-of-type { border-bottom: none; }
.search-result-item:hover { background: var(--surface); }

.search-result-item img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover; flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-info strong {
  font-size: 14px; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-info small { font-size: 11px; color: var(--text-muted); }

.search-result-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Highlight matching text */
.search-highlight {
  background: rgba(252,252,98,0.3);
  color: var(--yellow); border-radius: 2px;
  padding: 0 1px; font-style: normal;
}

.search-loading {
  padding: 16px 14px; font-size: 13px; color: var(--text-muted);
  text-align: center;
}
.search-no-results {
  padding: 20px 14px; text-align: center;
  color: var(--text-muted);
}
.search-no-results span { font-size: 24px; display: block; margin-bottom: 8px; }
.search-no-results p { font-size: 13px; }
.search-no-results strong { color: var(--yellow); }

.search-dropdown-footer {
  padding: 9px 14px; background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
  text-align: center;
}
