/**
 * Trendeko Mobile PWA - Custom Styles
 * Minimal version - following Nepro defaults
 */

/* ==================== Loading Overlay (CRITICAL - prevents click blocking) ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E5E7EB;
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-message {
  font-size: 14px;
  color: #6B7280;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== Reachh Logo Animated Gradient ==================== */
.trendeko-logo,
.reachh-logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #7C3AED, #EC4899, #7C3AED);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-gradient-shift 3s ease infinite;
  letter-spacing: -0.5px;
}

@keyframes logo-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== Utility Classes ==================== */
.padding-t-50 { padding-top: 50px !important; }
.padding-b-16 { padding-bottom: 16px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mt-12 { margin-top: 12px !important; }
.size-12 { font-size: 12px !important; }
.size-22 { font-size: 22px !important; }

/* ==================== Elastic Scrolling ==================== */
.owl-carousel {
  -webkit-overflow-scrolling: touch !important;
}

.owl-carousel .owl-stage {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.owl-carousel .owl-item {
  transition: transform 0.3s ease !important;
}

/* Allow vertical scroll OVER carousels - critical for page scrolling */
.owl-carousel,
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage,
.owl-carousel .owl-item {
  touch-action: pan-y pan-x !important;
}

/* Carousel sections should not block vertical scroll */
.em_swiper_products,
.banner_swiper,
.em_bodyCarousel,
.emCategories__jobs {
  touch-action: pan-y !important;
  overflow: visible !important;
}

/* Smooth elastic bounce effect */
@keyframes elasticBounce {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.owl-carousel.owl-drag .owl-item.active {
  animation: none;
}

/* ==================== Animated Banner Gradients ==================== */
.banner-gradient-1 {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #7C3AED 100%) !important;
  background-size: 200% 200% !important;
  animation: banner-gradient-shift 6s ease infinite !important;
}

.banner-gradient-2 {
  background: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #10B981 100%) !important;
  background-size: 200% 200% !important;
  animation: banner-gradient-shift 6s ease infinite !important;
  animation-delay: -3s !important;
}

.banner-gradient-3 {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 50%, #F59E0B 100%) !important;
  background-size: 200% 200% !important;
  animation: banner-gradient-shift 6s ease infinite !important;
  animation-delay: -1.5s !important;
}

@keyframes banner-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== CSS Variables ==================== */
:root {
  --trendeko-primary: #7C3AED;
  --trendeko-primary-dark: #6D28D9;
  --trendeko-primary-light: #A78BFA;
  --trendeko-secondary: #10B981;
  --trendeko-accent: #EC4899;
  --whatsapp-green: #25D366;
}

/* ==================== Global Tap/Click Feedback ==================== */
/* Remove default tap highlight and underline */
* {
  -webkit-tap-highlight-color: transparent;
}

a, button, .btn, [role="button"], .clickable {
  text-decoration: none !important;
  outline: none;
}

a:active, a:focus,
button:active, button:focus,
.btn:active, .btn:focus,
[role="button"]:active, [role="button"]:focus {
  text-decoration: none !important;
  outline: none;
}

/* Simple tap feedback - subtle opacity change */
a:active,
button:active,
.btn:active,
[role="button"]:active,
.profile-list-item:active,
.quick-action-card:active,
.role-card:active,
.nav__list .item-link:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* Prevent underline on visited links */
a:visited {
  text-decoration: none !important;
}

/* Loader hidden via JS fadeOut like Nepro */

/* ==================== Trendeko Branding ==================== */
.bg-trendeko-primary {
  background-color: var(--trendeko-primary) !important;
}

.text-trendeko-primary {
  color: var(--trendeko-primary) !important;
}

/* Active nav link color */
.em_main_footer .btn_navLink.active,
.em_main_footer .btn_navLink.active .icon_current i,
.em_main_footer .btn_navLink.active .txt__tile,
.em_main_footer .btn_navLink.active .name_nav__ {
  color: var(--trendeko-primary);
}

/* ==================== Campaigns Icon - Always Visible ==================== */
/* Override Nepro's .em_main_footer .em_body_navigation .item_link .btn_navLink i rule */
.em_main_footer .em_body_navigation .item_link .btn_navLink .icon_current .ri-send-plane-line,
.em_main_footer .em_body_navigation .item_link .btn_navLink .icon_current i.ri-send-plane-line,
.em_main_footer .em_body_navigation .item_link .btn_navLink i.ri-send-plane-line,
.em_body_navigation .item_link .btn_navLink i.ri-send-plane-line,
footer .btn_navLink i.ri-send-plane-line,
i.ri-send-plane-line {
  color: #7C3AED !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Campaign badge with pulse animation */
.badge-count {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 20px;
  height: 16px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: #EF4444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
  margin-left: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.skeleton-action {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-left: 12px;
}

/* Gradient avatar placeholders - like trendeko.com */
.gradient-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Darker, more vibrant gradients for better visibility */
.gradient-1 { background: linear-gradient(135deg, #f87171, #ec4899) !important; }
.gradient-2 { background: linear-gradient(135deg, #a78bfa, #818cf8) !important; }
.gradient-3 { background: linear-gradient(135deg, #22d3d2, #34d399) !important; }
.gradient-4 { background: linear-gradient(135deg, #fbbf24, #f97316) !important; }
.gradient-5 { background: linear-gradient(135deg, #4ade80, #22c55e) !important; }
.gradient-6 { background: linear-gradient(135deg, #e879f9, #a78bfa) !important; }

/* Hide broken images, show gradient placeholder */
.avatar-wrapper {
  position: relative !important;
  overflow: hidden !important;
}

.avatar-wrapper img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 2 !important;
}

.avatar-wrapper img[src=""],
.avatar-wrapper img:not([src]),
.avatar-wrapper img.error {
  opacity: 0 !important;
}

.avatar-wrapper .gradient-avatar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1 !important;
}

/* ==================== Icon-based Loading Animation ==================== */
.trendeko-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 12px;
}

.trendeko-loader .loader-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.trendeko-loader .loader-icons i {
  font-size: 24px;
  color: var(--trendeko-primary, #7C3AED);
  animation: icon-pulse 1.5s ease-in-out infinite;
}

.trendeko-loader .loader-icons i:nth-child(1) { animation-delay: 0s; }
.trendeko-loader .loader-icons i:nth-child(2) { animation-delay: 0.2s; }
.trendeko-loader .loader-icons i:nth-child(3) { animation-delay: 0.4s; }

.trendeko-loader .loader-text {
  font-size: 13px;
  color: #9CA3AF;
  animation: fade-pulse 1.5s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==================== Profile Skeleton Placeholder ==================== */
.profile-skeleton {
  padding: 20px;
}

.profile-skeleton .skeleton-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.profile-skeleton .skeleton-name {
  width: 60%;
  height: 20px;
  margin: 0 auto 8px;
  border-radius: 10px;
}

.profile-skeleton .skeleton-username {
  width: 40%;
  height: 14px;
  margin: 0 auto 20px;
  border-radius: 7px;
}

.profile-skeleton .skeleton-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-skeleton .skeleton-stat {
  flex: 1;
  height: 70px;
  border-radius: 12px;
}

.profile-skeleton .skeleton-section {
  margin-bottom: 20px;
}

.profile-skeleton .skeleton-section-title {
  width: 30%;
  height: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.profile-skeleton .skeleton-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-skeleton .skeleton-tag {
  width: 70px;
  height: 28px;
  border-radius: 14px;
}

.profile-skeleton .skeleton-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.profile-skeleton .skeleton-post {
  aspect-ratio: 1;
  border-radius: 8px;
}

.profile-skeleton .skeleton-contact {
  height: 50px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Pull-down handle for modal */
.modal-pull-handle {
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 8px auto 0;
}

/* Ensure modal can be pulled */
#mdllInfluencerProfile .modal-content {
  touch-action: pan-y;
}

/* ==================== Glass Morphism UI ==================== */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.glass-card-dark {
  background: rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Glass hero section */
.glass-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

/* ==================== Glowing Search Bar ==================== */
.gradient-border-animated {
  position: relative;
  background: linear-gradient(90deg, #7C3AED, #EC4899, #10B981, #3B82F6, #7C3AED);
  background-size: 400% 100%;
  animation: gradient-flow 3s ease infinite;
  padding: 2px;
  border-radius: 14px !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3),
              0 0 30px rgba(236, 72, 153, 0.2),
              0 0 45px rgba(16, 185, 129, 0.1);
  animation: gradient-flow 3s ease infinite, glow-pulse 2s ease-in-out infinite alternate;
}

.gradient-border-animated > * {
  background: white;
  border-radius: 12px !important;
  position: relative;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3),
                0 0 20px rgba(236, 72, 153, 0.15),
                0 0 30px rgba(16, 185, 129, 0.05);
  }
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                0 0 40px rgba(236, 72, 153, 0.3),
                0 0 60px rgba(16, 185, 129, 0.15);
  }
}

/* ==================== Abstract Flowing Effect ==================== */
.flowing-gradient {
  position: relative;
  overflow: hidden;
}

.flowing-gradient::before,
.flowing-gradient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.flowing-gradient::before {
  width: 120%;
  height: 120%;
  top: -30%;
  left: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  animation: float-blob-1 4s ease-in-out infinite;
}

.flowing-gradient::after {
  width: 100%;
  height: 100%;
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 60%);
  animation: float-blob-2 5s ease-in-out infinite;
}

@keyframes float-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15%, 10%) scale(1.1); }
  66% { transform: translate(-10%, 5%) scale(0.95); }
}

@keyframes float-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20%, -15%) scale(1.15); }
}

/* ==================== Image Cards (Categories/Cities) ==================== */
.image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 140px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover, .image-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-card .card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.image-card:hover .card-image {
  transform: scale(1.05);
}

.image-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
}

.image-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.image-card .card-count {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

/* ==================== Banner Cards ==================== */
.banner-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.banner-card .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85) 0%, rgba(236, 72, 153, 0.75) 100%);
}

.banner-card .banner-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
}

.banner-card .banner-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.banner-card .banner-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.banner-card .banner-content .btn {
  background: white;
  color: #1F2937;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-block;
}

/* Minimal category/location card (fallback) */
.minimal-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.minimal-card:hover, .minimal-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

.minimal-card .icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-radius: 14px;
}

.minimal-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 2px;
}

.minimal-card .card-count {
  font-size: 11px;
  color: #9CA3AF;
}

/* Stats section with glass effect */
.glass-stats {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.glass-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7C3AED, #EC4899, #10B981);
  background-size: 200% 100%;
  animation: gradient-flow 2s ease infinite;
}

/* Centered carousel for categories/locations */
.owl-carousel.centered-cards .owl-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.owl-carousel.centered-cards .owl-item {
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.owl-carousel.centered-cards .owl-item.center,
.owl-carousel.centered-cards .owl-item.active {
  opacity: 1;
  transform: scale(1);
}

/* Hero section minimal glass */
.hero-glass {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.02) 0%, transparent 100%);
  position: relative;
}

.hero-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

/* ==================== Minimal Sidebar ==================== */
#mdllSidebarMenu.sidebarMenu.-left .modal-dialog {
  max-width: 280px !important;
  width: 280px !important;
  margin: 0 !important;
}

