@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Premium Dark Theme Palette */
  --bg-color: #050608;
  --bg-gradient: radial-gradient(circle at 50% 50%, #0c0f17 0%, #050608 100%);
  --accent-glow: rgba(255, 255, 255, 0.08);
  --accent-glow-strong: rgba(255, 255, 255, 0.2);
  --neon-border: rgba(255, 255, 255, 0.15);
  
  /* Text colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #475569;
  
  /* Categories signature glows */
  --color-marketing: #e11d48;     /* Rose-600 */
  --color-business: #0284c7;      /* Sky-600 */
  --color-leadership: #7c3aed;    /* Violet-600 */
  --color-entrepreneurship: #d97706; /* Amber-600 */

  /* Glassmorphism token base */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: blur(16px);
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-color);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-main);
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow blobs in background */
.ambient-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  top: -10%;
  right: 10%;
  animation-duration: 20s;
}

.glow-blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -10%;
  left: -5%;
  animation-duration: 25s;
  animation-delay: -5s;
}

.glow-blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  top: 40%;
  left: 30%;
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020203;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Typography styles */
.serif {
  font-family: 'Fraunces', serif;
}

.title-glow {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Glassmorphism helpers */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #3b82f6 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  font-weight: 700;
  font-size: 18px;
  color: #050608;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.counter-label {
  display: inline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  position: relative;
  width: 240px;
  transition: width 0.3s ease;
}

.search-container:focus-within {
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
}

/* Glass Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn-primary {
  background: rgba(255, 255, 255, 0.95);
  border-color: #fff;
  color: #050608;
  font-weight: 600;
}

.glass-btn-primary:hover {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

/* Hero Section */
.hero {
  max-width: 1000px;
  margin: 60px auto 40px;
  text-align: center;
  padding: 0 24px;
}

.hero-tag {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing tag wrapper similar to user's "thinkers" tag */
.thinkers-neon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 10px 48px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-left: 8px;
  margin-right: 8px;
  transform: translateY(-2px);
  animation: boxPulse 4s infinite alternate ease-in-out;
}

.thinkers-neon-text {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 25px rgba(255, 255, 255, 0.7), 0 0 40px rgba(59, 130, 246, 0.6);
  animation: neonShine 3s infinite alternate ease-in-out;
}

@keyframes neonShine {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(59, 130, 246, 0.4);
    filter: brightness(1);
  }
  100% {
    text-shadow: 0 0 18px rgba(255, 255, 255, 1), 0 0 35px rgba(59, 130, 246, 0.95), 0 0 60px rgba(139, 92, 246, 0.8);
    filter: brightness(1.25);
  }
}

@keyframes boxPulse {
  0% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.45), inset 0 0 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

.hero-subtitle {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Category Filter Bar */
.filter-bar {
  max-width: 800px;
  margin: 40px auto 30px;
  padding: 8px;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Post feed layout */
.feed-container {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.no-posts {
  text-align: center;
  padding: 80px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.no-posts h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 500;
}

.no-posts p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Premium Card Glass Styling */
.post-card {
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 60%, rgba(255,255,255,0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.02);
}

.post-card:hover::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.15) 100%);
}

.post-header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-creator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-info {
  display: flex;
  flex-direction: column;
}

.creator-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-verified {
  color: #3b82f6;
  font-size: 14px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card[data-category="marketing"] .badge-tag {
  color: var(--color-marketing);
  border-color: rgba(225, 29, 72, 0.15);
  background: rgba(225, 29, 72, 0.05);
}

.post-card[data-category="business"] .badge-tag {
  color: var(--color-business);
  border-color: rgba(2, 132, 199, 0.15);
  background: rgba(2, 132, 199, 0.05);
}

.post-card[data-category="leadership"] .badge-tag {
  color: var(--color-leadership);
  border-color: rgba(124, 58, 237, 0.15);
  background: rgba(124, 58, 237, 0.05);
}

.post-card[data-category="entrepreneurship"] .badge-tag {
  color: var(--color-entrepreneurship);
  border-color: rgba(217, 119, 6, 0.15);
  background: rgba(217, 119, 6, 0.05);
}

/* Post Content & Media */
.post-caption {
  padding: 0 24px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #e2e8f0;
}

.post-media-container {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
  cursor: pointer;
}

.post-media-container img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-media-container img {
  transform: scale(1.02);
}

/* Custom styled HTML5 Video overlay */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 480px;
}

.video-wrapper video {
  width: 100%;
  max-height: 480px;
  display: block;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 1;
}

.video-overlay-play.playing {
  opacity: 0;
}

