/* === LOVORA — Complete Frontend Stylesheet === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --pink: #ff4b7a;
  --pink-light: #ff6b95;
  --pink-gradient: linear-gradient(135deg, #ff4b7a, #ff6b95);
  --purple: #7c3aed;
  --purple-light: #8b5cf6;
  --purple-gradient: linear-gradient(135deg, #7c3aed, #8b5cf6);
  --dark-blue: #0f1729;
  --dark: #0d1117;
  --dark-card: #161b22;
  --dark-surface: #1c2333;
  --dark-gray: #212838;
  --red: #ef4444;
  --orange: #f97316;
  --gold: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  --white: #ffffff;
  --light-gray: #f3f4f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(124,58,237,0.3);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50%;
  --font-primary: 'Poppins', sans-serif;
  --font-bengali: 'Hind Siliguri', sans-serif;
  --nav-height: 72px;
  --header-height: 60px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--font-primary);
  background:var(--dark);
  color:var(--text-primary);
  min-height:100vh;
  padding-top:var(--header-height);
  padding-bottom:calc(var(--nav-height) + 60px);
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:manipulation;
  -webkit-font-smoothing:antialiased;
}

::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--dark-gray); border-radius:10px; }

a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
button { cursor:pointer; border:none; outline:none; font-family:inherit; }
input, textarea, select { font-family:inherit; outline:none; border:none; background:transparent; color:var(--text-primary); }
ul { list-style:none; }
.bn { font-family:var(--font-bengali); }

/* === ADSTERRA PLACEHOLDER === */
.ad-placeholder {
  background:var(--dark-surface);
  border-radius:var(--radius-md);
  overflow:hidden;
  text-align:center;
  position:relative;
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  font-size:11px;
  border:1px dashed var(--border-color);
  margin:12px 0;
}
.ad-placeholder.native { min-height:80px; }
.ad-placeholder.banner { min-height:50px; max-width:320px; margin:8px auto; }
.ad-placeholder.reel { position:absolute; inset:0; z-index:2; margin:0; border-radius:0; background:rgba(0,0,0,0.5); }

/* === SKELETON LOADER === */
.skeleton {
  background:linear-gradient(90deg, var(--dark-surface) 25%, var(--dark-gray) 50%, var(--dark-surface) 75%);
  background-size:200% 100%;
  animation:skeleton-pulse 1.5s ease-in-out infinite;
  border-radius:var(--radius-sm);
}
@keyframes skeleton-pulse { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.skeleton-card { height:320px; border-radius:var(--radius-md); }
.skeleton-avatar { width:56px; height:56px; border-radius:50%; }
.skeleton-text { height:14px; width:60%; margin:8px 0; }
.skeleton-text.short { width:40%; }
.skeleton-text.long { width:80%; }
.skeleton-badge { width:40px; height:40px; border-radius:50%; }

/* === GLASS CARD === */
.glass-card {
  background:var(--glass-bg);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-md);
  transition:var(--transition);
}
.glass-card:hover { border-color:rgba(255,255,255,0.2); background:rgba(255,255,255,0.08); }

/* === GRADIENT TEXT === */
.gradient-text {
  background:var(--pink-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.gradient-text.purple { background:var(--purple-gradient); -webkit-background-clip:text; background-clip:text; }
.gradient-text.gold { background:var(--gold-gradient); -webkit-background-clip:text; background-clip:text; }

/* === BUTTONS === */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 24px;
  border-radius:50px;
  font-size:14px;
  font-weight:600;
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}
.btn-primary {
  background:var(--pink-gradient);
  color:var(--white);
  box-shadow:0 4px 15px rgba(255,75,122,0.3);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 25px rgba(255,75,122,0.4); }
.btn-purple {
  background:var(--purple-gradient);
  color:var(--white);
  box-shadow:0 4px 15px rgba(124,58,237,0.3);
}
.btn-purple:hover { transform:translateY(-2px); box-shadow:0 6px 25px rgba(124,58,237,0.4); }
.btn-outline {
  border:2px solid var(--border-color);
  color:var(--text-primary);
  background:transparent;
}
.btn-outline:hover { border-color:var(--pink); color:var(--pink); }
.btn-sm { padding:6px 16px; font-size:12px; }
.btn-lg { padding:14px 32px; font-size:16px; }
.btn-icon {
  width:44px; height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-surface);
  color:var(--text-primary);
  transition:var(--transition);
  font-size:18px;
}
.btn-icon:hover { background:var(--dark-gray); transform:scale(1.05); }

/* === TOP HEADER === */
.top-header {
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  height:var(--header-height);
  background:rgba(13,17,25,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-color);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}
.header-left { display:flex; align-items:center; gap:10px; }
.header-logo {
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.5px;
}
.header-logo span:first-child { color:var(--white); }
.header-logo span:last-child { color:var(--pink); }
.header-logo .crown { color:var(--gold); font-size:16px; }
.header-right { display:flex; align-items:center; gap:6px; }
.header-btn {
  width:38px; height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-surface);
  color:var(--text-secondary);
  transition:var(--transition);
  font-size:16px;
  position:relative;
}
.header-btn:hover { background:var(--dark-gray); color:var(--text-primary); }
.header-btn .badge {
  position:absolute;
  top:-2px; right:-2px;
  width:18px; height:18px;
  border-radius:50%;
  background:var(--pink);
  color:var(--white);
  font-size:9px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--dark);
}
.premium-badge {
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px 12px;
  border-radius:50px;
  background:var(--gold-gradient);
  color:var(--white);
  font-size:11px;
  font-weight:700;
  transition:var(--transition);
  cursor:pointer;
}
.premium-badge:hover { transform:scale(1.05); box-shadow:0 0 20px rgba(245,158,11,0.4); }
.premium-badge i { font-size:12px; }

/* === PROFILE ACTION ROW === */
.profile-actions-row {
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
}
.profile-action-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:14px 10px;
  border-radius:14px;
  background:var(--dark-surface);
  border:1px solid var(--border-color);
  text-decoration:none;
  min-width:0;
  transition:transform 0.2s, border-color 0.2s;
  flex:1;
}
.profile-action-btn:hover {
  transform:translateY(-2px);
  border-color:var(--pink);
}
.profile-action-btn i { font-size:20px; }
.profile-action-btn span {
  font-size:10px;
  font-weight:600;
  color:var(--text-primary);
  white-space:nowrap;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position:fixed;
  bottom:0; left:0; right:0;
  z-index:1000;
  height:var(--nav-height);
  background:rgba(13,17,25,0.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--border-color);
  display:flex;
  align-items:center;
  justify-content:space-around;
  padding:0 4px;
  padding-bottom:env(safe-area-inset-bottom);
}
.nav-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding:6px 12px;
  border-radius:12px;
  transition:var(--transition);
  cursor:pointer;
  position:relative;
  min-width:56px;
}
.nav-item i {
  font-size:22px;
  color:var(--text-muted);
  transition:var(--transition);
}
.nav-item span {
  font-size:10px;
  color:var(--text-muted);
  font-weight:500;
  transition:var(--transition);
}
.nav-item:hover i, .nav-item:hover span { color:var(--text-secondary); }
.nav-item.active i { color:var(--pink); text-shadow:0 0 20px rgba(255,75,122,0.4); }
.nav-item.active span { color:var(--pink); }
.nav-item.active::before {
  content:'';
  position:absolute;
  top:-1px;
  left:50%;
  transform:translateX(-50%);
  width:24px;
  height:3px;
  background:var(--pink-gradient);
  border-radius:0 0 4px 4px;
}
.nav-item .nav-badge {
  position:absolute;
  top:2px; right:8px;
  width:18px; height:18px;
  border-radius:50%;
  background:var(--pink);
  color:var(--white);
  font-size:8px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--dark);
}

/* === MAIN CONTAINER === */
.container {
  max-width:480px;
  margin:0 auto;
  padding:0 16px;
}
.page-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  position:relative;
}
.page-header h2 { font-size:20px; font-weight:700; }
.page-header .back-btn {
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-surface);
  color:var(--text-secondary);
  font-size:16px;
  cursor:pointer;
  transition:var(--transition);
}
.page-header .back-btn:hover { background:var(--dark-gray); }

/* === STORIES === */
.stories-section {
  padding:16px 0;
  overflow:hidden;
}
.stories-container {
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:4px 0 8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.stories-container::-webkit-scrollbar { display:none; }
.story-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  cursor:pointer;
  flex-shrink:0;
  scroll-snap-align:start;
  transition:var(--transition);
}
.story-item:hover { transform:scale(1.05); }
.story-avatar-wrap {
  width:68px; height:68px;
  border-radius:50%;
  padding:3px;
  background:var(--pink-gradient);
  position:relative;
}
.story-avatar-wrap.has-story { background:var(--pink-gradient); }
.story-avatar-wrap.no-story { background:var(--dark-gray); }
.story-avatar {
  width:100%; height:100%;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--dark);
  background:var(--dark-surface);
}
.story-add {
  position:absolute;
  bottom:0; right:0;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--pink);
  color:white;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--dark);
}
.story-online {
  position:absolute;
  bottom:2px; right:2px;
  width:12px; height:12px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid var(--dark);
}
.story-name { font-size:11px; color:var(--text-secondary); max-width:68px; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* === STORIES FULLSCREEN OVERLAY === */
.story-viewer {
  position:fixed;
  inset:0;
  z-index:9999;
  background:var(--dark);
  display:none;
  flex-direction:column;
}
.story-viewer.active { display:flex; }
.story-viewer-top {
  position:absolute;
  top:0; left:0; right:0;
  z-index:10;
  padding:16px;
}
.story-progress-wrap {
  display:flex;
  gap:4px;
  margin-bottom:12px;
}
.story-progress-bar {
  flex:1;
  height:3px;
  background:rgba(255,255,255,0.2);
  border-radius:4px;
  overflow:hidden;
}
.story-progress-fill {
  height:100%;
  width:0%;
  background:var(--white);
  border-radius:4px;
  transition:width 0.1s linear;
}
.story-progress-fill.active { animation:storyProgress 5s linear forwards; }
@keyframes storyProgress { 0%{width:0%} 100%{width:100%} }
.story-viewer-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.story-viewer-user {
  display:flex;
  align-items:center;
  gap:10px;
}
.story-viewer-user img {
  width:32px; height:32px;
  border-radius:50%;
  object-fit:cover;
}
.story-viewer-user span { font-size:14px; font-weight:600; }
.story-viewer-user small { font-size:11px; color:var(--text-muted); display:block; }
.story-viewer-close {
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.1);
  color:white;
  font-size:18px;
  cursor:pointer;
}
.story-viewer-image {
  flex:1;
  background:var(--dark-surface);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:60px;
  color:var(--text-muted);
}

