/* ══════════════════════════════════════════════════
   Yadanarbon Hub — Facebook Style Social Platform
   ══════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Facebook Design System) ─── */
:root {
  /* Facebook Base Tokens (Dark by default) */
  --fb-blue:          #1877F2;
  --fb-blue-hover:    #166FE5;
  --fb-blue-light:    rgba(24, 119, 242, 0.15);
  --fb-bg:            #18191A;
  --fb-card:          #242526;
  --fb-card-hover:    #3A3B3C;
  --fb-border:        #393A3B;
  --fb-divider:       #3E4042;
  --fb-text:          #E4E6EB;
  --fb-text-secondary:#B0B3B8;
  --fb-text-muted:    #8A8D91;
  --fb-btn-bg:        #3A3B3C;
  --fb-btn-hover:     #4E4F50;
  --fb-input-bg:      #3A3B3C;
  --fb-header-bg:     #242526;
  --fb-shadow:        0 1px 2px rgba(0, 0, 0, 0.2);
  --fb-shadow-lg:     0 8px 30px rgba(0, 0, 0, 0.35);

  /* Legacy variable mappings for backward compatibility */
  --bg-deep:          var(--fb-bg);
  --bg-dark:          var(--fb-header-bg);
  --bg-card:          var(--fb-card);
  --bg-card-hover:    var(--fb-card-hover);
  --glass-border:     var(--fb-border);
  --glass-border-hover: var(--fb-blue);
  --text-primary:     var(--fb-text);
  --text-secondary:   var(--fb-text-secondary);
  --text-muted:       var(--fb-text-muted);
  --text-accent:      #2D88FF;
  --accent-primary:   var(--fb-blue);
  --accent-secondary: #2D88FF;
  --gradient-main:    linear-gradient(135deg, #1877F2 0%, #2D88FF 100%);
  --gradient-card:    linear-gradient(135deg, rgba(24, 119, 242, 0.08) 0%, rgba(45, 136, 255, 0.03) 100%);

  /* Category Colors */
  --cat-confession:   #F3425F;
  --cat-academic:     #45BD62;
  --cat-lost-found:   #F7B125;
  --cat-notice:       #1877F2;
  --cat-scholarship:  #EAB308;
  --cat-event:        #9360F7;
  --cat-social:       #2D88FF;
  --cat-creative:     #F02849;
  --cat-help:         #2ECC71;
  --cat-news:         #3578E5;
  --cat-general:      #8A8D91;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --fb-blue:          #1877F2;
  --fb-blue-hover:    #166FE5;
  --fb-blue-light:    rgba(24, 119, 242, 0.08);
  --fb-bg:            #F0F2F5;
  --fb-card:          #FFFFFF;
  --fb-card-hover:    #F7F8FA;
  --fb-border:        #CED0D4;
  --fb-divider:       #E4E6EB;
  --fb-text:          #050505;
  --fb-text-secondary:#65676B;
  --fb-text-muted:    #8A8D91;
  --fb-btn-bg:        #E4E6EB;
  --fb-btn-hover:     #D8DADF;
  --fb-input-bg:      #F0F2F5;
  --fb-header-bg:     #FFFFFF;
  --fb-shadow:        0 1px 2px rgba(0, 0, 0, 0.1);
  --fb-shadow-lg:     0 8px 30px rgba(0, 0, 0, 0.12);

  --bg-deep:          var(--fb-bg);
  --bg-dark:          var(--fb-header-bg);
  --bg-card:          var(--fb-card);
  --bg-card-hover:    var(--fb-card-hover);
  --glass-border:     var(--fb-border);
  --glass-border-hover: var(--fb-blue);
  --text-primary:     var(--fb-text);
  --text-secondary:   var(--fb-text-secondary);
  --text-muted:       var(--fb-text-muted);
  --text-accent:      #1877F2;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Pyidaungsu', 'Myanmar Text', 'Padauk', 'Noto Sans Myanmar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--fb-bg);
  color: var(--fb-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; background: none; font: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; }

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6,6,15,0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(139,92,246,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }

.logo-icon { font-size: 28px; }

.logo-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-link.nav-cta {
  background: var(--gradient-main);
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
}

.nav-link.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-text);
  cursor: pointer;
  box-shadow: var(--fb-shadow);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.mobile-header-login-btn:hover {
  background: var(--fb-card-hover);
  border-color: var(--fb-blue);
  color: var(--fb-blue);
  transform: translateY(-1px);
}
.mobile-header-login-btn svg {
  color: var(--fb-blue);
  fill: currentColor;
}

.mobile-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  cursor: pointer;
  overflow: hidden;
}
.mobile-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,10,26,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px;
  gap: 8px;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-slow);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav .nav-link {
  width: 100%;
  text-align: center;
  padding: 12px;
}

