/* ============================================ */
/* ========== 🔧 CUSTOMIZATION VARIABLES ========== */
/* ============================================ */
/* 1. डिफ़ॉल्ट लाइट मोड */
:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-main: #050505;
    --text-dim: #65676b;
    --border: #dddfe2;
    --nav-bg: #ffffff;
}

/* 2. डार्क मोड वेरिएबल्स */
body.dark-mode {
    --bg-body: #0b1220;
    --bg-card: #111827;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border: #334155;
    --nav-bg: #0f172a;
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
}

/* 3. पूरे ऐप पर लागू करना */
body {
    background-color: var(--bg-body) !important;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

.navbar, .post-container, .card, #dashboard-main-section {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

/* आइकन्स को हमेशा वेरिएबल से जोड़ें */
i { color: var(--text-main) !important; }
:root {
  /* ===== THEME COLORS ===== */
  --primary-1: #667eea;
  --primary-2: #764ba2;
  --primary-dark: #5a67d8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* ===== BACKGROUNDS ===== */
  --card-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --hover-bg: #f0f2f5;
  --input-bg: #f0f2f5;
  
  /* ===== TEXT COLORS ===== */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: #ffffff;
  
  /* ===== BORDERS ===== */
  --border-color: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* ===== NAVBAR SIZES ===== */
  --navbar-height-dt: 70px;
  --navbar-height-mob: 70px;
  --navbar-bg-dt: rgba(255, 255, 255, 0.95);
  --navbar-bg-mob: #ffffff;
  --navbar-blur: blur(8px);
  
  /* ===== LOGO ===== */
  --logo-height-dt: 40px;
  --logo-height-mob: 32px;
  --logo-font-dt: 1.4rem;
  --logo-font-mob: 1.2rem;
  --logo-justify-mob: left;
  --logo-top-mob: 8px;
  --logo-left-mob: 25px;
  --logo-padding-top-mob: 0px;
  --logo-padding-bottom-mob: 0px;
  
  /* ===== SEARCH BAR ===== */
  --search-width-dt: 320px;
  --search-width-mob: 50%;
  --search-height-mob: 20px;
  --search-top-mob: 6px;
  --search-left-mob: 45%;
  --search-right-mob: 5%;
  
  /* ===== STORIES ===== */
  --story-width-dt: 80px;
  --story-height-dt: 142px;
  --story-width-mob: 90px;
  --story-height-mob: 150px;
  --story-border: 3px solid var(--primary-1);
  
  /* ===== FEED ===== */
  --feed-max-width: 680px;
  --feed-margin-top-dt: 85px;
  --feed-margin-top-mob: -20px;
  --feed-height-dt: calc(100vh - 105px);
  --feed-height-mob: calc(100vh - 110px);
  
  /* ===== POST CARD ===== */
  --post-padding-dt: 16px;
  --post-padding-mob: 12px;
  --post-avatar-dt: 44px;
  --post-avatar-mob: 40px;
  
  /* ===== SIDEBARS ===== */
  --sidebar-left: 280px;
  --sidebar-right: 320px;
  --sidebar-gap: 24px;
  
  /* ============================================ */
  /* ===== 🔥 ICON CONTROLS - COMPLETE VERSION ===== */
  /* ============================================ */
  
  /* 📏 ICON GAP - Sirf icons ke beech ki doori */
  --icon-gap-dt: 20px;
  --icon-gap-mob: 13px;
  
  /* 🎯 MASTER POSITION - Sab icons ko ek saath move karna */
  /* DESKTOP MASTER */
  --master-top-dt: 0px;
  --master-left-dt: 0px;
  
  /* MOBILE MASTER - ALAG SE */
  --master-top-mob: -2px;
  --master-left-mob: 0px;
  
  /* 🎨 INDIVIDUAL POSITION - DESKTOP */
  --home-top-dt: 0px;
  --home-left-dt: 0px;
  
  --dashboard-top-dt: 0px;
  --dashboard-left-dt: 0px;
  
  --dark-top-dt: 0px;
  --dark-left-dt: 0px;
  
  --friends-top-dt: 0px;
  --friends-left-dt: 0px;
  
  --notify-top-dt: 0px;
  --notify-left-dt: 0px;
  
  --msg-top-dt: 0px;
  --msg-left-dt: 0px;
  
  --profile-top-dt: 0px;
  --profile-left-dt: 0px;
  
  /* 🎨 INDIVIDUAL POSITION - MOBILE (ALAG SE) */
  --home-top-mob: 0px;
  --home-left-mob: 0px;
  
  --dashboard-top-mob: 0px;
  --dashboard-left-mob: 8px;
  
  --dark-top-mob: 0px;
  --dark-left-mob: 5px;
  
  --friends-top-mob: 0px;
  --friends-left-mob: 0px;
  
  --notify-top-mob: 0px;
  --notify-left-mob: 0px;
  
  --msg-top-mob: 0px;
  --msg-left-mob: 0px;
  
  --profile-top-mob: 0px;
  --profile-left-mob: 0px;
  
  /* 📏 ICON SIZES */
  --navbar-icon-size-dt: 22px;
  --navbar-icon-size-mob: 20px;
  --profile-avatar-size-dt: 38px;
  --profile-avatar-size-mob: 28px;
  
  /* ===== POST ACTION ICONS ===== */
  --photo-size: 18px;
  --photo-top: 0px;
  --photo-left: 0px;
  --photo-color: #45bd62;
  
  --video-size: 18px;
  --video-top: 0px;
  --video-left: 0px;
  --video-color: #f02849;
  
  --feeling-size: 18px;
  --feeling-top: 0px;
  --feeling-left: 0px;
  --feeling-color: #f7b928;
}

/* ===== BASE STYLES ===== */
.navbar {
  position: relative;
  background: var(--navbar-bg-dt);
  backdrop-filter: var(--navbar-blur);
  height: var(--navbar-height-dt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Har icon ke liye base styles - GAP control ke liye */
.nav-item,
.nav-item-home,
.nav-item-dashboard,
.nav-item-friends,
.nav-item-notifications,
.nav-item-messages,
.dark-mode-toggle,
.nav-profile {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--anim-fast) ease;
  text-decoration: none;
  /* 👇 GAP YAHAN LAGAO - Sirf icons ke beech doori */
  margin-right: var(--icon-gap-dt);
}

/* Last icon ke baad margin hatana */
.nav-profile {
  margin-right: 0;
}

/* Icons base size */
.nav-item i,
.nav-item-home i,
.nav-item-dashboard i,
.nav-item-friends i,
.nav-item-notifications i,
.nav-item-messages i,
.dark-mode-toggle i,
.nav-profile i {
  font-size: var(--navbar-icon-size-dt);
  transition: all var(--anim-fast) ease;
}

/* ============================================================ */
/* 💻 DESKTOP - MASTER + INDIVIDUAL POSITION CONTROL */
/* ============================================================ */

@media (min-width: 769px) {
  
  /* 🎯 MASTER POSITION - DESKTOP */
  .nav-menu {
    position: relative;
    top: var(--master-top-dt);
    left: var(--master-left-dt);
  }
  
  /* 🎨 INDIVIDUAL POSITION - DESKTOP */
  .nav-item-home {
    position: relative;
    top: var(--home-top-dt);
    left: var(--home-left-dt);
  }
  
  .nav-item-dashboard {
    position: relative;
    top: var(--dashboard-top-dt);
    left: var(--dashboard-left-dt);
  }
  
  .dark-mode-toggle {
    position: relative;
    top: var(--dark-top-dt);
    left: var(--dark-left-dt);
  }
  
  .nav-item-friends {
    position: relative;
    top: var(--friends-top-dt);
    left: var(--friends-left-dt);
  }
  
  .nav-item-notifications {
    position: relative;
    top: var(--notify-top-dt);
    left: var(--notify-left-dt);
  }
  
  .nav-item-messages {
    position: relative;
    top: var(--msg-top-dt);
    left: var(--msg-left-dt);
  }
  
  .nav-profile {
    position: relative;
    top: var(--profile-top-dt);
    left: var(--profile-left-dt);
  }
  
  /* Profile avatar size */
  .nav-profile .profile-icon {
    width: var(--profile-avatar-size-dt) !important;
    height: var(--profile-avatar-size-dt) !important;
  }
}

/* ============================================================ */
/* 📱 MOBILE - MASTER + INDIVIDUAL POSITION CONTROL (ALAG) */
/* ============================================================ */

@media (max-width: 768px) {
  
  .navbar {
    height: var(--navbar-height-mob);
    background: var(--navbar-bg-mob);
  }
  
  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    /* 🎯 MASTER POSITION - MOBILE (ALAG VARIABLES) */
    position: relative;
    top: var(--master-top-mob);
    left: var(--master-left-mob);
  }
  
  /* Har icon ka margin - GAP control mobile */
  .nav-item,
  .nav-item-home,
  .nav-item-dashboard,
  .nav-item-friends,
  .nav-item-notifications,
  .nav-item-messages,
  .dark-mode-toggle,
  .nav-profile {
    margin-right: var(--icon-gap-mob);
  }
  
  /* Last icon ke baad margin hatana */
  .nav-profile {
    margin-right: 0;
  }
  
  /* 🎨 INDIVIDUAL POSITION - MOBILE (ALAG VARIABLES) */
  .nav-item-home {
    position: relative;
    top: var(--home-top-mob);
    left: var(--home-left-mob);
  }
  
  .nav-item-dashboard {
    position: relative;
    top: var(--dashboard-top-mob);
    left: var(--dashboard-left-mob);
  }
  
  .dark-mode-toggle {
    position: relative;
    top: var(--dark-top-mob);
    left: var(--dark-left-mob);
  }
  
  .nav-item-friends {
    position: relative;
    top: var(--friends-top-mob);
    left: var(--friends-left-mob);
  }
  
  .nav-item-notifications {
    position: relative;
    top: var(--notify-top-mob);
    left: var(--notify-left-mob);
  }
  
  .nav-item-messages {
    position: relative;
    top: var(--msg-top-mob);
    left: var(--msg-left-mob);
  }
  
  .nav-profile {
    position: relative;
    top: var(--profile-top-mob);
    left: var(--profile-left-mob);
  }
  
  /* Profile avatar size */
  .nav-profile .profile-icon {
    width: var(--profile-avatar-size-mob) !important;
    height: var(--profile-avatar-size-mob) !important;
  }
  
  /* Icon sizes */
  .nav-item i,
  .nav-item-home i,
  .nav-item-dashboard i,
  .nav-item-friends i,
  .nav-item-notifications i,
  .nav-item-messages i,
  .dark-mode-toggle i,
  .nav-profile i {
    font-size: var(--navbar-icon-size-mob) !important;
  }
}

/* ===== ICON STYLES (DESKTOP) - VARIABLES APPLIED ===== */
.nav-item-home i {
  font-size: var(--home-size-dt);
  transform: translate(var(--home-left-dt), var(--home-top-dt));
  color: var(--home-color-dt);
  transition: all var(--anim-fast);
}
.nav-item-home:hover i { color: var(--home-hover-color-dt); }



.dark-mode-toggle i {
  font-size: var(--dark-size-dt);
  transform: translate(var(--dark-left-dt), var(--dark-top-dt));
  color: var(--dark-color-dt);
  transition: all var(--anim-fast);
}
.dark-mode-toggle:hover i { color: var(--dark-hover-color-dt); }

.nav-item-friends i {
  font-size: var(--friends-size-dt);
  transform: translate(var(--friends-left-dt), var(--friends-top-dt));
  color: var(--friends-color-dt);
  transition: all var(--anim-fast);
}
.nav-item-friends:hover i { color: var(--friends-hover-color-dt); }

.nav-item-notifications i {
  font-size: var(--notify-size-dt);
  transform: translate(var(--notify-left-dt), var(--notify-top-dt));
  color: var(--notify-color-dt);
  transition: all var(--anim-fast);
}
.nav-item-notifications:hover i { color: var(--notify-hover-color-dt); }

.nav-item-messages i {
  font-size: var(--msg-size-dt);
  transform: translate(var(--msg-left-dt), var(--msg-top-dt));
  color: var(--msg-color-dt);
  transition: all var(--anim-fast);
}
.nav-item-messages:hover i { color: var(--msg-hover-color-dt); }

.nav-profile .profile-icon i {
  font-size: var(--profile-size-dt);
  transform: translate(var(--profile-left-dt), var(--profile-top-dt));
  color: var(--profile-color-dt);
  transition: all var(--anim-fast);
}
.nav-profile:hover .profile-icon i { color: var(--profile-hover-color-dt); }
.nav-profile .profile-icon {
  width: var(--profile-avatar-size-dt);
  height: var(--profile-avatar-size-dt);
}

/* ===== POST ACTION ICONS STYLES ===== */
.post-photo-btn i {
  font-size: var(--photo-size);
  transform: translate(var(--photo-left), var(--photo-top));
  color: var(--photo-color);
  transition: all var(--anim-fast);
}
.post-video-btn i {
  font-size: var(--video-size);
  transform: translate(var(--video-left), var(--video-top));
  color: var(--video-color);
  transition: all var(--anim-fast);
}
.post-feeling-btn i {
  font-size: var(--feeling-size);
  transform: translate(var(--feeling-left), var(--feeling-top));
  color: var(--feeling-color);
  transition: all var(--anim-fast);
}

/* ===== MOBILE ICON STYLES ===== */
@media (max-width: 768px) {
  .nav-item-home i {
    font-size: var(--home-size-mob);
    transform: translate(var(--home-left-mob), var(--home-top-mob));
  }
  .dark-mode-toggle i {
    font-size: var(--dark-size-mob);
    transform: translate(var(--dark-left-mob), var(--dark-top-mob));
  }
  .nav-item-friends i {
    font-size: var(--friends-size-mob);
    transform: translate(var(--friends-left-mob), var(--friends-top-mob));
  }
  .nav-item-notifications i {
    font-size: var(--notify-size-mob);
    transform: translate(var(--notify-left-mob), var(--notify-top-mob));
  }
  .nav-item-messages i {
    font-size: var(--msg-size-mob);
    transform: translate(var(--msg-left-mob), var(--msg-top-mob));
  }
  .nav-profile .profile-icon i {
    font-size: var(--profile-size-mob);
    transform: translate(var(--profile-left-mob), var(--profile-top-mob));
  }
  .nav-profile .profile-icon {
    width: var(--profile-avatar-size-mob);
    height: var(--profile-avatar-size-mob);
  }
}

/* Dark Mode */
body.dark-mode {
  --card-bg: #1e293b;
  --sidebar-bg: #1e1e2f;
  --hover-bg: #2c2c3d;
  --input-bg: #2a364a;
  --text-primary: #f3f4f6;
  --text-secondary: #ffffff;
  --border-color: #2d2d44;
  --navbar-bg-dt: rgba(18, 18, 30, 0.95);
  --navbar-bg-mob: #1e1e2f;
}
body.dark-mode i {
    color: white !important;
}
body.dark-mode {
    background-color: #000000 !important; /* या जो भी आपका डार्क कलर है */
}

/* फीड वाले कंटेनर का बैकग्राउंड भी डार्क करें */
body.dark-mode #main-app-content, 
body.dark-mode #home-feed-section,
body.dark-mode .main-content {
    background-color: #0f1930 !important;
}
/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 100%);
  background-attachment: fixed;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--anim-normal);
}