/* === USER CARDS (Feed) === */
.user-card {
  background:var(--dark-card);
  border-radius:var(--radius-md);
  overflow:hidden;
  margin-bottom:16px;
  transition:var(--transition);
  border:1px solid var(--border-color);
}
.user-card:hover { border-color:rgba(255,255,255,0.15); transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.user-card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px 8px;
}
.user-card-user {
  display:flex;
  align-items:center;
  gap:10px;
}
.user-card-avatar {
  width:44px; height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--dark-surface);
  position:relative;
}
.user-card-avatar .online-dot {
  position:absolute;
  bottom:1px; right:1px;
  width:10px; height:10px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid var(--dark-card);
}
.user-card-info h4 { font-size:14px; font-weight:600; }
.user-card-info h4 span { color:var(--text-muted); font-weight:400; font-size:13px; }
.user-card-info small { font-size:11px; color:var(--text-muted); display:block; }
.user-card-info small i { margin-right:4px; }
.user-card-match {
  font-size:12px;
  font-weight:700;
  color:var(--pink);
  display:flex;
  align-items:center;
  gap:4px;
}
.user-card-image {
  width:100%;
  height:280px;
  object-fit:cover;
  background:var(--dark-surface);
}
.user-card-interests {
  display:flex;
  gap:6px;
  padding:10px 16px 0;
  flex-wrap:wrap;
}
.interest-tag {
  padding:4px 12px;
  border-radius:50px;
  background:rgba(124,58,237,0.15);
  color:var(--purple-light);
  font-size:11px;
  font-weight:500;
  border:1px solid rgba(124,58,237,0.2);
}
.user-card-actions {
  display:flex;
  gap:10px;
  padding:12px 16px;
}
.user-card-actions .btn { flex:1; }
.user-card-sponsored {
  position:absolute;
  top:12px; right:12px;
  padding:3px 10px;
  border-radius:50px;
  background:rgba(245,158,11,0.2);
  color:var(--gold);
  font-size:10px;
  font-weight:600;
  backdrop-filter:blur(10px);
}