#mdllSidebarMenu .modal-content {
  background: #fff !important;
  border-radius: 0 20px 20px 0 !important;
  height: 100vh;
}

#mdllSidebarMenu .modal-header {
  padding: 20px !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

#mdllSidebarMenu .modal-header .close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  background: #f3f4f6 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#mdllSidebarMenu .em_profile_user .media {
  align-items: center !important;
}

#mdllSidebarMenu .em_profile_user .letter {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
}

#mdllSidebarMenu .em_profile_user .media-body {
  margin-left: 12px !important;
}

#mdllSidebarMenu .em_profile_user .txt h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 2px !important;
}

#mdllSidebarMenu .em_profile_user .txt p {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin-bottom: 8px !important;
}

#mdllSidebarMenu .btn_logOut {
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

#mdllSidebarMenu .modal-body {
  padding: 12px 0 !important;
}

#mdllSidebarMenu .modal-body .nav-item {
  margin: 0 !important;
}

#mdllSidebarMenu .modal-body .nav-link {
  padding: 12px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  color: #374151 !important;
  font-size: 14px !important;
  transition: all 0.2s !important;
  text-align: left !important;
}

#mdllSidebarMenu .modal-body .nav-link:hover,
#mdllSidebarMenu .modal-body .nav-link:active {
  background: rgba(124, 58, 237, 0.05) !important;
  color: #7C3AED !important;
}