/* Mobile Nav Auth Bar */
.btn-google-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-google-mobile:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.mobile-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.mobile-nav-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mobile-nav-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-mobile-logout {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(139,92,246,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59,130,246,0.12) 0%, transparent 60%);
}

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: rgba(139,92,246,0.12); top: -50px; left: 10%; animation-delay: 0s; }
.orb-2 { width: 200px; height: 200px; background: rgba(59,130,246,0.1); top: 20%; right: 10%; animation-delay: -3s; }
.orb-3 { width: 150px; height: 150px; background: rgba(236,72,153,0.08); bottom: 10%; left: 50%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  animation: fadeInDown 0.7s ease 0.1s both;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  animation: fadeInDown 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInDown 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInDown 0.7s ease 0.4s both;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.btn-tg {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #229ED9, #0088cc);
  color: #fff;
}
.btn-tg:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── MAIN LAYOUT ────────────────────────────────── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.cat-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.cat-btn.active {
  background: rgba(139,92,246,0.15);
  color: var(--text-accent);
  border: 1px solid rgba(139,92,246,0.3);
}

/* Trending */
.trending-list { display: flex; flex-direction: column; gap: 12px; }

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.trending-item:hover { background: rgba(255,255,255,0.04); }

.trending-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 24px;
  line-height: 1;
}

.trending-text {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Telegram promo */
.sidebar-telegram { background: var(--gradient-card); }
.tg-promo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.tg-icon { font-size: 28px; }
.tg-promo strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tg-promo p { font-size: 12px; color: var(--text-muted); }

/* ─── FEED ───────────────────────────────────────── */
.feed-section { min-height: 400px; }

.feed-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }

.sort-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.sort-btn {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.sort-btn.active {
  background: var(--gradient-main);
  color: #fff;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ─── POST CARD ──────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.4s ease both;
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.post-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139,92,246,0.15);
}
.post-card:hover::before { opacity: 1; }

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

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