/* === POST CARDS === */
.create-post {
  background:var(--dark-card);
  border-radius:var(--radius-md);
  padding:16px;
  margin-bottom:16px;
  border:1px solid var(--border-color);
}
.create-post-top {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.create-post-avatar {
  width:44px; height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--dark-surface);
  flex-shrink:0;
}
.create-post-input {
  flex:1;
  background:var(--dark-surface);
  border-radius:50px;
  padding:12px 18px;
  font-size:14px;
  color:var(--text-secondary);
  cursor:pointer;
  transition:var(--transition);
  border:1px solid transparent;
}
.create-post-input:hover, .create-post-input:focus { border-color:var(--pink); color:var(--text-primary); }
.create-post-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.create-post-actions {
  display:flex;
  gap:8px;
}
.create-post-action {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:50px;
  background:var(--dark-surface);
  color:var(--text-secondary);
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:var(--transition);
  border:1px solid transparent;
}
.create-post-action:hover { border-color:var(--border-color); color:var(--text-primary); }
.create-post-action i { font-size:16px; }
.create-post-action.photo i { color:#22c55e; }
.create-post-action.photo:hover i { color:#16a34a; }
.create-post-submit {
  padding:8px 24px;
  border-radius:50px;
  background:var(--pink-gradient);
  color:white;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  border:none;
  opacity:0.6;
  pointer-events:none;
}
.create-post-submit.has-content { opacity:1; pointer-events:auto; }
.create-post-submit:hover { transform:translateY(-1px); box-shadow:0 4px 15px rgba(255,75,122,0.3); }
.create-post-preview {
  display:none;
  position:relative;
  margin-bottom:12px;
  border-radius:var(--radius-sm);
  overflow:hidden;
  max-height:200px;
}
.create-post-preview.active { display:block; }
.create-post-preview img {
  width:100%;
  max-height:200px;
  object-fit:cover;
  border-radius:var(--radius-sm);
}
.create-post-preview-remove {
  position:absolute;
  top:8px; right:8px;
  width:28px; height:28px;
  border-radius:50%;
  background:rgba(0,0,0,0.6);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:14px;
  border:1px solid rgba(255,255,255,0.2);
}
.create-post-textarea {
  display:none;
  width:100%;
  min-height:80px;
  padding:12px;
  background:var(--dark-surface);
  border-radius:var(--radius-sm);
  border:1px solid var(--border-color);
  color:var(--text-primary);
  font-size:14px;
  resize:none;
  margin-bottom:12px;
  line-height:1.5;
}
.create-post-textarea.active { display:block; }
.create-post-textarea:focus { border-color:var(--pink); }

.create-post-video-wrap {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-top:1px solid var(--border-color);
  background:var(--dark-surface);
}
.create-post-video-input {
  flex:1;
  border:none;
  background:transparent;
  color:var(--text-primary);
  font-size:13px;
  font-family:inherit;
  outline:none;
}
.create-post-video-input::placeholder { color:var(--text-muted); }
.create-post-video-remove {
  cursor:pointer;
  color:var(--text-muted);
  font-size:14px;
  padding:4px;
}
.create-post-video-remove:hover { color:var(--pink); }

/* Post Card */
.post-card {
  background:var(--dark-card);
  border-radius:var(--radius-md);
  overflow:hidden;
  margin-bottom:16px;
  border:1px solid var(--border-color);
  transition:var(--transition);
}
.post-card:hover { border-color:rgba(255,255,255,0.15); }
.post-card-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
}
.post-card-user {
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.post-card-avatar {
  width:44px; height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--dark-surface);
  flex-shrink:0;
}
.post-card-info h4 { font-size:14px; font-weight:600; }
.post-card-info small { font-size:11px; color:var(--text-muted); display:block; }
.post-card-info small i { margin-right:3px; }
.post-card-delete {
  width:32px; height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  cursor:pointer;
  transition:var(--transition);
  font-size:14px;
}
.post-card-delete:hover { background:rgba(239,68,68,0.15); color:var(--red); }
.post-card-more {
  width:32px; height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  cursor:pointer;
  transition:var(--transition);
}
.post-card-more:hover { background:var(--dark-surface); color:var(--text-primary); }
.post-card-more-wrap { position:relative; }
.post-card-dropdown {
  position:absolute; top:100%; right:0; z-index:50;
  background:var(--dark-card); border:1px solid var(--border-color);
  border-radius:var(--radius-sm); min-width:160px;
  padding:4px 0; display:none; box-shadow:var(--shadow-lg);
}
.post-card-dropdown.active { display:block; }
.post-card-dropdown-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; font-size:13px; color:var(--text-secondary);
  cursor:pointer; transition:var(--transition);
}
.post-card-dropdown-item:hover { background:var(--dark-surface); color:var(--text-primary); }
.post-card-dropdown-item.danger { color:var(--red); }
.post-card-dropdown-item.danger:hover { background:rgba(239,68,68,0.12); }
.post-card-dropdown-item i { width:16px; text-align:center; font-size:13px; }
@media (max-width:480px) {
  .post-card-dropdown { right:auto; left:0; }
}
.post-card-action.share-active { color:var(--purple); }
.post-card-action.share-active i { font-weight:900; }
/* === EDIT POST MODAL === */
.post-edit-overlay {
  position:fixed; inset:0; z-index:99999;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(8px);
  display:none; align-items:center; justify-content:center;
  padding:20px; animation:fadeIn 0.2s ease;
}
.post-edit-overlay.active { display:flex; }
.post-edit-modal {
  background:var(--dark-card); border-radius:var(--radius-md);
  width:100%; max-width:520px; max-height:90vh; overflow-y:auto;
  border:1px solid var(--border-color); box-shadow:var(--shadow-lg);
  animation:bounceIn 0.3s ease;
}
.post-edit-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--border-color);
}
.post-edit-header h3 { font-size:16px; font-weight:600; }
.post-edit-close {
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text-muted); transition:var(--transition); font-size:18px;
}
.post-edit-close:hover { background:var(--dark-surface); color:var(--text-primary); }
.post-edit-body { padding:20px; }
.post-edit-body textarea {
  width:100%; min-height:120px; padding:12px; border-radius:var(--radius-sm);
  background:var(--dark-surface); border:1px solid var(--border-color);
  color:var(--text-primary); font-size:14px; resize:vertical;
  transition:var(--transition); font-family:inherit;
}
.post-edit-body textarea:focus { border-color:var(--pink); }
.post-edit-video-wrap {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; margin-top:12px;
  background:var(--dark-surface); border-radius:var(--radius-sm);
  border:1px solid var(--border-color);
}
.post-edit-video-wrap i { color:var(--text-muted); }
.post-edit-video-wrap input {
  flex:1; font-size:13px; background:transparent; border:none;
  color:var(--text-primary);
}
.post-edit-image-wrap {
  margin-top:12px; display:flex; align-items:center; gap:10px;
}
.post-edit-image-preview {
  max-width:120px; max-height:120px; object-fit:cover;
  border-radius:var(--radius-sm); border:1px solid var(--border-color);
}
.post-edit-image-btn, .post-edit-video-clear {
  padding:8px 14px; border-radius:var(--radius-sm); font-size:12px;
  cursor:pointer; transition:var(--transition); border:none; font-family:inherit;
}
.post-edit-image-btn { background:var(--purple-gradient); color:#fff; }
.post-edit-image-btn:hover { opacity:0.9; }
.post-edit-video-clear { background:rgba(239,68,68,0.15); color:var(--red); }
.post-edit-video-clear:hover { background:rgba(239,68,68,0.25); }
.post-edit-footer {
  display:flex; gap:10px; justify-content:flex-end;
  padding:16px 20px; border-top:1px solid var(--border-color);
}
.post-edit-footer button {
  padding:10px 24px; border-radius:50px; font-size:13px; font-weight:500;
  cursor:pointer; transition:var(--transition); border:none; font-family:inherit;
}
.post-edit-cancel { background:var(--dark-surface); color:var(--text-secondary); }
.post-edit-cancel:hover { background:var(--dark-gray); color:var(--text-primary); }
.post-edit-save { background:var(--pink-gradient); color:#fff; }
.post-edit-save:hover { opacity:0.9; }
.post-edit-save:disabled { opacity:0.5; cursor:not-allowed; }
/* === POST PERMALINK PAGE === */
.post-page-wrap {
  max-width:580px; margin:0 auto; padding:16px;
}
.post-page-back {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:50px; font-size:13px; font-weight:500;
  color:var(--text-secondary); cursor:pointer; transition:var(--transition);
  margin-bottom:16px; background:var(--dark-surface);
}
.post-page-back:hover { background:var(--dark-gray); color:var(--text-primary); }
.post-page-back i { font-size:14px; }
.post-page-empty {
  text-align:center; padding:60px 20px;
}
.post-page-empty i { font-size:48px; color:var(--text-muted); margin-bottom:12px; }
.post-page-empty h3 { font-size:18px; font-weight:600; margin-bottom:6px; }
.post-page-empty p { font-size:13px; color:var(--text-muted); }
/* === REAL-TIME TIMING === */
.post-time { cursor:default; }
.post-time:hover { text-decoration:underline dotted; }
.post-card-content {
  padding:0 16px 12px;
  font-size:14px;
  line-height:1.6;
  color:var(--text-primary);
  white-space:pre-wrap;
  word-wrap:break-word;
}
.post-card-image {
  width:100%;
  max-height:400px;
  object-fit:cover;
  background:var(--dark-surface);
  display:block;
}
.post-video-wrapper {
  width:100%;
  position:relative;
  background:#000;
  max-height:85vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.post-video-embed {
  width:100%;
  aspect-ratio:16/9;
  display:block;
  border:0;
}
.post-video-wrapper .fb-video {
  width:100%;
  display:block;
  min-height:200px;
  max-height:85vh;
  background:transparent;
}
.post-video-wrapper .fb-video iframe,
.post-video-wrapper .fb-video span {
  max-width:100%;
  max-height:85vh;
}
.post-video-wrapper .fb-video > span {
  display:block;
  width:100% !important;
  max-height:85vh !important;
}
@media (max-width:480px) {
  .post-video-wrapper,
  .post-video-wrapper .fb-video {
    max-height:80vh;
  }
  .post-video-wrapper .fb-video iframe,
  .post-video-wrapper .fb-video span {
    max-height:80vh;
  }
  .post-video-wrapper .fb-video > span {
    max-height:80vh !important;
  }
}
.post-card-stats {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  font-size:12px;
  color:var(--text-muted);
  border-bottom:1px solid var(--border-color);
}
.post-card-stats-left { display:flex; gap:16px; }
.post-card-stats-left span { cursor:pointer; }
.post-card-stats-left span:hover { color:var(--text-secondary); }
.post-card-stats-right { cursor:pointer; }
.post-card-stats-right:hover { color:var(--text-secondary); }
.post-card-actions {
  display:flex;
  align-items:center;
  padding:4px 16px;
  border-bottom:1px solid var(--border-color);
}
.post-card-action {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 0;
  border-radius:var(--radius-sm);
  font-size:13px;
  font-weight:500;
  color:var(--text-secondary);
  cursor:pointer;
  transition:var(--transition);
  background:none;
  border:none;
}
.post-card-action:hover { background:var(--dark-surface); color:var(--text-primary); }
.post-card-action.liked { color:var(--pink); }
.post-card-action.liked i { font-weight:900; }
.post-card-action i { font-size:18px; }
.post-card-comments {
  padding:12px 16px;
  background:var(--dark-surface);
}
.post-card-comment {
  display:flex;
  gap:10px;
  margin-bottom:10px;
  align-items:flex-start;
}
.post-card-comment:last-child { margin-bottom:0; }
.post-card-comment-avatar {
  width:28px; height:28px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  background:var(--dark-gray);
}
.post-card-comment-body {
  flex:1;
  font-size:13px;
}
.post-card-comment-body strong {
  font-weight:600;
  cursor:pointer;
}
.post-card-comment-body strong:hover { color:var(--pink); }
.post-card-comment-body p {
  color:var(--text-primary);
  margin:2px 0;
  line-height:1.4;
}
.post-card-comment-time {
  font-size:10px;
  color:var(--text-muted);
}
.post-card-comment-input {
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0 0;
  border-top:1px solid var(--border-color);
  margin-top:12px;
  padding-top:12px;
}
.post-card-comment-input img {
  width:28px; height:28px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  background:var(--dark-gray);
}
.post-card-comment-input input {
  flex:1;
  background:var(--dark-gray);
  border-radius:50px;
  padding:8px 14px;
  font-size:12px;
  color:var(--text-primary);
  border:1px solid transparent;
  transition:var(--transition);
}
.post-card-comment-input input:focus { border-color:var(--pink); }
.post-card-comment-input button {
  width:30px; height:30px;
  border-radius:50%;
  background:var(--pink-gradient);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:13px;
  border:none;
  transition:var(--transition);
  flex-shrink:0;
}
.post-card-comment-input button:hover { transform:scale(1.1); }
.post-card-comment-view-more {
  font-size:12px;
  color:var(--pink);
  cursor:pointer;
  font-weight:500;
  margin-bottom:6px;
  display:inline-block;
}
.post-card-comment-view-more:hover { text-decoration:underline; }
.post-card-sponsored {
  position:absolute;
  top:12px; right:12px;
  padding:3px 10px;
  border-radius:50px;
  background:rgba(245,158,11,0.2);
  color:var(--gold);
  font-size:10px;
  font-weight:600;
  backdrop-filter:blur(10px);
  z-index:2;
}
.post-card-ad {
  padding:8px 16px 12px;
}

/* Post Skeleton */
.post-skeleton {
  padding:16px;
}
.post-skeleton-header {
  display:flex;
  gap:10px;
  margin-bottom:12px;
}
.post-skeleton-avatar {
  width:44px; height:44px;
  border-radius:50%;
  background:var(--dark-surface);
  flex-shrink:0;
}
.post-skeleton-lines {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
  justify-content:center;
}
.post-skeleton-line {
  height:12px;
  border-radius:6px;
  background:linear-gradient(90deg, var(--dark-surface) 25%, var(--dark-gray) 50%, var(--dark-surface) 75%);
  background-size:200% 100%;
  animation:skeleton-pulse 1.5s ease-in-out infinite;
}
.post-skeleton-line:nth-child(1) { width:50%; }
.post-skeleton-line:nth-child(2) { width:30%; }
.post-skeleton-image {
  height:200px;
  background:linear-gradient(90deg, var(--dark-surface) 25%, var(--dark-gray) 50%, var(--dark-surface) 75%);
  background-size:200% 100%;
  animation:skeleton-pulse 1.5s ease-in-out infinite;
  margin-bottom:12px;
  border-radius:var(--radius-sm);
}
.post-skeleton-actions {
  display:flex;
  gap:8px;
}
.post-skeleton-action {
  flex:1;
  height:36px;
  border-radius:var(--radius-sm);
  background:linear-gradient(90deg, var(--dark-surface) 25%, var(--dark-gray) 50%, var(--dark-surface) 75%);
  background-size:200% 100%;
  animation:skeleton-pulse 1.5s ease-in-out infinite;
}

/* === SWIPE/MATCH CARDS === */
.swipe-container {
  position:relative;
  height:calc(100vh - var(--header-height) - var(--nav-height) - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  overflow:hidden;
}
.swipe-card {
  position:absolute;
  width:100%;
  max-width:380px;
  height:520px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--dark-card);
  box-shadow:var(--shadow-lg);
  transition:transform 0.3s ease;
  user-select:none;
  cursor:grab;
  touch-action:pan-y;
}
.swipe-card:active { cursor:grabbing; }
.swipe-card-image {
  width:100%;
  height:100%;
  object-fit:cover;
}
.swipe-card-overlay {
  position:absolute;
  bottom:0; left:0; right:0;
  background:linear-gradient(transparent, rgba(0,0,0,0.8));
  padding:24px 20px 20px;
}
.swipe-card-name {
  font-size:26px;
  font-weight:700;
  color:white;
}
.swipe-card-name span { font-weight:400; font-size:22px; }
.swipe-card-location {
  font-size:14px;
  color:rgba(255,255,255,0.7);
  margin-top:4px;
}
.swipe-card-location i { margin-right:6px; }
.swipe-card-interests {
  display:flex;
  gap:6px;
  margin-top:10px;
  flex-wrap:wrap;
}
.swipe-card-interests .interest-tag {
  background:rgba(255,255,255,0.15);
  color:white;
  border-color:rgba(255,255,255,0.2);
}
.swipe-card-badge {
  position:absolute;
  top:20px;
  padding:8px 20px;
  border-radius:8px;
  font-size:32px;
  font-weight:800;
  transform:rotate(-30deg);
  opacity:0;
  transition:opacity 0.2s;
  text-transform:uppercase;
  letter-spacing:2px;
}
.swipe-card-badge.like {
  left:20px;
  color:#22c55e;
  border:4px solid #22c55e;
}
.swipe-card-badge.nope {
  right:20px;
  color:var(--red);
  border:4px solid var(--red);
}
.swipe-card-badge.show { opacity:1; }

.swipe-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:16px;
  position:absolute;
  bottom:0; left:0; right:0;
}
.swipe-action-btn {
  width:58px; height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  transition:var(--transition);
  box-shadow:var(--shadow-md);
}
.swipe-action-btn:hover { transform:scale(1.1); }
.swipe-action-btn.nope { background:var(--white); color:var(--red); }
.swipe-action-btn.nope:hover { box-shadow:0 0 30px rgba(239,68,68,0.4); }
.swipe-action-btn.super { background:var(--purple-gradient); color:white; }
.swipe-action-btn.super:hover { box-shadow:0 0 30px rgba(124,58,237,0.4); }
.swipe-action-btn.like { background:var(--pink-gradient); color:white; }
.swipe-action-btn.like:hover { box-shadow:0 0 30px rgba(255,75,122,0.4); }
.swipe-action-btn.boost { width:44px; height:44px; font-size:18px; background:var(--gold-gradient); color:white; }

/* === REEL VIDEO === */
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-placeholder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

/* === PHOTO VIEWER (Popup) === */
.photo-viewer {
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,0.8);
  display:none;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(10px);
  padding:20px;
  animation:fadeIn 0.2s ease;
}
.photo-viewer.active { display:flex; }
.photo-viewer-content {
  background:var(--dark-card);
  border-radius:16px;
  max-width:90vw;
  max-height:90vh;
  overflow:hidden;
  box-shadow:0 25px 60px rgba(0,0,0,0.5);
  animation:bounceIn 0.3s ease;
  position:relative;
}
.photo-viewer-header {
  position:absolute;
  top:0;
  left:0;
  right:0;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px;
  z-index:2;
  background:linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
.photo-viewer-header button,
.photo-viewer-header span {
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,0.15);
  border:none;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  cursor:pointer;
  backdrop-filter:blur(8px);
  transition:background 0.2s;
}
.photo-viewer-header button:hover,
.photo-viewer-header span:hover {
  background:rgba(255,255,255,0.3);
}
.photo-viewer-delete { color:#ef4444 !important; }
.photo-viewer-delete:hover { background:rgba(239,68,68,0.3) !important; }
.photo-viewer-content img {
  display:block;
  max-width:85vw;
  max-height:85vh;
  object-fit:contain;
}

/* === IMAGE PREVIEW OVERLAY (Chat) === */
.image-preview-overlay {
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,0.9);
  display:none;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(10px);
  animation:fadeIn 0.2s ease;
}
.image-preview-overlay.active { display:flex; }
.image-preview-overlay img {
  max-width:90vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:8px;
  animation:bounceIn 0.3s ease;
}
.image-preview-close {
  position:absolute;
  top:20px;
  right:20px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  cursor:pointer;
  transition:background 0.2s;
}
.image-preview-close:hover { background:rgba(255,255,255,0.25); }

/* === FOLLOW BUTTON STATES === */
.profile-follow-btn.following {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}
.profile-follow-btn.following:hover {
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border-color: rgba(239,68,68,0.3);
}
.profile-follow-btn.following:hover i.fa-user-check {
  display: none;
}
.profile-follow-btn.following:hover::before {
  content: '\f234';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
}

/* === MATCH MODAL === */
.match-modal {
  position:fixed;
  inset:0;
  z-index:9998;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(10px);
  animation:fadeIn 0.3s ease;
}
.match-modal.active { display:flex; }
.match-modal-content {
  text-align:center;
  padding:40px 32px;
  max-width:360px;
  width:90%;
  animation:bounceIn 0.5s ease;
}
.match-modal h2 {
  font-size:36px;
  font-weight:800;
  background:var(--pink-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin-bottom:8px;
}
.match-modal p { color:var(--text-secondary); font-size:14px; margin-bottom:24px; }
.match-avatars {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:-10px;
  margin-bottom:24px;
}
.match-avatars img {
  width:80px; height:80px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--dark);
  box-shadow:var(--shadow-md);
}
.match-avatars img:first-child { transform:rotate(-8deg) translateX(10px); }
.match-avatars img:last-child { transform:rotate(8deg) translateX(-10px); }
.match-modal .btn { width:100%; max-width:260px; margin:6px auto; }
.match-modal .ad-placeholder { margin-top:16px; }

/* === CALL OVERLAY (Facebook-style Audio Call) === */
.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.25s ease;
}
.call-overlay.active { display: flex; }