#mdllSidebarMenu .modal-body .nav-link .icon_current {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  background: #f9fafb !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#mdllSidebarMenu .modal-body .nav-link .icon_current i {
  color: #6b7280 !important;
  font-size: 18px !important;
}

#mdllSidebarMenu .modal-body .nav-link .title_link {
  flex: 1 !important;
  text-align: left !important;
}

#mdllSidebarMenu .modal-body .nav-link:hover .icon_current,
#mdllSidebarMenu .modal-body .nav-link:active .icon_current {
  background: rgba(124, 58, 237, 0.1) !important;
}

#mdllSidebarMenu .modal-body .nav-link:hover .icon_current i,
#mdllSidebarMenu .modal-body .nav-link:active .icon_current i {
  color: #7C3AED !important;
}

#mdllSidebarMenu .modal-body .title__label {
  display: block !important;
  padding: 16px 20px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#mdllSidebarMenu .modal-footer {
  padding: 16px 20px !important;
  border-top: 1px solid #f3f4f6 !important;
}

#mdllSidebarMenu .em_darkMode_menu {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#mdllSidebarMenu .em_darkMode_menu h3 {
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 2px !important;
}

#mdllSidebarMenu .em_darkMode_menu p {
  font-size: 11px !important;
  color: #9ca3af !important;
  margin: 0 !important;
}