.post-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-time {
  font-size: 12px;
  color: var(--text-muted);
}

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* Category badge colors */
.cat-academic   { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.cat-scholarship{ background: rgba(250,204,21,0.15); color: #facc15; border: 1px solid rgba(250,204,21,0.3); }
.cat-event      { background: rgba(244,114,182,0.15); color: #f472b6; border: 1px solid rgba(244,114,182,0.3); }
.cat-social     { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.cat-creative   { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.3); }
.cat-help       { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.cat-news       { background: rgba(167,139,250,0.15); color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); }
.cat-general    { background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }

/* Post Content */
.post-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Post Images */
.post-images {
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-image-single {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-image-grid {
  display: grid;
  gap: 4px;
}
.post-image-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.post-image-grid.grid-3 { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.post-image-grid.grid-3 .img-item:first-child { grid-row: span 2; }

.img-item {
  overflow: hidden;
  border-radius: 8px;
}
.img-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.img-item img:hover { transform: scale(1.03); }

.more-photos-overlay {
  position: relative;
}
.more-photos-overlay::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* Post Footer */
.post-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.reaction-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.reaction-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

.reaction-btn.reacted {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.4);
  color: var(--text-accent);
}

.reaction-count { font-size: 12px; }

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.action-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

/* ─── SKELETON LOADERS ───────────────────────────── */
.post-skeleton, .trending-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.sk-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-border);
  flex-shrink: 0;
}

.sk-meta { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.sk-line {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.sk-line-40 { width: 40%; }
.sk-line-60 { width: 60%; }
.sk-line-70 { width: 70%; }
.sk-line-80 { width: 80%; }
.sk-line-90 { width: 90%; }

.sk-img-placeholder {
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 40px;
}

/* ─── MODAL ──────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-content {
  background: #12122a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  margin: auto;
  position: relative;
  padding: 32px;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text-primary); }

/* ─── TOAST ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a35;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(10,10,26,0.6);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-accent); }

.footer-copy { font-size: 13px; color: var(--text-muted); }

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

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

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

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

/* ─── UTILITIES ──────────────────────────────────── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 16px 14px 60px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .feed-section { order: 1; }

  .sidebar .sidebar-card:not(:first-child) { display: none; }

  .category-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .category-list::-webkit-scrollbar { display: none; }

  .cat-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .mobile-header-actions { display: flex; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero {
    padding: 96px 16px 44px;
    min-height: 380px;
  }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 14px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }

  .post-card { padding: 14px; border-radius: var(--radius-md); }
  .reaction-group { gap: 6px; }
  .reaction-btn { padding: 6px 10px; font-size: 13px; }
  .action-btn { padding: 6px 10px; font-size: 13px; }

  .feed-controls { flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }

  .modal-overlay { padding: 12px; }
  .modal-content {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    max-height: 90vh;
  }
  .submit-textarea { font-size: 14px; }
}

/* --------------------------------------------------
   Submit Post & Auth � Additional Styles
   -------------------------------------------------- */

/* --- Header Auth ---------------------------------- */
.btn-sm { padding: 8px 14px; font-size: 13px; }

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

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 500; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Create Post Bar (Facebook-style) ------------ */
.create-post-bar {
  max-width: 760px;
  margin: -10px auto 8px;
  padding: 0 24px;
}

.create-post-inner {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition);
}
.create-post-inner:hover { border-color: rgba(139,92,246,0.3); }

.cp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cp-prompt {
  flex: 1;
  text-align: left;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.cp-prompt:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.cp-actions {
  display: flex;
  gap: 6px;
}

.cp-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition);
}
.cp-action-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary);
}

/* --- Submit Modal --------------------------------- */
.submit-modal-content {
  max-width: 580px !important;
  padding: 0 !important;
  overflow: hidden;
}

.submit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.submit-modal-title {
  font-size: 18px;
  font-weight: 700;
}

/* Login Prompt */
.login-prompt {
  padding: 40px 24px;
  text-align: center;
}
.login-icon { font-size: 56px; margin-bottom: 16px; }
.login-prompt h3 { font-size: 20px; margin-bottom: 10px; }
.login-prompt p { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

/* Submission Form */
#submit-form { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 18px; }

.submit-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.submit-avatar { width: 44px; height: 44px; font-size: 18px; }

.submit-user-name { font-size: 15px; font-weight: 600; }
.submit-user-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.submit-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* Textarea */
.submit-textarea-wrap { position: relative; }

.submit-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  resize: vertical;
  min-height: 120px;
  outline: none;
  font-family: 'Inter','Noto Sans Myanmar',sans-serif;
  line-height: 1.6;
  transition: border-color var(--transition);
}
.submit-textarea::placeholder { color: var(--text-muted); }
.submit-textarea:focus {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.submit-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Category Grid */
.submit-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cat-radio { cursor: pointer; }
.cat-radio input { display: none; }
.cat-radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition);
  text-align: center;
}
.cat-radio input:checked + span {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.5);
  color: var(--text-accent);
}
.cat-radio:hover span {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* Photo Upload */
.photo-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  min-height: 100px;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}
.photo-upload-area:hover {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.05);
}

.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.photo-upload-icon { font-size: 32px; }
.photo-upload-note { font-size: 12px; }

.photo-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}

/* Submit Footer */
.submit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  gap: 12px;
}

.submit-note { font-size: 12px; color: var(--text-muted); }

/* Success */
.submit-success-wrap {
  padding: 48px 24px;
  text-align: center;
}
.success-icon { font-size: 64px; margin-bottom: 16px; animation: bounce 0.6s ease; }
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.submit-success-wrap h3 { font-size: 22px; margin-bottom: 10px; }
.submit-success-wrap p { color: var(--text-muted); margin-bottom: 28px; }

/* --- FAB (Floating Action Button) ---------------- */
.fab-btn {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 24px rgba(139,92,246,0.5);
  z-index: 90;
  transition: all var(--transition);
  align-items: center;
  justify-content: center;
}
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(139,92,246,0.7); }

/* Uploading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive ----------------------------------- */
@media (max-width: 900px) {
  .create-post-bar { max-width: 100%; }
  .cp-actions { display: none; }
}

@media (max-width: 640px) {
  .fab-btn { display: flex; }
  .create-post-bar { padding: 0 12px; margin-bottom: 4px; }
  .submit-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .submit-footer { flex-direction: column; align-items: stretch; }
  .submit-footer .btn { width: 100%; justify-content: center; }
  #submit-form { padding: 16px; }
}


/* ─── SPECIAL NAV BADGE ───────────────────────────── */
.nav-link-special {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(236,72,153,0.35) !important;
  border-radius: 20px;
  padding: 6px 14px !important;
}
.nav-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(236,72,153,0.6);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(236,72,153,0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(236,72,153,0.9); }
}

