body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.container {
  display: flex;
  height: 100vh;
  overflow-x: hidden;
}

/* 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-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;
}

.header-search input::placeholder {
  color: #65676b;
  font-weight: 400;
}

.header-search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8b99;
  font-size: 14px;
}

.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;
}

.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;
}

/* 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-logout-btn {
  background: transparent;
  border: 1px solid #f0f0f0;
  color: #999;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.profile-logout-btn:hover {
  background: #f8f8f8;
  border-color: #e0e0e0;
  color: #666;
  opacity: 0.9;
}

.profile-edit-section {
  width: 100%;
  margin-top: 2px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.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: 15px;
  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 4px 0;
}

.profile-company {
  font-size: 0.75rem;
  color: #8b8b99;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.stats {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.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: 0;
}

.stats small {
  font-size: 11px;
  color: #8b8b99;
  font-weight: 400;
  margin-top: -9px;
}

.menu {
  width: 90%;
  flex: 1;
  margin-bottom: 20px;
}

.menu button {
  width: 100%;
  margin: 8px 0;
  padding: 12px 16px;
  background: #f4f6ff;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  font-size: 16px;
  color: #222;
  display: flex;
  align-items: center;
  position: relative;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}
.menu button.active, .menu button:focus {
  background: #2074EC;
  color: #fff;
}
.menu button i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: #8b8b99;
}
.menu button.active i {
  color: #fff;
}
.menu button .badge {
  margin-left: auto;
  background: #E3F2FD;
  color: #2074EC;
  font-weight: 600;
  font-size: 13px;
  border-radius: 12px;
  padding: 2px 8px;
  box-shadow: none;
}
.menu button.active .badge {
  background: #fff;
  color: #2074EC;
}

.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: 2px 0;
  background: transparent;
}

.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;
}

.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;
  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: 20px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(32, 116, 236, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.floating-post-button:hover {
  background: #1a5bb8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 116, 236, 0.4);
}

.floating-post-button .user-avatar-floating {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 0;
}

.post-input-trigger {
  background: #2074EC;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(32, 116, 236, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-input-trigger:hover {
  background: #1a5bb8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(32, 116, 236, 0.3);
}

/* 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: 20px;
  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;
}

.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;
}

.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: 15px;
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sponsored h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sponsored-carousel-container {
  overflow: hidden;
  width: 100%;
  height: 200px; /* Reduced height to prevent horizontal cutting */
  flex-shrink: 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 #1a1a1a;
}

body.dark-theme .header-search input {
  background: #3a3b3c;
  color: #e4e6ea;
  border: none;
  border-radius: 20px;
}

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;
}

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 .sidebar .menu button {
  color: #e0e0e0;
  background: transparent;
}

body.dark-theme .sidebar .menu button:hover {
  background: #444;
}

body.dark-theme .sidebar .menu button.active {
  background: #2074EC;
  color: #fff;
}

body.dark-theme .sidebar .menu button.active i {
  color: #fff;
}

body.dark-theme .sidebar .menu button.active .badge {
  background: #fff;
  color: #2074EC;
}

body.dark-theme .sidebar .menu button .badge {
  background: #2074EC;
  color: #fff;
}

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-logout-btn {
  color: #999;
  border-color: #3a3a3a;
  opacity: 0.7;
}

body.dark-theme .profile-logout-btn:hover {
  background: #333;
  border-color: #444;
  color: #bbb;
  opacity: 0.9;
}

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 2px 4px rgba(32, 116, 236, 0.3);
}

body.dark-theme .post-input-trigger:hover {
  background: #1a5bb8;
  box-shadow: 0 4px 8px 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-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: 3px;
  line-height: 1;
}

.mobile-stat small {
  font-size: 10px;
  color: #8b8b99;
  line-height: 0.95;
  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;
  width: 100%;
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #fff;
  border-top: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  gap: 4px;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  width: 50%;
  max-width: 50%;
}

.mobile-action-btn:hover {
  background: #f8f9fa;
}

.mobile-action-btn i {
  font-size: 12px;
  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;
}

