
/* ========== GODMODE CARDS ========== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.client-card {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-glass);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  isolation: isolate;
}

/* Glass Morphism Effect */
.client-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.client-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-border);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -2;
  filter: blur(20px);
}

/* Hover Effects - Interstellar */
.client-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(251, 191, 36, 0.3);
}

.client-card:hover::before {
  opacity: 1;
}

.client-card:hover::after {
  opacity: 0.15;
}

/* Animated Border Glow */
.client-card:hover .client-logo {
  animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

/* Logo - Cosmic Initials */
.client-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  font-family: 'Inter', monospace;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.client-card:hover .client-logo {
  transform: scale(1.05) rotate(2deg);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-shadow: var(--shadow-glow);
}

.client-card:hover .client-logo::before {
  opacity: 1;
}

/* Client Info */
.client-info {
  flex: 1;
  position: relative;
}

.client-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
}

.client-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-border);
  transition: var(--transition-smooth);
}

.client-card:hover .client-name::after {
  width: 100%;
}

.client-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  transition: var(--transition-smooth);
}

.client-location i {
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition-smooth);
}

.client-card:hover .client-location {
  color: #334155;
  transform: translateX(5px);
}

.client-card:hover .client-location i {
  transform: scale(1.1);
}

/* Scroll Animation on Cards */
.client-card {
  opacity: 0;
  animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Staggered Animation for Cards */
.client-card:nth-child(1) { animation-delay: 0.05s; }
.client-card:nth-child(2) { animation-delay: 0.1s; }
.client-card:nth-child(3) { animation-delay: 0.15s; }
.client-card:nth-child(4) { animation-delay: 0.2s; }
.client-card:nth-child(5) { animation-delay: 0.25s; }
.client-card:nth-child(6) { animation-delay: 0.3s; }
.client-card:nth-child(7) { animation-delay: 0.35s; }
.client-card:nth-child(8) { animation-delay: 0.4s; }
.client-card:nth-child(9) { animation-delay: 0.45s; }
.client-card:nth-child(10) { animation-delay: 0.5s; }
.client-card:nth-child(11) { animation-delay: 0.55s; }
.client-card:nth-child(12) { animation-delay: 0.6s; }
.client-card:nth-child(13) { animation-delay: 0.65s; }
.client-card:nth-child(14) { animation-delay: 0.7s; }
.client-card:nth-child(15) { animation-delay: 0.75s; }
.client-card:nth-child(16) { animation-delay: 0.8s; }
.client-card:nth-child(17) { animation-delay: 0.85s; }
.client-card:nth-child(18) { animation-delay: 0.9s; }
.client-card:nth-child(19) { animation-delay: 0.95s; }
.client-card:nth-child(20) { animation-delay: 1s; }
.client-card:nth-child(21) { animation-delay: 1.05s; }
.client-card:nth-child(22) { animation-delay: 1.1s; }
.client-card:nth-child(23) { animation-delay: 1.15s; }
.client-card:nth-child(24) { animation-delay: 1.2s; }
.client-card:nth-child(25) { animation-delay: 1.25s; }

/* Custom Scrollbar for the section */
.clients-section::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.clients-section::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.clients-section::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  border-radius: 10px;
}

.clients-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-cyan));
}

