/* ============================================================
   CLEAN & PROFESSIONAL COMMUNITY INTERFACE
   Minimal, Premium, Simple Design
   ============================================================ */

/* ============================================================
   PREMIUM HEADER - Clean & Simple
   ============================================================ */
.premium-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .premium-header {
  background: #111827;
  border-bottom-color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.topbar-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.topbar-wrap .header-actions {
  margin-right: 0;
  padding-right: 0;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding-left: 24px;
  flex-shrink: 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px 8px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Dark/Light logo switching for community header */
.brand-logo-light { display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .brand-title {
  color: #f9fafb;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .brand-subtitle {
  color: #9ca3af;
}

.search-section {
  flex: 1;
  max-width: 420px;
  min-width: 200px;
  position: relative;
}

.premium-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
  animation: searchPulse 3s ease-in-out infinite;
}

/* Animated glowing outline effect - running border */
.premium-searchbar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0.3) 25%,
    rgba(139, 92, 246, 0.6) 50%,
    rgba(124, 58, 237, 0.3) 75%,
    rgba(124, 58, 237, 0) 100%
  );
  background-size: 300% 100%;
  animation: searchGlow 3s linear infinite;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0.5px);
}

@keyframes searchGlow {
  0% {
    background-position: -300% 0;
  }
  100% {
    background-position: 300% 0;
  }
}

@keyframes searchPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.15);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25);
  }
}

[data-theme="dark"] .premium-searchbar {
  background: #1f2937;
  border-color: #374151;
  animation: searchPulseDark 3s ease-in-out infinite;
}

[data-theme="dark"] .premium-searchbar::before {
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.35) 25%,
    rgba(167, 139, 250, 0.65) 50%,
    rgba(139, 92, 246, 0.35) 75%,
    rgba(139, 92, 246, 0) 100%
  );
  background-size: 300% 100%;
  opacity: 0.45;
  filter: blur(0.5px);
}

@keyframes searchPulseDark {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
  }
}

.premium-searchbar:focus-within {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .premium-searchbar:focus-within {
  background: #111827;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
}

[data-theme="dark"] .search-input {
  color: #f9fafb;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-kbd {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3px 6px;
  background: #ffffff;
}

[data-theme="dark"] .search-kbd {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

/* Search Dropdown */
.search-section {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 500px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

[data-theme="dark"] .search-dropdown {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.search-dropdown.active {
  display: block;
}

.search-results-group {
  padding: 8px 0;
}

.search-results-header {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}

[data-theme="dark"] .search-results-header {
  color: #9ca3af;
  border-bottom-color: #374151;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f9fafb;
}

[data-theme="dark"] .search-result-item {
  border-bottom-color: #1f2937;
}

.search-result-item:hover {
  background: #f9fafb;
}

[data-theme="dark"] .search-result-item:hover {
  background: #1f2937;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

[data-theme="dark"] .search-result-avatar {
  background: #374151;
}

.search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #6b7280;
}

[data-theme="dark"] .search-result-icon {
  background: #374151;
  color: #9ca3af;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .search-result-title {
  color: #f9fafb;
}

.search-result-meta {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .search-result-meta {
  color: #9ca3af;
}

.search-result-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #7c3aed;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.search-result-badge.page {
  background: #3b82f6;
}

.search-result-badge.person {
  background: #10b981;
}

.search-result-badge.blog {
  background: #f59e0b;
}

.search-result-badge.event {
  background: #ec4899;
}

.search-result-badge.channel {
  background: #8b5cf6;
}

.search-result-badge.service {
  background: #ef4444;
}

.search-result-badge.engagement {
  background: #14b8a6;
}

.search-no-results {
  padding: 32px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

[data-theme="dark"] .search-no-results {
  color: #9ca3af;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
  padding-right: 0;
  flex-shrink: 0;
}

/* Doctor Help Button - Clean & Simple */
.doctor-help-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #f05a28;
  background: #f05a28;
  color: white;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.doctor-help-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.doctor-help-btn:hover::before {
  left: 100%;
}

.doctor-help-btn:hover {
  background: #e04a1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 90, 40, 0.3);
}

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

.doctor-help-btn svg {
  flex-shrink: 0;
}

/* Header Create Post Button - Square Style */
.header-actions .create-post-btn,
#createPostBtn.create-post-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  min-width: 40px;
}

[data-theme="dark"] .header-actions .create-post-btn,
[data-theme="dark"] #createPostBtn.create-post-btn {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.header-actions .create-post-btn:hover,
#createPostBtn.create-post-btn:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.header-actions .create-post-btn:active,
#createPostBtn.create-post-btn:active {
  transform: translateY(0);
}

.header-actions .create-post-btn svg,
#createPostBtn.create-post-btn svg {
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .theme-toggle-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.theme-toggle-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: #111827;
}

/* Notification Dropdown */
.notification-dropdown {
  position: relative;
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .notification-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.notification-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .notification-btn:hover {
  background: #111827;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .notification-badge {
  border-color: #1f2937;
}

.notification-menu {
  position: absolute;
  right: 0;
  top: 52px;
  width: 380px;
  max-height: 500px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
  z-index: 9999;
  flex-direction: column;
}

[data-theme="dark"] .notification-menu {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.notification-menu.open {
  display: flex;
  animation: menuSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  background: #f9fafb;
}

[data-theme="dark"] .notification-header {
  background: #111827;
  border-bottom-color: #374151;
}

.notification-header strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .notification-header strong {
  color: #f9fafb;
}

.notification-mark-all {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .notification-mark-all {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.notification-mark-all:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}

[data-theme="dark"] .notification-mark-all:hover {
  background: #2d1b4e;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .notification-list::-webkit-scrollbar-thumb {
  background: #374151;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

[data-theme="dark"] .notification-item {
  border-bottom-color: #111827;
}

.notification-item:hover {
  background: #f9fafb;
}

[data-theme="dark"] .notification-item:hover {
  background: #111827;
}

.notification-item.read {
  background: #ffffff;
  opacity: 0.7;
}

[data-theme="dark"] .notification-item.read {
  background: #1f2937;
}

.notification-item.read:hover {
  opacity: 1;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .notification-avatar {
  background: #111827;
  border-color: #374151;
}

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

.notification-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

[data-theme="dark"] .notification-avatar-placeholder {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.notification-icon-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f5f3ff;
  border: 1px solid #e9d5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #7c3aed;
}

[data-theme="dark"] .notification-icon-badge {
  background: #2d1b4e;
  border-color: #4c1d95;
  color: #8b5cf6;
}

.notification-icon-badge svg {
  width: 12px;
  height: 12px;
}

.notification-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

[data-theme="dark"] .notification-title {
  color: #f9fafb;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.notification-message {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .notification-message {
  color: #9ca3af;
}

.notification-time {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
}

[data-theme="dark"] .notification-time {
  color: #6b7280;
}

.notification-empty {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
}

[data-theme="dark"] .notification-empty {
  color: #9ca3af;
}

.notification-empty svg {
  margin: 0 auto 16px;
  color: #d1d5db;
}

[data-theme="dark"] .notification-empty svg {
  color: #4b5563;
}

.notification-empty p {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #111827;
}

[data-theme="dark"] .notification-empty p {
  color: #f9fafb;
}

.notification-empty span {
  font-size: 12px;
  color: #6b7280;
}

[data-theme="dark"] .notification-empty span {
  color: #9ca3af;
}

.profile-dropdown {
  position: relative;
}

.profile-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  height: 40px;
  box-sizing: border-box;
}

[data-theme="dark"] .profile-header-box {
  background: #1f2937;
  box-shadow: none;
}

.profile-header-box:hover {
  background: #f9fafb;
}

[data-theme="dark"] .profile-header-box:hover {
  background: #374151;
}

.profile-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  overflow: hidden;
}

[data-theme="dark"] .profile-header-avatar {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.profile-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-header-avatar .avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.profile-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .profile-header-name {
  color: #f9fafb;
}

.profile-header-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .profile-header-subtitle {
  color: #9ca3af;
}

.profile-chevron {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .profile-chevron {
  color: #6b7280;
}

.profile-dropdown.active .profile-chevron {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 240px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
  z-index: 9999;
  flex-direction: column;
}

[data-theme="dark"] .profile-menu {
  background: #1f2937;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-menu.open {
  display: flex;
  animation: menuSlideDown 0.2s ease-out;
}

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

.menu-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(14, 165, 233, 0.03) 50%, rgba(124, 58, 237, 0.05) 100%);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

[data-theme="dark"] .menu-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(124, 58, 237, 0.12) 100%);
  border-bottom-color: #374151;
}

.menu-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 50%, transparent);
}

[data-theme="dark"] .menu-header::after {
  background: linear-gradient(90deg, transparent, #374151 50%, transparent);
}

.menu-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  overflow: hidden;
}

[data-theme="dark"] .menu-header-avatar {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
  color: #f9fafb;
}

.menu-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.menu-header-avatar .avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.menu-header-info {
  flex: 1;
  min-width: 0;
}

.menu-header-info strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

[data-theme="dark"] .menu-header-info strong {
  color: #f9fafb;
}

.menu-header-info span {
  display: block;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
}

[data-theme="dark"] .menu-header-info span {
  color: #9ca3af;
}

.menu-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
}

[data-theme="dark"] .menu-items {
  background: #1f2937;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
  width: 100%;
}

[data-theme="dark"] .menu-item {
  color: #f9fafb;
}

.menu-item span {
  flex: 1;
  line-height: 1.4;
}

.menu-item:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .menu-item:hover {
  background: #374151;
}

.menu-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #6b7280;
  transition: color 0.15s ease;
}