/* ===== AUTH CONTAINER ===== */
.auth-container {
  width: 90%;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  animation: fadeIn var(--anim-normal) ease;
}

@media (min-width: 768px) {
  .auth-container {
    max-width: 1000px;
    flex-direction: row;
    min-height: 600px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 100%);
  padding: 40px 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left h1 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}
.auth-left h1 i { margin-right: 10px; }
.auth-left h2 { font-size: 24px; margin-bottom: 15px; font-weight: 600; }
.auth-left p { font-size: 16px; line-height: 1.5; margin-bottom: 30px; opacity: 0.9; }

.features { list-style: none; }
.features li { margin: 15px 0; font-size: 16px; display: flex; align-items: center; }
.features li i { margin-right: 15px; font-size: 20px; }

.auth-right {
  flex: 1;
  padding: 40px 20px;
  background: var(--card-bg);
  overflow-y: auto;
}

.form-container {
  max-width: 100%;
  margin: 0 auto;
}

.form-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--anim-normal);
}
.tab-btn.active { color: var(--primary-1); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-1);
}

.auth-form { display: none; animation: slideIn var(--anim-normal) ease; }
.auth-form.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.input-group i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.input-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all var(--anim-normal);
  font-family: 'Inter', sans-serif;
  background: var(--card-bg);
  color: var(--text-primary);
}
.input-group input:focus {
  border-color: var(--primary-1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 100%);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-normal);
  margin-top: 15px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 0;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-1);
  color: var(--primary-1);
}
.btn-outline:hover {
  background: var(--primary-1);
  color: white;
}