/* Incoming call */
.call-overlay.incoming .call-avatar-wrap {
  animation: callPulse 1.5s ease-in-out infinite;
}
@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 30px rgba(34, 197, 94, 0); }
}
.call-overlay.incoming .call-ringing-icon {
  display: block;
  animation: ringAnim 0.6s ease-in-out infinite alternate;
}
@keyframes ringAnim {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}
.call-overlay.incoming .call-actions { gap: 32px; }

/* Calling state (caller waiting) */
.call-overlay.calling .call-spinner {
  display: block;
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

/* Connected (in call) */
.call-overlay.connected .call-timer-wrap { display: block; }
.call-overlay.connected .call-actions { gap: 24px; }

/* Shared */
.call-content {
  text-align: center;
  padding: 24px;
  max-width: 360px;
  width: 90%;
}
.call-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.call-name {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.call-status-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.call-ringing-icon {
  display: none;
  font-size: 36px;
  color: #22c55e;
  margin-bottom: 20px;
}
.call-spinner { display: none; }
.call-timer-wrap { display: none; }
.call-timer {
  font-size: 48px;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.call-timer-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.call-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
.call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: white;
}
.call-btn:hover { transform: scale(1.08); }
.call-btn:active { transform: scale(0.95); }

.call-btn.accept {
  background: #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.call-btn.accept:hover { box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5); }

.call-btn.decline,
.call-btn.end-call {
  background: #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transform: rotate(135deg);
}
.call-btn.decline:hover,
.call-btn.end-call:hover { box-shadow: 0 6px 28px rgba(239, 68, 68, 0.5); }

.call-btn.mute { background: rgba(255,255,255,0.12); font-size: 22px; }
.call-btn.mute.active { background: #f59e0b; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
.call-btn.mute:hover { background: rgba(255,255,255,0.2); }

.call-btn.speaker { background: rgba(255,255,255,0.12); font-size: 22px; }
.call-btn.speaker.active { background: #3b82f6; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }
.call-btn.speaker:hover { background: rgba(255,255,255,0.2); }

/* Small call action label */
.call-action-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* === CHAT LIST === */
.chat-list { padding:8px 0; }
.chat-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:var(--radius-md);
  transition:var(--transition);
  cursor:pointer;
  position:relative;
}
.chat-item:hover { background:var(--dark-surface); }
.chat-item-avatar {
  width:52px; height:52px;
  border-radius:50%;
  object-fit:cover;
  background:var(--dark-surface);
  position:relative;
  flex-shrink:0;
}
.chat-item-avatar .online-dot {
  position:absolute;
  bottom:1px; right:1px;
  width:12px; height:12px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid var(--dark);
}
.chat-item-avatar .offline-dot {
  position:absolute;
  bottom:1px; right:1px;
  width:12px; height:12px;
  border-radius:50%;
  background:var(--text-muted);
  border:2px solid var(--dark);
}
.chat-item-info { flex:1; min-width:0; }
.chat-item-name { font-size:15px; font-weight:600; display:flex; align-items:center; gap:6px; }
.chat-item-name .verified {
  color:var(--pink);
  font-size:12px;
}
.chat-item-preview {
  font-size:13px;
  color:var(--text-muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:2px;
}
.chat-item-preview .typing-indicator { color:var(--pink); font-style:italic; }
.chat-item-meta {
  text-align:right;
  flex-shrink:0;
}
.chat-item-time { font-size:11px; color:var(--text-muted); }
.chat-item-unread {
  width:20px; height:20px;
  border-radius:50%;
  background:var(--pink);
  color:white;
  font-size:10px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:4px;
  margin-left:auto;
}

/* === MESSAGE SCREEN === */
.message-screen {
  position:fixed;
  inset:0;
  z-index:900;
  background:var(--dark);
  display:none;
  flex-direction:column;
}
.message-screen.active { display:flex; }
.message-header {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:rgba(13,17,25,0.97);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-color);
  position:sticky;
  top:0;
}
.message-header-back {
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:var(--text-primary);
  cursor:pointer;
  transition:var(--transition);
}
.message-header-back:hover { background:var(--dark-surface); }
.message-header-avatar {
  width:40px; height:40px;
  border-radius:50%;
  object-fit:cover;
  position:relative;
}
.message-header-avatar .online-dot {
  position:absolute;
  bottom:0; right:0;
  width:10px; height:10px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid var(--dark);
}
.message-header-info { flex:1; }
.message-header-info h4 { font-size:15px; font-weight:600; }
.message-header-info small { font-size:11px; color:var(--text-muted); }
.message-body {
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background:var(--dark);
}
.message-body::-webkit-scrollbar { width:3px; }
.message-date-divider {
  text-align:center;
  font-size:11px;
  color:var(--text-muted);
  margin:12px 0;
  position:relative;
}
.message-date-divider::before,
.message-date-divider::after {
  content:'';
  position:absolute;
  top:50%;
  width:30%;
  height:1px;
  background:var(--border-color);
}
.message-date-divider::before { left:0; }
.message-date-divider::after { right:0; }

.message-bubble {
  max-width:80%;
  padding:10px 16px;
  border-radius:20px;
  font-size:14px;
  line-height:1.5;
  word-wrap:break-word;
  position:relative;
  animation:messageIn 0.3s ease;
}
@keyframes messageIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.message-bubble.own {
  align-self:flex-end;
  background:var(--pink-gradient);
  color:white;
  border-bottom-right-radius:4px;
}
.message-bubble.other {
  align-self:flex-start;
  background:var(--dark-surface);
  color:var(--text-primary);
  border-bottom-left-radius:4px;
}
.message-image {
  max-width:220px;
  max-height:220px;
  border-radius:12px;
  object-fit:cover;
  display:block;
  cursor:pointer;
  transition:opacity 0.2s;
}
.message-image:hover { opacity:0.9; }
.message-bubble .message-time {
  font-size:10px;
  opacity:0.6;
  margin-top:4px;
  display:block;
  text-align:right;
}
.message-bubble.own .message-time { color:rgba(255,255,255,0.7); }
.message-bubble.other .message-time { color:var(--text-muted); }
.message-bubble .message-status {
  display:inline-block;
  margin-left:4px;
  font-size:12px;
}
.message-bubble.own .message-status.seen { color:#53bdeb; }
.message-bubble.own .message-status.sent { color:rgba(255,255,255,0.5); }

.message-typing {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 16px;
  font-size:13px;
  color:var(--text-muted);
}
.message-typing-dots {
  display:flex;
  gap:3px;
}
.message-typing-dots span {
  width:6px; height:6px;
  border-radius:50%;
  background:var(--text-muted);
  animation:typingDot 1.4s infinite;
}
.message-typing-dots span:nth-child(2) { animation-delay:0.2s; }
.message-typing-dots span:nth-child(3) { animation-delay:0.4s; }
@keyframes typingDot { 0%,60%,100%{opacity:0.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-4px)} }

.message-input-area {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px));
  background:var(--dark-surface);
  border-top:1px solid var(--border-color);
  position:sticky;
  bottom:0;
  z-index:1001;
}
.message-input {
  flex:1;
  padding:10px 16px;
  border-radius:50px;
  background:var(--dark-gray);
  font-size:14px;
  color:var(--text-primary);
}
.message-input::placeholder { color:var(--text-muted); }
.message-input-btn {
  width:40px; height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pink-gradient);
  color:white;
  font-size:16px;
  transition:var(--transition);
  flex-shrink:0;
}
.message-input-btn:hover { transform:scale(1.05); }
.message-input-btn.mic { background:var(--dark-gray); color:var(--text-secondary); font-size:18px; }
.message-input-btn.gallery { background:var(--dark-gray); color:var(--text-secondary); font-size:18px; }

/* === VOICE RECORD UI === */
.voice-record-overlay {
  position:absolute;
  bottom:70px;
  left:50%;
  transform:translateX(-50%);
  background:var(--dark-card);
  border-radius:50px;
  padding:8px 20px;
  display:none;
  align-items:center;
  gap:12px;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border-color);
}
.voice-record-overlay.active { display:flex; }
.voice-record-overlay .record-btn {
  width:36px; height:36px;
  border-radius:50%;
  background:var(--red);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  animation:pulse 1s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.voice-record-overlay .waveform {
  display:flex;
  align-items:center;
  gap:2px;
  height:24px;
}
.voice-record-overlay .waveform span {
  width:3px;
  background:var(--pink);
  border-radius:2px;
  animation:waveformAnim 0.5s ease infinite alternate;
}
@keyframes waveformAnim { from{height:4px} to{height:20px} }
.voice-record-overlay .record-time { font-size:13px; color:var(--text-secondary); font-weight:500; }

/* === REELS === */
.reels-container {
  height:calc(100vh - var(--header-height) - var(--nav-height));
  overflow-y:scroll;
  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.reels-container::-webkit-scrollbar { display:none; }
.reel-item {
  height:calc(100vh - var(--header-height) - var(--nav-height));
  scroll-snap-align:start;
  position:relative;
  background:var(--dark);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.reel-item video {
  height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
.reel-video-placeholder {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--dark-card), var(--dark-surface));
  font-size:80px;
  color:var(--text-muted);
}
.reel-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.6) 80%);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:16px;
}
.reel-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.reel-top-user {
  display:flex;
  align-items:center;
  gap:10px;
}
.reel-top-user img {
  width:36px; height:36px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,0.3);
}
.reel-top-user span { font-size:14px; font-weight:600; color:white; }
.reel-follow-btn {
  padding:6px 16px;
  border-radius:50px;
  background:var(--pink-gradient);
  color:white;
  font-size:12px;
  font-weight:600;
  transition:var(--transition);
}
.reel-follow-btn:hover { transform:scale(1.05); }
.reel-bottom {
  display:flex;
  align-items:flex-end;
  gap:12px;
}
.reel-caption {
  flex:1;
  color:white;
}
.reel-caption h4 { font-size:14px; font-weight:600; margin-bottom:4px; }
.reel-caption p { font-size:13px; opacity:0.8; line-height:1.4; }
.reel-caption .reel-music {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:12px;
  opacity:0.7;
}
.reel-actions {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}
.reel-action-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  cursor:pointer;
  transition:var(--transition);
}
.reel-action-btn i {
  font-size:28px;
  color:white;
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
  transition:var(--transition);
}
.reel-action-btn span {
  font-size:11px;
  color:rgba(255,255,255,0.8);
  font-weight:500;
}
.reel-action-btn:hover i { transform:scale(1.1); }
.reel-action-btn.liked i { color:var(--pink); }
.reel-action-btn .reel-avatar {
  width:44px; height:44px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,0.3);
}