[data-theme="dark"] .menu-item svg {
  color: #9ca3af;
}

.menu-item:hover svg {
  color: #111827;
}

[data-theme="dark"] .menu-item:hover svg {
  color: #f9fafb;
}

.menu-item.logout-btn {
  color: #111827;
  margin-top: 4px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

[data-theme="dark"] .menu-item.logout-btn {
  border-top-color: #374151;
  color: #f9fafb;
}

.menu-item.logout-btn:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .menu-item.logout-btn:hover {
  background: #374151;
}

.menu-item.logout-btn svg {
  color: #6b7280;
}

[data-theme="dark"] .menu-item.logout-btn svg {
  color: #9ca3af;
}

.menu-item.logout-btn:hover svg {
  color: #111827;
}

[data-theme="dark"] .menu-item.logout-btn:hover svg {
  color: #f9fafb;
}


/* ============================================================
   SUB ROW - Carousel (33%) & Categories (66%)
   ============================================================ */
.subrow-premium {
  max-width: 1600px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 33% 66%;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .subrow-premium {
    grid-template-columns: 1fr;
  }
}

/* Carousel - 33% Width with Image Background */
.carousel-container {
  position: relative;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 200px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 8px;
  z-index: 30;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

[data-theme="dark"] .carousel-container {
  background: #1f2937;
  border-color: #374151;
}

.carousel-container.carousel-sidebar {
  margin-bottom: 12px;
  margin-top: 0;
  width: 100%;
  height: 200px;
  position: relative;
  display: block;
  flex-shrink: 0;
}


.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: block;
  visibility: visible;
  opacity: 1;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0%);
  will-change: transform;
  /* Width will be set dynamically via JavaScript based on slide count */
}

.carousel-slide {
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.carousel-slide .slide-content {
  overflow: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.75), rgba(14, 165, 233, 0.65), rgba(240, 90, 40, 0.60));
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.slide-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.slide-content h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  hyphens: auto;
}

.slide-content p {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  hyphens: auto;
}