.app-container {
  display: none;
  width: 100%;
  min-height: 100vh;
  background: #f0f2f5;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  transition: transform var(--anim-slow) ease, background var(--anim-normal);
  height: var(--navbar-height-dt);
  background: var(--navbar-bg-dt);
  backdrop-filter: var(--navbar-blur);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0 24px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

@media (max-width: 768px) {
  .navbar {
    height: var(--navbar-height-mob);
    background: var(--navbar-bg-mob);
    box-shadow: var(--shadow-md);
    padding: 0 12px;
  }
}

.navbar-hidden {
  transform: translateY(-110%);
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-img {
  height: var(--logo-height-dt);
  width: auto;
  display: block;
}
.logo span {
  font-weight: 700;
  font-size: var(--logo-font-dt);
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .logo {
    display: flex !important;
    width: 100%;
    justify-content: var(--logo-justify-mob);
    position: relative;
    top: var(--logo-top-mob);
    left: var(--logo-left-mob);
    padding-top: var(--logo-padding-top-mob);
    padding-bottom: var(--logo-padding-bottom-mob);
    gap: 0;
  }
  .logo span {
    display: block !important;
    font-size: var(--logo-font-mob) !important;
    font-weight: 700;
  }
  .logo-img, .logo img { display: none !important; }
}

.logo span, .site-title {
  font-weight: 700;
  display: block !important;
}

/* ===== SEARCH BAR ===== */
.nav-search {
  position: relative;
  flex: 1;
  max-width: var(--search-width-dt);
}
.nav-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.nav-search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--anim-fast);
}
.nav-search input:focus {
  border-color: var(--primary-1);
  background: var(--card-bg);
}