/* Responsive Design - Cosmic Adaptability */
@media (max-width: 1024px) {
  .clients-section {
    padding: 4rem 1.5rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .clients-section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .tabs-labels {
    border-radius: 40px;
    padding: 0.35rem;
    gap: 0.5rem;
  }

  .tabs-labels label {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .client-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .client-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 24px;
  }

  .client-name {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .tabs-labels {
    flex-direction: column;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    gap: 0.5rem;
  }

  .tabs-labels label {
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #0f172a, #1e293b);
  }

  .client-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .client-location {
    justify-content: center;
  }

  .client-name::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .client-card:hover .client-name::after {
    width: 50%;
  }
}

/* Hover Effect Enhancement for Touch Devices */
@media (hover: hover) {
  .client-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Print Styles - Professional */
@media print {
  .clients-section {
    background: white;
    padding: 1rem;
  }

  .tabs-labels {
    display: none;
  }

  .tab-pane {
    display: block !important;
  }

  .client-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Loading Animation for Cards */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.client-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}


/* ============================================
   COMPACT HORIZONTAL SCROLL OVERRIDE CSS
   Eliminates wasted space, packs cards tightly
   ============================================ */

/* Force all tab panes to use horizontal scroll layout */
.tab-pane {
  display: none !important;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

/* Active pane becomes flex horizontal row */
#tab-all:checked ~ .tabs-content .tab-pane[data-tab="all"],
#tab-retail:checked ~ .tabs-content .tab-pane[data-tab="retail"],
#tab-hospitality:checked ~ .tabs-content .tab-pane[data-tab="hospitality"],
#tab-hardware:checked ~ .tabs-content .tab-pane[data-tab="hardware"],
#tab-others:checked ~ .tabs-content .tab-pane[data-tab="others"] {
  display: block !important;
}

/* Make the grid inside each pane a horizontal flex row - NO WRAPPING */
.clients-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  width: max-content !important;
  min-width: 100%;
  padding: 0.25rem 0.125rem;
  margin: 0;
}

/* Compact card styling - smaller, tighter, professional */
.client-card {
  flex: 0 0 auto !important;
  width: 260px !important;
  min-width: 260px !important;
  padding: 0.9rem !important;
  gap: 0.85rem !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
  border-radius: 24px !important;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Slightly smaller logo for compact view */
.client-logo {
  width: 52px !important;
  height: 52px !important;
  font-size: 1.3rem !important;
  border-radius: 20px !important;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fef9e6, #fff7ed);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Compact text sizing */
.client-name {
  font-size: 0.95rem !important;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.client-location {
  font-size: 0.7rem !important;
  gap: 0.3rem;
}

.client-location i {
  font-size: 0.65rem;
}

/* Horizontal scrollbar styling - sleek and modern */
.tab-pane::-webkit-scrollbar {
  height: 4px;
}

.tab-pane::-webkit-scrollbar-track {
  background: #e9edf2;
  border-radius: 10px;
}

.tab-pane::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-gold, #fbbf24), var(--accent-purple, #8b5cf6));
  border-radius: 10px;
}

.tab-pane::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent-amber, #f59e0b), var(--accent-cyan, #06b6d4));
}

/* Hide the grid gap and spacing overhead */
.clients-section {
  padding: 2rem 1rem !important;
  margin: 0 auto !important;
}

.section-header {
  margin-bottom: 2rem !important;
}

.section-header h2 {
  font-size: 2rem !important;
  margin-bottom: 0.25rem !important;
}

.section-header p {
  font-size: 0.9rem !important;
  margin-top: 0.5rem !important;
}

/* Tabs more compact */
.tabs-labels {
  margin-bottom: 1.5rem !important;
  gap: 0.5rem !important;
  padding: 0.35rem !important;
  flex-wrap: wrap;
}

.tabs-labels label {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.8rem !important;
}

.tabs-labels label .count {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.45rem !important;
}

/* Remove any extra spacing that causes vertical waste */
.tabs-content {
  min-height: auto !important;
}

/* Keep card hover effects subtle but tight */
.client-card:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15) !important;
}

.client-card:hover .client-logo {
  transform: scale(0.98) !important;
}

/* Remove staggered animation delays for instant loading - cards appear immediately */
.client-card {
  animation: none !important;
  opacity: 1 !important;
}

/* Make the horizontal row scrollable with visible scroll hint */
.tab-pane {
  cursor: grab;
  scrollbar-width: thin;
}

.tab-pane:active {
  cursor: grabbing;
}

/* Optional: subtle gradient fade on edges for scroll indication (classy) */
.tabs-content {
  position: relative;
}

.tabs-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.9));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.tabs-content:hover::after {
  opacity: 1;
}