/* ─── SEGMENTED VIEW SWITCHER ─────────────────────── */
.view-switch-section {
  max-width: 1200px;
  margin: 12px auto 8px;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .view-switch-section {
    display: none !important;
  }
}
.view-switch-container {
  display: flex;
  justify-content: center;
}
.view-switch-bar {
  display: inline-flex;
  background: rgba(15, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.view-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.view-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.view-switch-btn.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
#tab-blind-date-btn.active {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.45);
}
.switch-pill {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}
.switch-hot {
  font-size: 11px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* ─── TAB VIEWS ──────────────────────────────────── */
.tab-view {
  display: block;
  animation: fadeIn 0.3s ease;
}
.tab-view.hidden {
  display: none !important;
}

/* ─── BLIND DATE SECTION ─────────────────────────── */
.bd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}
.bd-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236,72,153,0.12) 0%, rgba(139,92,246,0.12) 50%, rgba(59,130,246,0.08) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.bd-hero-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.bd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.bd-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bd-hero-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 20px;
}
.bd-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bd-cta-btn {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
}
.bd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.6);
}
.bd-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.bd-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 5px 12px;
  border-radius: 16px;
}
.bd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ─── BD CONTROLS BAR ────────────────────────────── */
.bd-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bd-filters-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bd-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.bd-filter-btn:hover {
  color: #fff;
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.1);
}
.bd-filter-btn.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25));
  border-color: #ec4899;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.3);
}
.bd-mode-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4px;
  gap: 4px;
}
.bd-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.bd-mode-btn.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.bd-search-row {
  margin-bottom: 24px;
}
.bd-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 10px;
  transition: border-color var(--transition);
}
.bd-search-box:focus-within {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}
.bd-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
}

/* ─── SWIPE CARD MODE (TINDER STYLE) ─────────────── */
.bd-swipe-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 30px;
}
.bd-deck-area {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 540px;
  perspective: 1200px;
  margin: 0 auto;
}
.bd-deck-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}
.bd-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0f0f23;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  user-select: none;
  cursor: grab;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  touch-action: pan-y;
}
.bd-card:active {
  cursor: grabbing;
}
.bd-card.is-dragging {
  transition: none !important;
}
.bd-card.swiped-left {
  transform: translate(-150%, 40px) rotate(-35deg) !important;
  opacity: 0;
  pointer-events: none;
}
.bd-card.swiped-right {
  transform: translate(150%, 40px) rotate(35deg) !important;
  opacity: 0;
  pointer-events: none;
}
.bd-card.swiped-up {
  transform: translate(0, -150%) rotate(0deg) !important;
  opacity: 0;
  pointer-events: none;
}
/* Card Background & Photo */
.bd-card-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bd-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.bd-card-placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  font-size: 72px;
}
.bd-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.96) 0%, rgba(6,6,15,0.55) 45%, rgba(6,6,15,0.05) 80%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
/* Card Top Bar */
.bd-card-top-bar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.bd-verified-badge {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bd-zodiac-pill {
  background: rgba(15, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #f0f0ff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
}
/* Stamps */
.bd-stamp {
  position: absolute;
  top: 50px;
  font-size: 30px;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 12px;
  border: 4px solid;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transform: rotate(-15deg);
  transition: opacity 0.1s ease;
}
.bd-stamp.stamp-like {
  right: 24px;
  color: #10b981;
  border-color: #10b981;
  transform: rotate(15deg);
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.bd-stamp.stamp-nope {
  left: 24px;
  color: #ef4444;
  border-color: #ef4444;
  transform: rotate(-15deg);
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.bd-stamp.stamp-super {
  top: 70px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  color: #38bdf8;
  border-color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
/* Card Bottom Info */
.bd-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 4;
}
.bd-card-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.bd-card-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.bd-card-age {
  font-size: 22px;
  font-weight: 400;
  color: #cbd5e1;
}
.bd-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.bd-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
.bd-chip.chip-gender-female {
  background: rgba(244, 114, 182, 0.2);
  border-color: rgba(244, 114, 182, 0.4);
  color: #f9a8d4;
}
.bd-chip.chip-gender-male {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}
.bd-chip.chip-zodiac {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.35);
  color: #fde047;
}
.bd-card-bio {
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action Toolbar Buttons */
.bd-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.bd-action-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(20, 20, 40, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  text-decoration: none;
}
.bd-action-circle:hover {
  transform: scale(1.15) translateY(-4px);
}
.bd-action-circle:active {
  transform: scale(0.95);
}
.bd-action-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}
.bd-action-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bd-btn-pass {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.bd-btn-pass:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
}
.bd-btn-superlike {
  width: 52px;
  height: 52px;
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.bd-btn-superlike:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}
.bd-btn-like {
  width: 72px;
  height: 72px;
  border-color: rgba(236, 72, 153, 0.45);
  color: #ec4899;
}
.bd-btn-like .bd-action-icon { font-size: 28px; }
.bd-btn-like:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}
.bd-btn-chat {
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}
.bd-btn-chat:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #a78bfa;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}
.bd-keyboard-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.bd-keyboard-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-secondary);
}