/* ==================== Page Tint Backgrounds (Zepto-style) ==================== */
/* Base tint overlay that fades from color to white */
.page-tint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: -1;  /* Behind content but visible */
  transition: background 0.6s ease-in-out;
}

/* Default tint (purple - primary) - MORE VISIBLE */
.page-tint.tint-purple {
  background: linear-gradient(180deg,
    rgba(124, 58, 237, 0.25) 0%,
    rgba(124, 58, 237, 0.15) 15%,
    rgba(124, 58, 237, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Green tint - MORE VISIBLE */
.page-tint.tint-green {
  background: linear-gradient(180deg,
    rgba(16, 185, 129, 0.25) 0%,
    rgba(16, 185, 129, 0.15) 15%,
    rgba(16, 185, 129, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Orange/Amber tint - MORE VISIBLE */
.page-tint.tint-orange {
  background: linear-gradient(180deg,
    rgba(245, 158, 11, 0.25) 0%,
    rgba(245, 158, 11, 0.15) 15%,
    rgba(245, 158, 11, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Pink tint - MORE VISIBLE */
.page-tint.tint-pink {
  background: linear-gradient(180deg,
    rgba(236, 72, 153, 0.25) 0%,
    rgba(236, 72, 153, 0.15) 15%,
    rgba(236, 72, 153, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Blue tint - MORE VISIBLE */
.page-tint.tint-blue {
  background: linear-gradient(180deg,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(59, 130, 246, 0.15) 15%,
    rgba(59, 130, 246, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Red tint - MORE VISIBLE */
.page-tint.tint-red {
  background: linear-gradient(180deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(239, 68, 68, 0.12) 15%,
    rgba(239, 68, 68, 0.04) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Yellow tint - MORE VISIBLE */
.page-tint.tint-yellow {
  background: linear-gradient(180deg,
    rgba(234, 179, 8, 0.25) 0%,
    rgba(234, 179, 8, 0.15) 15%,
    rgba(234, 179, 8, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Cyan/Teal tint - MORE VISIBLE */
.page-tint.tint-cyan {
  background: linear-gradient(180deg,
    rgba(6, 182, 212, 0.25) 0%,
    rgba(6, 182, 212, 0.15) 15%,
    rgba(6, 182, 212, 0.06) 40%,
    rgba(255, 255, 255, 0) 60%
  );
}

/* Ensure content sits above the tint */
.main_haeder,
.em_main_footer,
.emPage__public,
.emContent_listJobs {
  position: relative;
  z-index: 1;
}

/* Background adjustment for body */
body.has-tint {
  background-color: white !important;
}

body.has-tint .bg-snow,
body.has-tint .bg-white {
  background-color: transparent !important;
}

/* Sections that need background */
body.has-tint .em_swiper_products,
body.has-tint .banner_swiper {
  background: transparent !important;
}

/* ==================== Modal Fixes ==================== */
/* Hide page tint when modal is open to prevent any blocking */
body.modal-open .page-tint {
  display: none !important;
}

/* Lighter backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Profile modal specific */
#mdllInfluencerProfile .modal-dialog {
  margin: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
}

#mdllInfluencerProfile .modal-content {
  background: #ffffff !important;
  height: 100% !important;
  border-radius: 0 !important;
}

#mdllInfluencerProfile .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

/* Filter modal specific */
#mdllFilterInfluencers .modal-body,
#mdllFilterCampaigns .modal-body,
#mdllSortInfluencers .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

/* All modals - clean white background */
#mdllSortInfluencers .modal-content,
#mdllSidebarMenu .modal-content,
#mdllFilterInfluencers .modal-content,
#mdllFilterCampaigns .modal-content {
  background: #ffffff !important;
}

/* ==================== Filter Modal Footer Fix ==================== */
/* Ensure the Apply Filters button is ALWAYS visible */
#mdllFilterInfluencers .modal-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

#mdllFilterInfluencers .modal-header {
  flex-shrink: 0 !important;
}

#mdllFilterInfluencers .modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  min-height: 0 !important;
  padding-bottom: 100px !important; /* Extra space to scroll past last filter */
}

#mdllFilterInfluencers .modal-footer {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: white !important;
  padding: 16px 20px !important;
  padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
  z-index: 1000 !important;
  margin-top: auto !important;
}

/* ==================== Header Tint Effect ==================== */
/* Make headers transparent to show page tint seamlessly from top */
body.has-tint .main_haeder {
  background: transparent !important;
}

body.has-tint .main_haeder.bg-trendeko-primary,
body.has-tint .main_haeder.bg-primary,
body.has-tint header.bg-trendeko-primary {
  background: transparent !important;
}

/* Adjust text colors for transparent header on tinted pages */
body.has-tint .main_haeder .color-text,
body.has-tint .main_haeder .page_name,
body.has-tint .main_haeder i {
  color: #1F2937 !important;
}

/* Profile page header - keep white text for user info area */
body.has-tint .em_profile_user .media-body .txt h3 {
  color: #1F2937 !important;
}

body.has-tint .em_profile_user .media-body .txt p {
  color: #6B7280 !important;
}

body.has-tint .main_haeder .link__forgot,
body.has-tint .main_haeder #authLink {
  color: var(--trendeko-primary, #7C3AED) !important;
}

/* ==================== Bottom Nav Stability ==================== */
/* Ensure bottom nav is absolutely fixed and never wobbles */
.em_main_footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
  transform: translateZ(0) !important; /* Force GPU layer */
  -webkit-transform: translateZ(0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.em_main_footer .em_body_navigation {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 60px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.em_main_footer .em_body_navigation .item_link {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Prevent layout shifts when navigating */
#wrapper,
#content {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* ==================== Bottom Nav Tint Effect ==================== */
/* Make bottom nav semi-transparent to show page tint */
body.has-tint .em_main_footer .em_body_navigation {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(229, 231, 235, 0.5) !important;
}

/* Ensure the tint extends to bottom */
.page-tint {
  height: 100vh !important;
  height: 100dvh !important;
}

/* ==================== Category Carousel Active State ==================== */
/* Clear visual feedback for selected/tapped category icons */
.emCategorie_itemJobs {
  transition: all 0.2s ease !important;
  opacity: 0.7;
}

.emCategorie_itemJobs.active {
  opacity: 1 !important;
}

.emCategorie_itemJobs.active .icon {
  background: #7C3AED !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.emCategorie_itemJobs.active .icon i {
  color: white !important;
}

.emCategorie_itemJobs.active span {
  color: #7C3AED !important;
  font-weight: 600 !important;
}

/* Tap feedback */
.emCategorie_itemJobs:active {
  transform: scale(0.95);
}

/* ==================== PWA Safe Areas (iPhone Notch/Island) ==================== */
/* Top safe area for notch/dynamic island */
.main_haeder {
  padding-top: env(safe-area-inset-top, 0px) !important;
}

/* Ensure header content is below the notch */
.main_haeder.multi_item,
.main_haeder.header_tab,
header.main_haeder {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}

/* Full-screen modals need safe area too */
.modal.screenFull .modal-content {
  padding-top: env(safe-area-inset-top, 0px);
}

.modal.screenFull .modal-header {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
}

/* Body top padding to account for fixed header + notch */
body {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Main content area safe padding */
main.emPage__public {
  padding-top: calc(70px + env(safe-area-inset-top, 0px)) !important;
}

/* ==================== Bottom Nav Safe Area (improved) ==================== */
/* Better bottom nav positioning for all phones */
.em_main_footer {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  background: white !important;
}

.em_main_footer .em_body_navigation {
  min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 8px) !important;
  background: white !important;
}

/* Page content bottom padding to not be hidden by nav */
main {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Index page specific - account for fixed bottom nav */
.margin-b-100 {
  margin-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Viewport meta support */
@supports (padding: max(0px)) {
  .em_main_footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
  }

  .em_main_footer .em_body_navigation {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  .main_haeder {
    padding-top: max(12px, env(safe-area-inset-top)) !important;
  }
}

/* Bottom Nav Scroll Hide/Show */
.em_main_footer .em_body_navigation {
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease !important;
}

.em_main_footer .em_body_navigation.nav-hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

.em_main_footer {
  background: transparent !important;
}

/* ==================== Confirm Dialog ==================== */
.confirm-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirm-dialog-backdrop.show {
  opacity: 1;
}

.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 20px;
  padding: 24px;
  width: calc(100% - 48px);
  max-width: 320px;
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.confirm-dialog.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.confirm-dialog-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-dialog-icon i {
  font-size: 28px;
  color: #EF4444;
}

.confirm-dialog-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  text-align: center;
  margin: 0 0 8px;
}

.confirm-dialog-message {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.5;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 12px;
}

.confirm-dialog-buttons.single-button {
  justify-content: center;
}

.confirm-dialog-buttons.single-button .confirm-dialog-btn {
  flex: none;
  min-width: 120px;
}

.confirm-dialog-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-dialog-btn.cancel {
  background: #F3F4F6;
  color: #374151;
}

.confirm-dialog-btn.cancel:active {
  background: #E5E7EB;
}

.confirm-dialog-btn.confirm {
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
  color: white;
}

.confirm-dialog-btn.confirm:active {
  transform: scale(0.98);
}

.confirm-dialog-btn.confirm.destructive {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* ==================== Toast Notifications ==================== */
.toast-container {
  position: fixed;
  top: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: 16px;
  right: 16px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.trendeko-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto;
}

.trendeko-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.trendeko-toast.hiding {
  transform: translateY(-100px);
  opacity: 0;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon i {
  font-size: 18px;
  color: white;
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

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

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  display: block;
}

.toast-action {
  font-size: 13px;
  font-weight: 600;
  color: #7C3AED;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  margin-top: 4px;
}

.toast-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toast-close:active {
  background: #E5E7EB;
}

.toast-close i {
  font-size: 14px;
  color: #6B7280;
}

/* ==================== City Autocomplete ==================== */
.city-autocomplete {
  position: relative;
}

.city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
}

.city-suggestions.show {
  display: block;
}

.city-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s ease;
}

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

.city-suggestion-item:hover,
.city-suggestion-item:active,
.city-suggestion-item.highlighted {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
}

.city-suggestion-item .match {
  font-weight: 600;
  color: #7C3AED;
}

.city-suggestion-custom {
  background: #F9FAFB;
  color: #6B7280;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-suggestion-custom i {
  color: #7C3AED;
}

/* When autocomplete is active, round only top corners of input */
.city-autocomplete.active .form-control {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
}