/* For mobile, keep horizontal scroll comfortable */
@media (max-width: 768px) {
  .client-card {
    width: 240px !important;
    min-width: 240px !important;
    padding: 0.8rem !important;
  }

  .client-logo {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }

  .client-name {
    font-size: 0.85rem !important;
  }

  .tabs-labels label {
    padding: 0.4rem 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .client-card {
    width: 220px !important;
    min-width: 220px !important;
  }

  .tabs-labels {
    gap: 0.35rem;
  }

  .tabs-labels label {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.8rem !important;
  }
}

/* Optional: Add a scroll indicator icon for better UX (small arrow hint) */
.tab-pane::before {
  content: '← →';
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 0.7rem;
  color: #94a3b8;
  opacity: 0.6;
  pointer-events: none;
  font-weight: 400;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}

.tab-pane:hover::before {
  opacity: 0;
}


/* ============================================
   PREMIUM HORIZONTAL SCROLL CLIENT CARDS
   Compact | Smooth Auto-Scroll | Godmode Styling
   ============================================ */

/* Reset & Base Overrides */
.clients-section {
  max-width: 100% !important;
  padding: 2rem 1rem !important;
  margin: 0 auto !important;
  overflow-x: hidden;
}

.section-header {
  margin-bottom: 1.8rem !important;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  font-size: 0.9rem !important;
  color: #64748b;
}

/* Tabs Styling - Compact & Elegant */
.tabs-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem !important;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 60px;
}

.tabs-labels label {
  padding: 0.5rem 1.3rem !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tabs-labels label .count {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Active Tab State */
#tab-all:checked ~ .tabs-labels label[for="tab-all"],
#tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
#tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
#tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
#tab-others:checked ~ .tabs-labels label[for="tab-others"] {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#tab-all:checked ~ .tabs-labels label[for="tab-all"] .count,
#tab-retail:checked ~ .tabs-labels label[for="tab-retail"] .count,
#tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"] .count,
#tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"] .count,
#tab-others:checked ~ .tabs-labels label[for="tab-others"] .count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Tab Panes - Horizontal Scroll Container */
.tab-pane {
  display: none !important;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 1rem;
  cursor: grab;
  transition: scroll-left 0.3s ease;
}

.tab-pane:active {
  cursor: grabbing;
}

/* Active Pane Display */
#tab-all:checked ~ .tabs-content .tab-pane[data-tab="all"],
#tab-retail:checked ~ .tabs-content .tab-pane[data-tab="retail"],
#tab-hospitality:checked ~ .tabs-content .tab-pane[data-tab="hospitality"],
#tab-hardware:checked ~ .tabs-content .tab-pane[data-tab="hardware"],
#tab-others:checked ~ .tabs-content .tab-pane[data-tab="others"] {
  display: block !important;
}

/* Horizontal Grid - No Wrap */
.clients-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  width: max-content !important;
  min-width: 100%;
  padding: 0.25rem 0.5rem;
  margin: 0;
}

/* ============================================
   GODMODE CLIENT CARDS - Premium Design
   ============================================ */
.client-card {
  flex: 0 0 auto !important;
  width: 270px !important;
  min-width: 270px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  border-radius: 24px !important;
  padding: 1rem 1.2rem !important;
  display: flex !important;
  align-items: center;
  gap: 1rem !important;
  transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Glass Reflection Effect */
.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.client-card:hover::before {
  left: 100%;
}

/* Card Hover - Premium Lift */
.client-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.2) !important;
  background: white;
}

/* Logo Styling - Elegant Initials */
.client-logo {
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, #fef7e0, #fff5e6);
  border-radius: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem !important;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  font-family: 'Inter', monospace;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.client-card:hover .client-logo {
  transform: scale(0.95) rotate(2deg);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-shadow: 0 8px 16px -6px rgba(245, 158, 11, 0.3);
}

/* Client Info */
.client-info {
  flex: 1;
  min-width: 0;
}

.client-name {
  font-size: 1rem !important;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
  white-space: normal;
  word-break: break-word;
}

.client-card:hover .client-name {
  color: #f59e0b;
}

.client-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem !important;
  font-weight: 500;
  color: #64748b;
  transition: transform 0.2s ease;
}

.client-card:hover .client-location {
  transform: translateX(3px);
  color: #475569;
}