/* ─── GALLERY GRID MODE ──────────────────────────── */
.bd-singles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 0 40px;
}
.bd-grid-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.bd-grid-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(236, 72, 153, 0.15);
}
.bd-grid-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1e1b4b;
}
.bd-grid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.bd-grid-card:hover .bd-grid-photo {
  transform: scale(1.05);
}
.bd-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.95) 0%, rgba(6,6,15,0.3) 50%, transparent 100%);
}
.bd-grid-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.bd-grid-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bd-grid-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.bd-grid-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.bd-grid-age {
  font-size: 16px;
  color: var(--text-secondary);
}
.bd-grid-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-grid-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.bd-grid-btn-like {
  flex: 1;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bd-grid-btn-like:hover {
  background: rgba(236, 72, 153, 0.3);
  border-color: #ec4899;
  color: #fff;
  transform: translateY(-1px);
}
.bd-grid-btn-chat {
  flex: 1;
  background: var(--gradient-main);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}
.bd-grid-btn-chat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ─── MATCH CELEBRATION MODAL ─────────────────────── */
.match-modal-content {
  max-width: 480px;
  background: linear-gradient(135deg, rgba(20, 15, 35, 0.96) 0%, rgba(10, 10, 25, 0.96) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 25px 70px rgba(236, 72, 153, 0.25), 0 0 40px rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
}
.match-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.match-heart-pulse {
  font-size: 48px;
  animation: heartPulse 1s infinite alternate cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 8px;
}
@keyframes heartPulse {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.2); }
}
.match-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}
.match-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.match-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.match-highlight {
  color: #f472b6;
}
.match-avatars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.match-avatar-bubble {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  overflow: hidden;
  background: #1e1b4b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.match-avatar-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-avatar-bubble .avatar-emoji {
  font-size: 32px;
}
.match-avatar-bubble .avatar-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}
.match-heart-connect {
  font-size: 32px;
  animation: heartBounce 1.5s infinite;
}
@keyframes heartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(12deg); }
}
.match-details-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}
.match-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-match-tg {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.45);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
}

/* --- Responsive overrides ------------------------- */
@media (max-width: 900px) {
  .bd-hero-title { font-size: 26px; }
  .bd-deck-area { max-width: 360px; height: 500px; }
}

@media (max-width: 640px) {
  .view-switch-btn { padding: 8px 14px; font-size: 13px; }
  .bd-hero-card { padding: 20px 16px; border-radius: var(--radius-lg); }
  .bd-hero-title { font-size: 22px; }
  .bd-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .bd-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .bd-stats-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .bd-deck-area { max-width: 100%; height: 440px; }
  .bd-actions-toolbar { gap: 12px; }
  .bd-action-circle { width: 52px; height: 52px; }
  .bd-btn-like { width: 62px; height: 62px; }
  .bd-keyboard-hint { display: none; }
}

/* ══════════════════════════════════════════════════
   FACEBOOK STYLE COMPONENTS & THEME
   ══════════════════════════════════════════════════ */

/* --- Facebook Header ----------------------------- */
.fb-header {
  background: var(--fb-header-bg) !important;
  border-bottom: 1px solid var(--fb-border) !important;
  box-shadow: var(--fb-shadow);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.fb-header-inner {
  max-width: 1380px !important;
  height: 56px !important;
  padding: 0 16px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fb-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}
.fb-logo-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1877F2 0%, #00C6FF 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.4);
  flex-shrink: 0;
}
.fb-logo-text .logo-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--fb-blue) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  letter-spacing: -0.3px;
}
.fb-logo-text .logo-sub {
  font-size: 11px;
  color: var(--fb-text-secondary);
  display: block;
}
.fb-header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 6px;
}
.fb-search-ico {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--fb-text-secondary);
  pointer-events: none;
}
.fb-header-search {
  background: var(--fb-input-bg);
  border: 1px solid transparent;
  border-radius: 50px;
  height: 38px;
  width: 220px;
  padding: 0 16px 0 36px;
  color: var(--fb-text);
  font-size: 14px;
  transition: width 0.2s, border-color 0.2s, background 0.2s;
}
.fb-header-search:focus {
  width: 280px;
  border-color: var(--fb-blue);
  outline: none;
}