/* === PROFILE REELS TAB === */
.profile-reels-feed {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:4px;
}
.profile-reel-item {
  position:relative;
  width:100%;
  aspect-ratio:9/16;
  max-height:85vh;
  background:var(--dark);
  overflow:hidden;
  border-radius:12px;
  margin:0 auto;
}
.profile-reel-item .reel-overlay {
  border-radius:12px;
}
.profile-reel-item video,
.profile-reel-item img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-reel-item .reel-actions {
  gap:18px;
}
@media (max-width:600px) {
  .profile-reel-item {
    max-height:75vh;
  }
  .profile-reel-item .reel-actions {
    gap:14px;
  }
  .profile-reel-item .reel-action-btn i {
    font-size:24px;
  }
  .profile-reel-item .reel-action-btn span {
    font-size:10px;
  }
}

/* === REEL COMMENT MODAL === */
.reel-comment-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:100000;
}
.reel-comment-modal.active { display:block; }
.reel-comment-overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
}
.reel-comment-panel {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  max-height:70vh;
  background:var(--dark-surface);
  border-radius:16px 16px 0 0;
  display:flex;
  flex-direction:column;
  animation:slideUp 0.25s ease;
}
.reel-comment-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border-color);
  font-size:15px;
  font-weight:600;
  color:var(--text-primary);
}
.reel-comment-header button {
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:18px;
  cursor:pointer;
  padding:4px;
}
.reel-comment-list {
  flex:1;
  overflow-y:auto;
  padding:12px 16px;
  min-height:120px;
  max-height:50vh;
}
.reel-comment-empty {
  text-align:center;
  color:var(--text-muted);
  font-size:13px;
  padding:30px 0;
}
.reel-comment-item {
  display:flex;
  gap:10px;
  margin-bottom:14px;
  align-items:flex-start;
}
.reel-comment-item:last-child { margin-bottom:0; }
.reel-comment-avatar {
  width:30px; height:30px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  background:var(--dark-gray);
}
.reel-comment-body {
  flex:1;
  font-size:13px;
}
.reel-comment-body strong {
  font-weight:600;
  cursor:pointer;
  color:var(--text-primary);
}
.reel-comment-body strong:hover { color:var(--pink); }
.reel-comment-body p {
  color:var(--text-primary);
  margin:2px 0;
  line-height:1.4;
}
.reel-comment-time {
  font-size:10px;
  color:var(--text-muted);
}
.reel-comment-input-wrap {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--border-color);
}
.reel-comment-input-wrap img {
  width:30px; height:30px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  background:var(--dark-gray);
}
.reel-comment-input-wrap input {
  flex:1;
  background:var(--dark-gray);
  border-radius:50px;
  padding:9px 14px;
  font-size:13px;
  color:var(--text-primary);
  border:1px solid transparent;
  transition:var(--transition);
}
.reel-comment-input-wrap input:focus { border-color:var(--pink); }
.reel-comment-input-wrap button {
  width:32px; height:32px;
  border-radius:50%;
  background:var(--pink-gradient);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:14px;
  border:none;
  transition:var(--transition);
  flex-shrink:0;
}
.reel-comment-input-wrap button:hover { transform:scale(1.1); }
@keyframes slideUp {
  from { transform:translateY(100%); }
  to { transform:translateY(0); }
}
.emoji-btn {
  width:30px; height:30px;
  border-radius:50%;
  background:transparent;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:16px;
  border:none;
  transition:var(--transition);
  flex-shrink:0;
}
.emoji-btn:hover { color:var(--pink); transform:scale(1.1); }
.emoji-picker {
  display:none;
  flex-wrap:wrap;
  gap:4px;
  padding:8px 12px;
  border-top:1px solid var(--border-color);
  background:var(--dark-card);
}
.emoji-picker.active { display:flex; }
.emoji-picker span {
  font-size:22px;
  cursor:pointer;
  transition:transform 0.15s;
  line-height:1;
}
.emoji-picker span:hover { transform:scale(1.3); }

/* === PROFILE PAGE === */
.profile-cover {
  height:180px;
  background:linear-gradient(135deg, var(--purple), var(--pink));
  position:relative;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  overflow:hidden;
}
.profile-cover.editable { cursor:pointer; }
.profile-avatar-wrap.editable { cursor:pointer; }
.profile-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-cover::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(108,34,198,0.5), rgba(226,28,138,0.4));
  pointer-events:none;
}
.profile-cover .edit-cover {
  position:absolute;
  bottom:12px; right:12px;
  width:36px; height:36px;
  border-radius:50%;
  background:rgba(0,0,0,0.4);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  backdrop-filter:blur(10px);
  cursor:pointer;
}
.profile-info-wrap {
  text-align:center;
  margin-top:-50px;
  position:relative;
  z-index:2;
  padding:0 16px;
}
.profile-avatar-wrap {
  position:relative;
  display:inline-block;
}
.profile-avatar {
  width:100px; height:100px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--dark);
  box-shadow:var(--shadow-md);
  background:var(--dark-surface);
}
.profile-avatar-wrap .edit-avatar {
  position:absolute;
  bottom:4px; right:4px;
  width:30px; height:30px;
  border-radius:50%;
  background:var(--pink);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  cursor:pointer;
  border:2px solid var(--dark);
}
.profile-name-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  position:relative;
}
.profile-name {
  font-size:22px;
  font-weight:700;
}
/* Blocked badge in chat list */
.chat-item-blocked {
  font-size:10px;
  color:var(--red);
  font-weight:600;
  margin-left:6px;
  background:rgba(239,68,68,0.12);
  padding:1px 6px;
  border-radius:4px;
}
/* Message block banner */
.message-block-banner {
  background:rgba(239,68,68,0.1);
  border:1px solid rgba(239,68,68,0.2);
  border-radius:var(--radius-sm);
  padding:10px 16px;
  text-align:center;
  font-size:13px;
  color:var(--red);
  margin:8px 12px;
}
.message-block-banner i { margin-right:6px; }
.message-block-banner a {
  color:var(--red);
  font-weight:600;
  text-decoration:underline;
}
.message-input:disabled {
  opacity:0.4;
  cursor:not-allowed;
}
.message-input-btn.mic.recording {
  background:var(--red);
  color:white;
  animation:pulse 1s infinite;
}
.message-input-btn.recording {
  background:var(--red);
  color:white;
}
/* Voice message bubble */
.message-bubble.voice-message {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:140px;
  cursor:pointer;
}
.message-bubble.voice-message audio {
  display:none;
}
.voice-play-btn {
  width:36px; height:36px;
  border-radius:50%;
  background:rgba(255,255,255,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  flex-shrink:0;
  transition:var(--transition);
}
.voice-play-btn:hover { background:rgba(255,255,255,0.3); }
.voice-waveform {
  flex:1;
  height:24px;
  display:flex;
  align-items:center;
  gap:2px;
}
.voice-waveform span {
  width:3px;
  background:currentColor;
  border-radius:2px;
  opacity:0.5;
}
.voice-waveform span:nth-child(1) { height:6px; }
.voice-waveform span:nth-child(2) { height:10px; }
.voice-waveform span:nth-child(3) { height:14px; }
.voice-waveform span:nth-child(4) { height:18px; }
.voice-waveform span:nth-child(5) { height:14px; }
.voice-waveform span:nth-child(6) { height:10px; }
.voice-waveform span:nth-child(7) { height:6px; }
.voice-waveform span:nth-child(8) { height:12px; }
.voice-waveform span:nth-child(9) { height:16px; }
.voice-waveform span:nth-child(10) { height:8px; }
.voice-duration {
  font-size:10px;
  opacity:0.6;
  flex-shrink:0;
}
.voice-message.other .voice-play-btn { color:var(--text-primary); }
.voice-message.own .voice-play-btn { color:white; }
.profile-name span { font-weight:400; color:var(--text-muted); font-size:18px; }
.profile-bio {
  font-size:14px;
  color:var(--text-secondary);
  margin-top:4px;
  max-width:300px;
  margin-left:auto;
  margin-right:auto;
}
.profile-location {
  font-size:13px;
  color:var(--text-muted);
  margin-top:4px;
}
.profile-location i { margin-right:4px; }
.profile-stats {
  display:flex;
  justify-content:center;
  gap:32px;
  padding:16px 0;
  margin-top:8px;
}
.profile-stat {
  text-align:center;
  cursor:pointer;
}
.profile-stat h3 { font-size:20px; font-weight:700; }
.profile-stat h3 .gold { color:var(--gold); }
.profile-stat span { font-size:12px; color:var(--text-muted); display:block; }
.profile-actions {
  padding:4px 16px 16px;
}
.profile-interests {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  padding:8px 16px 16px;
}
.profile-tabs {
  display:flex;
  border-bottom:1px solid var(--border-color);
  margin:0 16px;
}
.profile-tab {
  flex:1;
  text-align:center;
  padding:12px 0;
  font-size:14px;
  font-weight:500;
  color:var(--text-muted);
  cursor:pointer;
  transition:var(--transition);
  position:relative;
}
.profile-tab.active { color:var(--pink); }
.profile-tab-content { display:none; }
.profile-tab-content.active { display:block; }
.profile-tab.active::after {
  content:'';
  position:absolute;
  bottom:-1px;
  left:20%;
  width:60%;
  height:2px;
  background:var(--pink-gradient);
  border-radius:4px;
}
.profile-tab:hover { color:var(--text-primary); }
.profile-media-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  padding:2px;
}
.profile-media-item {
  aspect-ratio:1;
  background:var(--dark-surface);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  font-size:24px;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.profile-media-item img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:var(--transition);
}
.profile-media-item:hover img { transform:scale(1.1); }
.profile-media-item .play-icon {
  position:absolute;
  font-size:28px;
  color:white;
  text-shadow:0 2px 8px rgba(0,0,0,0.5);
}

/* === SEARCH === */
.search-bar-wrap {
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--dark-surface);
  border-radius:50px;
  padding:4px 16px;
  margin:12px 0;
  border:1px solid var(--border-color);
  transition:var(--transition);
}
.search-bar-wrap:focus-within { border-color:var(--pink); box-shadow:0 0 20px rgba(255,75,122,0.1); }
.search-bar-wrap i { color:var(--text-muted); font-size:16px; }
.search-bar-wrap input {
  flex:1;
  padding:12px 0;
  font-size:14px;
  color:var(--text-primary);
}
.search-bar-wrap input::placeholder { color:var(--text-muted); }
.search-tabs {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 0 12px;
  -webkit-overflow-scrolling:touch;
}
.search-tabs::-webkit-scrollbar { display:none; }
.search-tab {
  padding:8px 20px;
  border-radius:50px;
  background:var(--dark-surface);
  color:var(--text-secondary);
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  cursor:pointer;
  transition:var(--transition);
  border:1px solid var(--border-color);
}
.search-tab.active { background:var(--pink-gradient); color:white; border-color:transparent; }
.search-tab:hover:not(.active) { background:var(--dark-gray); }
.search-filters {
  display:flex;
  gap:8px;
  padding:8px 0;
  flex-wrap:wrap;
}
.search-filter {
  flex:1;
  min-width:80px;
  padding:8px 12px;
  border-radius:var(--radius-sm);
  background:var(--dark-surface);
  border:1px solid var(--border-color);
  font-size:13px;
  color:var(--text-secondary);
  cursor:pointer;
  transition:var(--transition);
}
.search-filter:hover { border-color:var(--text-muted); }