@media (max-width: 768px) {
  .nav-search {
    position: absolute;
    top: var(--search-top-mob);
    left: var(--search-left-mob);
    right: var(--search-right-mob);
    width: var(--search-width-mob);
    display: flex;
    z-index: 999;
    margin: 0 auto;
  }
  .nav-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
  }
  .nav-search input {
    width: 100%;
    height: var(--search-height-mob);
    padding-left: 38px !important;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
  }
}

.search-results {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1002;
}
.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  transition: background var(--anim-fast);
  border-bottom: 1px solid var(--border-color);
}
.search-result-item:hover { background: var(--hover-bg); }
.search-result-item .profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}
.search-result-item .result-info { flex: 1; }
.search-result-item .result-info h4 {
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.search-result-item .result-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== NAV MENU ===== */
.nav-menu {
  display: flex;
  gap: var(--icon-gap-dt);
  align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: -5px;
  top: 40px;
  background-color: var(--card-bg);
  width: 280px;
  max-height: 400px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  z-index: 1000000;
  overflow-y: auto;
  animation: floatDown var(--anim-fast) ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-content::-webkit-scrollbar { display: none; }
.dropdown-content { -ms-overflow-style: none; scrollbar-width: none; }
.dropdown-content.show { display: block; }

@keyframes floatDown {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  background: var(--hover-bg);
}
.dropdown-header h3 {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.dropdown-footer {
  padding: 10px 15px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.dropdown-footer .see-all-btn {
  background: none;
  border: none;
  color: var(--primary-1);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  padding: 5px;
  transition: background var(--anim-fast);
}
.dropdown-footer .see-all-btn:hover {
  background: var(--hover-bg);
  border-radius: 6px;
}

.notification-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--anim-fast);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.notification-dropdown-item:hover { background: var(--hover-bg); }
.notification-dropdown-item.unread { background: #eef3ff; }
.notification-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}
.notification-dropdown-content { flex: 1; }
.notification-dropdown-content h4 {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-weight: 600;
}
.notification-dropdown-content p {
  font-size: 11px;
  color: var(--text-secondary);
}
.notification-dropdown-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 20px;
}
.notification-delete {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 12px;
  opacity: 0.5;
  transition: opacity var(--anim-fast);
  cursor: pointer;
  color: #999;
  z-index: 1000000;
}
.notification-delete:hover {
  opacity: 1;
  color: var(--danger);
}

/* Friend request buttons */
.friend-request-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.friend-request-actions button {
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--anim-fast);
}
.btn-accept {
  background: var(--success);
  color: white;
}
.btn-accept:hover { background: #38a169; }
.btn-reject {
  background: var(--danger);
  color: white;
}
.btn-reject:hover { background: #e53e3e; }

.nav-item {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--anim-normal);
}
.nav-item:hover { background: var(--hover-bg); }

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 5px;
  border-radius: 30px;
  transition: all var(--anim-normal);
}
.nav-profile:hover { background: var(--hover-bg); }
.nav-profile .profile-icon {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  border-radius: 50%;
}

.profile-dropdown { min-width: 220px; }
.profile-dropdown .dropdown-item { padding: 10px 15px; }
.profile-dropdown .dropdown-item i {
  width: 20px;
  color: var(--primary-1);
  margin-right: 10px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1400px;
  margin: var(--feed-margin-top-dt) auto 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 769px) {
  .main-content {
    padding: 30px;
    grid-template-columns: var(--sidebar-left) 1fr var(--sidebar-right);
    gap: var(--sidebar-gap);
  }
}

.sidebar {
  background: var(--sidebar-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  display: none;
}
@media (min-width: 769px) { .sidebar { display: block; } }

.profile-card {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}
.profile-card .profile-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 35px;
}
.profile-card h3 {
  color: var(--text-primary);
  margin-bottom: 3px;
  font-size: 16px;
}
.profile-card p {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 3px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
}
.stat {
  text-align: center;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all var(--anim-normal);
}
.stat:hover { background: var(--hover-bg); }
.stat .number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.stat .label {
  font-size: 10px;
  color: var(--text-secondary);
}

.edit-profile-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--anim-normal);
}
.edit-profile-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-item {
  padding: 8px 10px;
  margin: 3px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--anim-normal);
  color: var(--text-secondary);
  font-size: 13px;
}
.menu-item:hover,
.menu-item.active {
  background: var(--hover-bg);
  color: var(--primary-1);
}
.menu-item i {
  margin-right: 8px;
  width: 18px;
  font-size: 14px;
}

/* ===== FEED ===== */
.feed {
  width: 100%;
  height: var(--feed-height-dt);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.feed::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.feed::-webkit-scrollbar-track,
.feed::-webkit-scrollbar-thumb {
  background: transparent !important;
  display: none !important;
}
@media (max-width: 768px) {
  .feed {
    margin-top: var(--feed-margin-top-mob);
    height: var(--feed-height-mob);
  }
}

/* ===== CREATE POST ===== */
.create-post {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--post-padding-dt);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .create-post {
    width: 100% !important;
    margin: 2px auto !important;
    box-sizing: border-box;
    padding: var(--post-padding-mob);
  }
}

.post-input {
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
  cursor: pointer;
}
.post-input .profile-icon {
  width: var(--post-avatar-dt);
  height: var(--post-avatar-dt);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .post-input .profile-icon {
    width: var(--post-avatar-mob);
    height: var(--post-avatar-mob);
    font-size: 16px;
  }
}
.post-input input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: var(--input-bg);
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-primary);
}

.post-actions {
  display: flex;
  gap: 5px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}
.post-actions button {
  flex: 1;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--anim-normal);
  font-size: 12px;
}
.post-actions button:hover { background: var(--hover-bg); }
.post-actions i {
  margin-right: 3px;
  color: var(--primary-1);
  font-size: 12px;
}