/* --- Facebook Center Tabs ------------------------ */
.fb-header-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  gap: 4px;
}
.fb-tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  color: var(--fb-text-secondary);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}
.fb-tab-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.fb-tab-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.fb-tab-item:hover {
  background: var(--fb-card-hover);
  color: var(--fb-text);
}
.fb-tab-item.active {
  color: var(--fb-blue);
}
.fb-tab-indicator {
  display: none;
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--fb-blue);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.fb-tab-item.active .fb-tab-indicator {
  display: block;
}
.fb-badge-dot {
  background: #E41E3F;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  position: static;
  margin-left: 2px;
  letter-spacing: 0.02em;
}

/* --- Facebook Right Actions ---------------------- */
.fb-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  justify-content: flex-end;
}
.fb-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fb-btn-bg);
  color: var(--fb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  border: none;
}
.fb-circle-btn:hover {
  background: var(--fb-btn-hover);
  transform: scale(1.05);
}
.btn-google-fb {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60,64,67,0.15);
  transition: background 0.15s, box-shadow 0.15s;
}
[data-theme="dark"] .btn-google-fb {
  background: #1F1F1F;
  color: #E8EAED;
  border-color: #5F6368;
}
.btn-google-fb:hover {
  background: #F8FAFC;
  box-shadow: 0 2px 6px rgba(60,64,67,0.25);
}
.fb-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fb-btn-bg);
  color: var(--fb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  border: 1px solid var(--fb-border);
}

/* --- Facebook Stories Reel ----------------------- */
.fb-stories-wrapper {
  margin: 0 0 16px 0;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0 4px 0;
}
.fb-stories-wrapper::-webkit-scrollbar { display: none; }
.fb-stories-track {
  display: flex;
  gap: 8px;
  min-width: max-content;
}
.fb-story-card {
  width: 112px;
  height: 180px;
  border-radius: 12px;
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.fb-story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fb-shadow-lg);
}
.fb-story-card .fb-story-icon {
  font-size: 28px;
  margin-bottom: auto;
}
.fb-story-card .fb-story-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fb-text);
  line-height: 1.3;
}
.fb-story-create {
  background: var(--fb-card);
  align-items: center;
  text-align: center;
}
.fb-story-avatar-bg {
  width: 100%;
  height: 115px;
  background: linear-gradient(135deg, #1877F2 0%, #00C6FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: absolute;
  top: 0; left: 0;
}
.fb-story-plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 3px solid var(--fb-card);
  position: absolute;
  top: 100px;
  left: calc(50% - 16px);
  z-index: 2;
}
.fb-story-create .fb-story-title {
  margin-top: 125px;
  font-size: 12px;
  font-weight: 700;
}
.fb-story-bd {
  background: linear-gradient(135deg, rgba(236,72,153,0.3) 0%, rgba(139,92,246,0.3) 100%), var(--fb-card);
}
.fb-story-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #E41E3F;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
}
.fb-story-confession {
  background: linear-gradient(135deg, rgba(243,66,95,0.25) 0%, rgba(251,113,133,0.1) 100%), var(--fb-card);
}
.fb-story-academic {
  background: linear-gradient(135deg, rgba(69,189,98,0.25) 0%, rgba(52,211,153,0.1) 100%), var(--fb-card);
}
.fb-story-scholarship {
  background: linear-gradient(135deg, rgba(247,177,37,0.25) 0%, rgba(234,179,8,0.1) 100%), var(--fb-card);
}
.fb-story-event {
  background: linear-gradient(135deg, rgba(147,96,247,0.25) 0%, rgba(192,132,252,0.1) 100%), var(--fb-card);
}