.client-location i {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   SMOOTH AUTO-SCROLL ANIMATION
   ============================================ */

/* Auto-scroll animation for each tab pane */
@keyframes gentleAutoScroll {
  0% {
    scroll-left: 0;
  }
  100% {
    scroll-left: 100%;
  }
}

/* Add auto-scroll behavior on hover - smooth and professional */
.tab-pane {
  scroll-behavior: smooth;
  transition: scroll-left 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Optional: Auto-scroll indicator - subtle gradient hint */
.tab-pane::after {
  content: '';
  position: sticky;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.95));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.tab-pane:hover::after {
  opacity: 1;
}

/* Custom Scrollbar - Ultra Smooth */
.tab-pane::-webkit-scrollbar {
  height: 4px;
}

.tab-pane::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.tab-pane::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 10px;
  transition: background 0.3s;
}

.tab-pane::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* Firefox scrollbar */
.tab-pane {
  scrollbar-width: thin;
  scrollbar-color: #f59e0b #e2e8f0;
}

/* Smooth scroll snap for better UX */
.clients-grid {
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1rem;
}

.client-card {
  scroll-snap-align: start;
}

/* ============================================
   ADDITIONAL POLISH & RESPONSIVENESS
   ============================================ */

/* Scroll Hint Animation */
@keyframes scrollHint {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
}

.tab-pane::before {
  content: '→ swipe →';
  position: absolute;
  bottom: -5px;
  right: 20px;
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  pointer-events: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.tab-pane:hover::before {
  opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .client-card {
    width: 240px !important;
    min-width: 240px !important;
    padding: 0.85rem 1rem !important;
  }

  .client-logo {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
    border-radius: 18px !important;
  }

  .client-name {
    font-size: 0.9rem !important;
  }

  .tabs-labels label {
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem !important;
  }

  .section-header h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .client-card {
    width: 220px !important;
    min-width: 220px !important;
    padding: 0.75rem 0.9rem !important;
    gap: 0.75rem !important;
  }

  .client-logo {
    width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
  }

  .client-name {
    font-size: 0.85rem !important;
  }

  .client-location {
    font-size: 0.65rem !important;
  }

  .tabs-labels {
    gap: 0.4rem;
  }

  .tabs-labels label {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.7rem !important;
  }
}

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .client-card,
  .tab-pane,
  .client-card::before,
  .client-logo {
    transition: none !important;
    animation: none !important;
  }

  .tab-pane {
    scroll-behavior: auto;
  }
}

/* Optional: Add a subtle gradient background to active tab pane */
.tab-pane {
  background: radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.02), transparent);
  border-radius: 24px;
}

/* Enhance card text readability */
.client-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add focus styles for accessibility */
.client-card:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  transform: scale(1.01);
}

/* Smooth gradient transition for active tab */
.tabs-labels label {
  position: relative;
  overflow: hidden;
}

.tabs-labels label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tabs-labels label:hover::after {
  width: 80%;
}

/* ============================================
   GODMODE MOBILE TAB BUTTONS
   Premium Touch-Optimized | Smooth Interactions
   ============================================ */

@media (max-width: 768px) {
  /* Container Redesign - Floating Action Bar */
  .tabs-labels {
    position: relative;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible;
    gap: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    margin: 0 -0.5rem 1.8rem -0.5rem !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  /* Hide scrollbar but keep functionality */
  .tabs-labels::-webkit-scrollbar {
    display: none;
  }

  /* Individual Tab Buttons - Premium Touch Targets */
  .tabs-labels label {
    flex: 0 0 auto !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    border-radius: 60px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px);
    color: #334155 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.6rem;
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
  }

  /* Ripple Effect for Touch */
  .tabs-labels label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    pointer-events: none;
  }

  .tabs-labels label:active::before {
    width: 120px;
    height: 120px;
    opacity: 0;
    transition: 0s;
  }

  /* Count Badge - Enhanced */
  .tabs-labels label .count {
    background: rgba(0, 0, 0, 0.08) !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 40px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
  }

  /* Active Tab State - Premium Glow */
  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: white !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25), 0 0 0 2px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px) scale(1.02);
  }

  /* Active Tab Count Badge */
  #tab-all:checked ~ .tabs-labels label[for="tab-all"] .count,
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"] .count,
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"] .count,
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"] .count,
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] .count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  /* Hover Effect for Non-Touch Devices */
  @media (hover: hover) {
    .tabs-labels label:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.9) !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-color: rgba(251, 191, 36, 0.4);
    }
  }

  /* Scroll Indicator - Fading Edge Effect */
  .tabs-labels::before,
  .tabs-labels::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .tabs-labels::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.95), transparent);
  }

  .tabs-labels::after {
    right: 0;
    background: linear-gradient(270deg, rgba(248, 250, 252, 0.95), transparent);
  }

  .tabs-labels.scroll-start::before {
    opacity: 0;
  }

  .tabs-labels.scroll-end::after {
    opacity: 0;
  }

  /* Animated Active Tab Underline Effect */
  .tabs-labels label {
    position: relative;
  }

  .tabs-labels label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"]::after,
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"]::after,
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"]::after,
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"]::after,
  #tab-others:checked ~ .tabs-labels label[for="tab-others"]::after {
    width: 70%;
  }

  /* Active Tab Pulse Animation */
  @keyframes tabPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    animation: tabPulse 0.5s ease-out;
  }
}