/* ===== POST CARD ===== */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--post-padding-dt);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: fadeInUp var(--anim-normal) ease;
}
@media (max-width: 768px) {
  .post-card { padding: var(--post-padding-mob); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.post-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.post-user .profile-icon {
  width: var(--post-avatar-dt);
  height: var(--post-avatar-dt);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
@media (max-width: 768px) {
  .post-user .profile-icon {
    width: var(--post-avatar-mob);
    height: var(--post-avatar-mob);
    font-size: 16px;
  }
}
.post-user h4 {
  color: var(--text-primary);
  margin-bottom: 2px;
  font-size: 14px;
}
.post-user small {
  color: var(--text-secondary);
  font-size: 10px;
}

.post-content {
  margin: 10px 0;
  line-height: 1.5;
  color: var(--text-primary);
  font-size: 13px;
}

.post-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background-color: var(--input-bg);
  border-radius: var(--radius-sm);
  margin: 10px 0;
  cursor: pointer;
}

.post-buttons {
  display: flex;
  gap: 15px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}
.post-buttons button {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  padding: 5px 0;
  transition: color var(--anim-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.post-buttons button:hover {
  color: var(--primary-1);
  text-decoration: underline;
}
.post-buttons button.liked { color: var(--primary-1); }

.post-menu {
  position: relative;
  display: inline-block;
}
.post-menu-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  color: #999;
  transition: background var(--anim-fast);
}
.post-menu-btn:hover { background: var(--hover-bg); }
.post-menu-content {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  min-width: 150px;
}
.post-menu-content.show { display: block; }
.post-menu-content .menu-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--anim-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-menu-content .menu-item:hover { background: var(--hover-bg); }
.post-menu-content .menu-item i {
  width: 16px;
  color: var(--primary-1);
}





.post-menu-content {
    display: none;
}

.post-menu-content.show {
    display: block;
}






.post-comment-input {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.post-comment-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  outline: none;
  background: var(--card-bg);
  color: var(--text-primary);
}
.post-comment-input input:focus { border-color: var(--primary-1); }
.post-comment-input button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-1);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--anim-normal);
  font-size: 14px;
}
.post-comment-input button:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.post-creation-options {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.post-action-dropdown {
  position: relative;
  flex: 1;
  min-width: 160px;
}
.compound-btn {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--anim-normal);
}
.compound-btn:hover {
  background: var(--hover-bg);
  border-color: var(--primary-1);
}
.compound-btn i {
  margin-right: 8px;
  color: var(--primary-1);
}
.post-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 50;
  padding: 8px 0;
}
.post-dropdown-menu.show {
  display: flex;
}
.post-dropdown-item {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}
.post-dropdown-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.post-creation-options button {
  flex: none;
  min-width: 0;
}
.post-creation-options button:hover {
  background: var(--hover-bg);
}
.post-creation-options button i {
  margin-right: 5px;
}

.file-input-container {
  margin: 10px 0;
  display: none;
}
.file-input-container.show { display: block; }
.file-input-container input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.image-preview, .video-preview {
  max-width: 100%;
  max-height: 150px;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  display: none;
}
.image-preview.show, .video-preview.show { display: block; }
.video-preview { max-height: 150px; }

.emoji-picker, .gif-picker {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  margin: 10px 0;
  max-height: 150px;
  overflow-y: auto;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.emoji-picker.show, .gif-picker.show { display: grid; }
.emoji-item, .gif-item {
  text-align: center;
  padding: 5px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  transition: background var(--anim-fast);
}
.emoji-item:hover, .gif-item:hover { background: var(--hover-bg); }
.gif-item {
  font-size: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
}

.validation-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
.validation-error.show { display: block; }

.right-sidebar {
  background: var(--sidebar-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  display: none;
}
@media (min-width: 768px) { .right-sidebar { display: block; } }
.right-sidebar::-webkit-scrollbar { width: 6px; }
.right-sidebar::-webkit-scrollbar-track { background: var(--border-color); }
.right-sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-1);
  border-radius: 10px;
}

.section-title {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--anim-normal);
  margin-bottom: 4px;
}
.friend-item:hover { background: var(--hover-bg); }
.friend-item .profile-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}
.friend-info { flex: 1; }
.friend-info h5 {
  color: var(--text-primary);
  margin-bottom: 2px;
  font-size: 13px;
}
.friend-info p {
  color: var(--text-secondary);
  font-size: 10px;
}

.online-dot {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--anim-normal);
  margin-bottom: 4px;
  background: var(--input-bg);
}
.notification-item:hover { background: var(--hover-bg); }
.notification-item.unread {
  background: #e8f0fe;
  border-left: 3px solid var(--primary-1);
}
.notification-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}
.notification-content { flex: 1; }
.notification-content p {
  color: var(--text-primary);
  font-size: 11px;
  margin-bottom: 2px;
}
.notification-content small {
  color: var(--text-muted);
  font-size: 9px;
}