/* --- Facebook "What's on your mind?" Card -------- */
.fb-create-card {
  max-width: 100%;
  width: 100%;
  margin: 0 0 16px 0;
  background: var(--fb-card);
  border-radius: 10px;
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-shadow);
  padding: 12px 16px;
}
.fb-create-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-prompt-input {
  flex: 1;
  background: var(--fb-btn-bg);
  border: none;
  border-radius: 50px;
  height: 40px;
  padding: 0 16px;
  color: var(--fb-text-secondary);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.fb-prompt-input:hover {
  background: var(--fb-btn-hover);
}
.fb-create-divider {
  height: 1px;
  background: var(--fb-divider);
  margin: 10px 0 6px 0;
}
.fb-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.fb-create-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 8px;
  color: var(--fb-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.fb-create-action-btn:hover {
  background: var(--fb-card-hover);
  color: var(--fb-text);
}
.fb-action-ico {
  font-size: 18px;
}

/* --- Facebook Feed Layout ------------------------ */
.fb-feed-layout {
  max-width: 1220px !important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 640px) 280px;
  gap: 24px;
  padding: 16px 16px 80px 16px;
  justify-content: center;
  align-items: start;
}
@media (max-width: 1140px) {
  .fb-feed-layout {
    grid-template-columns: 240px minmax(0, 640px);
    justify-content: center;
  }
  .fb-right-sidebar { display: none !important; }
}
@media (max-width: 860px) {
  .fb-feed-layout {
    grid-template-columns: minmax(0, 600px);
    justify-content: center;
    padding: 12px 10px 80px 10px;
  }
  .fb-left-sidebar, .sidebar { display: none !important; }
}

/* --- Facebook Post Card -------------------------- */
.fb-post-card {
  background: var(--fb-card) !important;
  border-radius: 10px !important;
  border: 1px solid var(--fb-border) !important;
  box-shadow: var(--fb-shadow) !important;
  margin-bottom: 16px;
  overflow: visible;
  padding: 0 !important;
  transition: box-shadow 0.15s;
}
.fb-post-card:hover {
  box-shadow: var(--fb-shadow-lg) !important;
}
.fb-card-header {
  padding: 12px 16px 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fb-text);
}
.fb-badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.fb-card-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fb-text-secondary);
}
.fb-globe-icon {
  font-size: 12px;
  color: var(--fb-text-muted);
}
.fb-cat-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.fb-post-menu-wrap {
  margin-left: auto;
}
.fb-dots-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--fb-text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.fb-dots-btn:hover {
  background: var(--fb-btn-bg);
  color: var(--fb-text);
}
.fb-post-body {
  padding: 6px 16px 14px 16px;
  font-size: 15.5px;
  color: var(--fb-text);
  line-height: 1.8;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-line;
}
.fb-hashtag {
  color: var(--fb-blue);
  font-weight: 600;
}
.fb-post-images {
  margin: 0;
  width: 100%;
}
.fb-post-img-single {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.fb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-height: 380px;
}
.fb-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  max-height: 420px;
}

/* --- Facebook Reactions Summary Bar ------------- */
.fb-reactions-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--fb-text-secondary);
}
.fb-reactions-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fb-emoji-bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.fb-total-count {
  margin-left: 6px;
  font-weight: 600;
}
.fb-meta-comments {
  cursor: pointer;
}
.fb-meta-comments:hover {
  text-decoration: underline;
}
.fb-card-divider {
  height: 1px;
  background: var(--fb-divider);
  margin: 0 16px;
}

/* --- Facebook 3-Action Buttons ------------------- */
.fb-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  gap: 4px;
}
.fb-action-bar > * {
  flex: 1 1 0;
  min-width: 0;
}
.fb-like-container,
.fb-btn-container {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}
.fb-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 4px;
  border-radius: 6px;
  color: var(--fb-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.fb-action-btn span,
.fb-like-text,
.fb-action-text {
  white-space: nowrap !important;
  font-size: 14px;
  font-weight: 600;
}
.fb-action-btn:hover {
  background: var(--fb-card-hover);
  color: var(--fb-text);
}
.fb-like-btn.reacted {
  color: var(--fb-blue) !important;
  font-weight: 700;
}

/* --- Facebook Reaction Flyout -------------------- */
.fb-reaction-flyout {
  display: none;
  position: absolute;
  bottom: 44px;
  left: 0;
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: 50px;
  box-shadow: var(--fb-shadow-lg);
  padding: 6px 10px;
  gap: 8px;
  z-index: 100;
  animation: flyoutPop 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.fb-like-container:hover .fb-reaction-flyout,
.fb-like-container.show-flyout .fb-reaction-flyout {
  display: flex;
}
@keyframes flyoutPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.fb-flyout-emoji {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}
.fb-flyout-emoji:hover {
  transform: scale(1.35) translateY(-4px);
}

/* --- Facebook Comments Section ------------------- */
.fb-comments-section {
  padding: 12px 16px 16px 16px;
  background: var(--fb-card);
  border-top: 1px solid var(--fb-divider);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.fb-comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.fb-comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 16px;
  flex-shrink: 0;
}
.fb-comment-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--fb-input-bg);
  border-radius: 20px;
  padding: 0 8px 0 14px;
  height: 36px;
  border: 1px solid transparent;
}
.fb-comment-input-box:focus-within {
  border-color: var(--fb-blue);
}
.fb-comment-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fb-text);
  font-size: 13.5px;
}
.fb-comment-send-btn {
  background: none;
  border: none;
  color: var(--fb-blue);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}