.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: 280px;
    margin-right: 280px;
    padding: 8px 15px;
  }
  
  .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;
  }
  
  .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) {
  .container {
    flex-direction: column;
  }
  
  .main-header {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 50px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
  }
  
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    order: 2;
    height: auto;
    z-index: 100;
  }
  
  .header-logo img {
    height: 35px;
    width: auto;
  }
  
  .header-search {
    display: none; /* Hide header search on mobile */
  }
  
  /* Mobile Search Container */
  .mobile-search-container {
    display: block;
    position: fixed;
    top: 50px; /* Below header */
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 15px;
    z-index: 998;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .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-bar input::placeholder {
    color: #8b8b99;
  }
  
  .mobile-search-bar i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8b99;
    font-size: 16px;
    cursor: pointer;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-filters-toggle {
    display: flex;
    border-top: none;
    margin-bottom: 2px !important;
    margin-top: 15px !important;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    position: static;
    margin: 0;
    padding: 4px 12px;
    width: 100%;
    left: 0;
    height: auto;
    box-sizing: border-box;
    border-top: none;
    margin-top: 105px !important;
  }
  
  .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: 14px; /* Reduced from 20px to 14px (30% reduction) */
    margin-bottom: 14px; /* Reduced from 20px to 14px (30% reduction) */
  }
  
  .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: fixed !important;
    width: 100vw !important;
    top: 88px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !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: visible !important;
  }
  
  .products {
    gap: 12px;
    margin-bottom: 0px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  
  .product {
    width: calc(((100vw - 32px) / 4) * 0.78);
    height: auto;
    min-width: calc(((100vw - 32px) / 4) * 0.78);
    max-width: calc(((100vw - 32px) / 4) * 0.78);
    margin-bottom: 12px;
    padding: 5px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .product img {
    width: 75px;
    height: 75px;
  }
  
  .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-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) {
  .main-header {
    padding: 0 8px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-menu-toggle {
    order: 1;
  }
  
  .header-logo {
    order: 2;
  }
  
  .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;
  }
  
  .notification-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
    top: -2px;
    right: -2px;
  }
  
  .main-content {
    position: static;
    margin: 0;
    padding: 4px;
    margin-top: 150px !important;
    width: 100%;
    left: 0;
    height: auto;
    box-sizing: border-box;
  }
  
  .stats {
    margin-bottom: 8px;
  }
  
  .stats p {
    font-size: 12px;
  }
  
  .stats strong {
    font-size: 14px;
  }
  
  .menu {
    padding: 0 8px;
    gap: 8px;
  }
  
  .menu button {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .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: fixed !important;
    top: 88px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !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;
  }
  
  .products {
    gap: 6px !important;
    padding: 20px 10px 0px 10px !important;
    background: transparent !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .product {
    width: calc(((100vw - 28px) / 4) * 0.78);
    height: 110px;
    min-width: calc(((100vw - 28px) / 4) * 0.78);
    max-width: calc(((100vw - 28px) / 4) * 0.78);
    min-height: 110px;
    max-height: 110px;
    padding: 4px;
    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 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-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);
  }
}

/* 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 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;
}

body.dark-theme .mobile-action-btn {
  background: #26232a;
  border-color: #26232a;
  color: #e0e0e0;
  border-top: none;
}

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;
}

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 product styles */
  body.dark-theme .top-products {
    background: #2a2a2a;
    padding: 15px;
    margin-bottom: 3px;
    border-radius: 8px;
    position: relative;
    width: auto;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  body.dark-theme .top-products h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    margin-top: 0;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #e0e0e0;
    display: block;
  }
  
  body.dark-theme .carousel-container {
    padding: 2px 0;
    background: transparent;
  }
  
  body.dark-theme .products {
    gap: 12px;
    padding: 5px 15px;
    background: transparent;
  }
  
  body.dark-theme .product {
    width: calc(((100vw - 32px) / 4) * 0.78);
    height: auto;
    min-width: calc(((100vw - 32px) / 4) * 0.78);
    max-width: calc(((100vw - 32px) / 4) * 0.78);
    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;
    height: 60px;
  }
  
  body.dark-theme .product-info strong {
    font-size: 11px !important;
    color: #e0e0e0;
  }
  
  body.dark-theme .product-info small {
    font-size: 10px !important;
    color: #aaa;
  }
}

/* Dark theme mobile product styles for smaller screens */
@media screen and (max-width: 480px) {
  body.dark-theme .top-products {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    width: 100vw !important;
    top: 94px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1002 !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: 1px 0;
    background: transparent;
  }
  
  body.dark-theme .products {
    gap: 6px;
    padding: 20px 10px 0px 10px;
    background: transparent;
  }
  
  body.dark-theme .product {
    width: calc(((100vw - 28px) / 4) * 0.78);
    height: 110px;
    min-width: calc(((100vw - 28px) / 4) * 0.78);
    max-width: calc(((100vw - 28px) / 4) * 0.78);
    min-height: 110px;
    max-height: 110px;
    padding: 4px;
    background: #2d2d2d;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  
  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: 47px;
    height: 47px;
  }
  
  body.dark-theme .product-info strong {
    font-size: 10px !important;
    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 !important;
    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;
  }
}

.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: #26232a !important;
  border-bottom: 1px solid #1a1a1a !important;
}

body.dark-theme .mobile-search-bar input {
  background: #333 !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !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: 24px;
    height: 24px;
    margin-right: 0;
  }
  
  .post-input-trigger {
    padding: 5px 10px 5px 6px;
    font-size: 12px;
    gap: 10px;
  }
  
  .post-input-container.expanded {
    max-height: 220px;
    padding: 12px;
  }
  
  .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: 5px 10px 5px 6px;
    font-size: 12px;
    gap: 10px;
  }

  .floating-post-button .user-avatar-floating {
    width: 24px;
    height: 24px;
  }
}

/* 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: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
}

.manufacturer-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.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;
}

.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: 180px;
  justify-content: center;
}

.btn-quote {
  background: #ff9800;
  color: white;
}

.btn-quote:hover {
  background: #f57c00;
  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 .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;
    margin-bottom: 10px;
  }

  .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;
  }
}