/* Animação de pulsar sutil com sombreado e escala suave */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(32, 116, 236, 0.4), 0 0 0 0 rgba(32, 116, 236, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(32, 116, 236, 0.5), 0 0 15px 3px rgba(32, 116, 236, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(32, 116, 236, 0.4), 0 0 0 0 rgba(32, 116, 236, 0.3);
  }
}

/* Prevent horizontal scrolling globally */
* {
  box-sizing: border-box;
  touch-action: pan-y pinch-zoom;
}

/* Allow horizontal touch only for carousel */
.carousel-container, .carousel-container *, .products, .products * {
  touch-action: pan-x !important;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y pinch-zoom;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.container {
  display: flex;
  height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

/* Header Principal */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1003;
    box-sizing: border-box;
  }
  
  .header-content {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
  }
  
  /* Hide mobile search on desktop by default */
  .mobile-search-container {
    display: none;
  }.header-logo {
  flex-shrink: 0;
  margin-right: 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 35px;
  width: auto;
  cursor: pointer;
  object-fit: contain;
}

.header-search {
  flex: 1;
  max-width: 400px;
  min-width: 200px;
  position: relative;
  margin-right: 20px;
  flex-shrink: 1;
}

.header-search input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  border: none;
  border-radius: 20px;
  background: #f0f2f5;
  color: #333;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  font-weight: 400;
}

.search-button {
  width: 100%;
  padding: 8px 40px 8px 16px;
  border: none;
  border-radius: 20px;
  background: #f0f2f5;
  color: #65676b;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background: #e4e6ea;
}

.search-text {
  flex: 1;
  color: #65676b;
  font-weight: 400;
}

.search-button i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8b99;
  font-size: 14px;
}

.header-search input::placeholder {
  color: #65676b;
  font-weight: 400;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.header-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #8b8b99;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.header-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.header-btn i {
  font-size: 16px;
  width: 16px;
  text-align: center;
}

.header-btn .icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 0;
}

.btn-text {
  font-size: 14px;
  font-weight: 500;
}

.notification-badge {
  background: #2074EC;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Leave button in header */
.header-btn.leave-btn {
  background: transparent;
  color: #8b8b99;
  border: 1px solid transparent;
  padding: 8px;
  min-width: 44px;
  justify-content: center;
}

.header-btn.leave-btn:hover {
  background: #f0f0f0;
  color: #dc3545;
  border-color: #f0f0f0;
}

/* Smart Match button specific styles */
.header-btn:has(img[src="corujavermelha.png"]) .btn-text,
.header-btn:has(.icon-img[src="corujavermelha.png"]) .btn-text {
  color: #721e34;
}

/* Header button colors */
.header-btn.smart-match-btn .btn-text {
  color: #721e34;
}

.header-btn.premium-btn i,
.header-btn.premium-btn .btn-text {
  color: #FFD700;
}

.header-btn.network-btn i,
.header-btn.network-btn .btn-text {
  color: #2074EC;
}

.header-btn.messaging-btn i,
.header-btn.messaging-btn .btn-text {
  color: #28a745;
}

.header-btn.notifications-btn i,
.header-btn.notifications-btn .btn-text {
  color: #dc3545;
}

/* Profile role container for inline edit button */
.profile-role-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 0px;
  position: relative;
}

.profile-role-container .profile-role {
  margin: 0 0 2px 0;
  font-size: 14px;
  color: #666;
}

.profile-edit-inline-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #2074EC;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 24px;
  height: 20px;
  flex-shrink: 0;
}

.profile-edit-inline-btn:hover {
  background: #f0f0f0;
  color: #2074EC;
}

.profile-edit-inline-btn i {
  font-size: 12px;
}

/* Sidebar esquerda */
.sidebar {
  width: 320px;
  min-width: 290px;
  max-width: 340px;
  background: #fff;
  border-right: none;
  padding: 20px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 60px; /* Below header */
  left: 0;
  height: calc(100vh - 60px);
  box-shadow: none;
  z-index: 1000;
  box-sizing: border-box;
}

.profile-section {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.profile-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-bottom: 15px;
}

.profile-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.profile-edit-btn {
  background: #f8f8f8;
  color: #999;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  width: auto;
  opacity: 0.7;
}

.profile-edit-btn:hover {
  background: #f0f0f0;
  border-color: #e0e0e0;
  color: #666;
  opacity: 0.9;
}

/* Profile Completion Bar */
.profile-completion-bar {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-completion-bar:hover {
  transform: translateY(-1px);
}

.completion-bar-container {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.completion-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2074EC, #4A90FF);
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
  position: relative;
}

.completion-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.completion-bar-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.completion-percentage {
  font-weight: 700;
  color: #2074EC;
}

.completion-label {
  color: #8b8b99;
  font-weight: 500;
}

.profile-actions {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-action-btn {
  min-width: 80px;
  height: 32px;
  border-radius: 20px;
  border: 2px solid #fff;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0 12px;
}

.profile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.edit-btn {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
  font-weight: 600;
}

.edit-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.logout-btn:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.profile-info {
  text-align: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.profile-role {
  font-size: 0.85rem;
  color: #8b8b99;
  font-weight: 400;
  margin: 0 0 2px 0;
}

.profile-company {
  font-size: 0.75rem;
  color: #8b8b99;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.stats {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.stats p {
  margin: 0;
  font-size: 11px;
  color: #8b8b99;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.stats strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: -4px;
  line-height: 1;
}

.stats small {
  font-size: 11px;
  color: #8b8b99;
  font-weight: 400;
  margin-top: 0;
  line-height: 1.1;
}

.badge {
  background: #E3F2FD;
  color: #2074EC;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  margin-left: 8px;
  font-weight: 600;
  box-shadow: none;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  background: #f4f4f4;
  height: calc(100vh - 60px);
  position: fixed;
  top: 60px;
  left: 320px;
  width: calc(100vw - 660px);
  box-sizing: border-box;
}

.top-products {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 5px;
  box-shadow: none;
  overflow: visible;
}

.top-products h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  display: none;
}

.carousel-container {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  padding: 1px 0 0 0;
  background: transparent;
  touch-action: pan-x;
}

.products {
  display: flex;
  gap: 15px;
  font-size: 13px;
  transition: transform 0.5s ease;
  overflow: visible;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  touch-action: pan-x;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2074EC;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.product {
  background: white;
  padding: 20px;
  margin: 8px;
  border-radius: 12px;
  text-align: center;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.2);
}

.product img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: none;
}

.product-info {
  text-align: center;
}

.product-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
  line-height: 1.2;
}

.product-info small {
  font-size: 11px;
  color: #8b8b99;
  font-weight: 400;
}

/* Post Input Trigger (Collapsed State) */
/* Post Input Trigger (Collapsed State) - Initially Hidden */
.post-input-trigger-container {
  display: none;
  align-items: center;
  margin-bottom: 15px;
  transition: all 0.2s ease;
  opacity: 1;
  transform: translateY(0);
  padding-left: 18px;
}

/* Floating Post Button */
.floating-post-button {
  position: fixed;
  bottom: 30px;
  right: 370px; /* Positioned within main-content area (340px filters + 30px margin) */
  z-index: 1000;
  background: #2074EC;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 16px 10px 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 6px 25px rgba(32, 116, 236, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  animation: pulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.floating-post-button:hover {
  background: #1a5bb8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(32, 116, 236, 0.5);
  animation: none;
}

.floating-post-button .user-avatar-floating {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar-small {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 0;
}

.post-input-trigger {
  background: #2074EC;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 16px 10px 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(32, 116, 236, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: pulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.post-input-trigger:hover {
  background: #1a5bb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(32, 116, 236, 0.4);
  animation: none;
}

/* Post Input Container (Expanded State) */
.post-input-container {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
}

.post-input-container.expanded {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px;
  margin-bottom: 15px;
}

.post-input-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-input-user-info {
  flex: 1;
}

.post-input-user-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1c1e21;
  margin-bottom: 2px;
  line-height: 1.2;
}

.post-input-user-info small {
  font-size: 13px;
  color: #65676b;
  font-weight: 400;
}

.close-post-input {
  background: #f8f9fa;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #65676b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.close-post-input:hover {
  background: #e4e6ea;
  color: #1c1e21;
}

.post-input-content {
  display: flex;
  flex-direction: column;
}

.post-input-field {
  width: 100%;
  min-height: 70px;
  max-height: 120px;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #f8f9fa;
  color: #1c1e21;
  font-weight: 400;
  line-height: 1.4;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e4e6ea;
}

.post-input-field::placeholder {
  color: #8a8d91;
  font-weight: 400;
  font-size: 15px;
}

.post-input-field:focus {
  outline: none;
  border-color: #2074EC;
  background: #f0f8ff;
}

.post-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-btn {
  background: #2074EC;
  color: white;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-width: 70px;
  justify-content: center;
  flex-shrink: 0;
}

.post-btn:hover {
  background: #1a5bb8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 116, 236, 0.3);
}

.post-btn:active {
  transform: translateY(0);
}

.post-btn i {
  font-size: 12px;
}

.action-btn {
  background: #f8f9fa;
  border: 1px solid #e4e6ea;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #65676b;
  border-radius: 6px;
  white-space: nowrap;
}

.action-btn:hover {
  background: #f2f3f5;
  border-color: #dddfe2;
}

.photo-action i {
  color: #45bd62;
  font-size: 16px;
}

.video-action i {
  color: #e60026;
  font-size: 16px;
}

.action-btn i {
  font-size: 16px;
}

.action-btn span {
  font-size: 13px;
  font-weight: 500;
  color: #65676b;
}