.fb-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fb-comment-bubble-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fb-comment-bubble-avatar {
  width: 30px;
  height: 30px;
  font-size: 14px;
  flex-shrink: 0;
}
.fb-comment-bubble {
  background: var(--fb-btn-bg);
  border-radius: 16px;
  padding: 8px 12px;
  max-width: calc(100% - 40px);
}
.fb-comment-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fb-text);
  margin-bottom: 2px;
}
.fb-comment-text {
  font-size: 13.5px;
  color: var(--fb-text);
  word-break: break-word;
}
.fb-tg-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fb-blue);
  padding: 4px 0;
}

/* --- Facebook Mobile Bottom Navigation ----------- */
.fb-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  /* 1. Header */
  .fb-header-tabs {
    display: none !important;
  }
  .fb-header-search-wrap {
    display: none !important;
  }
  .fb-header-right {
    min-width: auto;
    gap: 6px;
  }
  #login-btn,
  .btn-google-fb,
  #nav-create-btn {
    display: none !important;
  }
  .logo-sub {
    display: none;
  }
  .logo-title {
    font-size: 15px;
  }
  .fb-logo-circle {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  /* 2. Feed Layout */
  .fb-feed-layout {
    grid-template-columns: minmax(0, 100%) !important;
    padding: 8px 8px 76px 8px !important;
    gap: 12px !important;
  }
  .fb-left-sidebar, .sidebar, .fb-right-sidebar {
    display: none !important;
  }
  .fb-post-card {
    border-radius: 8px !important;
    margin-bottom: 12px;
  }
  .fb-card-header {
    padding: 10px 12px 6px 12px;
  }
  .fb-post-body {
    padding: 6px 12px 10px 12px;
    font-size: 14.5px;
    line-height: 1.7;
  }
  .fb-reactions-summary {
    padding: 8px 12px;
  }
  .fb-card-divider {
    margin: 0 12px;
  }

  /* 3. Stories */
  .fb-stories-wrapper {
    margin: 0 0 12px 0;
  }
  .fb-story-card {
    width: 95px;
    height: 154px;
    padding: 8px;
    border-radius: 10px;
  }
  .fb-story-avatar-bg {
    height: 95px;
    font-size: 34px;
  }
  .fb-story-plus-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 80px;
    left: calc(50% - 14px);
  }
  .fb-story-create .fb-story-title {
    margin-top: 105px;
    font-size: 11px;
  }

  /* 4. Action Buttons */
  .fb-action-btn {
    font-size: 13px;
    gap: 4px;
    height: 36px;
  }
  .fb-action-btn span,
  .fb-like-text,
  .fb-action-text {
    font-size: 13px !important;
  }

  /* 5. Blind Date Area */
  .bd-deck-area {
    max-width: 100%;
    height: min(500px, calc(100vh - 230px));
  }
  .bd-swipe-wrapper {
    padding: 6px 0 20px;
  }
  .bd-singles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 6px 0 30px;
  }

  /* 6. Mobile Bottom Navigation */
  .fb-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--fb-header-bg);
    border-top: 1px solid var(--fb-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 200;
    align-items: center;
    justify-content: space-around;
  }
  .fb-bnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--fb-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }
  .fb-bnav-btn.active {
    color: var(--fb-blue);
  }
  .fb-bnav-icon {
    font-size: 18px;
    line-height: 1;
  }
  .fb-bnav-text {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
  }
  .fb-bnav-create {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--fb-blue);
    color: #fff;
    flex: 0 0 42px;
    margin: -10px 4px 0 4px;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fb-bnav-plus {
    font-size: 18px;
    color: #fff;
    line-height: 1;
  }
  .fab-btn {
    display: none !important;
  }
}