.slide-cta-btn {
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slide-cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Quick Follow Section - Horizontal Scroll with Navigation */
.quick-follow-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

[data-theme="dark"] .quick-follow-section {
  background: #1f2937;
  border-color: #374151;
}

.quick-follow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quick-follow-header strong {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .quick-follow-header strong {
  color: #f9fafb;
}

.follow-hint {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .follow-hint {
  color: #9ca3af;
}

.category-navigation-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 12px;
}

[data-theme="dark"] .category-navigation-dots {
  background: #111827;
}

.category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .category-dot {
  background: #4b5563;
  border-color: #374151;
}

.category-dot.active {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: #7c3aed;
  border-color: #7c3aed;
}

[data-theme="dark"] .category-dot.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.category-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  position: relative;
  margin: 12px 0 10px;
  padding: 4px 0;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .category-scroll-container::-webkit-scrollbar-thumb {
  background: #374151;
}

.category-scroll {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  min-width: fit-content;
}

.category-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}


.category-item {
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .category-item {
  background: #111827;
  border-color: #374151;
}

.category-item:hover {
  border-color: #7c3aed;
  background: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .category-item:hover {
  background: #1f2937;
}

.category-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s ease;
  word-wrap: break-word;
}

[data-theme="dark"] .category-label {
  color: #9ca3af;
}

.category-item-wrapper:hover .category-label {
  opacity: 1;
}

.category-item.followed {
  border-color: #16a34a;
  background: #f0fdf4;
  border-width: 2px;
}

[data-theme="dark"] .category-item.followed {
  background: #064e3b;
  border-color: #16a34a;
}

.category-item.followed::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
  border: 2px solid #ffffff;
}

[data-theme="dark"] .category-item.followed::after {
  border-color: #1f2937;
}

.category-icon {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
}

[data-theme="dark"] .category-icon {
  color: #9ca3af;
}

.category-item.followed .category-icon {
  color: #16a34a;
}

.category-label {
  font-size: 8px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .category-label {
  color: #f9fafb;
}

/* ============================================================
   MAIN GRID - 20% + 60% + 20%
   ============================================================ */
.main-grid {
  max-width: 100%;
  margin: 24px auto 40px;
  padding: 0 40px 0 24px;
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
  overflow: visible;
  box-sizing: border-box;
}

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

/* When main-content-wrapper contains feed-main and sidebar-right, use grid layout */
.main-content-wrapper > main.feed-main,
.main-content-wrapper > aside.sidebar-right {
  flex: 0 0 auto;
}

/* Create a two-column layout for pages with feed-main and sidebar-right */
.main-content-wrapper:has(> main.feed-main):has(> aside.sidebar-right) {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 20px;
}

/* Fallback for browsers without :has() support - use a wrapper class */
.main-content-wrapper.two-column {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 20px;
}

@media (max-width: 1400px) {
  .main-grid {
    grid-template-columns: 22% 1fr;
    padding-right: 40px;
  }
  .main-content-wrapper {
    grid-template-columns: 1fr 30%;
  }
  .sidebar-right {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .main-grid {
    grid-template-columns: 280px 1fr;
  }
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar-right {
    display: none;
  }
}

/* Note: For screens <= 1024px, responsive.css handles the layout */

/* ============================================================
   LEFT SIDEBAR - Clean Navigation
   ============================================================ */
.sidebar-left {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.sidebar-left::-webkit-scrollbar {
  width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .sidebar-left::-webkit-scrollbar-thumb {
  background: #374151;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

[data-theme="dark"] .sidebar-card {
  background: #1f2937;
  border-color: #374151;
}

.sidebar-content {
  padding: 16px;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 12px 0 12px;
}

[data-theme="dark"] .sidebar-section-title {
  color: #9ca3af;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.nav-item:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

[data-theme="dark"] .nav-item:hover {
  background: #111827;
  border-color: #374151;
}

.nav-item.active {
  background: #f3f4f6;
  border-color: #7c3aed;
}

[data-theme="dark"] .nav-item.active {
  background: #111827;
  border-color: #7c3aed;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}

.nav-item-expandable .nav-content {
  width: 100%;
}

.nav-chevron {
  margin-left: auto;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .nav-chevron {
  color: #6b7280;
}

.nav-item-expandable[data-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
  color: #7c3aed;
}

[data-theme="dark"] .nav-item-expandable[data-expanded="true"] .nav-chevron {
  color: #8b5cf6;
}

.nav-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .nav-icon-wrapper {
  background: #111827;
  border-color: #374151;
}

.nav-item.active .nav-icon-wrapper {
  background: #7c3aed;
  border-color: #7c3aed;
}

.nav-icon-wrapper svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

[data-theme="dark"] .nav-icon-wrapper svg {
  color: #9ca3af;
}

.nav-item.active .nav-icon-wrapper svg {
  color: #ffffff;
}

.nav-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0;
  line-height: 1.2;
}

[data-theme="dark"] .nav-text strong {
  color: #f9fafb;
}

.nav-text span {
  display: block;
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

[data-theme="dark"] .nav-text span {
  color: #9ca3af;
}

.nav-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}

[data-theme="dark"] .nav-badge {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

.nav-badge.hot-badge {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

[data-theme="dark"] .nav-badge.hot-badge {
  background: #7f1d1d;
  border-color: #991b1b;
  color: #fca5a5;
}

.nav-badge.live-badge {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

[data-theme="dark"] .nav-badge.live-badge {
  background: #064e3b;
  border-color: #065f46;
  color: #86efac;
}

.nav-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-left: 12px;
  margin-top: 4px;
  margin-bottom: 6px;
  padding-left: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
  animation: slideDown 0.3s ease;
  position: relative;
}

/* Vertical line positioned to center with icons */
.nav-submenu::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e5e7eb;
}

[data-theme="dark"] .nav-submenu::before {
  background: #374151;
}

.nav-submenu.open {
  display: flex;
}

.nav-item-expandable[data-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

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

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  margin-left: -20px;
  padding-left: 20px;
  position: relative;
}

/* Vertical line alignment - positioned to center with icons */
.nav-submenu::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e5e7eb;
}

[data-theme="dark"] .nav-submenu::before {
  background: #374151;
}

.nav-submenu {
  border-left: none;
}

.nav-subitem:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .nav-subitem:hover {
  background: #111827;
}

.submenu-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
}

[data-theme="dark"] .submenu-icon-wrapper {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

.nav-subitem:hover .submenu-icon-wrapper {
  background: #ffffff;
  border-color: #7c3aed;
  color: #7c3aed;
}

[data-theme="dark"] .nav-subitem:hover .submenu-icon-wrapper {
  background: #1f2937;
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.submenu-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.submenu-content strong {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.submenu-content span {
  font-size: 11px;
}

[data-theme="dark"] .submenu-content strong {
  color: #f9fafb;
}

.submenu-content span {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
}

/* Nested submenu styles (for blog categories under channels) */
.nav-subsubmenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-left: 12px;
  margin-top: 4px;
  margin-bottom: 6px;
  padding-left: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
  animation: slideDown 0.3s ease;
  position: relative;
}

.nav-subsubmenu::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e5e7eb;
}

[data-theme="dark"] .nav-subsubmenu::before {
  background: #374151;
}

.nav-subsubitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  margin-left: -20px;
  padding-left: 20px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.nav-subsubitem:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .nav-subsubitem:hover {
  background: #111827;
}

.subsubmenu-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
}

[data-theme="dark"] .subsubmenu-icon-wrapper {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

.nav-subsubitem:hover .subsubmenu-icon-wrapper {
  background: #ffffff;
  border-color: #7c3aed;
  color: #7c3aed;
}

[data-theme="dark"] .nav-subsubitem:hover .subsubmenu-icon-wrapper {
  background: #1f2937;
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.subsubmenu-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.subsubmenu-content strong {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.subsubmenu-content span {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
}

[data-theme="dark"] .subsubmenu-content strong {
  color: #f9fafb;
}

[data-theme="dark"] .subsubmenu-content span {
  color: #9ca3af;
}

.nav-subitem-expandable {
  position: relative;
}

.nav-subitem-expandable .nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  margin-left: auto;
}
  line-height: 1.3;
}

[data-theme="dark"] .submenu-content span {
  color: #9ca3af;
}

.submenu-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.submenu-content span {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

[data-theme="dark"] .submenu-content span {
  color: #9ca3af;
}

.sidebar-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

[data-theme="dark"] .sidebar-divider {
  background: #374151;
}

.status-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

[data-theme="dark"] .status-card {
  background: #111827;
  border-color: #374151;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  margin-top: 4px;
}

.status-indicator.status-ok {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.status-indicator.status-pending {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-indicator.status-review {
  background: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.status-indicator.status-premium {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #f05a28, #8b5cf6, #7c3aed);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), 0 0 6px rgba(14, 165, 233, 0.15);
  animation: premiumStatusPulse 2.5s ease-in-out infinite;
}

@keyframes premiumStatusPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), 0 0 6px rgba(14, 165, 233, 0.15); }
  50% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 0 10px rgba(14, 165, 233, 0.25); }
}

.premium-status-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #f05a28, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.status-content strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: #111827;
}

[data-theme="dark"] .status-content strong {
  color: #f9fafb;
}

.status-content p {
  margin: 0;
  color: #6b7280;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
}

[data-theme="dark"] .status-content p {
  color: #9ca3af;
}

.status-note {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
}

[data-theme="dark"] .status-note {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}


/* ============================================================
   MIDDLE FEED - Clean & Professional
   ============================================================ */
.feed-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.composer-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="dark"] .composer-card {
  background: #1f2937;
  border-color: #374151;
}

.feed-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

[data-theme="dark"] .feed-card {
  background: #1f2937;
  border-color: #374151;
}

.post-composer {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  overflow: hidden;
}

[data-theme="dark"] .composer-avatar {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.composer-avatar .avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.composer-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-textarea {
  width: 100%;
  min-height: 50px;
  max-height: 200px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
}

[data-theme="dark"] .composer-textarea {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.composer-textarea:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .composer-textarea:focus {
  background: #1f2937;
}

.composer-textarea::placeholder {
  color: #9ca3af;
}

.composer-attachments-preview {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark"] .composer-attachments-preview {
  background: #111827;
  border-color: #374151;
}

.composer-attachment-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

[data-theme="dark"] .composer-attachment-preview {
  background: #1f2937;
  border-color: #374151;
}

.composer-attachment-preview img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.composer-pdf-preview,
.composer-link-preview {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}

[data-theme="dark"] .composer-pdf-preview,
[data-theme="dark"] .composer-link-preview {
  background: #111827;
  color: #9ca3af;
}

.composer-remove-attachment {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .composer-remove-attachment {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.composer-remove-attachment:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.composer-attachment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.composer-attachment-info > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .composer-attachment-info > span:first-child {
  color: #f9fafb;
}

.composer-attachment-meta {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .composer-attachment-meta {
  color: #9ca3af;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.composer-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .composer-action-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.composer-action-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
  transform: translateY(-1px);
}

[data-theme="dark"] .composer-action-btn:hover {
  background: #111827;
}

.composer-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Link Dialog */
.link-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.2s ease;
}

.link-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

[data-theme="dark"] .link-dialog {
  background: #1f2937;
}

.link-dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .link-dialog-header {
  border-bottom-color: #374151;
}

.link-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .link-dialog-header h3 {
  color: #f9fafb;
}

.link-dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .link-dialog-close {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.link-dialog-close:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

[data-theme="dark"] .link-dialog-close:hover {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fca5a5;
}

.link-dialog-content {
  padding: 24px;
}

.link-dialog-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .link-dialog-input {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.link-dialog-input:focus {
  border-color: #7c3aed;
  background: #ffffff;
}

[data-theme="dark"] .link-dialog-input:focus {
  background: #1f2937;
}

.link-dialog-actions {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

[data-theme="dark"] .link-dialog-actions {
  border-top-color: #374151;
}

.link-dialog-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
}

.link-dialog-cancel {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #6b7280;
}

[data-theme="dark"] .link-dialog-cancel {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.link-dialog-cancel:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

[data-theme="dark"] .link-dialog-cancel:hover {
  background: #111827;
}

.link-dialog-submit {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #ffffff;
}

.link-dialog-submit:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Comment/Reply Attachment Styles */
.comment-input-wrapper,
.reply-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input-wrapper > input,
.reply-input-wrapper > input {
  order: 1;
}

.comment-input-wrapper > .comment-attachment-actions,
.reply-input-wrapper > .reply-attachment-actions {
  order: 2;
}

.comment-input-wrapper > .comment-submit-btn,
.reply-input-wrapper > .reply-submit-btn {
  order: 3;
}

.comment-input-wrapper > .comment-attachments-preview,
.reply-input-wrapper > .reply-attachments-preview {
  order: 4;
  width: 100%;
}

.comment-input-row,
.reply-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.comment-attachments-preview,
.reply-attachments-preview {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.comment-attachment-actions,
.reply-attachment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.comment-attachment-btn,
.reply-attachment-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

[data-theme="dark"] .comment-attachment-btn,
[data-theme="dark"] .reply-attachment-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.comment-attachment-btn:hover,
.reply-attachment-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
  transform: translateY(-1px);
}

[data-theme="dark"] .comment-attachment-btn:hover,
[data-theme="dark"] .reply-attachment-btn:hover {
  background: #111827;
}

.comment-attachment-btn svg,
.reply-attachment-btn svg {
  width: 16px;
  height: 16px;
}

/* PDF Full Size in Feed */
.attachment-item-pdf-full {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #f9fafb;
}

[data-theme="dark"] .attachment-item-pdf-full {
  background: #111827;
  border-color: #374151;
}

.attachment-pdf-container {
  width: 100%;
  background: #ffffff;
  padding: 12px;
}

[data-theme="dark"] .attachment-pdf-container {
  background: #1f2937;
}

.attachment-pdf-container iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
}

[data-theme="dark"] .attachment-pdf-container iframe {
  background: #1f2937;
}

.composer-post-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.composer-post-btn:hover {
  background: #6d28d9;
}

/* Composer Modal */
.composer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.composer-modal.active {
  display: flex;
}

.composer-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.composer-modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

[data-theme="dark"] .composer-modal-content {
  background: #1f2937;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.composer-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

[data-theme="dark"] .composer-modal-header {
  border-bottom-color: #374151;
}

.composer-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .composer-modal-header h2 {
  color: #f9fafb;
}

.composer-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1002;
  position: relative;
  pointer-events: auto;
  flex-shrink: 0;
}

[data-theme="dark"] .composer-modal-close {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.composer-modal-close:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

[data-theme="dark"] .composer-modal-close:hover {
  background: #2d1b1b;
  border-color: #ef4444;
}

.composer-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.composer-modal-body .post-composer {
  padding: 0;
}

.composer-modal-body .composer-textarea {
  min-height: 150px;
  max-height: 400px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.feed-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-theme="dark"] .feed-header {
  border-bottom-color: #374151;
}

.feed-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .feed-title {
  color: #f9fafb;
}

.feed-subtitle {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .feed-subtitle {
  color: #9ca3af;
}

.feed-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 16px;
  min-height: 0;
}

.feed-container::-webkit-scrollbar {
  width: 6px;
}

.feed-container::-webkit-scrollbar-track {
  background: transparent;
}

.feed-container::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .feed-container::-webkit-scrollbar-thumb {
  background: #374151;
}

/* Post Styles - Clean & Simple */

.post-item {
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 0;
}

[data-theme="dark"] .post-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Rainbow Verified - Rainbow gradient border and background */
.post-item.post-verified {
  position: relative;
  border: 2px solid rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(14, 165, 233, 0.04) 50%, rgba(240, 90, 40, 0.04) 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.post-item.post-verified::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(14, 165, 233, 0.25) 50%, rgba(240, 90, 40, 0.25) 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;
  z-index: -1;
}

[data-theme="dark"] .post-item.post-verified {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(14, 165, 233, 0.12) 50%, rgba(240, 90, 40, 0.12) 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .post-item.post-verified::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(14, 165, 233, 0.35) 50%, rgba(240, 90, 40, 0.35) 100%);
}

/* Rainbow Associate - Orange border and background */
.post-item.post-associate {
  border: 2px solid rgba(245, 158, 11, 0.3);
  background: rgba(251, 191, 36, 0.06);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .post-item.post-associate {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

/* Member - Grey border and background */
.post-item.post-member {
  border: 2px solid rgba(229, 231, 235, 0.5);
  background: #f9fafb;
}

[data-theme="dark"] .post-item.post-member {
  border-color: rgba(55, 65, 81, 0.5);
  background: #1f2937;
}

.post-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 2px dashed #e5e7eb;
  opacity: 0.5;
}

[data-theme="dark"] .post-item::after {
  border-top-color: #374151;
  opacity: 0.7;
}

.post-item:last-child::after {
  display: none;
}


.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-item.post-verified:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.post-item.post-associate:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .post-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .post-item.post-verified:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .post-item.post-associate:hover {
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.post-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}

.post-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 3px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

[data-theme="dark"] .post-avatar {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.post-author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-author-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-author-name-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

[data-theme="dark"] .post-author-name {
  color: #f9fafb;
}

.post-author-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

[data-theme="dark"] .post-stat-item {
  color: #9ca3af;
}

.post-stat-item svg {
  flex-shrink: 0;
  color: #9ca3af;
  width: 12px;
  height: 12px;
}

[data-theme="dark"] .post-stat-item svg {
  color: #6b7280;
}

.post-time {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .post-time {
  color: #9ca3af;
  background: #111827;
  border-color: #374151;
}

.post-time::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}


.bookmark-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  background: #fef3c7;
  color: #f59e0b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 8px;
  padding: 0;
}

[data-theme="dark"] .bookmark-header-btn {
  background: #78350f;
  border-color: #fbbf24;
  color: #fbbf24;
}

.bookmark-header-btn svg {
  width: 16px;
  height: 16px;
}

.bookmark-header-btn:hover {
  background: #fde68a;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .bookmark-header-btn:hover {
  background: #92400e;
}


.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.post-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.post-badge:hover::before {
  left: 100%;
}

.post-badge.verified {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .post-badge.verified {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.post-badge.associate {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .post-badge.associate {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #fbbf24;
  color: #fde68a;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
}

.post-badge.unverified {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .post-badge.unverified {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-color: #fbbf24;
  color: #fde68a;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
}

.post-badge:not(.verified):not(.associate):not(.unverified) {
  border-color: #9ca3af;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #6b7280;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .post-badge:not(.verified):not(.associate):not(.unverified) {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-color: #6b7280;
  color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

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


.post-actions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.follow-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .follow-btn {
  background: #1f2937;
  border-color: #7c3aed;
  color: #8b5cf6;
}

.follow-btn.following {
  background: #7c3aed;
  color: white;
  border-color: #7c3aed;
}

.follow-btn:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
}

[data-theme="dark"] .follow-btn:hover {
  background: #2d1b4e;
}

.follow-btn.following:hover {
  background: #6d28d9;
}

.post-more-dropdown {
  position: relative;
}

.post-more-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .post-more-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.post-more-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .post-more-btn:hover {
  background: #111827;
}

.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 100;
}

[data-theme="dark"] .more-menu {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.more-menu.open {
  display: flex;
  animation: menuSlideDown 0.2s ease-out;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #111827;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

[data-theme="dark"] .more-menu-item {
  color: #f9fafb;
}

.more-menu-item:hover {
  background: #f3f4f6;
}

[data-theme="dark"] .more-menu-item:hover {
  background: #374151;
}

.more-menu-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #6b7280;
}

[data-theme="dark"] .more-menu-item svg {
  color: #9ca3af;
}

.more-menu-item:hover svg {
  color: #7c3aed;
}

[data-theme="dark"] .more-menu-item:hover svg {
  color: #8b5cf6;
}

.more-menu-item.bookmarked svg {
  color: #f59e0b;
  fill: #f59e0b;
}

.more-menu-item.bookmarked:hover svg {
  color: #d97706;
}

.post-content {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: #111827;
}

[data-theme="dark"] .post-content {
  color: #f9fafb;
}

.post-attachments {
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.attachment-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  gap: 10px;
  min-height: 70px;
  transition: all 0.2s ease;
  cursor: pointer;
}

[data-theme="dark"] .attachment-item {
  background: #111827;
  border-color: #374151;
}

.attachment-item:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.attachment-thumb {
  width: 80px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}

[data-theme="dark"] .attachment-thumb {
  background: #111827;
  color: #9ca3af;
}

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

.attachment-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 6px;
}

.attachment-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  line-height: 1.3;
}

[data-theme="dark"] .attachment-title {
  color: #f9fafb;
}

.attachment-meta {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

[data-theme="dark"] .attachment-meta {
  color: #9ca3af;
}

.attachment-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.attachment-btn {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .attachment-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.attachment-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.post-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.reaction-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .reaction-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.reaction-btn:hover {
  transform: translateY(-1px);
}

[data-theme="dark"] .reaction-btn:hover {
  background: #111827;
}

/* Like button - Blue */
.reaction-like {
  color: #3b82f6;
}

.reaction-like:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.reaction-like.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .reaction-like.active {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #93c5fd;
}

/* Heart button - Red */
.reaction-heart {
  color: #ef4444;
}

.reaction-heart:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

.reaction-heart.active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .reaction-heart.active {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fca5a5;
}

/* Star button - Yellow/Gold */
.reaction-star {
  color: #f59e0b;
}

.reaction-star:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #f59e0b;
}

.reaction-star.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .reaction-star.active {
  background: #78350f;
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Support button - Green */
.reaction-support {
  color: #10b981;
}

.reaction-support:hover {
  border-color: #10b981;
  background: #f0fdf4;
  color: #10b981;
}

.reaction-support.active {
  background: #f0fdf4;
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .reaction-support.active {
  background: #064e3b;
  border-color: #10b981;
  color: #6ee7b7;
}

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

.reaction-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
}

.action-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.reaction-text {
  font-size: 12px;
  font-weight: 600;
}

.reaction-count-inline {
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 10px;
}

.reaction-like .reaction-count-inline {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.reaction-like.active .reaction-count-inline {
  background: rgba(59, 130, 246, 0.2);
  font-weight: 700;
}

.reaction-heart .reaction-count-inline {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.reaction-heart.active .reaction-count-inline {
  background: rgba(239, 68, 68, 0.2);
  font-weight: 700;
}

.reaction-star .reaction-count-inline {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.reaction-star.active .reaction-count-inline {
  background: rgba(245, 158, 11, 0.2);
  font-weight: 700;
}

.reaction-support .reaction-count-inline {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.reaction-support.active .reaction-count-inline {
  background: rgba(16, 185, 129, 0.2);
  font-weight: 700;
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .action-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.action-discussion {
  color: #7c3aed;
}

.action-discussion:hover {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #7c3aed;
}

.action-share {
  color: #6366f1;
}

.action-share:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #6366f1;
}

[data-theme="dark"] .action-btn:hover {
  background: #111827;
}

.reaction-counts {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

[data-theme="dark"] .reaction-counts {
  color: #9ca3af;
}

/* Comments Section - Clean */
.comments-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: none;
}

[data-theme="dark"] .comments-section {
  border-top-color: #374151;
}

.comments-section.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.comment-input-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.comment-input-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .comment-input-avatar {
  background: #111827;
  border-color: #374151;
}

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

.comment-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  background: #e5e7eb;
}

[data-theme="dark"] .comment-avatar-fallback {
  color: #f9fafb;
  background: #374151;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  transition: all 0.2s ease;
  min-width: 200px;
}

[data-theme="dark"] .comment-input {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.comment-input:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .comment-input:focus {
  background: #1f2937;
}

.comment-submit-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  background: #6d28d9;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* Scrollbar styling for comment list */
.comment-list::-webkit-scrollbar {
  width: 5px;
}
.comment-list::-webkit-scrollbar-track {
  background: transparent;
}
.comment-list::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 4px;
}
.comment-list::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .comment-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
}
[data-theme="dark"] .comment-list::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}

.comment-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

[data-theme="dark"] .comment-item {
  background: #111827;
  border-color: #374151;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

[data-theme="dark"] .comment-avatar {
  background: #111827;
  border-color: #374151;
}

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

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

[data-theme="dark"] .comment-author {
  color: #f9fafb;
}

.comment-time {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .comment-time {
  color: #9ca3af;
}

.comment-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
  font-weight: 500;
}

[data-theme="dark"] .comment-text {
  color: #f9fafb;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .comment-like-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.comment-like-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

.comment-like-btn.liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

[data-theme="dark"] .comment-like-btn.liked {
  background: #7f1d1d;
  border-color: #991b1b;
  color: #fca5a5;
}

.comment-like-btn svg {
  width: 14px;
  height: 14px;
}

.comment-reply-btn,
.comment-thread-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .comment-reply-btn,
[data-theme="dark"] .comment-thread-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.comment-reply-btn:hover,
.comment-thread-btn:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .comment-reply-btn:hover,
[data-theme="dark"] .comment-thread-btn:hover {
  background: #111827;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid #e5e7eb;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* Scrollbar styling for thread replies */
.comment-replies::-webkit-scrollbar {
  width: 5px;
}
.comment-replies::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
.comment-replies::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 4px;
}
.comment-replies::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.45);
}

[data-theme="dark"] .comment-replies {
  border-left-color: #374151;
}

[data-theme="dark"] .comment-replies::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] .comment-replies::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.comment-reply {
  margin-top: 8px;
}

.reply-input-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .reply-input-box {
  border-top-color: #374151;
}

.reply-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 500;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

[data-theme="dark"] .reply-input {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.reply-input:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .reply-input:focus {
  background: #1f2937;
}

.reply-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.reply-submit-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  height: fit-content;
}

.reply-submit-btn:hover {
  background: #6d28d9;
}

.reply-cancel-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .reply-cancel-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.reply-cancel-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.no-comments {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
}

[data-theme="dark"] .no-comments {
  color: #9ca3af;
}

.view-all-comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

[data-theme="dark"] .view-all-comments {
  border-top-color: #374151;
}

.view-all-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .view-all-btn {
  background: #1f2937;
  color: #8b5cf6;
  border-color: #8b5cf6;
}

.view-all-btn:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
}

[data-theme="dark"] .view-all-btn:hover {
  background: #2d1b4e;
}

/* ============================================================
   RIGHT SIDEBAR - Clean Widgets
   ============================================================ */
.sidebar-right {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .sidebar-right::-webkit-scrollbar-thumb {
  background: #374151;
}

.widget-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  max-height: 500px;
}

[data-theme="dark"] .widget-card {
  background: #1f2937;
  border-color: #374151;
}

.widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

[data-theme="dark"] .widget-header {
  border-bottom-color: #374151;
}

.widget-header strong {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .widget-header strong {
  color: #f9fafb;
}

.widget-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
}

[data-theme="dark"] .widget-badge {
  background: #111827;
  border-color: #374151;
  color: #9ca3af;
}

.widget-badge.verified-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #8b5cf6;
}

[data-theme="dark"] .widget-badge.verified-badge {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #93c5fd;
}

.widget-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: 100%;
}

.widget-list::-webkit-scrollbar {
  width: 6px;
}

.widget-list::-webkit-scrollbar-track {
  background: transparent;
}

.widget-list::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

[data-theme="dark"] .widget-list::-webkit-scrollbar-thumb {
  background: #374151;
}

.widget-list::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

[data-theme="dark"] .widget-list::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

.widget-item {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 60px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

[data-theme="dark"] .widget-item {
  background: #111827;
  border-color: #374151;
}

.widget-item:hover {
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.widget-item-left {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.widget-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

[data-theme="dark"] .widget-avatar {
  background: #111827;
  border-color: #374151;
}

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

.widget-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.widget-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .widget-name {
  color: #f9fafb;
}

.widget-meta {
  display: block;
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .widget-meta {
  color: #9ca3af;
}

.widget-follow-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .widget-follow-btn {
  background: #1f2937;
  border-color: #7c3aed;
  color: #8b5cf6;
}

.widget-follow-btn:hover {
  background: #f5f3ff;
}

[data-theme="dark"] .widget-follow-btn:hover {
  background: #2d1b4e;
}

.widget-follow-btn.following {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

[data-theme="dark"] .widget-follow-btn.following {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.widget-follow-btn.following:hover {
  background: #059669;
  border-color: #059669;
}

[data-theme="dark"] .widget-follow-btn.following:hover {
  background: #059669;
  border-color: #059669;
}

.widget-mini-card {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 70px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.widget-mini-card.has-image {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

.widget-mini-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.widget-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="dark"] .widget-mini-image {
  background: #374151;
}

.widget-mini-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

[data-theme="dark"] .widget-mini-card {
  background: #111827;
  border-color: #374151;
}

.widget-mini-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.widget-mini-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .widget-mini-title {
  color: #f9fafb;
}

.widget-mini-meta {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .widget-mini-meta {
  color: #9ca3af;
}

.widget-mini-btn {
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

[data-theme="dark"] .widget-mini-btn {
  background: #1f2937;
  border-color: #7c3aed;
  color: #8b5cf6;
}

.widget-mini-btn:hover {
  background: #f5f3ff;
}

[data-theme="dark"] .widget-mini-btn:hover {
  background: #2d1b4e;
}

/* Responsive — handled by responsive.css for <=1024px */
/* Legacy 768px rules removed to prevent header from wrapping to 2 rows */

/* Attachment Preview Popup */
.attachment-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.attachment-popup {
  background: #ffffff;
  border-radius: 16px;
  max-width: 60vw;
  max-height: 65vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

[data-theme="dark"] .attachment-popup {
  background: #1f2937;
}

.attachment-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

[data-theme="dark"] .attachment-popup-header {
  border-bottom-color: #374151;
}

.attachment-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

[data-theme="dark"] .attachment-popup-header h3 {
  color: #f9fafb;
}

.attachment-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .attachment-popup-close {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.attachment-popup-close:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .attachment-popup-close:hover {
  background: #111827;
}

.attachment-popup-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small feed previews */
.attachment-feed-preview {
  margin-top: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .attachment-feed-preview {
  border-color: #374151;
}

.attachment-feed-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .attachment-feed-preview:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.attachment-image-preview-small {
  width: 100%;
  max-width: 300px;
  height: 120px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .attachment-image-preview-small {
  background: #111827;
}

.attachment-image-preview-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-video-preview-small {
  width: 100%;
  max-width: 300px;
  height: 120px;
  background: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-video-preview-small video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.attachment-pdf-preview-small {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .attachment-pdf-preview-small {
  background: #111827;
}

.attachment-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

[data-theme="dark"] .attachment-preview-icon {
  background: #1f2937;
  border-color: #374151;
  color: #fca5a5;
}

.attachment-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.attachment-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .attachment-preview-title {
  color: #f9fafb;
}

.attachment-preview-meta {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .attachment-preview-meta {
  color: #9ca3af;
}

.attachment-pdf-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.attachment-pdf-preview svg {
  color: #6b7280;
}

[data-theme="dark"] .attachment-pdf-preview svg {
  color: #9ca3af;
}

.attachment-pdf-preview p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

[data-theme="dark"] .attachment-pdf-preview p {
  color: #f9fafb;
}

.attachment-pdf-meta {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .attachment-pdf-meta {
  color: #9ca3af;
}

.attachment-pdf-download {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.attachment-pdf-download:hover {
  background: #6d28d9;
}

.attachment-popup-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

[data-theme="dark"] .attachment-popup-footer {
  border-top-color: #374151;
}

.attachment-popup-footer span {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

[data-theme="dark"] .attachment-popup-footer span {
  color: #9ca3af;
}

.attachment-popup-download {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #ffffff;
  color: #7c3aed;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .attachment-popup-download {
  background: #1f2937;
  color: #8b5cf6;
}

.attachment-popup-download:hover {
  background: #f5f3ff;
}

[data-theme="dark"] .attachment-popup-download:hover {
  background: #2d1b4e;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Share Popup */
.share-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.share-popup {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

[data-theme="dark"] .share-popup {
  background: #1f2937;
}

.share-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

[data-theme="dark"] .share-popup-header {
  border-bottom-color: #374151;
}

.share-popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .share-popup-header h3 {
  color: #f9fafb;
}

.share-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .share-popup-close {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.share-popup-close:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .share-popup-close:hover {
  background: #111827;
}

.share-popup-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.share-section {
  margin-bottom: 24px;
}

.share-section:last-child {
  margin-bottom: 0;
}

.share-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

[data-theme="dark"] .share-section label {
  color: #f9fafb;
}

.embed-code-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embed-code-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

[data-theme="dark"] .embed-code-textarea {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.embed-code-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.copy-code-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.copy-code-btn:hover {
  background: #6d28d9;
}

.social-share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.social-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .social-share-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-share-btn.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.social-share-btn.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-share-btn.twitter {
  border-color: #1da1f2;
  color: #1da1f2;
}

.social-share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
}

.social-share-btn.instagram {
  border-color: #e4405f;
  color: #e4405f;
}

.social-share-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-share-btn.linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

.social-share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
}

.social-share-btn.whatsapp {
  border-color: #25d366;
  color: #25d366;
}

.social-share-btn.whatsapp:hover {
  background: #25d366;
  color: white;
}

.social-share-btn.copy-link {
  border-color: #7c3aed;
  color: #7c3aed;
}

.social-share-btn.copy-link:hover {
  background: #7c3aed;
  color: white;
}

.social-share-btn svg {
  flex-shrink: 0;
}

/* Report Popup */
.report-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.report-popup {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

[data-theme="dark"] .report-popup {
  background: #1f2937;
}

.report-popup-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

[data-theme="dark"] .report-popup-header {
  border-bottom-color: #374151;
}

.report-popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

[data-theme="dark"] .report-popup-header h3 {
  color: #f9fafb;
}

.report-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .report-popup-close {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.report-popup-close:hover {
  border-color: #7c3aed;
  background: #f9fafb;
  color: #7c3aed;
}

[data-theme="dark"] .report-popup-close:hover {
  background: #111827;
}

.report-popup-content {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.report-popup-content p {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

[data-theme="dark"] .report-popup-content p {
  color: #f9fafb;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .report-option {
  background: #111827;
  border-color: #374151;
}

.report-option:hover {
  border-color: #7c3aed;
  background: #ffffff;
}

[data-theme="dark"] .report-option:hover {
  background: #1f2937;
}

.report-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #7c3aed;
}

.report-option span {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  flex: 1;
}

[data-theme="dark"] .report-option span {
  color: #f9fafb;
}

.report-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .report-textarea {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

.report-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.report-popup-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

[data-theme="dark"] .report-popup-footer {
  border-top-color: #374151;
}

.report-cancel-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .report-cancel-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.report-cancel-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.report-submit-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #ef4444;
  background: #ef4444;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-submit-btn:hover {
  background: #dc2626;
}

/* ============================================================
   PREMIUM MEMBER UI — Rainbow Shield Loyalty Card Holders
   Subtle gradient highlights for premium experience
   ============================================================ */

/* --- Header: Premium gradient accent bar at bottom --- */
[data-premium="true"] .premium-header {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #f05a28, #8b5cf6, #7c3aed, #8b5cf6, #f05a28) 1;
}
[data-theme="dark"][data-premium="true"] .premium-header {
  border-image: linear-gradient(90deg, rgba(240,90,40,0.6), rgba(14,165,233,0.6), rgba(124,58,237,0.6), rgba(14,165,233,0.6), rgba(240,90,40,0.6)) 1;
}

/* --- Premium Search Bar — rainbow glow for premium members --- */
[data-premium="true"] .premium-searchbar {
  border-color: rgba(124, 58, 237, 0.15);
  animation: premiumSearchPulse 3s ease-in-out infinite;
}
[data-premium="true"] .premium-searchbar::before {
  background: linear-gradient(
    90deg,
    rgba(240, 90, 40, 0) 0%,
    rgba(240, 90, 40, 0.25) 15%,
    rgba(14, 165, 233, 0.45) 35%,
    rgba(124, 58, 237, 0.5) 50%,
    rgba(14, 165, 233, 0.45) 65%,
    rgba(240, 90, 40, 0.25) 85%,
    rgba(240, 90, 40, 0) 100%
  );
  background-size: 300% 100%;
  opacity: 0.5;
}
[data-premium="true"] .premium-searchbar:focus-within {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08), 0 0 0 3px rgba(14, 165, 233, 0.04);
}
@keyframes premiumSearchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.10); }
  50% { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.06), 0 0 8px rgba(14, 165, 233, 0.06); }
}
[data-theme="dark"][data-premium="true"] .premium-searchbar {
  border-color: rgba(124, 58, 237, 0.25);
}
[data-theme="dark"][data-premium="true"] .premium-searchbar::before {
  background: linear-gradient(
    90deg,
    rgba(240, 90, 40, 0) 0%,
    rgba(240, 90, 40, 0.3) 15%,
    rgba(14, 165, 233, 0.5) 35%,
    rgba(124, 58, 237, 0.55) 50%,
    rgba(14, 165, 233, 0.5) 65%,
    rgba(240, 90, 40, 0.3) 85%,
    rgba(240, 90, 40, 0) 100%
  );
  background-size: 300% 100%;
  opacity: 0.5;
}
[data-theme="dark"][data-premium="true"] .premium-searchbar:focus-within {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 0 0 3px rgba(14, 165, 233, 0.06);
}

/* --- Profile avatar wrapper for premium badge overlay --- */
.profile-header-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

/* --- Premium shield badge beside avatar --- */
.premium-shield-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 2;
  animation: premiumBadgePulse 3s ease-in-out infinite;
}
[data-theme="dark"] .premium-shield-badge {
  background: #1f2937;
  border-color: #1f2937;
}
.premium-shield-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
}

@keyframes premiumBadgePulse {
  0%, 100% { box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 1px 8px rgba(124, 58, 237, 0.35), 0 0 4px rgba(14, 165, 233, 0.25); }
}

/* --- Premium subtitle styling --- */
.premium-subtitle {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #f05a28, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600 !important;
  font-size: 11px;
}
.premium-subtitle svg {
  flex-shrink: 0;
}

/* --- Sidebar: Premium faded gradient background --- */
[data-premium="true"] .sidebar-card {
  background: 
    linear-gradient(
      160deg,
      rgba(240, 90, 40, 0.04) 0%,
      rgba(14, 165, 233, 0.03) 30%,
      rgba(124, 58, 237, 0.04) 60%,
      rgba(255, 255, 255, 1) 100%
    );
  border-color: rgba(124, 58, 237, 0.12);
}
[data-theme="dark"][data-premium="true"] .sidebar-card {
  background: 
    linear-gradient(
      160deg,
      rgba(240, 90, 40, 0.06) 0%,
      rgba(14, 165, 233, 0.04) 30%,
      rgba(124, 58, 237, 0.06) 60%,
      rgba(31, 41, 55, 1) 100%
    );
  border-color: rgba(124, 58, 237, 0.18);
}

/* Premium sidebar top rainbow accent line */
[data-premium="true"] .sidebar-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #f05a28, #8b5cf6, #7c3aed);
  border-radius: 16px 16px 0 0;
  opacity: 0.5;
}
[data-theme="dark"][data-premium="true"] .sidebar-card::before {
  opacity: 0.35;
}

/* Premium sidebar nav items: very subtle hover glow */
[data-premium="true"] .sidebar-nav .nav-item:hover .nav-icon-wrapper {
  background: linear-gradient(135deg, rgba(240,90,40,0.05), rgba(14,165,233,0.04), rgba(124,58,237,0.06));
}

/* Premium sidebar active nav item — soft filled gradient instead of outline */
[data-premium="true"] .sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(240,90,40,0.08) 0%, rgba(14,165,233,0.06) 40%, rgba(124,58,237,0.10) 100%);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}
[data-premium="true"] .sidebar-nav .nav-item.active .nav-icon-wrapper {
  background: linear-gradient(135deg, rgba(240,90,40,0.10), rgba(14,165,233,0.08), rgba(124,58,237,0.12)) !important;
  border-color: rgba(124, 58, 237, 0.12) !important;
}
[data-premium="true"] .sidebar-nav .nav-item.active .nav-icon-wrapper svg {
  color: #7c3aed !important;
}
[data-theme="dark"][data-premium="true"] .sidebar-nav .nav-item.active .nav-icon-wrapper {
  background: linear-gradient(135deg, rgba(240,90,40,0.15), rgba(14,165,233,0.12), rgba(124,58,237,0.18)) !important;
  border-color: rgba(124, 58, 237, 0.20) !important;
}
[data-theme="dark"][data-premium="true"] .sidebar-nav .nav-item.active .nav-icon-wrapper svg {
  color: #8b5cf6 !important;
}
[data-premium="true"] .sidebar-nav .nav-item.active .nav-text strong {
  background: linear-gradient(90deg, #f05a28, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"][data-premium="true"] .sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(240,90,40,0.12) 0%, rgba(14,165,233,0.08) 40%, rgba(124,58,237,0.14) 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
}

/* Premium status card upgrade */
[data-premium="true"] .status-card {
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: linear-gradient(135deg, rgba(240,90,40,0.04), rgba(14,165,233,0.03), rgba(124,58,237,0.05));
}
[data-theme="dark"][data-premium="true"] .status-card {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(240,90,40,0.08), rgba(14,165,233,0.05), rgba(124,58,237,0.08));
}

/* Premium profile dropdown box — no extra border, clean look */
[data-premium="true"] .profile-header-box {
  border: none;
  background: transparent;
}
[data-premium="true"] .profile-header-box:hover {
  background: rgba(124, 58, 237, 0.04);
}
[data-theme="dark"][data-premium="true"] .profile-header-box {
  border: none;
  background: transparent;
}
[data-theme="dark"][data-premium="true"] .profile-header-box:hover {
  background: rgba(124, 58, 237, 0.08);
}

/* Premium avatar ring — clean outline via box-shadow, no extra border */
[data-premium="true"] .profile-header-avatar {
  border: none !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #7c3aed;
}
[data-theme="dark"][data-premium="true"] .profile-header-avatar {
  box-shadow: 0 0 0 2px #1f2937, 0 0 0 3.5px #8b5cf6;
}

/* ============================================================
   PREMIUM STATUS CARD — Sidebar (Loyalty Card Members)
   ============================================================ */
.premium-status-card {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-image:
    linear-gradient(135deg, #ffffff 0%, #fdfcff 100%),
    linear-gradient(135deg, rgba(240,90,40,0.35), rgba(14,165,233,0.35), rgba(124,58,237,0.35));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
}
[data-theme="dark"] .premium-status-card {
  background-image:
    linear-gradient(135deg, #1a1a2e 0%, #16213e 100%),
    linear-gradient(135deg, rgba(240,90,40,0.45), rgba(14,165,233,0.45), rgba(124,58,237,0.45));
}

/* Subtle inner glow */
.premium-status-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .premium-status-glow {
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
}

/* Top section: badge + info */
.premium-status-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.premium-status-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240,90,40,0.10), rgba(14,165,233,0.08), rgba(124,58,237,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.12);
}
[data-theme="dark"] .premium-status-badge-icon {
  background: linear-gradient(135deg, rgba(240,90,40,0.16), rgba(14,165,233,0.12), rgba(124,58,237,0.18));
  border-color: rgba(124,58,237,0.25);
}
.premium-status-badge-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.premium-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.premium-status-name {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(90deg, #f05a28, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.premium-status-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7c3aed;
  opacity: 0.8;
}
[data-theme="dark"] .premium-status-label {
  color: #8b5cf6;
}

/* Divider line */
.premium-status-divider {
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.18), rgba(14,165,233,0.14), transparent);
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .premium-status-divider {
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.28), rgba(14,165,233,0.20), transparent);
}

/* Perks list */
.premium-status-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.premium-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.3;
}
[data-theme="dark"] .premium-perk-item {
  color: #d1d5db;
}
.premium-perk-item svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Card number display */
.premium-status-card-number {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240,90,40,0.05), rgba(14,165,233,0.04), rgba(124,58,237,0.06));
  border: 1px solid rgba(124,58,237,0.10);
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .premium-status-card-number {
  background: linear-gradient(135deg, rgba(240,90,40,0.10), rgba(14,165,233,0.07), rgba(124,58,237,0.10));
  border-color: rgba(124,58,237,0.20);
  color: #9ca3af;
}
.premium-status-card-number svg {
  color: #7c3aed;
  flex-shrink: 0;
}
[data-theme="dark"] .premium-status-card-number svg {
  color: #8b5cf6;
}

/* Premium status note */
.premium-status-note {
  border-color: rgba(124,58,237,0.12) !important;
  background: linear-gradient(135deg, rgba(240,90,40,0.03), rgba(124,58,237,0.04)) !important;
}
[data-theme="dark"] .premium-status-note {
  border-color: rgba(124,58,237,0.20) !important;
  background: linear-gradient(135deg, rgba(240,90,40,0.06), rgba(124,58,237,0.07)) !important;
}

/* Subscription sub-nav dropdown in sidebar */
.sub-nav-dropdown {
  display: flex; flex-direction: column; gap: 1px;
  margin: 0 0 2px 28px; padding: 4px 0 2px;
}
.sub-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: #6b7280;
  text-decoration: none; transition: all 0.15s;
  border-left: 2px solid transparent;
}
.sub-nav-item svg { flex-shrink: 0; color: #9ca3af; }
.sub-nav-item:hover { background: #f3f4f6; color: #111827; }
.sub-nav-item:hover svg { color: #7c3aed; }
.sub-nav-item.sub-nav-active {
  background: rgba(124,58,237,0.06); color: #7c3aed;
  font-weight: 600; border-left-color: #7c3aed;
}
.sub-nav-item.sub-nav-active svg { color: #7c3aed; }
[data-theme="dark"] .sub-nav-item { color: #9ca3af; }
[data-theme="dark"] .sub-nav-item:hover { background: #1f2937; color: #e5e7eb; }
[data-theme="dark"] .sub-nav-item.sub-nav-active {
  background: rgba(124,58,237,0.12); color: #a78bfa;
  border-left-color: #8b5cf6;
}
[data-theme="dark"] .sub-nav-item.sub-nav-active svg { color: #a78bfa; }
[data-theme="dark"] .sub-nav-item:hover svg { color: #a78bfa; }