/* ============================================
   EXTRA SMALL DEVICES (below 480px)
   Ultra Compact & Touch-Optimized
   ============================================ */

@media (max-width: 480px) {
  .tabs-labels {
    gap: 0.6rem !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 -0.25rem 1.5rem -0.25rem !important;
  }

  .tabs-labels label {
    padding: 0.65rem 1.2rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
  }

  .tabs-labels label .count {
    padding: 0.2rem 0.55rem !important;
    font-size: 0.65rem !important;
  }

  /* Stack tabs vertically on ultra-small if needed? No - horizontal scroll is better */
  /* But make scroll indicators more visible */
  .tabs-labels::before,
  .tabs-labels::after {
    width: 30px;
  }
}

/* ============================================
   ADDITIONAL GODMODE ENHANCEMENTS
   Smooth Scroll Behavior for Tab Navigation
   ============================================ */

@media (max-width: 768px) {
  /* Add scroll buttons indicator hint */
  .tabs-labels {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
  }

  .tabs-labels label {
    scroll-snap-align: start;
  }

  /* Custom scrollbar for tabs (optional - hidden by default but can show on demand) */
  .tabs-labels {
    scrollbar-width: thin;
  }

  .tabs-labels::-webkit-scrollbar {
    height: 3px;
  }

  .tabs-labels::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }

  .tabs-labels::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
  }

  /* Touch Feedback Enhancement */
  .tabs-labels label:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease;
  }

  /* Glass Morphism Enhancement for Mobile */
  .tabs-labels {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  /* Active Tab Gradient Animation */
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
  }
}

/* ============================================
   LANDSCAPE MODE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .tabs-labels {
    padding: 0.4rem 1rem !important;
    gap: 0.6rem !important;
  }

  .tabs-labels label {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.8rem !important;
  }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .tabs-labels label,
  .tabs-labels label::after,
  .tabs-labels label::before {
    transition: none !important;
    animation: none !important;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    animation: none !important;
  }
}

/* ============================================
   DARK MODE SUPPORT (Optional Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .tabs-labels {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    border-bottom-color: rgba(251, 191, 36, 0.4);
  }

  .tabs-labels label {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #e2e8f0 !important;
    border-color: rgba(251, 191, 36, 0.2);
  }

  .tabs-labels label .count {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #cbd5e1 !important;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #0f172a !important;
  }

  .tabs-labels::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), transparent);
  }

  .tabs-labels::after {
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.95), transparent);
  }
}

/* ============================================
   GODMODE MOBILE TAB BUTTONS - SQUARE GRID
   Clean Stacked Layout | Premium Touch Design
   ============================================ */