.post {
  background: white;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  box-sizing: border-box;
}

.post-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  position: relative;
}

.company-badge {
  background: #1e90ff;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.post-info {
  flex: 1;
}

.post-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}

.post-info small {
  font-size: 13px;
  color: #8b8b99;
  display: block;
  margin-bottom: 4px;
}

.post-time {
  font-size: 12px;
  color: #8b8b99;
  position: absolute;
  top: 0;
  right: 0;
}

.post p {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 10px;
}

.post-image {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.post-image video,
.post-image img {
  max-width: 350px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Post Reactions */
.post-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  gap: 8px;
}

.reaction-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #8b8b99;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.reaction-btn:hover {
  background: #f8f9fa;
  color: #555;
  transform: translateY(-1px);
}

.reaction-btn i {
  font-size: 16px;
  transition: all 0.2s ease;
}

.reaction-text {
  font-weight: 500;
  white-space: nowrap;
}

.reaction-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

/* Reaction button states */
.reaction-btn.liked {
  color: #1976d2;
}

.reaction-btn.liked i {
  color: #1976d2;
}

.reaction-btn.liked .reaction-count {
  background: #1976d2;
  color: white;
}

/* Filtro lateral direita */
.filters {
  width: 340px; /* Increased width further to accommodate the full text */
  background: #fff;
  padding: 0; /* Removed 20px padding */
  border-left: 1px solid #eee;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: fixed;
  top: 60px; /* Below header */
  right: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Ensure filters panel is properly positioned when empty */
.filters .filters-header {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 20px; /* Add padding to header */
}

/* Make sponsored section fill remaining space */
.filters .sponsored {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0px;
  margin-bottom: 10px;
  padding-left: 20px; /* Add horizontal padding to sponsored */
}

/* Add padding to news section */
.filters .news {
  padding: 0 20px; /* Add horizontal padding to news */
  margin-top: 20px;
}

.filters > p {
  font-size: 14px;
  margin: 0 0 12px 0;
  padding: 0 16px; /* Add padding to match filter items */
  color: #333;
  font-weight: 500;
  white-space: nowrap; /* Prevent line breaking */
}

/* Top Filters Dropdown */
.top-filters-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.dropdown-filters {
  display: flex;
  gap: 10px;
}

.dropdown-filter {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-filter label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  margin: 0;
  min-width: fit-content;
}

.dropdown-filter .dropdown-btn {
  flex: 1;
}

.dropdown-btn {
  width: 100%;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
  height: 38px;
  box-sizing: border-box;
}

.dropdown-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.dropdown-btn.active {
  background: #e9ecef;
  border-color: #2074EC;
  color: #2074EC;
}

.dropdown-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown-btn.active i {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  margin-top: 2px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item.selected {
  background: #2074EC;
  color: white;
}

.dropdown-btn span {
  display: flex;
  align-items: center;
  line-height: 1;
}

.flag-icon {
  font-size: 16px;
  margin-right: 8px;
  display: inline-block;
  width: 20px;
  text-align: center;
  line-height: 1;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hierarchical Region/Country/City Styles */
.region-item,
.country-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.region-item:hover,
.country-item:hover {
  background: #f8f9fa;
}

.region-item.selected,
.country-item.selected {
  background: #2074EC;
  color: white;
}

.region-arrow,
.country-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: #666;
}

.region-item.selected .region-arrow,
.country-item.selected .country-arrow {
  color: white;
}

.region-countries {
  background: #f8f9fa;
  border-left: 3px solid #2074EC;
  margin-left: 10px;
  padding-left: 10px;
}

.country-cities {
  background: #f0f2f5;
  border-left: 3px solid #28a745;
  margin-left: 20px;
  padding-left: 10px;
}

.city-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
  transition: background 0.2s ease;
  border-radius: 4px;
  margin: 2px 0;
}

.city-item:hover {
  background: #e9ecef;
}

.city-item.selected {
  background: #28a745;
  color: white;
}

.region-text,
.country-text {
  font-weight: 500;
}

.country-item .flag-icon {
  font-size: 14px;
  margin-right: 6px;
}

/* Improved dropdown scrolling */
.dropdown-content {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.filter-buttons-section {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}

.filter-buttons-section::-webkit-scrollbar {
  width: 6px;
}

.filter-buttons-section::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-buttons-section::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.filter-buttons-section::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li {
  background: #f1f3f4;
  margin: 0 0 4px 0;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.2s;
  border: none;
  position: relative;
}

.filter-list li.expandable {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.filter-list li.expandable > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.filter-arrow {
  color: #8b8b99;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sub-options {
  display: none;
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  width: 100%;
  transition: all 0.3s ease;
}

.sub-options li {
  background: #e8eaed;
  margin: 0 0 2px 0;
  padding: 8px 16px 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-options li::before {
  content: "•";
  color: #1a73e8;
  font-size: 16px;
  font-weight: bold;
}

.sub-options li:hover {
  background: #ddd;
  color: #333;
}

.sub-options li:hover::before {
  color: #0d47a1;
}

.sub-options li:active {
  background: #1a73e8;
  color: white;
}

.sub-options li:active::before {
  color: white;
}

.sub-options li.selected {
  background: #1a73e8;
  color: white;
}

.sub-options li.selected::before {
  color: white;
  content: "✓";
}

.filter-list li.expanded {
  background: #e8eaed;
}

.filter-list li:hover {
  background: #e8eaed;
}

.sponsored {
  margin-top: 0; /* Removed all top margin */
  margin-bottom: 15px; /* Reduced bottom margin */
  flex: 0 0 auto; /* Don't grow, fixed size */
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow flexbox to shrink properly */
}

.sponsored h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex-shrink: 0;
}

.sponsored-carousel-container {
  overflow: hidden;
  width: 100%;
  height: 180px; /* Reduced height to give space for news */
  flex-shrink: 0;
  position: relative; /* Ensure proper positioning */
  margin-top: 0;
  padding-top: 0;
}

.sponsored-carousel {
  display: flex;
  flex-direction: row; /* Row to enable horizontal sliding */
  transition: transform 0.5s ease;
  height: 100%;
}

.sponsor-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  height: 100%;
  justify-content: space-evenly; /* Distribute items evenly */
  padding: 4px 0;
  box-sizing: border-box;
}

.sponsor-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border-radius: 0;
  border: none;
  width: 100%;
  height: 56px; /* Fixed height for consistent spacing */
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.sponsor-logo {
  width: 40px;
  height: 40px;
  background: #1a73e8;
  border-radius: 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.sponsor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* Allow text to truncate if needed */
}

.sponsor-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.2;
}

.sponsor-info .description {
  font-size: 12px;
  color: #8b8b99;
  line-height: 1.2;
}

.sponsor-item button {
  background: #f1f3f4;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 80px;
  max-width: 90px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-item button:hover {
  background: #e8eaed;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  flex-shrink: 0;
}

.footer-links {
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-link:hover {
  color: #8b8b99;
}

.footer-separator {
  color: #e0e0e0;
  font-size: 9px;
}

.footer-copyright {
  font-size: 8px;
  color: #ccc;
  line-height: 1.2;
}

.footer-copyright p {
  margin: 0;
}

/* Dark Theme Styles */
body.dark-theme {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-theme .main-header {
  background: #26232a;
  border-bottom: 1px solid #0a0a0a;
}

body.dark-theme .header-search input {
  background: #3a3b3c;
  color: #e4e6ea;
  border: none;
  border-radius: 20px;
}

body.dark-theme .search-button {
  background: #3a3b3c;
  color: #b0b3b8;
}

body.dark-theme .search-button:hover {
  background: #4e4f50;
}

body.dark-theme .search-text {
  color: #b0b3b8;
}

body.dark-theme .search-button i {
  color: #aaa;
}

body.dark-theme .header-search input::placeholder {
  color: #b0b3b8;
}

body.dark-theme .header-search i {
  color: #aaa;
}

body.dark-theme .header-btn {
  color: #e0e0e0;
}

body.dark-theme .header-btn:hover {
  background: #444;
  color: #fff;
}

body.dark-theme .notification-badge {
  background: #2074EC;
  color: #fff;
}

/* Dark theme - Leave button */
body.dark-theme .header-btn.leave-btn {
  color: #e0e0e0;
}

body.dark-theme .header-btn.leave-btn:hover {
  background: #444;
  color: #ff6b6b;
}

/* Dark theme - Smart Match button specific styles */
body.dark-theme .header-btn:has(img[src="corujavermelha.png"]) img {
  content: url("corujacinza.png");
}

body.dark-theme .header-btn:has(img[src="corujavermelha.png"]) .btn-text {
  color: #e0e0e0; /* Same color as Premium Plan in dark mode */
}

/* Dark theme - Header button colors */
body.dark-theme .header-btn.smart-match-btn .btn-text {
  color: #e0e0e0;
}

body.dark-theme .header-btn.premium-btn i,
body.dark-theme .header-btn.premium-btn .btn-text {
  color: #FFD700;
}

body.dark-theme .header-btn.network-btn i,
body.dark-theme .header-btn.network-btn .btn-text {
  color: #4fa8ff;
}

body.dark-theme .header-btn.messaging-btn i,
body.dark-theme .header-btn.messaging-btn .btn-text {
  color: #5cb85c;
}

body.dark-theme .header-btn.notifications-btn i,
body.dark-theme .header-btn.notifications-btn .btn-text {
  color: #ff6b6b;
}

/* Dark theme - Inline edit button */
body.dark-theme .profile-edit-inline-btn {
  color: #2074EC;
  background: transparent;
}

body.dark-theme .profile-edit-inline-btn:hover {
  background: #444;
  color: #2074EC;
}

body.dark-theme .sidebar {
  background: #2d2d2d;
  border-right: 1px solid #333;
  box-sizing: border-box;
}

body.dark-theme .sidebar .stats p {
  color: #e0e0e0;
}

body.dark-theme .sidebar .stats strong {
  color: #e0e0e0;
}

body.dark-theme .sidebar .stats small {
  color: #aaa;
}

body.dark-theme .profile-name {
  color: #e0e0e0;
}

body.dark-theme .profile-role {
  color: #aaa;
}

body.dark-theme .profile-company {
  color: #aaa;
}

body.dark-theme .profile-edit-btn {
  background: #333;
  color: #999;
  border-color: #3a3a3a;
  opacity: 0.7;
}

body.dark-theme .profile-edit-btn:hover {
  background: #444;
  border-color: #444;
  color: #bbb;
  opacity: 0.9;
}

/* Dark theme for completion bar */
body.dark-theme .completion-bar-container {
  background: #444;
}

body.dark-theme .completion-bar-fill {
  background: linear-gradient(90deg, #2074EC, #4A90FF);
}

body.dark-theme .completion-percentage {
  color: #4A90FF;
}

body.dark-theme .completion-label {
  color: #999;
}

body.dark-theme .profile-action-btn {
  background: #333;
  color: #e0e0e0;
  border-color: #2d2d2d;
}

body.dark-theme .profile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body.dark-theme .edit-btn {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

body.dark-theme .edit-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

body.dark-theme .logout-btn:hover {
  background: #dc3545;
  color: #fff;
}

body.dark-theme .main-content {
  background: #1a1a1a;
  padding: 8px;
}

body.dark-theme .top-products {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 5px;
  box-shadow: none;
}

body.dark-theme .top-products h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  display: none;
}

body.dark-theme .carousel-container {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  padding: 2px 0;
  background: transparent;
}

body.dark-theme .products {
  display: flex;
  gap: 15px;
  font-size: 13px;
  transition: transform 0.5s ease;
  overflow: visible;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

body.dark-theme .product {
  background: #2d2d2d;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #333;
  cursor: pointer;
}

body.dark-theme .product:hover {
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.5);
}

body.dark-theme .product img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: none;
}

body.dark-theme .product-info {
  text-align: center;
}

body.dark-theme .product .product-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 2px;
  line-height: 1.2;
}

body.dark-theme .product .product-info small {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
}

/* Dark Theme Post Input */
body.dark-theme .post-input-trigger {
  background: #2074EC;
  color: white;
  box-shadow: 0 4px 8px rgba(32, 116, 236, 0.3);
}

body.dark-theme .post-input-trigger:hover {
  background: #1a5bb8;
  box-shadow: 0 6px 12px rgba(32, 116, 236, 0.4);
}

body.dark-theme .post-input-container {
  background: #2d2d2d;
  border: 1px solid #404040;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

body.dark-theme .post-input-user-info strong {
  color: #e4e6ea;
}

body.dark-theme .post-input-user-info small {
  color: #b0b3b8;
}

body.dark-theme .close-post-input {
  background: #3a3b3c;
  color: #b0b3b8;
}

body.dark-theme .close-post-input:hover {
  background: #4e4f50;
  color: #e4e6ea;
}

body.dark-theme .post-input-field {
  background: #3a3b3c;
  color: #e4e6ea;
  border: 1px solid #4e4f50;
}

body.dark-theme .post-input-field:focus {
  border-color: #2074EC;
  background: #2a3441;
}

body.dark-theme .post-input-field::placeholder {
  color: #8a8d91;
}

body.dark-theme .action-btn {
  background: #3a3b3c;
  border: 1px solid #4e4f50;
  color: #b0b3b8;
}

body.dark-theme .action-btn:hover {
  background: #4e4f50;
  border-color: #5a5b5c;
}

body.dark-theme .action-btn span {
  color: #b0b3b8;
}

body.dark-theme .video-action i {
  color: #e60026;
}

body.dark-theme .action-btn span {
  color: #b0b3b8;
}



body.dark-theme .post {
  background: #2d2d2d;
  border: 1px solid #333;
  box-sizing: border-box;
  padding: 12px 18px;
}

body.dark-theme .company-badge {
  background: #2074EC;
  color: white;
}

body.dark-theme .post .post-info strong {
  color: #e0e0e0;
}

body.dark-theme .post .post-info small {
  color: #aaa;
}

body.dark-theme .post .post-time {
  color: #aaa;
}

body.dark-theme .post p {
  color: #e0e0e0;
}

/* Dark Theme Post Reactions */
body.dark-theme .post-reactions {
  border-top: 1px solid #3a3b3c;
}

body.dark-theme .reaction-btn {
  color: #b0b3b8;
}

body.dark-theme .reaction-btn:hover {
  background: #3a3b3c;
  color: #e4e6ea;
}

body.dark-theme .reaction-count {
  background: #374151;
  color: #60a5fa;
}

body.dark-theme .reaction-btn.liked {
  color: #60a5fa;
}

body.dark-theme .reaction-btn.liked .reaction-count {
  background: #1e40af;
  color: white;
}

body.dark-theme .filters {
  background: #2d2d2d;
  border-left: 1px solid #333;
  box-sizing: border-box;
}

body.dark-theme .filters p {
  color: #e0e0e0;
}

body.dark-theme .filter-list li {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #444;
}

body.dark-theme .filter-list li:hover {
  background: #444;
  color: #fff;
}

body.dark-theme .filter-list li.expanded {
  background: #444;
  color: #fff;
}

body.dark-theme .filter-arrow {
  color: #aaa;
}

/* Dark Theme Top Filters Dropdown */
body.dark-theme .top-filters-section {
  border-bottom: 1px solid #333;
}

body.dark-theme .dropdown-btn {
  background: #3a3b3c;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .dropdown-filter label {
  color: #e0e0e0;
}

body.dark-theme .dropdown-btn:hover {
  background: #444;
  border-color: #666;
}

body.dark-theme .dropdown-btn.active {
  background: #444;
  border-color: #2074EC;
  color: #2074EC;
}

body.dark-theme .dropdown-content {
  background: #2d2d2d;
  border-color: #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .dropdown-item {
  color: #e0e0e0;
}

body.dark-theme .dropdown-item:hover {
  background: #3a3b3c;
}

body.dark-theme .dropdown-item.selected {
  background: #2074EC;
  color: white;
}

/* Dark Theme Hierarchical Styles */
body.dark-theme .region-item,
body.dark-theme .country-item {
  color: #e0e0e0;
}

body.dark-theme .region-item:hover,
body.dark-theme .country-item:hover {
  background: #3a3b3c;
}

body.dark-theme .region-item.selected,
body.dark-theme .country-item.selected {
  background: #2074EC;
  color: white;
}

body.dark-theme .region-arrow,
body.dark-theme .country-arrow {
  color: #aaa;
}

body.dark-theme .region-item.selected .region-arrow,
body.dark-theme .country-item.selected .country-arrow {
  color: white;
}

body.dark-theme .region-countries {
  background: #3a3b3c;
  border-left-color: #2074EC;
}

body.dark-theme .country-cities {
  background: #333;
  border-left-color: #28a745;
}

body.dark-theme .city-item {
  color: #ccc;
}

body.dark-theme .city-item:hover {
  background: #444;
}

body.dark-theme .city-item.selected {
  background: #28a745;
  color: white;
}

body.dark-theme .filter-buttons-section {
  background: inherit;
}

body.dark-theme .filter-buttons-section::-webkit-scrollbar-track {
  background: #2d2d2d;
}

body.dark-theme .filter-buttons-section::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

body.dark-theme .filter-buttons-section::-webkit-scrollbar-thumb:hover {
  background: #666;
}

body.dark-theme .sub-options {
  background: #444;
}

body.dark-theme .sub-options li {
  background: #444;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-theme .sub-options li:hover {
  background: #555;
  color: #fff;
}

body.dark-theme .sub-options li:hover::before {
  color: #6bb6ff;
}

body.dark-theme .sub-options li:active {
  background: #6bb6ff;
  color: white;
}

body.dark-theme .sub-options li:active::before {
  color: white;
}

body.dark-theme .sub-options li.selected {
  background: #6bb6ff;
  color: white;
}

body.dark-theme .sub-options li.selected::before {
  color: white;
}

body.dark-theme .sponsored {
  background: #2d2d2d;
  border: none;
}

body.dark-theme .sponsored h4 {
  color: #e0e0e0;
}

body.dark-theme .sponsor-item {
  background: #2d2d2d;
  border: none;
}

body.dark-theme .sponsor-item .name {
  color: #e0e0e0;
}

body.dark-theme .sponsor-item .description {
  color: #aaa;
}

body.dark-theme .sponsor-item button {
  background: #444;
  color: #e0e0e0;
  border: none;
}

body.dark-theme .sponsor-item button:hover {
  background: #555;
}

body.dark-theme .sidebar-footer {
  border-top: 1px solid #333;
}

body.dark-theme .footer-link {
  color: #666;
}

body.dark-theme .footer-link:hover {
  color: #888;
}

body.dark-theme .footer-separator {
  color: #444;
}

body.dark-theme .footer-copyright {
  color: #555;
}

body.dark-theme .carousel-btn {
  background: #444;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-theme .carousel-btn:hover {
  background: #555;
  transform: translateY(-50%) scale(1.1);
}

/* Dark Theme Scrollbars */
body.dark-theme ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.dark-theme ::-webkit-scrollbar-track {
  background: #26232a;
}

body.dark-theme ::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: #666;
}

body.dark-theme ::-webkit-scrollbar-corner {
  background: #2d2d2d;
}

/* Light Theme Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

.theme-toggle-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 8px;
}

.theme-toggle-icon i {
  font-size: 16px;
}

body.dark-theme .theme-toggle-icon {
  color: #ffd700;
}

body.dark-theme .theme-toggle-icon:hover {
  background: #444;
  color: #ffed4a;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #8b8b99;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.mobile-menu-toggle:hover {
  background: #f0f0f0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  display: none;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1999;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-profile-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.mobile-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mobile-profile-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #222;
  font-weight: 600;
  line-height: 1.3;
}

.mobile-profile-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  line-height: 1.2;
}

.mobile-profile-info small {
  margin: 0;
  font-size: 12px;
  color: #8b8b99;
  line-height: 1.2;
}

.mobile-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mobile-profile-action-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}

.mobile-profile-action-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.mobile-profile-action-btn.edit-btn {
  background: #2074EC;
  color: white;
  border-color: #2074EC;
  font-weight: 600;
}

.mobile-profile-action-btn.edit-btn:hover {
  background: #1a5bb8;
  border-color: #1a5bb8;
  box-shadow: 0 2px 4px rgba(32, 116, 236, 0.3);
}

.mobile-profile-action-btn.logout-btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: #8b8b99;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.mobile-nav-close:hover {
  background: #f0f0f0;
}

.mobile-nav-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-stat {
  text-align: center;
  flex: 1;
  max-width: 33.333%;
  line-height: 1;
}

.mobile-stat strong {
  display: block;
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 0;
  line-height: 1;
}

.mobile-stat small {
  font-size: 10px;
  color: #8b8b99;
  line-height: 1.1;
  word-wrap: break-word;
  hyphens: auto;
  margin: 0;
  padding: 0;
  display: block;
}

/* Mobile Profile Completion */
.mobile-profile-completion {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-completion-label {
  font-size: 14px;
  color: #8b8b99;
  font-weight: 500;
}

.mobile-completion-percentage {
  font-weight: 700;
  color: #2074EC;
  font-size: 14px;
}

.mobile-completion-bar-container {
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-completion-bar-container:hover {
  transform: scaleY(1.1);
}

.mobile-completion-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2074EC, #4A90FF);
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
  position: relative;
  width: 30%;
}

.mobile-completion-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.mobile-nav-menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  border-top: none;
}

.mobile-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-top: none;
  border-bottom: none;
}

.mobile-nav-btn:hover {
  background: #f8f9fa;
}

.mobile-nav-btn.active {
  background: #f0f8ff;
  color: #2074EC;
  border-right: 3px solid #2074EC;
}

.mobile-nav-btn i {
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

.mobile-badge {
  background: #2074EC;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
}

/* MOBILE FILTERS */
.mobile-filters-toggle {
  display: none;
  margin-bottom: 4px;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mobile-action-btn {
  flex: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px !important;
  background: #fff;
  border: 1px solid #fff;
  border-top: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px !important;
  gap: 4px !important;
  position: relative;
  min-width: 0 !important;
  box-sizing: border-box !important;
  width: 50% !important;
  max-width: 50% !important;
}

.mobile-action-btn:hover {
  background: #f8f9fa;
}

.mobile-action-btn i {
  font-size: 12px;
  flex-shrink: 0;
}

.mobile-action-btn .icon-img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-action-btn span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-profiles-btn {
  color: #333;
  border-color: #e0e0e0;
  background: #fff;
}

/* Mobile Smart Match button specific styles (light mode only) */
body:not(.dark-theme) .mobile-action-btn:has(img[src="corujavermelha.png"]) span,
body:not(.dark-theme) .mobile-action-btn:has(.icon-img[src="corujavermelha.png"]) span {
  color: #721e34;
}

.search-profiles-btn:hover {
  background: #f8f9fa;
}

.business-btn {
  color: #333;
}

.mobile-filters-count {
  background: #2074EC;
  color: white;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
  margin-left: 2px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

.mobile-filters-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filters-btn:hover {
  background: #f8f9fa;
}

.mobile-filters-btn i {
  margin-right: 8px;
}

.mobile-filters-count {
  background: #2074EC;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

.mobile-filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  display: none;
}

.filters-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: none;
}

.filters-title p {
  margin: 0;
  font-size: 16px;
}

.filters-close {
  background: transparent;
  border: none;
  color: #8b8b99;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.filters-close:hover {
  background: #f0f0f0;
}

/* RESPONSIVIDADE */

/* Tablets e telas médias (até 1024px) */
@media screen and (max-width: 1024px) {
  .filters {
    width: 280px;
    padding: 15px;
  }
  
  .sidebar {
    width: 280px;
    min-width: 260px;
    max-width: 300px;
  }
  
  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 8px 15px;
  }
  
  /* Ensure dark theme also has no lateral margins */
  body.dark-theme .main-content {
    margin-left: 0;
    margin-right: 0;
  }
  
  .header-actions .btn-text {
    display: none;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .header-btn {
    padding: 8px;
    min-width: 40px;
  }
  
  .top-products {
    background: transparent;
    padding: 0;
    margin: 2px;
    box-shadow: none;
    border-radius: 0;
  }
  
  .carousel-container {
    padding: 2px 0;
    background: transparent;
  }
  
  .products {
    gap: 12px;
    padding: 5px 15px;
    background: transparent;
  }
  
  .product {
    width: 110px;
    height: 110px;
    margin: 8px;
  }
  
  .sponsor-item {
    padding: 10px;
  }
}

/* Telas menores que desktop (769px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .header-search {
    max-width: 300px;
    min-width: 200px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .header-btn .btn-text {
    display: none;
  }
}

/* Telas pequenas (900px - 1200px) */
@media screen and (max-width: 1200px) and (min-width: 900px) {
  .header-search {
    max-width: 350px;
  }
}

/* Tablets pequenos (até 768px) */
@media screen and (max-width: 768px) {
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  body {
    padding-top: 100px; /* Adjust for integrated header with search */
  }
  
  .container {
    flex-direction: column;
    overflow-x: hidden;
  }
  
  .main-header {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    height: auto;
    min-height: 50px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    z-index: 10;
  }
  
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  
  .header-logo img {
    height: 35px;
    width: auto;
  }
  
  .header-search {
    display: none; /* Hide desktop search on mobile */
  }
  
  .mobile-search-container {
    display: block !important; /* Show mobile search */
    width: 100%;
    padding: 8px 10px 12px 10px;
    background: inherit;
    border-top: 1px solid #e0e0e0;
    order: 3;
  }
  
  .mobile-search-bar {
    position: relative;
    width: 100%;
  }
  
  .mobile-search-bar input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    color: #333;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
  }
  
  .mobile-search-button {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #f8f9fa;
    color: #8b8b99;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    transition: background-color 0.2s ease;
  }
  
  .mobile-search-button:hover {
    background: #e9ecef;
  }
  
  .mobile-search-text {
    flex: 1;
    color: #8b8b99;
  }
  
  .mobile-search-button i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8b99;
    font-size: 16px;
    cursor: pointer;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-action-btn {
    padding: 12px 8px !important;
    font-size: 14px !important;
    gap: 6px !important;
    min-height: 48px !important;
    color: #767676;
    width: 50% !important;
    max-width: 50% !important;
    flex: 1 !important;
    box-sizing: border-box !important;
  }
  
  .mobile-action-btn i {
    font-size: 20px;
    color: #767676;
  }
  
  .mobile-action-btn .icon-img {
    width: 20px;
    height: 20px;
  }
  
  .mobile-action-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #767676;
  }
  
  .mobile-action-btn span .mobile-badge {
    color: white !important;
    background: #2074EC !important;
    font-size: 10px !important;
  }
  
  .mobile-action-btn .mobile-filters-count {
    color: white !important;
    background: #2074EC !important;
  }
  
  .mobile-filters-toggle {
    display: flex !important;
    border-top: none;
    margin-bottom: 2px !important;
    margin-top: 0 !important;
    width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    position: static;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 4px 12px;
    width: 100%;
    left: 0;
    height: auto;
    box-sizing: border-box;
    border-top: none;
  }
  
  .filters {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    z-index: 1999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  
  .filters.active {
    right: 0;
    display: block;
  }
  
  .filters-header {
    display: flex;
    border-bottom: none;
  }
  
  .post {
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px; /* Reduced from 14px to 8px */
    margin-bottom: 8px; /* Reduced from 14px to 8px */
  }
  
  .post-header {
    margin-bottom: 10px; /* Reduced from 15px to 10px (30% reduction) */
  }
  
  .post-avatar img {
    width: 35px !important;
    height: 35px !important;
  }
  
  .post-info strong {
    font-size: 14px;
  }
  
  .post-info small {
    font-size: 12px;
  }
  
  .post p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 7px; /* Reduced from 10px to 7px (30% reduction) */
    margin-bottom: 7px; /* Reduced from 10px to 7px (30% reduction) */
  }
  
  .top-products {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  
  .top-products h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 0;
    display: block;
  }
  
  .carousel-container {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  .products {
    gap: 12px;
    margin-bottom: 0px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  
  .product {
    width: calc((100% - 36px) / 4);
    height: auto;
    min-height: 120px;
    min-width: calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
    padding: 10px;
    margin: 3px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  
  .product img {
    width: 75px;
    height: 75px;
  }
  
  .product-info {
    flex-shrink: 0;
    margin-top: auto;
  }
  
  .product-info strong {
    font-size: 11px;
  }
  
  .product-info small {
    font-size: 10px;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .post-input-container {
    padding: 0;
    margin-bottom: 0;
  }
  
  .post-input-container.expanded {
    padding: 12px 18px 16px 18px;
    margin-bottom: 15px;
  }
  
  .post-input-top {
    gap: 8px;
    margin-bottom: 6px;
  }
  
  .user-avatar {
    width: 34px;
    height: 34px;
  }
  
  .post-input-bar {
    padding: 8px 10px;
    min-height: 28px;
    display: flex;
    align-items: center;
  }
  
  .post-input-field {
    padding: 0 0 0 8px;
    font-size: 15px;
    min-height: 20px;
  }
  
  .post-btn {
    padding: 6px 10px;
    font-size: 13px;
    gap: 3px;
    min-height: 28px;
  }
  
  .post-btn i {
    font-size: 11px;
  }
  
  .post-input-divider {
    margin: 8px 0;
  }
  
  .post-actions {
    gap: 0;
    align-items: center;
  }
  
  .action-btn {
    padding: 8px 10px 4px 10px;
    font-size: 13px;
    gap: 4px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .action-btn i {
    font-size: 15px;
  }
  
  .action-btn span {
    font-size: 14px;
  }
  
  .action-btn {
    min-width: 40px;
    justify-content: center;
  }
  
  .post-btn span {
    display: none;
  }
  

  
  .sponsored h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .sponsored-carousel-container {
    width: 100%;
    overflow: hidden;
  }
  
  .sponsored-carousel {
    width: 100%;
  }
  
  .sponsor-group {
    width: 100%;
    min-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }
  
  .sponsor-item {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .sponsor-logo {
    width: 30px;
    height: 30px;
    font-size: 12px;
    flex-shrink: 0;
  }
  
  .sponsor-info {
    flex: 1;
    min-width: 0;
  }
  
  .sponsor-info .name {
    font-size: 12px;
  }
  
  .sponsor-info .description {
    font-size: 10px;
  }
  
  .sponsor-item button {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 60px;
    max-width: 70px;
    height: 24px;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Top Filters Dropdown */
  .top-filters-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }
  
  .dropdown-filters {
    gap: 8px;
  }
  
  .dropdown-filter {
    gap: 6px;
  }
  
  .dropdown-filter label {
    font-size: 12px;
    min-width: 45px;
  }
  
  .dropdown-btn {
    padding: 8px 10px;
    font-size: 12px;
    height: 34px;
    box-sizing: border-box;
  }
  
  .flag-icon {
    font-size: 14px;
    margin-right: 6px;
    width: 16px;
    line-height: 1;
  }
  
  .dropdown-content {
    max-height: 150px;
  }
  
  .dropdown-item {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  /* Mobile Hierarchical Styles */
  .region-item,
  .country-item {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .region-countries {
    margin-left: 8px;
    padding-left: 8px;
  }
  
  .country-cities {
    margin-left: 16px;
    padding-left: 8px;
  }
  
  .city-item {
    padding: 6px 10px;
    font-size: 11px;
    margin: 1px 0;
  }
  
  .country-item .flag-icon {
    font-size: 12px;
    margin-right: 4px;
  }
  
  .region-arrow,
  .country-arrow {
    font-size: 9px;
  }
  
  .filter-list {
    padding: 0;
  }
  
  .filter-list li {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 3px;
  }
  
  .filter-list li.expandable > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 20px;
  }
  
  .filter-list li div {
    font-size: 13px;
  }
  
  .filter-arrow {
    font-size: 10px;
    margin-left: 8px;
  }
  
  .sub-options li {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 1px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  /* Dark theme mobile styles for 768px */
  body.dark-theme .post-input-container {
    background: #2d2d2d;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
}

/* Smartphones (até 480px) */
@media screen and (max-width: 480px) {
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  body {
    overflow-x: hidden;
    position: relative;
    padding-top: 100px; /* Adjust for integrated header with search */
  }
  
  .container {
    overflow-x: hidden;
    position: relative;
  }
  
  .main-header {
    padding: 0 8px;
    height: auto;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
    background: #fff;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 50px;
    position: relative;
    padding: 0;
  }
  
  .mobile-search-container {
    display: block !important; /* Show mobile search */
    width: 100%;
    padding: 8px 8px 12px 8px;
    background: inherit;
    border-top: 1px solid #e0e0e0;
    order: 3;
  }
  
  .mobile-menu-toggle {
    order: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  
  .header-logo {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  
  .header-logo img {
    height: 32px;
  }
  
  .header-search {
    flex: 1;
    max-width: none;
    margin-right: 0;
    min-width: 0;
    order: 3;
  }
  
  .header-search input {
    font-size: 13px;
    padding: 6px 30px 6px 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .header-btn {
    padding: 6px;
    min-width: 35px;
    min-height: 35px;
  }
  
  .header-btn i {
    font-size: 14px;
  }
  
  .header-btn .icon-img {
    width: 14px;
    height: 14px;
  }

  .notification-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
    top: -2px;
    right: -2px;
  }
  
  .main-content {
    position: static;
    margin-top: 20px; /* Space for header and consistent spacing */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 4px;
    width: 100%;
    left: 0;
    height: auto;
    box-sizing: border-box;
  }
  
  .stats {
    margin-bottom: 8px;
  }
  
  .stats p {
    font-size: 12px;
  }
  
  .stats strong {
    font-size: 14px;
  }
  
  .profile-section {
    padding: 8px 12px;
    min-height: 45px;
  }
  
  .profile-image-container img {
    width: 28px;
    height: 28px;
  }
  
  .profile-actions button {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 50px;
    height: 24px;
  }
  
  .profile-actions button span {
    display: none;
  }
  
  .mobile-profile-action-btn {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 50px;
  }
  
  .mobile-profile-action-btn span {
    font-size: 9px;
  }
  
  .profile-info h3 {
    font-size: 12px;
    margin: 2px 0;
  }
  
  .profile-info p {
    font-size: 10px;
    margin: 1px 0;
  }
  
  .post {
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .post-avatar img {
    width: 30px !important;
    height: 30px !important;
  }
  
  .post-info strong {
    font-size: 13px;
  }
  
  .post-info small {
    font-size: 11px;
  }
  
  .post p {
    font-size: 13px;
  }
  
  .top-products {
    padding: 0 !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  
  .top-products h3 {
    font-size: 0.9rem;
  }
  
  .carousel-container {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  .products {
    gap: 6px !important;
    padding: 8px 10px 0px 10px !important;
    background: transparent !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .product {
    width: calc(((100vw - 28px) / 4) * 0.78);
    height: auto;
    min-height: 130px;
    min-width: calc(((100vw - 28px) / 4) * 0.78);
    max-width: calc(((100vw - 28px) / 4) * 0.78);
    padding: 10px;
    margin: 3px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  
  .product img {
    width: 60px;
    height: 60px;
  }
  
  .product-info {
    flex-shrink: 0;
    margin-top: auto;
  }
  
  .product-info strong {
    font-size: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
  }
  
  .product-info small {
    font-size: 9px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .post-input-container {
    padding: 0;
    margin-bottom: 0;
  }
  
  .post-input-container.expanded {
    padding: 12px 18px 16px 18px;
    margin-bottom: 15px;
  }
  
  .post-input-top {
    gap: 7px;
    margin-bottom: 5px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .post-input-bar {
    padding: 7px 9px;
    min-height: 26px;
    display: flex;
    align-items: center;
  }
  
  .post-input-field {
    padding: 0 0 0 9px;
    font-size: 14px;
    min-height: 18px;
  }
  
  .post-btn {
    padding: 5px 9px;
    font-size: 12px;
    gap: 3px;
    min-height: 26px;
  }
  
  .post-btn i {
    font-size: 10px;
  }
  
  .post-input-divider {
    margin: 7px 0;
  }
  
  .post-actions {
    gap: 0;
    align-items: center;
  }
  
  .action-btn {
    padding: 7px 9px 3px 9px;
    font-size: 12px;
    gap: 4px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .action-btn i {
    font-size: 14px;
  }
  
  .action-btn span {
    font-size: 12px;
  }
  
  .action-btn {
    min-width: 35px;
    justify-content: center;
  }
  
  .post-btn span {
    display: none;
  }
  
  .filters {
    padding: 12px;
  }
  
  .filters p {
    font-size: 14px;
  }
  
  .sponsored h4 {
    font-size: 0.9rem;
  }
  
  .sponsor-item {
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .sponsor-logo {
    width: 25px;
    height: 25px;
    font-size: 10px;
    flex-shrink: 0;
  }
  
  .sponsor-info {
    flex: 1;
    min-width: 0;
  }
  
  .sponsor-info .name {
    font-size: 11px;
  }
  
  .sponsor-info .description {
    font-size: 9px;
  }
  
  .sponsor-item button {
    padding: 4px 8px;
    font-size: 9px;
    min-width: 70px;
    max-width: 80px;
    height: 24px;
    border-radius: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Top Filters Dropdown - 480px */
  .top-filters-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .dropdown-filters {
    gap: 6px;
  }
  
  .dropdown-filter {
    gap: 4px;
  }
  
  .dropdown-filter label {
    font-size: 11px;
    min-width: 40px;
  }
  
  .dropdown-btn {
    padding: 7px 8px;
    font-size: 11px;
    height: 30px;
    box-sizing: border-box;
  }
  
  .flag-icon {
    font-size: 12px;
    margin-right: 5px;
    width: 14px;
    line-height: 1;
  }
  
  .dropdown-content {
    max-height: 120px;
  }
  
  .dropdown-item {
    padding: 7px 8px;
    font-size: 11px;
  }
  
  /* Mobile Hierarchical Styles - 480px */
  .region-item,
  .country-item {
    padding: 7px 8px;
    font-size: 11px;
  }
  
  .region-countries {
    margin-left: 6px;
    padding-left: 6px;
  }
  
  .country-cities {
    margin-left: 12px;
    padding-left: 6px;
  }
  
  .city-item {
    padding: 5px 8px;
    font-size: 10px;
    margin: 1px 0;
  }
  
  .country-item .flag-icon {
    font-size: 11px;
    margin-right: 3px;
  }
  
  .region-arrow,
  .country-arrow {
    font-size: 8px;
  }
  
  .filter-list {
    padding: 0;
  }
  
  .filter-list li {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 5px;
    margin-bottom: 2px;
  }
  
  .filter-list li.expandable > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 18px;
  }
  
  .filter-list li div {
    font-size: 12px;
  }
  
  .filter-arrow {
    font-size: 9px;
    margin-left: 6px;
  }
  
  .sub-options li {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 1px;
  }
  
  .sidebar-footer {
    padding: 8px 12px;
  }
  
  .footer-link {
    font-size: 9px;
  }
  
  .footer-copyright p {
    font-size: 8px;
  }
  
  /* Dark theme mobile styles for 480px */
  body.dark-theme .post-input-container {
    background: #2d2d2d;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  /* Dark theme mobile carousel - 480px */
  body.dark-theme .products {
    background: transparent !important;
  }

  body.dark-theme .product {
    background: #2d2d2d !important;
    border: 1px solid #404040 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
    /* Reset desktop-specific properties */
    width: calc(((100vw - 28px) / 4) * 0.78) !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    min-width: calc(((100vw - 28px) / 4) * 0.78) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-width: calc(((100vw - 28px) / 4) * 0.78) !important;
    padding: 10px !important;
    margin: 3px !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  body.dark-theme .product:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
  }

  body.dark-theme .product img {
    /* Reset desktop-specific properties */
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
  }

  body.dark-theme .product-info {
    color: #e0e0e0 !important;
    /* Reset desktop-specific properties */
    flex-shrink: 0 !important;
    margin-top: auto !important;
    overflow: hidden !important;
    max-height: 60px !important;
  }

  body.dark-theme .product-info strong {
    color: #e0e0e0 !important;
    /* Reset desktop-specific properties */
    font-size: 10px !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
  }

  body.dark-theme .product-info small {
    color: #aaa !important;
    /* Reset desktop-specific properties */
    font-size: 9px !important;
    line-height: 1.1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Ajustes para tema dark em dispositivos móveis */
@media screen and (max-width: 768px) {
  body.dark-theme .sidebar {
    border-top: 1px solid #444;
  }
  
  body.dark-theme .filters {
    border-top: none;
    background: #26232a;
  }
  
  body.dark-theme .filter-list li {
    background: #1a1a1a;
    border: 1px solid #111;
  }
  
  body.dark-theme .filter-list li:hover {
    background: #1a1a1a;
  }
  
  body.dark-theme .filter-list li.expanded {
    background: #1a1a1a;
  }
  
  body.dark-theme .sub-options {
    background: #26232a;
  }
  
  body.dark-theme .sub-options li {
    background: #1a1a1a;
    border: 1px solid #111;
  }
  
  body.dark-theme .sub-options li:hover {
    background: #1a1a1a;
  }
  
  body.dark-theme .sub-options li:active {
    background: #1a1a1a;
  }
  
  body.dark-theme .sub-options li.selected {
    background: #1a1a1a;
  }
  
  body.dark-theme .filter-buttons-section {
    background: #26232a;
  }
  
  body.dark-theme .sponsored {
    background: #26232a;
  }
  
  body.dark-theme .sponsor-item {
    background: #26232a;
  }
  
  body.dark-theme .sponsored-carousel-container {
    background: #26232a;
  }
  
  body.dark-theme .sponsored-carousel {
    background: #26232a;
  }
  
  body.dark-theme .sponsor-group {
    background: #26232a;
  }
  
  body.dark-theme .sponsor-item button {
    background: #1a1a1a;
    border: 1px solid #111;
  }
  
  body.dark-theme .sponsor-item button:hover {
    background: #2a2a2a;
  }
  
  /* Dark theme carousel products for 768px */
  body.dark-theme .products {
    background: transparent !important;
  }
  
  body.dark-theme .product {
    background: #2d2d2d !important;
    border: 1px solid #404040 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    /* Reset desktop-specific properties */
    padding: 10px !important;
    min-width: calc((100% - 36px) / 4) !important;
    width: calc((100% - 36px) / 4) !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    max-width: calc((100% - 36px) / 4) !important;
    margin: 3px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }
  
  body.dark-theme .product img {
    /* Reset desktop-specific properties */
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
  }
  
  body.dark-theme .product-info {
    color: #e0e0e0 !important;
    /* Reset desktop-specific properties */
    flex-shrink: 0 !important;
    margin-top: auto !important;
    overflow: hidden !important;
    max-height: 60px !important;
  }
  
  body.dark-theme .product-info strong {
    color: #e0e0e0 !important;
    /* Reset desktop-specific properties */
    font-size: 10px !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
  }
  
  body.dark-theme .product-info small {
    color: #aaa !important;
    /* Reset desktop-specific properties */
    font-size: 9px !important;
    line-height: 1.1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  body.dark-theme .product:hover {
    background: #3a3a3a !important;
    border-color: #555 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
  }
}

/* Dark theme mobile navigation */
body.dark-theme .mobile-menu-toggle {
  color: #e0e0e0;
}

body.dark-theme .mobile-menu-toggle:hover {
  background: #444;
}

body.dark-theme .mobile-nav {
  background: #26232a;
}

body.dark-theme .mobile-nav-header {
  border-bottom: 1px solid #444;
}

body.dark-theme .mobile-profile-info h3 {
  color: #e0e0e0;
}

body.dark-theme .mobile-profile-info p {
  color: #bbb;
}

body.dark-theme .mobile-profile-info small {
  color: #8b8b99;
}

body.dark-theme .mobile-profile-action-btn {
  background: #444;
  border-color: #666;
  color: #e0e0e0;
}

body.dark-theme .mobile-profile-action-btn:hover {
  background: #555;
  border-color: #777;
}

body.dark-theme .mobile-profile-action-btn.edit-btn {
  background: #2074EC;
  color: white;
  border-color: #2074EC;
}

body.dark-theme .mobile-profile-action-btn.edit-btn:hover {
  background: #1a5bb8;
  border-color: #1a5bb8;
  box-shadow: 0 2px 4px rgba(32, 116, 236, 0.3);
}

body.dark-theme .mobile-profile-action-btn.logout-btn:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

body.dark-theme .mobile-nav-close {
  color: #e0e0e0;
}

body.dark-theme .mobile-nav-close:hover {
  background: #444;
}

body.dark-theme .mobile-nav-stats {
  border-bottom: 1px solid #444;
}

/* Mobile Profile Completion Dark Theme */
body.dark-theme .mobile-profile-completion {
  border-bottom: 1px solid #444;
}

body.dark-theme .mobile-completion-label {
  color: #999;
}

body.dark-theme .mobile-completion-percentage {
  color: #4A90FF;
}

body.dark-theme .mobile-completion-bar-container {
  background: #444;
}

body.dark-theme .mobile-completion-bar-fill {
  background: linear-gradient(90deg, #2074EC, #4A90FF);
}

body.dark-theme .mobile-stat strong {
  color: #e0e0e0;
}

body.dark-theme .mobile-nav-btn {
  color: #b0b0b0;
}

body.dark-theme .mobile-nav-btn:hover {
  background: #333;
}

body.dark-theme .mobile-nav-btn.active {
  background: #2074EC;
  color: #fff;
}

/* MOBILE FILTERS DARK THEME */

body.dark-theme .mobile-filters-btn {
  background: #26232a;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-theme .mobile-filters-btn:hover {
  background: #333;
}

body.dark-theme .mobile-filters-toggle {
  border-top: none;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

body.dark-theme .mobile-action-btn {
  background: #26232a;
  border-color: #26232a;
  color: #e0e0e0;
  border-top: none;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  flex: 1 !important;
  box-sizing: border-box !important;
  padding: 12px 8px !important;
  min-height: 48px !important;
  font-size: 14px !important;
  gap: 6px !important;
}

body.dark-theme .mobile-action-btn:hover {
  background: #333;
}

body.dark-theme .search-profiles-btn {
  color: #e0e0e0;
  border-color: #26232a;
  background: #26232a;
}

body.dark-theme .search-profiles-btn:hover {
  background: #333;
}

/* Dark theme - Mobile Smart Match button specific styles */
body.dark-theme .mobile-action-btn:has(img[src="corujavermelha.png"]) img {
  content: url("corujacinza.png");
}

body.dark-theme .filters-close {
  color: #e0e0e0;
}

body.dark-theme .filters-close:hover {
  background: #444;
}

body.dark-theme .filters-header {
  border-bottom: none;
}

body.dark-theme .filters-title p {
  color: #e0e0e0;
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }
  
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  /* Dark theme mobile consistency - same margins and paddings as light mode */
  body.dark-theme .mobile-filters-toggle {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
  }
  
  body.dark-theme .main-content {
    margin-top: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px 12px !important;
  }
  
  /* Ensure posts have same spacing in dark mode mobile */
  body.dark-theme .post {
    margin-top: 8px !important; /* Same as light mode mobile */
    margin-bottom: 8px !important; /* Same as light mode mobile */
    padding: 10px 15px !important; /* Same as light mode mobile */
  }
  
  body.dark-theme .post-header {
    margin-bottom: 10px !important; /* Same as light mode mobile */
  }
  
  body.dark-theme .post-input-trigger-container {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body.dark-theme .post-input-container {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Dark theme mobile product styles */
  body.dark-theme .top-products {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  
  body.dark-theme .top-products h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 0;
    display: block;
    color: #e0e0e0;
  }
  
  body.dark-theme .carousel-container {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  body.dark-theme .products {
    gap: 12px;
    margin-bottom: 0px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  
  body.dark-theme .product {
    width: calc((100% - 36px) / 4);
    height: auto;
    min-width: calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
    margin-bottom: 12px;
    padding: 5px;
    background: #2d2d2d;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  body.dark-theme .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  
  body.dark-theme .product img {
    width: 60px !important;
    height: 60px !important;
  }
  
  body.dark-theme .product-info strong {
    font-size: 10px;
    color: #e0e0e0;
  }
  
  body.dark-theme .product-info small {
    font-size: 9px;
    color: #aaa;
  }
  
  body.dark-theme .carousel-btn {
    display: none;
  }
}

/* Dark theme mobile product styles for smaller screens */
@media screen and (max-width: 480px) {
  /* Ensure dark mode has exact same spacing as light mode on small screens */
  body.dark-theme .main-content {
    margin-top: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px 12px !important;
  }
  
  body.dark-theme .mobile-filters-toggle {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
  }
  
  body.dark-theme .post {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 10px 15px !important;
  }
  
  body.dark-theme .post-header {
    margin-bottom: 10px !important;
  }
  
  body.dark-theme .top-products {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    width: 100vw !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  
  body.dark-theme .top-products h3 {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #e0e0e0;
    display: block;
  }
  
  body.dark-theme .carousel-container {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  body.dark-theme .products {
    gap: 6px !important;
    padding: 8px 10px 0px 10px !important;
    background: transparent !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  body.dark-theme .product {
    background: #2d2d2d !important;
    border: 1px solid #0d0d0d !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
    /* Reset desktop-specific properties */
    width: calc(((100vw - 28px) / 4) * 0.78) !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    min-width: calc(((100vw - 28px) / 4) * 0.78) !important;
    max-width: calc(((100vw - 28px) / 4) * 0.78) !important;
    padding: 10px !important;
    margin: 3px !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.dark-theme .product:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
  }

  body.dark-theme .product img {
    width: 60px !important;
    height: 60px !important;
  }
  
  body.dark-theme .product-info {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    max-height: 35px !important;
    overflow: hidden !important;
  }
  
  body.dark-theme .product-info strong {
    font-size: 10px;
    color: #e0e0e0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
  }
  
  body.dark-theme .product-info small {
    font-size: 9px;
    color: #aaa;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  body.dark-theme .carousel-btn {
    display: none;
  }
}

.mobile-theme-toggle {
  border-top: none;
  margin-top: 10px;
  padding-top: 10px;
}

.mobile-theme-toggle i {
  color: #666;
}

.mobile-theme-toggle:hover i {
  color: #333;
}

body.dark-theme .mobile-theme-toggle {
  border-top: none;
}

body.dark-theme .mobile-theme-toggle i {
  color: #ffd700;
}

body.dark-theme .mobile-theme-toggle:hover i {
  color: #ffed4a;
}

/* Dark mode mobile search */
body.dark-theme .mobile-search-container {
  background: inherit;
  border-top: 1px solid #0a0a0a;
}

body.dark-theme .main-header {
  background: #26232a;
  border-bottom: 1px solid #0a0a0a;
}

body.dark-theme .mobile-search-bar input {
  background: #333 !important;
  color: #e0e0e0 !important;
  border: 1px solid #0d0d0d !important;
}

body.dark-theme .mobile-search-button {
  background: #333 !important;
  color: #999 !important;
  border: 1px solid #0d0d0d !important;
}

body.dark-theme .mobile-search-button:hover {
  background: #444 !important;
}

body.dark-theme .mobile-search-text {
  color: #999 !important;
}

body.dark-theme .mobile-search-button i {
  color: #aaa !important;
}

body.dark-theme .mobile-search-bar input::placeholder {
  color: #999 !important;
}

body.dark-theme .mobile-search-bar i {
  color: #aaa !important;
}

/* Hide mobile search on desktop */
@media screen and (min-width: 769px) {
  .mobile-search-container {
    display: none;
  }
}

/* Mobile responsive styles for post reactions */
@media (max-width: 480px) {
  .post-reactions {
    gap: 4px;
  }
  
  .reaction-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .reaction-btn i {
    font-size: 14px;
  }
  
  .reaction-text {
    display: none;
  }
  
  .reaction-count {
    font-size: 10px;
    padding: 1px 4px;
  }
  
  /* Mobile post input styles */
  .post-input-trigger-container {
    margin-bottom: 12px;
    padding-left: 15px;
  }
  
  .user-avatar-small {
    width: 30px;
    height: 30px;
    margin-right: 0;
  }
  
  .post-input-trigger {
    padding: 8px 14px 8px 8px;
    font-size: 13px;
    gap: 12px;
    border-radius: 20px;
  }
  
  .post-input-trigger:hover {
    transform: translateY(-1px);
  }
  
  .post-input-container.expanded {
    max-height: 220px;
    margin-top: 8px !important;
    padding: 5px !important;
  }
  
  .post-input-header {
    margin-bottom: 10px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .post-input-user-info strong {
    font-size: 14px;
  }
  
  .post-input-user-info small {
    font-size: 12px;
  }
  
  .close-post-input {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .post-input-field {
    min-height: 60px;
    font-size: 14px;
    padding: 10px;
  }
  
  .post-input-field::placeholder {
    font-size: 14px;
  }
  
  .post-actions-footer {
    gap: 8px;
  }
  
  .post-actions {
    gap: 6px;
  }
  
  .action-btn {
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .action-btn i {
    font-size: 14px;
  }
  
  .action-btn span {
    font-size: 12px;
  }
  
  .post-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

  /* Mobile Floating Post Button */
  .floating-post-button {
    bottom: 20px;
    right: 20px;
    padding: 8px 14px 8px 8px;
    font-size: 13px;
    gap: 12px;
    border-radius: 20px;
  }
  
  .floating-post-button:hover {
    transform: translateY(-1px);
  }

  .floating-post-button .user-avatar-floating {
    width: 30px;
    height: 30px;
  }

  /* Dark theme mobile post input styles */
  body.dark-theme .post-input-container.expanded {
    margin-top: 8px !important;
    padding: 5px !important;
  }
}

/* Product Modal Styles */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.product-modal {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-modal-header {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10001;
}

.modal-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.product-modal-content {
  display: flex;
  gap: 30px;
  padding: 30px;
}

.product-modal-image {
  flex: 1;
  max-width: 400px;
}

.product-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.product-modal-info {
  flex: 1;
  min-width: 0;
}

.product-modal-info h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  color: #1976d2;
  font-weight: 600;
}

.modal-manufacturer {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
}

.manufacturer-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.manufacturer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.manufacturer-info {
  flex: 1;
  min-width: 0;
}

.manufacturer-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.manufacturer-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.btn-manufacturer-inline {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1976d2;
  color: white;
}

.btn-manufacturer-inline:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

.product-description {
  margin-bottom: 25px;
}

.product-description h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.product-description p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.product-specifications {
  margin-bottom: 30px;
}

.product-specifications h4 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.product-specifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-specifications li {
  padding: 8px 0;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 20px;
}

.product-specifications li:before {
  content: '✓';
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.product-specifications li:last-child {
  border-bottom: none;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.btn-quote {
  background: #2074EC;
  color: white;
}

.btn-quote:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

.btn-manufacturer {
  background: #2074EC;
  color: white;
}

.btn-manufacturer:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

/* Dark Theme Modal Styles */
body.dark-theme .product-modal {
  background: #2d2d2d;
  color: #e0e0e0;
}

body.dark-theme .product-modal-info h2 {
  color: #4fc3f7;
}

body.dark-theme .modal-manufacturer {
  background: #383838;
}

body.dark-theme .manufacturer-info h3 {
  color: #e0e0e0;
}

body.dark-theme .manufacturer-info p {
  color: #bbb;
}

body.dark-theme .btn-manufacturer-inline {
  background: #4fc3f7;
  color: #1a1a1a;
}

body.dark-theme .btn-manufacturer-inline:hover {
  background: #29b6f6;
}

body.dark-theme .btn-quote {
  background: #4fc3f7;
  color: #1a1a1a;
}

body.dark-theme .btn-quote:hover {
  background: #29b6f6;
}

body.dark-theme .btn-manufacturer {
  background: #4fc3f7;
  color: #1a1a1a;
}

body.dark-theme .btn-manufacturer:hover {
  background: #29b6f6;
}

body.dark-theme .product-description h4,
body.dark-theme .product-specifications h4 {
  color: #e0e0e0;
}

body.dark-theme .product-description p {
  color: #ccc;
}

body.dark-theme .product-specifications li {
  color: #ccc;
  border-bottom: 1px solid #444;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .product-modal {
    width: 95%;
    margin: 10px;
    max-height: 95vh;
  }

  .product-modal-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .product-modal-image {
    max-width: 100%;
  }

  .product-modal-info h2 {
    font-size: 24px;
  }

  .modal-manufacturer {
    padding: 12px;
  }

  .manufacturer-header {
    gap: 12px;
  }

  .manufacturer-logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .btn-manufacturer-inline {
    padding: 6px 12px;
    font-size: 11px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    flex: none;
    min-width: auto;
  }
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 400px;
  height: calc(100vh - 100px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1005;
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e0e0e0;
}

.chatbot-container.active {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.chatbot-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2074EC 0%, #1a5fb8 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chatbot-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chatbot-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.bot-message {
  align-items: flex-start;
}

.message.user-message {
  align-items: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  flex-shrink: 0;
}

.message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
}

.message-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-content p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message .message-content p {
  background: #f8f9fa;
  color: #333;
  border-bottom-left-radius: 6px;
}

.user-message .message-content p {
  background: #2074EC;
  color: white;
  border-bottom-right-radius: 6px;
}

.message-time {
  font-size: 11px;
  color: #888;
  align-self: flex-end;
  margin: 0 4px;
}

.user-message .message-time {
  align-self: flex-start;
}

.typing-indicator .message-content {
  background: #f8f9fa;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-input-area {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.suggestion-btn {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  background: #2074EC;
  color: white;
  border-color: #2074EC;
}

.chatbot-input-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: #2074EC;
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2074EC;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-send-btn:hover {
  background: #1a5fb8;
}

/* Dark Theme Support */
body.dark-theme .chatbot-container {
  background: #2d2d2d;
  border-color: #555;
}

body.dark-theme .chatbot-header {
  border-bottom-color: #444;
}

body.dark-theme .bot-message .message-content p {
  background: #3a3b3c;
  color: #e0e0e0;
}

body.dark-theme .chatbot-input-area {
  background: #3a3b3c;
  border-top-color: #444;
}

body.dark-theme .chatbot-input {
  background: #2d2d2d;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .chatbot-input:focus {
  border-color: #2074EC;
}

body.dark-theme .suggestion-btn {
  background: #3a3b3c;
  border-color: #555;
  color: #e0e0e0;
}

body.dark-theme .typing-indicator .message-content {
  background: #3a3b3c;
}

body.dark-theme .message-time {
  color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    height: 50vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%) scale(1);
    z-index: 1010;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .chatbot-container.active {
    transform: translateY(0) scale(1);
  }
  
  /* Prevent body horizontal overflow when chatbot is open */
  body.chatbot-open {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  
  /* Ensure header stays above chatbot */
  .main-header {
    z-index: 1015 !important;
  }
  
  /* Prevent mobile zoom on input focus */
  .chatbot-input {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    appearance: none;
    transform: scale(1);
  }
  
  .chatbot-input:focus {
    transform: scale(1);
    zoom: 1;
  }
  
  .chatbot-messages {
    padding: 16px;
  }
  
  .chatbot-input-area {
    padding: 16px;
  }
  
  .chatbot-suggestions {
    flex-direction: column;
    gap: 6px;
  }
  
  .suggestion-btn {
    text-align: left;
    border-radius: 12px;
  }
}

/* Force prevention of horizontal scrolling on all devices */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .container, .main-content, .sidebar, .filters {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  /* All elements must respect viewport width */
  *, *::before, *::after {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* Specifically fix common elements that might cause horizontal overflow */
  .main-header, .post, .post-input-container, .mobile-nav, .mobile-filters-toggle {
    max-width: 100% !important;
    overflow: hidden !important;
    touch-action: pan-y pinch-zoom !important;
  }
  
  /* Prevent horizontal drag on all main containers */
  .main-content, .sidebar, .filters, .container {
    touch-action: pan-y pinch-zoom !important;
  }
  
  /* Only carousel container should allow horizontal scroll internally */
  .carousel-container {
    overflow-x: hidden;
    width: 100%;
    touch-action: pan-x !important;
  }
  
  .products {
    overflow-x: visible;
    width: auto;
    touch-action: pan-x !important;
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .container, .main-content, .sidebar, .filters {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  *, *::before, *::after {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 480px) {
  .chatbot-container {
    height: 60vh;
    left: 5px;
    right: 5px;
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
  }
  
  .chatbot-header {
    padding: 16px;
  }
  
  .chatbot-avatar {
    width: 32px;
    height: 32px;
  }
  
  .chatbot-info h4 {
    font-size: 14px;
  }
  
  /* Extra protection against zoom on smaller devices */
  .chatbot-input {
    font-size: 16px !important;
    max-height: 44px;
  }
}

/* Sidebar Filters Section */
.sidebar-filters {
  width: 100%;
  margin-top: 25px;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.sidebar-filters .top-filters-section {
  width: 100%;
  margin-bottom: 20px;
}

.sidebar-filters .filter-buttons-section {
  width: 100%;
}

.sidebar-filters .dropdown-filters {
  width: 100%;
}

.sidebar-filters .dropdown-filter {
  width: 100%;
  margin-bottom: 15px;
}

.sidebar-filters .dropdown-btn {
  width: 100%;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-filters .filter-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px; /* Increased by 10px more from 230px */
  overflow-y: auto; /* Add scroll back for the reduced section */
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  padding: 8px;
}

/* Custom scrollbar for filter list */
.sidebar-filters .filter-list::-webkit-scrollbar {
  width: 6px;
}

.sidebar-filters .filter-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sidebar-filters .filter-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar-filters .filter-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.sidebar-filters .filter-list li {
  width: 100%;
  padding: 12px 15px; /* Back to original button padding */
  border: 1px solid #eee;
  border-radius: 6px; /* Back to original border radius */
  margin-bottom: 8px; /* Back to original margin */
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 44px; /* Back to original button height */
  box-sizing: border-box;
  font-size: 14px; /* Back to original font size */
  display: flex;
  align-items: center;
}

.sidebar-filters .filter-list li:hover {
  background-color: #f8f9fa;
}

/* Dark theme support for sidebar filters */
body.dark-theme .sidebar-filters .dropdown-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-theme .sidebar-filters .filter-list {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-theme .sidebar-filters .filter-list li {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-theme .sidebar-filters .filter-list li:hover {
  background-color: #333;
}

/* Dark theme scrollbar */
body.dark-theme .sidebar-filters .filter-list::-webkit-scrollbar-track {
  background: #444;
}

body.dark-theme .sidebar-filters .filter-list::-webkit-scrollbar-thumb {
  background: #666;
}

body.dark-theme .sidebar-filters .filter-list::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* News Section - Based on provided code */
.news {
  margin-top: 10px; /* Remove top margin to stick to sponsored */
  margin-bottom: 20px;
  background-color: transparent;
  border-radius: 0;
  padding-top: 10px;
  box-shadow: none;
}

.news-container {
  transition: opacity 0.5s ease-in-out;
  max-height: 335px; /* Increased by 20px more from 315px */
  overflow: hidden; /* Remove scroll, just hide overflow */
}

.news-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.news-card {
  display: flex;
  align-items: flex-start;
  padding: 8px 0; /* Reduced padding */
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.news-card:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 0 -12px;
  padding: 8px 12px; /* Reduced padding */
}

.news-card:last-child {
  border-bottom: none;
}

.news-source-text {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news-info {
  flex-grow: 1;
  padding-top: 2px;
}

.news-name {
  font-size: 13px; /* Slightly smaller */
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; /* Slightly smaller */
  height: 28px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #666;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
  margin-top: 4px;
}

.news-access-btn:hover {
  background-color: #007bff;
  color: white;
  transform: translateX(2px);
}

/* Dark theme for news */
body.dark-theme .news-section-title {
  color: #fff;
}

body.dark-theme .news-card {
  border-bottom-color: #444;
}

body.dark-theme .news-card:hover {
  background-color: #333;
}

body.dark-theme .news-name {
  color: #fff;
}

body.dark-theme .news-description {
  color: #ccc;
}

body.dark-theme .news-access-btn {
  background-color: #444;
  color: #ccc;
}

body.dark-theme .news-access-btn:hover {
  background-color: #007bff;
  color: white;
}

/* Trial Mode Popup Styles */
.trial-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.trial-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.trial-popup {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 280px;
  width: max-content;
  min-width: 240px;
  overflow: hidden;
  transform: scale(0.8) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.trial-popup-overlay.active .trial-popup {
  transform: scale(1) translateY(0);
}

.trial-popup-header {
  background: linear-gradient(135deg, #2074EC 0%, #1a5fb7 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.trial-icon {
  font-size: 16px;
  color: #FFD700;
  flex-shrink: 0;
}

.trial-popup-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  line-height: 1.2;
}

.trial-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 12px;
}

.trial-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.trial-popup-content {
  padding: 16px;
}

.trial-popup-content p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.trial-popup-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.trial-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.trial-btn-primary {
  background: linear-gradient(135deg, #2074EC 0%, #1a5fb7 100%);
  color: white;
}

.trial-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 116, 236, 0.3);
}

.trial-btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
}

.trial-btn-secondary:hover {
  background: #e9ecef;
  color: #495057;
}

.trial-popup-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

/* Arrow positions */
.trial-popup-arrow.top {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 8px solid #2074EC;
  border-top: none;
}

.trial-popup-arrow.bottom {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 8px solid #fff;
  border-bottom: none;
}

.trial-popup-arrow.left {
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 8px solid #2074EC;
  border-left: none;
}

.trial-popup-arrow.right {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid #2074EC;
  border-right: none;
}

/* Dark theme support */
body.dark-theme .trial-popup {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-theme .trial-popup-content p {
  color: #ccc;
}

body.dark-theme .trial-btn-secondary {
  background: #444;
  color: #ccc;
  border-color: #555;
}

body.dark-theme .trial-btn-secondary:hover {
  background: #555;
  color: #fff;
}

body.dark-theme .trial-popup-arrow.bottom {
  border-top-color: #2d2d2d;
}

body.dark-theme .trial-popup-arrow.left {
  border-right-color: #2074EC;
}

body.dark-theme .trial-popup-arrow.right {
  border-left-color: #2074EC;
}