.play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.play-circle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Text Quote Post Styling */
.quote-content {
  padding: 48px 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quote-icon {
  font-size: 48px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  font-family: 'Fraunces', serif;
}

.quote-text {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.quote-author {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 24px;
}

/* Post Actions Footer */
.post-footer {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

.reactions-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reactions-list {
  display: flex;
  margin-right: 4px;
}

.reaction-mini {
  width: 18px;
  height: 18px;
  margin-right: -4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-actions-buttons {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.action-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.action-trigger.reacted {
  color: #60a5fa;
  font-weight: 600;
}

/* Floating Reaction Picker (Facebook style) */
.reaction-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-container:hover .reaction-picker,
.reaction-picker:hover,
.reaction-picker.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.reaction-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  border: none;
}

.reaction-option:hover {
  transform: scale(1.3) translateY(-6px);
}

/* Comments Drawer / Section */
.comments-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0);
}

.comments-section.open {
  max-height: 500px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-item {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.4s ease;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.comment-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.comment-author-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 600;
  color: #f1f5f9;
}

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

.comment-text {
  color: #cbd5e1;
}

.comment-input-form {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
}

.comment-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  padding: 8px 0;
}

.comment-input::placeholder {
  color: var(--text-faint);
}

.comment-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.comment-submit:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Modals styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.01);
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.modal-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.radio-label i {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.radio-option input:checked + .radio-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* File Upload Premium Drag/Drop styling */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.file-upload-dropzone:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.3);
}

.file-upload-dropzone i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.file-upload-dropzone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.file-upload-dropzone span {
  font-size: 11px;
  color: var(--text-faint);
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  margin-top: 12px;
  position: relative;
  display: none;
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1;
}

.file-preview img, .file-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.remove-file-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Share modal details */
.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transform: translateY(-2px);
}

.share-btn i {
  font-size: 24px;
}