/* ===== DYNAMIC PAGES ===== */
.dynamic-page {
  position: fixed;
  top: 50%;
  right: -400px;
  transform: translateY(-50%);
  width: 90%;
  max-width: 320px;
  height: 500px;
  background: var(--card-bg);
  border-radius: 20px 0 0 20px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: right var(--anim-slow) cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1500;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dynamic-page.active { right: 0; }

.page-header {
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}
.page-header .page-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}
.page-header-info { flex: 1; }
.page-header-info h3 {
  font-size: 15px;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--text-primary);
}
.page-header-info p {
  font-size: 10px;
  opacity: 0.8;
  color: var(--text-secondary);
}
.page-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity var(--anim-normal);
  color: #999;
}
.page-close:hover {
  opacity: 1;
  color: var(--text-primary);
}
.page-content {
  height: calc(100% - 60px);
  overflow-y: auto;
  padding: 15px;
  background: var(--hover-bg);
}
.page-content::-webkit-scrollbar { display: none; }
.page-content { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== CHAT ===== */
.chat-messages-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.chat-message.sent { align-self: flex-end; }
.chat-message.received { align-self: flex-start; }
.chat-bubble {
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}
.sent .chat-bubble {
  background: var(--primary-1);
  color: white;
  border-bottom-right-radius: 4px;
}
.received .chat-bubble {
  background: var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.encryption-icon {
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.7;
}
.sent .encryption-icon { color: rgba(255, 255, 255, 0.8); }
.received .encryption-icon { color: var(--text-muted); }
.chat-time {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 3px;
  align-self: flex-end;
}
.sent .chat-time { text-align: right; }
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}
.chat-input-area input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 13px;
  background: var(--card-bg);
  color: var(--text-primary);
}
.chat-input-area input:focus { border-color: var(--primary-1); }
.chat-input-area button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-1);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--anim-normal);
  font-size: 16px;
}
.chat-input-area button:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ===== POST DETAILS ===== */
.post-details-media {
  margin: 10px 0;
  width: 100%;
}
.post-details-media img,
.post-details-media video {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: var(--input-bg);
}
.post-details-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  cursor: pointer;
}
.post-details-header .profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.post-details-content {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 15px;
}
.post-details-content p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}
.post-details-stats {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 10px 0;
}
.post-details-stats span {
  font-size: 11px;
  color: var(--text-secondary);
}
.post-details-stats span i {
  color: var(--primary-1);
  margin-right: 3px;
}
.post-details-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.post-details-buttons button {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 5px 0;
  transition: color var(--anim-normal);
}
.post-details-buttons button:hover {
  color: var(--primary-1);
  text-decoration: underline;
}
.post-details-buttons button i { margin-right: 5px; }

.comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}
.comment-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.comment-item .comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}
.comment-details { flex: 1; }
.comment-details h5 {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
  cursor: pointer;
}
.comment-details h5:hover { text-decoration: underline; }
.comment-details p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.comment-details small {
  font-size: 9px;
  color: var(--text-muted);
}
.comment-input-area {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  border: 1px solid var(--border-color);
}
.comment-input-area input {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 12px;
  outline: none;
  color: var(--text-primary);
}
.comment-input-area button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-1);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--anim-normal);
  font-size: 12px;
}
.comment-input-area button:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ===== PROFILE CONTAINER ===== */
.profile-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.profile-container .profile-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.profile-container .profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}
.profile-container .profile-name {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.profile-container .profile-bio {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.profile-container .profile-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.profile-container .profile-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}
.profile-container .message-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-normal);
}
.profile-container .message-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.profile-container .follow-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-normal);
}
.profile-container .follow-btn.following { background: var(--success); }
.profile-container .follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.profile-container .profile-menu {
  position: relative;
  display: inline-block;
}
.profile-container .profile-menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background var(--anim-fast);
}
.profile-container .profile-menu-btn:hover { background: var(--hover-bg); }
.profile-container .profile-menu-content {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  min-width: 150px;
}
.profile-container .profile-menu-content.show { display: block; }
.profile-container .profile-menu-content .menu-item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--anim-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-container .profile-menu-content .menu-item:hover { background: var(--hover-bg); }
.profile-container .profile-menu-content .menu-item i {
  width: 16px;
  color: var(--primary-1);
}
.profile-container .profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}
.profile-container .profile-stat { text-align: center; }
.profile-container .profile-stat .number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-container .profile-stat .label {
  font-size: 10px;
  color: var(--text-secondary);
}
.profile-container .profile-posts {
  max-height: 400px;
  overflow-y: auto;
}
.profile-container .profile-post-item {
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background var(--anim-fast);
}
.profile-container .profile-post-item:hover { background: var(--hover-bg); }
.profile-container .profile-post-item p {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.profile-container .profile-post-item small {
  font-size: 9px;
  color: var(--text-muted);
}
.profile-container .profile-post-item img,
.profile-container .profile-post-item video {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 4px;
  margin-top: 5px;
  background-color: var(--input-bg);
}

.back-to-feed {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all var(--anim-normal);
}
.back-to-feed:hover { background: var(--primary-dark); }

/* ===== FRIENDS PAGE ===== */
.friends-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.friends-header h2 {
  font-size: 20px;
  color: var(--text-primary);
}
.friends-search {
  position: relative;
  width: 250px;
}
.friends-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.friends-search input {
  width: 100%;
  padding: 8px 8px 8px 35px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  background: var(--card-bg);
  color: var(--text-primary);
}
.friends-list {
  max-height: 400px;
  overflow-y: auto;
}
.friend-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--input-bg);
  transition: background var(--anim-fast);
}
.friend-list-item:hover { background: var(--hover-bg); }
.friend-list-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}
.friend-list-info { flex: 1; }
.friend-list-info h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.friend-list-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.friend-list-actions {
  display: flex;
  gap: 8px;
}
.friend-list-actions button {
  border: none;
  background: var(--primary-1);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--anim-fast);
}
.friend-list-actions button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.friend-list-actions .remove-btn { background: var(--danger); }
.friend-list-actions .remove-btn:hover { background: #e53e3e; }

/* ===== SAVED POSTS PAGE ===== */
.saved-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.saved-header { margin-bottom: 20px; }
.saved-header h2 {
  font-size: 20px;
  color: var(--text-primary);
}
.saved-list {
  max-height: 400px;
  overflow-y: auto;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--input-bg);
  cursor: pointer;
  transition: background var(--anim-fast);
}
.saved-item:hover { background: var(--hover-bg); }
.saved-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.saved-info { flex: 1; }
.saved-info h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.saved-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.saved-info small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== EVENTS PAGE ===== */
.events-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.events-header h2 {
  font-size: 20px;
  color: var(--text-primary);
}
.create-event-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--anim-fast);
}
.create-event-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.events-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.events-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--anim-fast);
}
.events-tab.active {
  background: var(--primary-1);
  color: white;
}
.events-list {
  max-height: 300px;
  overflow-y: auto;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--input-bg);
}
.event-date {
  width: 60px;
  height: 60px;
  background: var(--primary-1);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .day {
  font-size: 20px;
  font-weight: 700;
}
.event-date .month {
  font-size: 12px;
}
.event-info { flex: 1; }
.event-info h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.event-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.event-actions {
  display: flex;
  gap: 8px;
}
.event-actions button {
  border: none;
  background: var(--primary-1);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--anim-fast);
}
.event-actions button.attending { background: var(--success); }