@media (max-width: 768px) {
  /* Tab Container - Square Grid Layout */
  .tabs-labels {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.5rem !important;
    margin: 0 0 2rem 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
  }

  /* Individual Tab Buttons - Square Card Style */
  .tabs-labels label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    color: #1e293b !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem !important;
    border: 1px solid rgba(203, 213, 225, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    min-height: 80px;
  }

  /* Add Icons to Each Tab for Better Visual */
  .tabs-labels label[for="tab-all"]::before {
    content: '\f0ca';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .tabs-labels label[for="tab-retail"]::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .tabs-labels label[for="tab-hospitality"]::before {
    content: '\f594';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .tabs-labels label[for="tab-hardware"]::before {
    content: '\f1ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .tabs-labels label[for="tab-others"]::before {
    content: '\f0b1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Count Badge - Positioned Nicely */
  .tabs-labels label .count {
    background: rgba(0, 0, 0, 0.06) !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 30px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    margin-left: 0.3rem;
    transition: all 0.2s ease;
  }

  /* Active Tab State - Premium Glow Effect */
  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: white !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px);
  }

  /* Active Tab Icon Color */
  #tab-all:checked ~ .tabs-labels label[for="tab-all"]::before,
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"]::before,
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"]::before,
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"]::before,
  #tab-others:checked ~ .tabs-labels label[for="tab-others"]::before {
    background: linear-gradient(135deg, #fbbf24, #ffd966) !important;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Active Tab Count Badge */
  #tab-all:checked ~ .tabs-labels label[for="tab-all"] .count,
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"] .count,
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"] .count,
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"] .count,
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] .count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
  }

  /* Ripple Effect for Touch Feedback */
  .tabs-labels label {
    position: relative;
    overflow: hidden;
  }

  .tabs-labels label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    pointer-events: none;
  }

  .tabs-labels label:active::after {
    width: 150px;
    height: 150px;
    opacity: 0;
    transition: 0s;
  }

  /* Hover Effect for Tablets/Non-Touch */
  @media (hover: hover) {
    .tabs-labels label:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 1) !important;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
      border-color: rgba(251, 191, 36, 0.5);
    }
  }

  /* Pulse Animation for Active Tab */
  @keyframes tabPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    animation: tabPulse 0.5s ease-out;
  }

  /* Text Wrapping for Tab Labels */
  .tabs-labels label {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
  }

  /* Adjust for 3 items on larger mobile */
  @media (min-width: 600px) and (max-width: 768px) {
    .tabs-labels {
      grid-template-columns: repeat(3, 1fr) !important;
    }
  }
}

/* ============================================
   EXTRA SMALL DEVICES (below 480px)
   Compact Square Grid
   ============================================ */

@media (max-width: 480px) {
  .tabs-labels {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    padding: 0.25rem !important;
  }

  .tabs-labels label {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.75rem !important;
    min-height: 70px;
  }

  .tabs-labels label::before {
    font-size: 1.2rem !important;
  }

  .tabs-labels label .count {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.5rem !important;
  }
}

/* ============================================
   SINGLE COLUMN FOR VERY NARROW (optional)
   ============================================ */

@media (max-width: 380px) {
  .tabs-labels {
    grid-template-columns: 1fr !important;
    gap: 0.6rem;
  }

  .tabs-labels label {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    min-height: auto;
  }

  .tabs-labels label::before {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .tabs-labels label {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #e2e8f0 !important;
    border-color: rgba(251, 191, 36, 0.2);
  }

  .tabs-labels label .count {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #cbd5e1 !important;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #0f172a !important;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"] .count,
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"] .count,
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"] .count,
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"] .count,
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] .count {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .tabs-labels label,
  .tabs-labels label::after {
    transition: none !important;
    animation: none !important;
  }

  #tab-all:checked ~ .tabs-labels label[for="tab-all"],
  #tab-retail:checked ~ .tabs-labels label[for="tab-retail"],
  #tab-hospitality:checked ~ .tabs-labels label[for="tab-hospitality"],
  #tab-hardware:checked ~ .tabs-labels label[for="tab-hardware"],
  #tab-others:checked ~ .tabs-labels label[for="tab-others"] {
    animation: none !important;
  }
}


/* ===== MOBILE FORCE OVERRIDE ===== */
@media (max-width: 768px) {

    .slide-text,
    .slide-text button {
        all: unset !important; /* nuke everything first */

        position: fixed !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        display: inline-block !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;

        background: linear-gradient(45deg, #ff00cc, #3300ff) !important;
        color: #fff !important;

        border-radius: 25px !important;
        text-align: center !important;
        text-transform: uppercase !important;
        font-weight: bold !important;

        box-shadow: 0 0 15px rgba(255,0,255,0.6) !important;

        z-index: 99999 !important;
        max-width: 90% !important;
    }
}