.share-btn.twitter:hover i { color: #1da1f2; }
.share-btn.linkedin:hover i { color: #0a66c2; }
.share-btn.facebook:hover i { color: #1877f2; }
.share-btn.whatsapp:hover i { color: #25d366; }

.copy-link-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  align-items: center;
}

.copy-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-link-btn {
  background: #fff;
  border: none;
  color: #050608;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link-btn:hover {
  transform: scale(1.02);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* BRAIN app help chatbot */
.brain-chat {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1002;
}

.brain-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(56, 189, 248, 0.65);
  border-radius: 999px;
  padding: 12px 17px;
  color: #fff;
  background: linear-gradient(135deg, #075985, #0e7490 52%, #1d4ed8);
  box-shadow: 0 12px 32px rgba(14, 116, 144, 0.35);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.brain-chat-panel {
  display: none;
  width: min(360px, calc(100vw - 32px));
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 18px;
  background: #11131d;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.brain-chat.open .brain-chat-panel { display: block; }
.brain-chat.open .brain-chat-toggle { display: none; }

.brain-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #075985, #0e7490 52%, #1d4ed8);
}

.brain-chat-header strong { display: block; color: #fff; letter-spacing: 0.08em; font-size: 13px; }
.brain-chat-header span { display: block; margin-top: 2px; color: rgba(255,255,255,0.75); font-size: 11px; }
.brain-chat-header button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 18px; }

.brain-chat-messages {
  min-height: 230px;
  max-height: 330px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.brain-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.brain-message-bot { align-self: flex-start; background: rgba(255,255,255,0.07); color: #e7e7f0; }
.brain-message-user { align-self: flex-end; background: rgba(14,116,144,0.55); color: #fff; }

.brain-quick-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.brain-quick-actions button { border: 1px solid rgba(56,189,248,0.45); border-radius: 999px; background: transparent; color: #7dd3fc; cursor: pointer; padding: 6px 9px; font-size: 11px; }

.brain-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.brain-chat-form input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; background: rgba(255,255,255,0.05); color: #fff; padding: 10px; outline: none; font: inherit; font-size: 12.5px; }
.brain-chat-form button { width: 38px; border: 0; border-radius: 9px; background: #0369a1; color: #fff; cursor: pointer; }

@media (max-width: 600px) {
  .brain-chat { left: 16px; bottom: 16px; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Creator Mode Badge & Management */
.creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}

.delete-post-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-post-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-post-btn:hover {
  background: #2563eb;
  color: #fff;
  transform: scale(1.05);
}

.delete-post-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.05);
}

/* Responsive breakdowns */
@media (max-width: 768px) {
  .logo-img {
    height: 30px;
  }
  
  .hero-tag {
    font-size: 28px;
  }
  
  .thinkers-neon-box {
    padding: 6px 24px;
    border-radius: 14px;
  }
  
  .thinkers-neon-text {
    font-size: 36px;
  }
  
  .search-container {
    width: 40px;
  }
  
  .search-container:focus-within {
    width: 110px;
  }
  
  .search-input {
    padding-left: 36px;
  }
  
  .logo-text {
    display: none;
  }

  /* Compact header actions on mobile/tablet */
  #visitorEmailDisplay {
    display: none !important;
  }

  #visitorAvatarGroup {
    padding: 4px !important;
  }

  #createPostBtn {
    padding: 10px !important;
    width: 38px;
    height: 38px;
    justify-content: center;
  }

  #createPostBtn span {
    display: none !important;
  }

  #logoutVisitorBtn {
    padding: 8px !important;
    width: 28px;
    height: 28px;
    justify-content: center;
  }

  #logoutVisitorBtn span {
    display: none !important;
  }
  
  .nav-actions {
    gap: 6px !important;
  }

  .nav-container {
    padding: 0 12px;
  }

  .counter-label {
    display: none !important;
  }
}

@media (max-width: 600px) {
  /* Scrollable Category Filter Bar on Mobile */
  .filter-bar {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 8px 12px !important;
    margin: 24px 16px !important;
    scrollbar-width: none !important; /* Firefox */
    -webkit-overflow-scrolling: touch !important;
  }
  
  .filter-bar::-webkit-scrollbar {
    display: none !important; /* Safari and Chrome */
  }
  
  .filter-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Safe Centering & Scrolling for Modals */
  .modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 20px 10px !important;
  }
  
  .modal-content {
    margin: auto !important;
    padding: 24px 16px !important;
    border-radius: 20px !important;
  }

  /* Compact Handwritten Birthday Modal Letter */
  #birthdayModal .modal-content {
    padding: 20px 16px !important;
    border-width: 2px !important;
  }
  
  #birthdayModal .birthday-letter {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    padding: 5px !important;
  }
  
  #birthdayModal .birthday-letter p {
    text-indent: 15px !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 24px;
  }

  .nav-container {
    padding: 0 8px;
  }
  
  .nav-actions {
    gap: 4px !important;
  }
  
  .hero-tag {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .thinkers-neon-box {
    margin: 8px 0 0 0;
  }
  
  .thinkers-neon-text {
    font-size: 26px;
  }
  
  .post-card {
    border-radius: 16px;
  }
  
  .post-card::before {
    border-radius: 16px;
  }
  
  .post-header {
    padding: 16px 16px 12px;
  }
  
  .post-caption {
    padding: 0 16px 12px;
    font-size: 14px;
  }
  
  .post-footer {
    padding: 12px 16px 16px;
  }
  
  .action-trigger {
    font-size: 12px;
    padding: 8px 4px;
  }

  /* Smaller post media height on mobile to fit screen better */
  .post-media-container {
    max-height: 320px !important;
  }
  
  .post-media-container img {
    max-height: 320px !important;
  }
}

/* Verified Blue Tick (Facebook Style) */
.badge-verified {
  color: #1877f2 !important;
  margin-left: 5px;
  font-size: 14px;
  filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.2));
}

/* Verified Purple Tick for Owner */
.badge-verified-owner {
  color: #a855f7 !important;
  margin-left: 5px;
  font-size: 14px;
  filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.2));
}

/* User profile avatar style */
.post-creator .avatar img, .comment-avatar img, #visitorHeaderAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Button spacing alignment */
.reaction-container .action-trigger {
  width: 100%;
}

/* Visitor Header Profile Click State */
#visitorAvatarGroup {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
#visitorAvatarGroup:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* User Profile Modal layout */
.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  position: relative;
}
.profile-info-container {
  padding: 0 24px 20px;
  position: relative;
  margin-top: -50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
}
#profileViewAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #0f172a;
  background: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
#profileViewAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-posts-section {
  padding: 20px;
  background: rgba(0,0,0,0.2);
  max-height: 400px;
  overflow-y: auto;
}

/* Premium Splash Screen / Logo Intro Animation (Twitter/X style) */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-gradient, radial-gradient(circle at 50% 50%, #0c0f17 0%, #050608 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  pointer-events: all;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  max-width: 200px;
  height: auto;
  opacity: 0;
  transform: scale(0.7);
  animation: introLogo 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-screen.fade-out .splash-logo {
  animation: zoomOutLogo 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes introLogo {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOutLogo {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(25);
  }
}