/* ===== SETTINGS PAGE ===== */
.settings-container {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.settings-header { margin-bottom: 20px; }
.settings-header h2 {
  font-size: 20px;
  color: var(--text-primary);
}
.settings-section { margin-bottom: 25px; }
.settings-section h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}
.settings-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.settings-label {
  width: 150px;
  font-size: 14px;
  color: var(--text-secondary);
}
.settings-value { flex: 1; }
.settings-value input,
.settings-value textarea,
.settings-value select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--card-bg);
  color: var(--text-primary);
}
.settings-value input:focus,
.settings-value textarea:focus,
.settings-value select:focus { border-color: var(--primary-1); }
.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-toggle input[type="checkbox"] {
  width: 40px;
  height: 20px;
  appearance: none;
  background: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--anim-fast);
}
.settings-toggle input[type="checkbox"]:checked { background: var(--primary-1); }
.settings-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left var(--anim-fast);
}
.settings-toggle input[type="checkbox"]:checked::before { left: 22px; }
.save-settings-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-fast);
  margin-top: 10px;
}
.save-settings-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== CHATBOT ===== */
.chatbot-container {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 2000;
}
.chatbot-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all var(--anim-normal);
  animation: gentlePulse 2s infinite;
  border: 2px solid white;
}
.chatbot-button:hover { transform: scale(1.1); }
.chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 15px;
  width: 300px;
  height: 450px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: floatIn var(--anim-normal) ease;
}
.chatbot-window.active { display: flex; }
.chatbot-header {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  color: white;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-header .profile-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid white;
}
.chatbot-header-info { flex: 1; }
.chatbot-header-info h3 {
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 600;
}
.chatbot-header-info p {
  font-size: 10px;
  opacity: 0.9;
}
.chatbot-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity var(--anim-normal);
}
.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--hover-bg);
}
.chatbot-message {
  display: flex;
  margin-bottom: 12px;
}
.chatbot-message.bot { justify-content: flex-start; }
.chatbot-message.user { justify-content: flex-end; }
.chatbot-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12px;
}
.bot .chatbot-bubble {
  background: var(--card-bg);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.user .chatbot-bubble {
  background: var(--primary-1);
  color: white;
  border-bottom-right-radius: 4px;
}
.chatbot-time {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 3px;
}
.chatbot-input {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  background: var(--card-bg);
}
.chatbot-input input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 12px;
  background: var(--card-bg);
  color: var(--text-primary);
}
.chatbot-input input:focus { border-color: var(--primary-1); }
.chatbot-input button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary-1);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--anim-normal);
  font-size: 14px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideUp var(--anim-normal) ease;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 {
  color: var(--text-primary);
  font-size: 18px;
}
.modal-header h2 i {
  margin-right: 8px;
  color: var(--primary-1);
}
.close-modal {
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--anim-normal);
}
.close-modal:hover { color: var(--text-primary); }
.modal-body { padding: 15px; }
.form-control {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-1);
}

/* ===== STORIES CONTAINER ===== */
.stories-container {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}
.stories-container::-webkit-scrollbar { display: none; }
.story-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: var(--story-width-dt);
  flex-shrink: 0;
}
.story-avatar {
  width: var(--story-width-dt);
  height: var(--story-height-dt);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  border: var(--story-border);
  position: relative;
  overflow: hidden;
}
.story-avatar img,
.story-avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-add {
  background: #2c2c2c;
  border: 2px solid var(--primary-1);
}
.add-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #0095f6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid white;
}
.story-name {
  font-size: 11px;
  margin-top: 5px;
  text-align: center;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: var(--story-width-dt);
}
@media (max-width: 768px) {
  .story-item { width: var(--story-width-mob); }
  .story-avatar {
    width: var(--story-width-mob);
    height: var(--story-height-mob);
    font-size: 24px;
  }
  .story-name {
    font-size: 10px;
    max-width: var(--story-width-mob);
  }
}

/* ===== REEL ITEM ===== */
.reel-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  width: var(--story-width-dt);
  height: var(--story-height-dt);
  display: inline-flex;
  flex-direction: column;
  background: #1a1a1a;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .reel-item {
    width: var(--story-width-mob);
    height: var(--story-height-mob);
  }
}
.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  font-size: 9px;
}
.reel-overlay h4 {
  font-size: 9px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow-reel-btn {
  background: var(--primary-1);
  color: white;
  border: none;
  padding: 3px 6px;
  border-radius: 12px;
  font-size: 8px;
  cursor: pointer;
  margin-top: 3px;
  width: 100%;
}

/* ===== DARK MODE TOGGLE BUTTON ===== */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--anim-fast);
}
.dark-mode-toggle:hover { background: var(--hover-bg); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #323232;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  animation: slideInRight var(--anim-normal) ease;
  font-size: 14px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== EXPLORE GRID ===== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.explore-item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.explore-item img,
.explore-item video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* ===== ANALYTICS DASHBOARD ===== */
.analytics-dashboard {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
}
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.analytics-card {
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 15px;
  text-align: center;
}
.analytics-number {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-1);
}
.analytics-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== LOADING ===== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  margin-top: 12px;
  color: var(--primary-1);
  font-size: 13px;
  font-weight: 500;
}