/* === NOTIFICATIONS === */
.notif-section { padding:8px 0; }
.notif-section-title {
  font-size:14px;
  font-weight:600;
  color:var(--text-muted);
  padding:12px 16px 8px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.notif-item {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 16px;
  border-radius:var(--radius-md);
  transition:var(--transition);
  cursor:pointer;
}
.notif-item:hover { background:var(--dark-surface); }
.notif-item.unread { background:rgba(255,75,122,0.05); }
.notif-avatar {
  width:48px; height:48px;
  border-radius:50%;
  object-fit:cover;
  background:var(--dark-surface);
  flex-shrink:0;
}
.notif-icon {
  width:48px; height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.notif-icon.pink { background:rgba(255,75,122,0.15); color:var(--pink); }
.notif-icon.purple { background:rgba(124,58,237,0.15); color:var(--purple-light); }
.notif-icon.gold { background:rgba(245,158,11,0.15); color:var(--gold); }
.notif-icon.blue { background:rgba(59,130,246,0.15); color:#3b82f6; }
.notif-content { flex:1; min-width:0; }
.notif-text { font-size:14px; line-height:1.4; }
.notif-text strong { font-weight:600; }
.notif-time { font-size:11px; color:var(--text-muted); margin-top:4px; display:block; }
.notif-dot {
  width:8px; height:8px;
  border-radius:50%;
  background:var(--pink);
  flex-shrink:0;
  margin-top:6px;
}

/* === PREMIUM === */
.premium-header {
  text-align:center;
  padding:24px 16px;
  background:linear-gradient(135deg, rgba(245,158,11,0.1), rgba(255,75,122,0.1));
  border-radius:var(--radius-lg);
  margin-bottom:20px;
}
.premium-header .crown-icon {
  font-size:64px;
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.premium-header h2 {
  font-size:28px;
  font-weight:800;
  margin-top:8px;
}
.premium-header p { color:var(--text-secondary); font-size:14px; margin-top:4px; }
.premium-benefits {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:24px;
}
.premium-benefit {
  padding:16px;
  border-radius:var(--radius-md);
  background:var(--dark-card);
  text-align:center;
  border:1px solid var(--border-color);
  transition:var(--transition);
}
.premium-benefit:hover { border-color:var(--gold); transform:translateY(-2px); }
.premium-benefit i {
  font-size:28px;
  background:var(--gold-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.premium-benefit h4 { font-size:14px; font-weight:600; margin-top:8px; }
.premium-benefit p { font-size:12px; color:var(--text-muted); margin-top:4px; }
.premium-plans { margin-bottom:24px; }
.premium-plan {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-radius:var(--radius-md);
  background:var(--dark-card);
  margin-bottom:10px;
  border:1px solid var(--border-color);
  cursor:pointer;
  transition:var(--transition);
}
.premium-plan:hover { border-color:var(--purple); }
.premium-plan.recommended {
  border-color:var(--gold);
  background:linear-gradient(135deg, rgba(245,158,11,0.08), rgba(255,75,122,0.05));
  position:relative;
}
.premium-plan.recommended::before {
  content:'BEST';
  position:absolute;
  top:-8px; right:20px;
  padding:2px 12px;
  border-radius:50px;
  background:var(--gold-gradient);
  color:white;
  font-size:10px;
  font-weight:700;
}
.premium-plan-info h4 { font-size:15px; font-weight:600; }
.premium-plan-info p { font-size:12px; color:var(--text-muted); margin-top:2px; }
.premium-plan-price { text-align:right; }
.premium-plan-price h3 { font-size:20px; font-weight:700; }
.premium-plan-price h3 .gold { color:var(--gold); }
.premium-plan-price small { font-size:11px; color:var(--text-muted); display:block; }
.premium-popup {
  position:fixed;
  inset:0;
  z-index:9998;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(10px);
}
.premium-popup.active { display:flex; }
.premium-popup-content {
  max-width:340px;
  width:90%;
  padding:32px 24px;
  text-align:center;
  animation:bounceIn 0.5s ease;
}
@keyframes bounceIn { 0%{transform:scale(0.5);opacity:0} 60%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }

/* === PROFILE COINS DISPLAY === */
.profile-coins-display {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 16px;
  border-radius:50px;
  background:rgba(245,158,11,0.12);
  border:1px solid rgba(245,158,11,0.2);
  font-size:13px;
  font-weight:600;
  color:var(--gold);
  margin-top:8px;
}

/* === PROFILE GIFTS SECTION === */
.profile-gifts-section {
  padding:12px 16px 4px;
}
.profile-gifts-title {
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:6px;
}
.profile-gifts-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.profile-gift-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:50px;
  background:var(--dark-surface);
  border:1px solid var(--border-color);
  font-size:13px;
}
.profile-gift-badge i { font-size:16px; }
.profile-gift-badge span { color:var(--text-secondary); }
.profile-gift-badge strong { color:var(--text-primary); }

/* === PAYMENT POPUP === */
.payment-popup {
  position:fixed;
  inset:0;
  z-index:9998;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(10px);
  animation:fadeIn 0.2s ease;
}
.payment-popup.active { display:flex; }
.payment-popup-content {
  background:var(--dark-card);
  border-radius:var(--radius-lg);
  max-width:380px;
  width:90%;
  max-height:90vh;
  overflow-y:auto;
  padding:24px;
  animation:bounceIn 0.3s ease;
  border:1px solid var(--border-color);
}
.payment-popup-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.payment-popup-header h3 { font-size:18px; font-weight:700; }
.payment-popup-close {
  width:32px; height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-gray);
  color:var(--text-secondary);
  cursor:pointer;
  transition:var(--transition);
}
.payment-popup-close:hover { background:var(--dark-surface); color:var(--text-primary); }
.payment-plan-info {
  padding:12px 16px;
  border-radius:var(--radius-sm);
  background:var(--dark-surface);
  font-size:14px;
  margin-bottom:16px;
  border:1px solid var(--border-color);
}
.payment-deposit-info {
  padding:14px;
  border-radius:var(--radius-sm);
  background:rgba(245,158,11,0.05);
  border:1px solid rgba(245,158,11,0.15);
  margin-bottom:16px;
}
.payment-method {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 0;
  font-size:14px;
}
.payment-method span {
  margin-left:auto;
  color:var(--text-muted);
  font-size:13px;
}
.payment-field {
  margin-bottom:14px;
}
.payment-field label {
  display:block;
  font-size:13px;
  font-weight:500;
  color:var(--text-secondary);
  margin-bottom:6px;
}
.payment-field input {
  width:100%;
  padding:12px 16px;
  border-radius:12px;
  background:var(--dark-surface);
  border:1px solid var(--border-color);
  color:var(--text-primary);
  font-size:14px;
  transition:var(--transition);
}
.payment-field input:focus { border-color:var(--pink); }
.payment-field input::placeholder { color:var(--text-muted); }

/* === COIN PURCHASE === */
.header-coins {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:20px;
  background:rgba(245,158,11,0.1);
  border:1px solid rgba(245,158,11,0.2);
  color:var(--gold);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  text-decoration:none;
}
.header-coins:hover {
  background:rgba(245,158,11,0.2);
  border-color:var(--gold);
  color:var(--gold);
}
.header-coins .coin-amount { font-size:13px; }
.coin-packages-grid {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}
.coin-package-card {
  background:var(--dark-surface);
  border:2px solid var(--border-color);
  border-radius:12px;
  padding:14px 10px;
  text-align:center;
  cursor:pointer;
  transition:var(--transition);
}
.coin-package-card:hover {
  border-color:var(--gold);
  background:rgba(245,158,11,0.05);
}
.coin-package-card.selected {
  border-color:var(--gold);
  background:rgba(245,158,11,0.1);
  box-shadow:0 0 20px rgba(245,158,11,0.15);
}
.coin-package-card .coin-icon { font-size:24px; color:var(--gold); margin-bottom:6px; }
.coin-package-card .coin-amount-pkg { font-size:20px; font-weight:700; color:var(--text-primary); }
.coin-package-card .coin-label { font-size:11px; color:var(--text-muted); margin-top:2px; }
.coin-package-card .coin-price { font-size:14px; color:var(--gold); font-weight:600; margin-top:6px; }
.coin-package-card .coin-price small { font-size:11px; color:var(--text-muted); font-weight:400; }
.selected-package {
  padding:10px 14px;
  background:rgba(245,158,11,0.08);
  border:1px solid rgba(245,158,11,0.2);
  border-radius:8px;
  margin-bottom:14px;
  text-align:center;
  font-size:15px;
  font-weight:600;
  color:var(--gold);
}
.deposit-info {
  padding:14px;
  border-radius:8px;
  background:rgba(245,158,11,0.05);
  border:1px solid rgba(245,158,11,0.15);
  margin-bottom:14px;
  font-size:13px;
}
.deposit-info p { color:var(--text-secondary); margin-bottom:8px; }
.deposit-info .payment-numbers div {
  display:flex;
  justify-content:space-between;
  padding:4px 0;
  font-size:13px;
  color:var(--text-primary);
}
@media (max-width:480px) {
  .coin-packages-grid { grid-template-columns:1fr 1fr; }
}

/* === INCOME SECTION === */
.income-section { padding:4px 0; }
.income-balance-card {
  background:linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.02));
  border:1px solid rgba(245,158,11,0.2);
  border-radius:12px;
  padding:20px;
  margin-bottom:16px;
}
.income-balance-header {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.income-balance-header i { font-size:24px; color:var(--gold); }
.income-balance-header h3 { font-size:17px; font-weight:700; }
.income-balance-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.income-stat { text-align:center; padding:12px; background:rgba(0,0,0,0.2); border-radius:8px; }
.income-stat-value { display:block; font-size:22px; font-weight:700; color:var(--text-primary); }
.income-stat-label { display:block; font-size:11px; color:var(--text-muted); margin-top:2px; text-transform:uppercase; letter-spacing:0.5px; }
.income-card {
  background:var(--dark-card);
  border:1px solid var(--border-color);
  border-radius:12px;
  padding:20px;
  margin-bottom:16px;
}
.income-card-header {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.income-card-header i { font-size:18px; color:var(--gold); }
.income-card-header h3 { font-size:16px; font-weight:600; }
.income-form-row {
  display:flex;
  gap:12px;
  margin-bottom:12px;
}
.income-form-group { display:flex; flex-direction:column; }
.income-form-group label {
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:4px;
  font-weight:500;
}
.income-form-group input, .income-form-group select {
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--border-color);
  background:var(--dark-surface);
  color:var(--text-primary);
  font-size:14px;
  width:100%;
  transition:var(--transition);
}
.income-form-group input:focus, .income-form-group select:focus {
  border-color:var(--gold);
  outline:none;
  box-shadow:0 0 0 3px rgba(245,158,11,0.1);
}
.income-bdt-display {
  height:100%;
  display:flex;
  align-items:center;
  padding:10px 12px;
  border-radius:8px;
  background:rgba(245,158,11,0.08);
  border:1px solid rgba(245,158,11,0.2);
  color:var(--gold);
  font-size:18px;
  font-weight:700;
  min-height:42px;
}
.income-table-wrap {
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.income-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.income-table th {
  text-align:left;
  padding:8px 10px;
  color:var(--text-muted);
  font-weight:600;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  border-bottom:1px solid var(--border-color);
}
.income-table td {
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,0.04);
  color:var(--text-primary);
}
.income-table tr:last-child td { border-bottom:none; }
.income-affiliate-link {
  display:flex;
  gap:8px;
  align-items:center;
}
.income-affiliate-link input {
  flex:1;
  padding:8px 12px;
  border-radius:6px;
  border:1px solid var(--border-color);
  background:var(--dark-surface);
  color:var(--text-primary);
  font-size:12px;
  cursor:pointer;
}
@media (max-width:480px) {
  .income-balance-grid { grid-template-columns:1fr 1fr; }
  .income-form-row { flex-direction:column; }
  .income-form-group[style*="0 0 120px"] { flex:1!important; }
}

/* === LOGIN / REGISTER === */
.auth-page {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  background:linear-gradient(135deg, var(--dark), var(--dark-card));
}
.auth-wrap {
  width:100%;
  max-width:380px;
  text-align:center;
}
.auth-logo {
  font-size:36px;
  font-weight:800;
  margin-bottom:4px;
}
.auth-logo span:first-child { color:var(--white); }
.auth-logo span:last-child { color:var(--pink); }
.auth-tagline { color:var(--text-muted); font-size:14px; margin-bottom:24px; }
.auth-form { text-align:left; }
.auth-form .form-group {
  margin-bottom:16px;
}
.auth-form label {
  display:block;
  font-size:13px;
  font-weight:500;
  color:var(--text-secondary);
  margin-bottom:6px;
}
.auth-form .input-wrap {
  display:flex;
  align-items:center;
  background:var(--dark-surface);
  border-radius:var(--radius-sm);
  padding:0 16px;
  border:1px solid var(--border-color);
  transition:var(--transition);
}
.auth-form .input-wrap:focus-within { border-color:var(--pink); box-shadow:0 0 20px rgba(255,75,122,0.1); }
.auth-form .input-wrap i { color:var(--text-muted); font-size:16px; }
.auth-form .input-wrap input {
  flex:1;
  padding:14px 12px;
  font-size:14px;
  color:var(--text-primary);
}
.auth-form .input-wrap input::placeholder { color:var(--text-muted); }
.auth-form .input-wrap .toggle-pass {
  cursor:pointer;
  color:var(--text-muted);
  font-size:16px;
}
.auth-form .btn { width:100%; margin-top:8px; }
.auth-divider {
  display:flex;
  align-items:center;
  gap:16px;
  margin:24px 0;
  color:var(--text-muted);
  font-size:13px;
}
.auth-divider::before, .auth-divider::after {
  content:'';
  flex:1;
  height:1px;
  background:var(--border-color);
}
.auth-social {
  display:flex;
  gap:12px;
  justify-content:center;
  margin-bottom:24px;
}
.auth-social-btn {
  width:48px; height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-surface);
  color:var(--text-secondary);
  font-size:20px;
  transition:var(--transition);
  border:1px solid var(--border-color);
}
.auth-social-btn:hover { background:var(--dark-gray); color:var(--text-primary); transform:translateY(-2px); }
.auth-footer { font-size:13px; color:var(--text-muted); }
.auth-footer a { color:var(--pink); font-weight:600; }

/* === GIFT POPUP === */
.gift-popup {
  position:fixed;
  inset:0;
  z-index:9998;
  display:none;
  align-items:flex-end;
  justify-content:center;
  background:rgba(0,0,0,0.6);
}
.gift-popup.active { display:flex; }
.gift-popup-content {
  background:var(--dark-card);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  padding:24px 16px 32px;
  width:100%;
  max-width:480px;
  animation:slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.gift-popup-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.gift-popup-header h3 { font-size:18px; font-weight:700; }
.gift-popup-header .close-btn {
  width:32px; height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dark-gray);
  color:var(--text-secondary);
  cursor:pointer;
}
.gift-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.gift-item {
  text-align:center;
  padding:16px 8px;
  border-radius:var(--radius-md);
  background:var(--dark-surface);
  cursor:pointer;
  transition:var(--transition);
  border:1px solid var(--border-color);
}
.gift-item:hover { border-color:var(--pink); transform:translateY(-2px); }
.gift-item i { font-size:32px; }
.gift-item .gift-rose { color:var(--pink); }
.gift-item .gift-heart { color:var(--red); }
.gift-item .gift-diamond { color:var(--purple-light); }
.gift-item .gift-crown { color:var(--gold); }
.gift-item .gift-star { color:var(--orange); }
.gift-item .gift-fire { color:var(--orange); }
.gift-item .gift-gem { color:var(--pink); }
.gift-item .gift-ribbon { color:var(--purple-light); }
.gift-item h4 { font-size:13px; font-weight:500; margin-top:6px; }
.gift-item small { font-size:11px; color:var(--gold); font-weight:600; display:block; margin-top:2px; }

/* === CONFETTI === */
.confetti-container {
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:99999;
  overflow:hidden;
}
.confetti-piece {
  position:absolute;
  width:10px;
  height:10px;
  top:-10px;
  animation:confettiFall linear forwards;
}
@keyframes confettiFall {
  0%{transform:translateY(0) rotate(0deg);opacity:1}
  100%{transform:translateY(110vh) rotate(720deg);opacity:0}
}

/* === FLOATING EMOJIS === */
.floating-emoji {
  position:fixed;
  font-size:40px;
  pointer-events:none;
  z-index:99999;
  animation:emojiFloat 1.5s ease-out forwards;
}
@keyframes emojiFloat {
  0%{transform:translateY(0) scale(1);opacity:1}
  100%{transform:translateY(-200px) scale(1.5);opacity:0}
}

/* === TOAST === */
.toast {
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  z-index:99999;
  padding:12px 24px;
  border-radius:50px;
  background:var(--dark-card);
  color:var(--text-primary);
  font-size:14px;
  font-weight:500;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border-color);
  display:none;
  align-items:center;
  gap:8px;
  backdrop-filter:blur(20px);
  animation:toastIn 0.3s ease;
  max-width:90%;
  white-space:nowrap;
}
.toast.show { display:flex; }
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }

/* === PAGE FADE === */
.page-fade {
  animation:fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* === EXPLORE PROFILES SECTION === */
.explore-section {
  padding: 4px 0 16px;
  position: relative;
}
.explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.explore-header h2 {
  font-size: 22px;
  font-weight: 700;
}
.explore-filter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.explore-filter-btn:hover {
  background: var(--dark-gray);
  color: var(--text-primary);
}
/* Slider wrapper */
.explore-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Horizontal slider container */
.explore-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 12px;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.explore-slider::-webkit-scrollbar {
  display: none;
}

.explore-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.explore-slider.dragging .explore-card {
  user-select: none;
}

/* Cards inside slider */
.explore-slider .explore-card {
  flex-shrink: 0;
  width: 210px;
  scroll-snap-align: start;
}

/* Slider arrow buttons */
.explore-slider-btn {
  position: absolute;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.explore-slider-btn:hover {
  background: var(--pink-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 75, 122, 0.4);
}

.explore-slider-btn.prev {
  left: -18px;
}

.explore-slider-btn.next {
  right: -18px;
}
.explore-card {
  background: var(--dark-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 122, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 75, 122, 0.1);
}
.explore-card-image-wrap {
  position: relative;
  aspect-ratio: 0.85;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-surface);
}
.explore-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.explore-card:hover .explore-card-img {
  transform: scale(1.08);
}
.explore-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
}
.explore-card:hover .explore-card-overlay {
  opacity: 1;
}
.explore-card-overlay i {
  font-size: 14px;
}
.explore-online-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--dark);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  z-index: 2;
}
.explore-premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  z-index: 2;
}
.explore-card-body {
  padding: 14px;
}
.explore-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.explore-card-name span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 15px;
}
.explore-card-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.explore-card-location i {
  font-size: 11px;
}
.explore-card-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.explore-tag {
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-light);
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.explore-card-actions {
  display: flex;
  gap: 8px;
}
.explore-like-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-gradient);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 75, 122, 0.25);
}
.explore-like-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 75, 122, 0.4);
}
.explore-like-btn.liked {
  background: var(--dark-gray);
  color: var(--pink);
  box-shadow: none;
}
.explore-view-btn {
  flex: 1;
  height: 42px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--dark-surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.explore-view-btn:hover {
  background: var(--dark-gray);
  border-color: var(--pink);
  color: var(--pink);
}
.explore-load-more {
  text-align: center;
  padding: 20px 0;
}
.explore-load-more .btn {
  padding: 10px 32px;
}
.explore-skeleton {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 8px 0;
}
.explore-card-skeleton {
  flex-shrink: 0;
  width: 210px;
  aspect-ratio: 0.75;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--dark-surface) 25%, var(--dark-gray) 50%, var(--dark-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* === FEED TABS === */
.feed-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.feed-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--dark-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.feed-tab i {
  font-size: 14px;
}
.feed-tab.active {
  background: var(--pink-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 75, 122, 0.3);
}
.feed-tab:hover:not(.active) {
  background: var(--dark-gray);
  color: var(--text-primary);
}

/* === EMPTY STATE === */
.empty-state {
  text-align:center;
  padding:60px 24px;
}
.empty-state i {
  font-size:64px;
  color:var(--text-muted);
  margin-bottom:16px;
  display:block;
}
.empty-state h3 { font-size:20px; font-weight:600; margin-bottom:8px; }
.empty-state p { color:var(--text-muted); font-size:14px; max-width:280px; margin:0 auto; }

/* === AD CONTAINERS === */
.ad-wrap { text-align:center; overflow:hidden; }
.ad-wrap iframe, .ad-wrap img, .ad-wrap video { max-width:100%; }

.ad-bottom_banner {
  position:fixed;
  bottom:var(--nav-height);
  left:50%;
  transform:translateX(-50%);
  z-index:999;
  max-width:320px;
  width:100%;
  padding:4px;
}

.ad-feed {
  margin:8px 0;
  padding:8px;
  background:var(--card);
  border-radius:10px;
  border:1px solid var(--border);
}

/* === SOCIAL BAR AD === */
.ad-social-bar {
  position:fixed;
  left:0;
  width:100%;
  z-index:9999;
  text-align:center;
  overflow:hidden;
  line-height:0;
}
.ad-social-bar--bottom { bottom:0; }
.ad-social-bar--top { top:0; }
.ad-social-bar iframe,
.ad-social-bar img,
.ad-social-bar video { max-width:100%; }

.ad-profile_banner {
  margin:10px 0 16px;
  padding:8px;
  background:var(--card);
  border-radius:10px;
  border:1px solid var(--border);
}

.ad-chat_inline {
  margin:6px 12px;
  padding:8px;
  background:var(--card);
  border-radius:10px;
  border:1px solid var(--border);
}

.ad-popunder { display:none; }

/* Legacy floating banner (kept for compatibility) */
.ad-banner-floating {
  position:fixed;
  bottom:var(--nav-height);
  left:50%;
  transform:translateX(-50%);
  z-index:999;
  max-width:320px;
  width:100%;
  padding:4px;
}
.ad-banner-floating .ad-placeholder {
  min-height:50px;
  margin:0;
}

/* === RESPONSIVE - TABLET (768px+) === */
@media (min-width:768px) {
  body { padding-left:72px; padding-bottom:0; }
  .top-header { left:72px; }
  .bottom-nav {
    left:0;
    right:auto;
    top:0;
    width:72px;
    height:100vh;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    border-top:none;
    border-right:1px solid var(--border-color);
    padding:16px 4px;
    padding-bottom:16px;
  }
  .nav-item span { display:none; }
  .nav-item i { font-size:24px; }
  .nav-item.active::before {
    top:50%;
    left:-1px;
    transform:translateY(-50%);
    width:3px;
    height:24px;
    border-radius:0 4px 4px 0;
  }
  .container { max-width:600px; }
  .profile-cover { height:220px; }
}

/* === RESPONSIVE - DESKTOP (1024px+) === */
@media (min-width:1024px) {
  body { padding-left:220px; }
  .top-header { left:220px; }
  .bottom-nav {
    width:220px;
    align-items:flex-start;
    padding:24px 16px;
    gap:4px;
  }
  .nav-item {
    flex-direction:row;
    gap:12px;
    padding:12px 16px;
    width:100%;
    min-width:auto;
  }
  .nav-item span { display:block; font-size:13px; }
  .nav-item i { font-size:22px; }
  .nav-item.active::before {
    top:50%;
    left:0;
    transform:translateY(-50%);
    width:3px;
    height:32px;
  }
  .nav-item .nav-badge { top:6px; right:12px; }
  .container { max-width:680px; }
  .profile-cover { height:260px; }
  .swipe-card { max-width:420px; height:560px; }
  .gift-grid { grid-template-columns:repeat(4,1fr); }
  .premium-benefits { grid-template-columns:repeat(2,1fr); }
  .explore-slider .explore-card { width:240px; }
  .explore-card-skeleton { width:240px; }
  .explore-card-name { font-size:18px; }
  .explore-card-name span { font-size:16px; }
}

/* === LOADING SPINNER === */
.spinner {
  width:40px; height:40px;
  border:3px solid var(--dark-gray);
  border-top-color:var(--pink);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
  margin:40px auto;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* === MISC === */
.text-center { text-align:center; }
.mt-8 { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mb-16 { margin-bottom:16px; }
.gap-8 { gap:8px; }
.flex { display:flex; }
.flex-col { flex-direction:column; }
.items-center { align-items:center; }
.justify-center { justify-content:center; }
.justify-between { justify-content:space-between; }
.hidden { display:none !important; }

/* ============================================
   LANDING PAGE (Guest Mode)
   ============================================ */
body.landing-page {
  padding-top:0;
  padding-bottom:0;
  background:var(--dark);
  overflow-x:hidden;
}
.landing-hero {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px 24px 40px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, #0d1117 0%, #1a0a2e 40%, #2d0a1a 100%);
}
.landing-hero::before {
  content:'';
  position:absolute;
  top:-50%; left:-50%;
  width:200%; height:200%;
  background:radial-gradient(circle at 30% 40%, rgba(124,58,237,0.15) 0%, transparent 50%),
             radial-gradient(circle at 70% 60%, rgba(255,75,122,0.1) 0%, transparent 50%);
  animation:heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0%{transform:translate(0,0)} 100%{transform:translate(-5%,5%)} }
.landing-hero-content { position:relative; z-index:2; max-width:420px; }
.landing-hero h1 { font-size:36px; font-weight:800; line-height:1.2; margin-bottom:12px; }
.landing-hero h1 .gradient-text { display:block; font-size:42px; }
.landing-hero p { font-size:16px; color:var(--text-secondary); margin-bottom:20px; line-height:1.6; }
.landing-hero-buttons { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.landing-hero-buttons .btn { min-width:140px; padding:14px 32px; font-size:16px; }
.online-counter {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 20px; border-radius:50px;
  background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.2);
  margin-top:20px; font-size:14px; color:#22c55e; font-weight:600;
}
.online-counter .pulse-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; animation:pulse 1.5s infinite; }
.landing-section { padding:48px 20px; text-align:center; }
.landing-section h2 { font-size:26px; font-weight:700; margin-bottom:8px; }
.landing-section p { color:var(--text-secondary); font-size:14px; margin-bottom:24px; max-width:320px; margin:0 auto 24px; }
.blurred-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:400px; margin:0 auto; }
@media (min-width:480px) { .blurred-grid { grid-template-columns:repeat(3,1fr); } }
.blurred-card {
  position:relative; border-radius:var(--radius-md); overflow:hidden;
  aspect-ratio:0.75; cursor:pointer; border:1px solid var(--border-color);
  transition:var(--transition);
}
.blurred-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.blurred-card img { width:100%; height:100%; object-fit:cover; filter:blur(12px); transform:scale(1.1); }
.blurred-card-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0.3);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
}
.blurred-card-overlay i { font-size:32px; color:rgba(255,255,255,0.8); }
.blurred-card-overlay span { font-size:13px; color:rgba(255,255,255,0.9); font-weight:500; }
.blurred-card .blurred-badge {
  position:absolute; bottom:8px; left:8px; padding:3px 10px; border-radius:50px;
  background:rgba(0,0,0,0.5); color:rgba(255,255,255,0.7); font-size:10px; backdrop-filter:blur(10px);
}
.reels-preview-grid { display:flex; gap:8px; overflow-x:auto; padding:8px 0; max-width:400px; margin:0 auto; }
.reels-preview-grid::-webkit-scrollbar { display:none; }
.reels-preview-item { flex-shrink:0; width:160px; height:280px; border-radius:var(--radius-md); overflow:hidden; position:relative; cursor:pointer; border:1px solid var(--border-color); }
.reels-preview-item img { width:100%; height:100%; object-fit:cover; filter:blur(10px); }
.reels-preview-item .reels-lock-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.4); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.reels-preview-item .reels-lock-overlay i { font-size:36px; color:rgba(255,255,255,0.7); }
.reels-preview-item .reels-lock-overlay span { font-size:12px; color:rgba(255,255,255,0.8); }
.live-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; max-width:360px; margin:0 auto; }
.live-stat { padding:20px; border-radius:var(--radius-md); background:var(--dark-card); border:1px solid var(--border-color); text-align:center; }
.live-stat i { font-size:32px; margin-bottom:8px; display:block; }
.live-stat .stat-heart { color:var(--pink); }
.live-stat .stat-msg { color:var(--purple-light); }
.live-stat .stat-user { color:#22c55e; }
.live-stat .stat-fire { color:var(--orange); }
.live-stat h3 { font-size:28px; font-weight:800; }
.live-stat span { font-size:12px; color:var(--text-muted); display:block; margin-top:4px; }
.testimonial-card { padding:24px; border-radius:var(--radius-md); background:var(--dark-card); border:1px solid var(--border-color); text-align:center; margin-bottom:12px; max-width:360px; margin:0 auto 12px; }
.testimonial-card .quote { font-size:36px; color:var(--pink); opacity:0.3; margin-bottom:8px; }
.testimonial-card p { font-size:14px; color:var(--text-secondary); line-height:1.6; font-style:italic; }
.testimonial-card .author { display:flex; align-items:center; gap:10px; justify-content:center; margin-top:16px; }
.testimonial-card .author img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.testimonial-card .author h4 { font-size:14px; font-weight:600; }
.testimonial-card .author span { font-size:12px; color:var(--text-muted); }
.features-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:400px; margin:0 auto; }
.feature-card { padding:20px 16px; border-radius:var(--radius-md); background:var(--dark-card); border:1px solid var(--border-color); text-align:center; transition:var(--transition); }
.feature-card:hover { border-color:var(--purple); transform:translateY(-2px); }
.feature-card i { font-size:28px; background:var(--pink-gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom:8px; display:block; }
.feature-card h4 { font-size:14px; font-weight:600; }
.feature-card p { font-size:12px; color:var(--text-muted); margin-top:4px; }
.landing-footer { text-align:center; padding:40px 20px; border-top:1px solid var(--border-color); }
.landing-footer .footer-links { display:flex; gap:24px; justify-content:center; margin-bottom:16px; flex-wrap:wrap; }
.landing-footer .footer-links a { font-size:13px; color:var(--text-muted); transition:var(--transition); }
.landing-footer .footer-links a:hover { color:var(--pink); }
.landing-footer p { font-size:12px; color:var(--text-muted); }
.signup-popup {
  position:fixed; inset:0; z-index:99999;
  display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(12px);
  animation:fadeIn 0.2s ease;
}
.signup-popup.active { display:flex; }
.signup-popup-content { max-width:340px; width:90%; padding:36px 28px 28px; text-align:center; position:relative; animation:bounceIn 0.4s ease; }
.signup-popup-content .close-btn { position:absolute; top:12px; right:12px; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--dark-gray); color:var(--text-muted); cursor:pointer; }
.signup-popup-content .close-btn:hover { background:var(--dark-surface); color:var(--text-primary); }
.signup-popup-icon { font-size:56px; margin-bottom:12px; line-height:1; }
.signup-popup-content h3 { font-size:22px; font-weight:700; margin-bottom:4px; }
.signup-popup-content p { font-size:14px; color:var(--text-secondary); margin-bottom:20px; }
.signup-popup-btns { display:flex; flex-direction:column; gap:10px; }
.signup-popup-btns .btn { width:100%; padding:14px; font-size:15px; }
.requires-auth { cursor:pointer; position:relative; }
.requires-auth::after {
  content:'\f023'; font-family:'Font Awesome 6 Free'; font-weight:900;
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  font-size:20px; color:white; text-shadow:0 2px 10px rgba(0,0,0,0.5);
  opacity:0; transition:opacity 0.3s; z-index:5; pointer-events:none;
}
.requires-auth:hover::after { opacity:1; }
.requires-auth::before {
  content:''; position:absolute; inset:0;
  background:rgba(0,0,0,0.3); opacity:0; transition:opacity 0.3s;
  z-index:4; border-radius:inherit; pointer-events:none;
}
.requires-auth:hover::before { opacity:1; }
.guest-bottom-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:1000;
  padding:12px 16px; padding-bottom:calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(transparent, rgba(13,17,25,0.98) 30%);
}
.guest-bottom-bar .btn { width:100%; padding:16px; font-size:16px; font-weight:700; }
.landing-nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px;
  background:linear-gradient(rgba(13,17,25,0.95) 60%, transparent);
}
@media (min-width:768px) {
  .landing-hero h1 { font-size:48px; }
  .landing-hero h1 .gradient-text { font-size:56px; }
  .blurred-grid { grid-template-columns:repeat(3,1fr); max-width:500px; }
  .features-grid { grid-template-columns:repeat(4,1fr); max-width:600px; }
  .live-stats { grid-template-columns:repeat(4,1fr); max-width:500px; }
  .reels-preview-item { width:200px; height:320px; }
}