/* ===== SKELETON LOADING ===== */
.skeleton-post {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 15px;
}
.skeleton-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.skeleton-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, var(--border-color) 25%, var(--hover-bg) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 50%;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--border-color) 25%, var(--hover-bg) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-content {
  height: 200px;
  background: linear-gradient(90deg, var(--border-color) 25%, var(--hover-bg) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 788px) {
  .sidebar { display: none !important; }
  .right-sidebar { display: none !important; }
  .main-content { padding: 0.01px; gap: 0; grid-template-columns: 1fr !important; }
  .dropdown-content { width: 150px; right: -12px; }
  
  .nav-content {
    flex-wrap: wrap;
    padding: 2px 2px;
    gap: var(--icon-gap-mob) !important;
  }
  .nav-search {
    flex: 1;
    order: 2;
  }
  .nav-search input {
    width: 60%;
    font-size: 12px;
    padding: 8px 6px 6px 25px;
  }
  .nav-search i {
    font-size: 12px;
    left: 10px;
  }
  .nav-menu {
    order: 3;
    gap: var(--icon-gap-mob);
  }
  .nav-item { padding: 6px; }
  .badge {
    font-size: 7px;
    padding: 3px 4px;
    min-width: 8px;
  }
}

/* ===== DESKTOP VIEW ===== */
@media (min-width: 769px) {
  .sidebar { display: block !important; }
  .right-sidebar { display: block !important; }
  .main-content {
    display: grid;
    grid-template-columns: var(--sidebar-left) 1fr var(--sidebar-right);
    gap: var(--sidebar-gap);
  }
  .feed {
    max-width: var(--feed-max-width);
    margin: 0 auto;
    width: 100%;
  }
  .nav-search input { width: 240px; }
  .story-item { width: var(--story-width-dt); }
  .story-avatar {
    width: var(--story-width-dt);
    height: var(--story-height-dt);
  }
  .nav-menu { gap: var(--icon-gap-dt); }
}

/* ===== LOGO IMAGE ===== */
.logo img {
  height: var(--logo-height-dt);
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo img { height: var(--logo-height-mob) !important; }
}
body.dark-mode .logo-img { content: url('images/logo-dark.png'); }

/* ===== ADDITIONAL DARK MODE STYLES ===== */
body.dark-mode .notification-item.unread { background: rgba(102, 126, 234, 0.2); }
body.dark-mode .search-results { background: var(--card-bg); }
body.dark-mode .dropdown-content { background: var(--card-bg); }
body.dark-mode .modal-content { background: var(--card-bg); }
body.dark-mode .chatbot-window { background: var(--card-bg); }
body.dark-mode .chatbot-messages { background: var(--hover-bg); }
body.dark-mode .story-view-modal { background: rgba(0, 0, 0, 0.9); }

/* ===== AI MODAL ===== */
.ai-modal-content { max-width: 400px; }
.ai-option {
  padding: 12px;
  margin: 8px 0;
  background: var(--hover-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ai-option:hover { background: var(--border-color); }

/* ===== MESSAGE MENU ===== */
.message-menu {
  position: absolute;
  right: 0;
  top: 0;
  display: none;
}
.chat-message:hover .message-menu { display: block; }
.message-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #999;
}
.message-menu-content {
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 10;
}
.message-menu-content.show { display: block; }
.message-menu-content .menu-item {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}
.message-menu-content .menu-item:hover { background: var(--hover-bg); }

/* ===== REACTION PICKER ===== */
.reaction-picker {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--card-bg);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}
.reaction-emoji {
  font-size: 24px;
  cursor: pointer;
  transition: transform var(--anim-fast);
}
.reaction-emoji:hover { transform: scale(1.2); }

/* ===== CHAT ATTACH BTN ===== */
.chat-attach-btn, .chat-ai-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--anim-fast);
}
.chat-attach-btn:hover, .chat-ai-btn:hover { background: var(--hover-bg); }

/* ===== MEDIA PREVIEW ===== */
.media-preview {
  max-width: 100%;
  max-height: 100px;
  margin-top: 5px;
  border-radius: var(--radius-sm);
}

/* ===== STORY VIEW MODAL ===== */
.story-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.story-view-modal.active { display: flex; }
.story-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}











/* इसे अपनी main style.css में सबसे नीचे जोड़ें */
/* 1. Navbar ko isolate karein taaki wo dashboard se alag rahe */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important; /* Navbar ko bahut upar rakhein */
    isolation: isolate;       /* Ye Iframe ke sath stacking conflict khatam karega */
    display: flex;
    align-items: center;
    transition: transform var(--anim-slow) ease, background var(--anim-normal);
    height: var(--navbar-height-dt);
    background: var(--navbar-bg-dt);
    backdrop-filter: var(--navbar-blur);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 24px;
}

/* 2. Dashboard Section - Z-index kam rakhein */
#dashboard-main-section {
    position: fixed;
    top: var(--navbar-height-dt, 60px);
    left: 0;
    z-index: 110; /* Navbar (99999) se bahut kam */
    background: var(--bg-color, #1a1a1a);
    height: calc(100vh - var(--navbar-height-dt, 60px));
    width: 100%;
    display: none; 
    overflow: hidden !important; /* Yahan hidden rakhein */
    pointer-events: auto; /* Click enable rakhein */
}

/* Dashboard container ka scrollbar hide karne ke liye */
#dashboard-main-section {
    -ms-overflow-style: none;  /* Internet Explorer aur Edge ke liye */
    scrollbar-width: none;     /* Firefox ke liye */
}

/* Chrome, Safari, aur Opera ke liye */
#dashboard-main-section::-webkit-scrollbar {
    display: none;
}

/* IFRAME SPECIFIC STYLES - SCROLLBAR COMPLETELY HIDE */
#dashboard-iframe {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    height: calc(100vh - var(--navbar-height-dt, 60px) - 120px) !important; /* Height adjust karein */
    border: none !important;
    display: block !important;
}

#dashboard-iframe::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 3. Dropdown - Sabse upar */
.dropdown-content {
    /* ... baki purani styles wahi rehne dein ... */
    z-index: 999999 !important; /* Navbar se bhi upar */
    position: absolute;
}


/* Dashboard section - SCROLL ENABLE, SCROLLBAR HIDE */
#dashboard-main-section {
    overflow-y: auto !important;  /* Scroll chalu rakho */
    scrollbar-width: none !important;  /* Firefox: scrollbar hide */
    -ms-overflow-style: none !important;  /* IE/Edge: scrollbar hide */
}

#dashboard-main-section::-webkit-scrollbar {
    display: none !important;  /* Chrome/Safari: scrollbar hide */
    width: 0 !important;
    height: 0 !important;
}

/* Iframe - SCROLL ENABLE, SCROLLBAR HIDE */
#dashboard-iframe {
    overflow-y: auto !important;  /* Scroll chalu */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#dashboard-iframe::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}








