/* Corporate Color Variables - Balanced Palette */
:root {
  --primary: #fff;
  --secondary: #f7f9fb;
  --magtek-red: #d21242;
  --magtek-red-dark: #b01035;
  --magtek-red-light: #e63946;
  --magtek-blue: #263c50;
  --magtek-blue-dark: #1e293b;
  --text-primary: #263c50;
  --text-secondary: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 18px;
  --border-radius-lg: 32px;
  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #d21242 0%, #b01035 100%);
  --gradient-secondary: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  --gradient-accent: linear-gradient(135deg, #f7f9fb 0%, #eaf1f8 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #fafbfc 0%,
    #f8f9fa 50%,
    #f5f6f7 100%
  );
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(210, 18, 66, 0.01) 0%,
    rgba(38, 60, 80, 0.01) 100%
  );
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
}

/* Hero Section Styles */
.hero-section {
  background: var(--gradient-hero);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--magtek-blue);
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  letter-spacing: 0.3px;
}

.hero-badge i {
  color: var(--accent-green);
  font-size: 1.4rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-description {
  font-size: 1.7rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  line-height: 1.5;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  opacity: 0.85;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.1rem 1.6rem;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.feature-item i {
  color: var(--magtek-red);
  font-size: 1.6rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-cta {
  background: var(--gradient-primary);
  border: none;
  padding: 1.3rem 2.8rem;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(210, 18, 66, 0.25);
  letter-spacing: 0.3px;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(210, 18, 66, 0.35);
  color: white;
  text-decoration: none;
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--magtek-blue);
  color: var(--magtek-blue);
  padding: 1.3rem 2.8rem;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}

.hero-cta-secondary:hover {
  background: var(--magtek-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 60, 80, 0.25);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2rem;
  background: rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--magtek-red);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section {
    padding: 5rem 0 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .hero-features {
    gap: 1rem;
  }

  .feature-item {
    padding: 1rem 1.4rem;
    font-size: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-stats {
    gap: 2.5rem;
  }

  .stat-item:not(:last-child)::after {
    right: -1.25rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }
}

/* Use existing website colors and styles */
.qwickpaybtn {
  color: var(--primary);
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm);
}
.qwickpaybtn:hover {
  background: var(--gradient-secondary) !important;
  text-decoration: none;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Enhanced platform selection with corporate colors */
.platform-tabs {
  background: var(--gradient-accent);
  padding: 2rem 0;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

/* Products section transitions */
.products-section {
  transition: all 0.5s ease;
  opacity: 0.7;
  transform: translateY(20px);
}

.products-section.products-loaded {
  opacity: 1;
  transform: translateY(0);
}

.products-section.products-updating {
  opacity: 0.5;
  transform: translateY(10px);
}

.platform-tab {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--primary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.platform-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 18, 66, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.platform-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-tab:hover::before {
  left: 100%;
}

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

.platform-tab:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.platform-tab.active {
  border-color: var(--magtek-red);
  background: var(--gradient-primary);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.01);
}

.platform-tab.active::before,
.platform-tab.active::after {
  display: none;
}

.platform-tab.loading {
  pointer-events: none;
  opacity: 0.7;
}

.platform-tab.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-blue);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.platform-tab:hover .platform-icon {
  transform: scale(1.1);
}

.platform-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.platform-desc {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.platform-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.platform-tab:not(.active) .platform-count {
  background: var(--accent-blue);
  color: var(--primary);
}

.platform-tab.active .platform-count {
  background: rgba(255, 255, 255, 0.3);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.platform-tab:hover .platform-count {
  transform: scale(1.05);
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Platform tabs with better UX feedback */
.platform-tabs {
  background: #f8f9fa;
  padding: 2rem 0;
  margin: 2rem 0;
  border-radius: 8px;
}

.platform-tab {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.platform-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(209, 18, 65, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.platform-tab:hover::before {
  left: 100%;
}

.platform-tab:hover {
  border-color: #d11241;
  color: #d11241;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209, 18, 65, 0.15);
}

.platform-tab.active {
  border-color: #d11241;
  background: #d11241;
  color: white;
  box-shadow: 0 4px 12px rgba(209, 18, 65, 0.3);
}

.platform-tab.active::before {
  display: none;
}

.platform-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.platform-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.platform-desc {
  font-size: 1.5rem;
  opacity: 0.8;
}

.platform-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

.platform-tab:not(.active) .platform-count {
  background: #d11241;
  color: white;
}

/* Equal height row for product grid */
.equal-height-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.equal-height-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* Enhanced product cards with recommendations */
.product-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
  overflow: visible;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d11241, #b00e38);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #d11241;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  z-index: 2;
}

.product-badge.popular {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.product-badge.new {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.product-card:nth-child(5) {
  animation-delay: 0.5s;
}
.product-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #d11241;
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

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

.os-compatibility-overlay {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
  min-height: 2.4rem;
  min-width: 2.4rem;
}

.os-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  cursor: help;
  position: relative;
  background: #666;
  flex-shrink: 0;
}

.os-icon:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.os-icon.ios {
  background: linear-gradient(135deg, #007AFF, #0056CC) !important;
}

.os-icon.android {
  background: linear-gradient(135deg, #3DDC84, #2E7D32) !important;
}

.os-icon.windows {
  background: linear-gradient(135deg, #0078D4, #106EBE) !important;
}

.os-icon.desktop {
  background: linear-gradient(135deg, #0078D4, #106EBE) !important;
}

.os-icon.macos {
  background: linear-gradient(135deg, #000000, #333333) !important;
}

.os-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  margin-bottom: 0.5rem;
}

.os-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: -0.3rem;
}

.os-icon:hover::after,
.os-icon:hover::before {
  opacity: 1;
}

.product-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-subtitle {
  font-size: 1.5rem;
  color: #6c757d;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow: visible;
}

.feature-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: 500;
  border: 1px solid #c8e6c9;
  position: relative;
  cursor: help;
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: #c8e6c9;
  transform: translateY(-1px);
}

.feature-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 1.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  margin-bottom: 10px;
}

.feature-badge:hover::after {
  opacity: 1;
}

/* Plain language feature badges */
.feature-badge.simple {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #bbdefb;
}

.feature-badge.simple:hover {
  background: #bbdefb;
}

.connection-badge {
  background: #e3f2fd;
  color: #1565c0;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid #bbdefb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pricing-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.6rem 1.2rem;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid #a5d6a7;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: help;
  transition: all 0.2s ease;
  text-decoration: none;
  border-bottom: 2px dashed #66bb6a;
}

.pricing-badge:hover {
  background: #c8e6c9;
  border-color: #66bb6a;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.pricing-badge .pricing-hint {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.2rem;
}

.pricing-badge .bi-question-circle {
  font-size: 1.4rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.pricing-badge:hover .bi-question-circle {
  opacity: 1;
}

.pricing-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--magtek-blue, #263c50);
  color: #fff;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 400;
  width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
  text-align: left;
}

.pricing-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--magtek-blue, #263c50);
}

.pricing-wrapper:hover .pricing-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pricing-tooltip strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: #a5d6a7;
}

.pricing-tooltip .pricing-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pricing-tooltip .pricing-detail i {
  color: #a5d6a7;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-tooltip .pricing-note {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.product-description {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.product-actions {
  margin-top: auto;
  text-align: center;
}

.btn-primary {
  background-color: #d11241;
  border-color: #d11241;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #b00e38;
  border-color: #b00e38;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(209, 18, 65, 0.3);
}

/* Filter section */
.filter-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.filter-group-label {
  font-weight: 600;
  color: #333;
  margin-right: 1rem;
  font-size: 1.8rem;
  min-width: 120px;
  text-align: center;
}

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 2.5rem;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: #d11241;
  box-shadow: 0 0 0 3px rgba(209, 18, 65, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-btn {
  background: var(--primary);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.6rem 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--gradient-accent);
}

/* Platform-filter specific styling for icons */
.platform-filter[data-filter="ios"] i,
.platform-filter[data-filter="ios"]:active i,
.platform-filter[data-filter="ios"].active i {
  color: #007AFF !important;
}

.platform-filter[data-filter="android"] i,
.platform-filter[data-filter="android"]:active i,
.platform-filter[data-filter="android"].active i {
  color: #3DDC84 !important;
}

.platform-filter[data-filter="desktop"] i,
.platform-filter[data-filter="desktop"]:active i,
.platform-filter[data-filter="desktop"].active i {
  color: #0078D4 !important;
}

.platform-filter[data-filter="all"] i,
.platform-filter[data-filter="all"]:active i,
.platform-filter[data-filter="all"].active i {
  color: #6F42C1 !important;
}

/* Comparison table */
/* Modern Comparison Table with Corporate Colors */
.comparison-section {
  background: var(--gradient-accent);
  padding: 3rem 0;
  margin: 3rem 0;
  border-radius: var(--border-radius);
}

.comparison-header {
  text-align: center;
  margin-bottom: 2rem;
}

.comparison-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.comparison-subtitle {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.comparison-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.comparison-filter-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.comparison-filter {
  background: var(--primary);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.6rem 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 1.5rem;
}

.comparison-filter:hover,
.comparison-filter.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--gradient-accent);
}

.comparison-table {
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  margin: 0 auto;
  max-width: 100%;
  font-family: "Source Sans Pro", sans-serif;
}

.comparison-table th {
  background: var(--magtek-red);
  color: var(--primary);
  font-weight: 700;
  padding: 1.5rem 1rem;
  text-align: center;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.comparison-table th:first-child {
  text-align: left;
  text-transform: none;
  font-size: 1.5rem;
  letter-spacing: 0;
  font-weight: 600;
}

.comparison-table td {
  padding: 1.25rem 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-size: 1.8rem;
}

.comparison-table td:first-child {
  font-weight: 700;
  text-align: left;
  background: transparent;
  color: var(--magtek-blue);
  font-size: 1.8rem;
}

.comparison-table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.comparison-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.comparison-table tbody tr.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
  transform: none;
  box-shadow: none;
}

.comparison-table tbody tr:hover td {
  border-color: transparent;
}

.comparison-table th,
.comparison-table td {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-table th.hidden,
.comparison-table td.hidden {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
  padding: 0;
  border: none;
}

.feature-cell {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  border-radius: 4px;
}

.feature-cell:focus,
.feature-cell:hover {
  text-decoration: none;
  outline: none;
}

.feature-cell:has(.feature-yes) {
  background: rgba(16, 185, 129, 0.05);
}

.feature-cell:has(.feature-no) {
  background: rgba(239, 68, 68, 0.05);
}

.feature-yes {
  color: #10b981;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-no {
  color: #ef4444;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Table Legend */
.table-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.legend-note {
  flex: 1;
  text-align: center;
  font-size: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.legend-note i {
  margin-right: 0.5rem;
  color: var(--magtek-blue);
}

#dynamic-info {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  min-height: 1.5rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.feature-cell {
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  outline: none;
}

.feature-cell:focus {
  outline: none;
  text-decoration: none;
}

.feature-cell:hover {
  text-decoration: none;
  outline: none;
}

/* Green background for supported features */
.feature-cell:has(.feature-yes) {
  background: rgba(16, 185, 129, 0.08);
}

/* Red background for unsupported features */
.feature-cell:has(.feature-no) {
  background: rgba(239, 68, 68, 0.08);
}

.feature-cell:hover {
  background: rgba(38, 60, 80, 0.1);
  transform: scale(1.05);
  border-radius: 0.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  outline: none;
}

.feature-cell:hover .feature-yes {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.feature-cell:hover .feature-no {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

/* Loading and transition states */
.products-loading {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.products-loading .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #d11241;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile-friendly comparison cards */
.mobile-comparison {
  display: none;
}

.comparison-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
}

.comparison-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.comparison-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.comparison-card-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.comparison-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.comparison-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f8f9fa;
}

.comparison-feature.has {
  background: #e8f5e9;
  color: #2e7d32;
}

.comparison-feature.no {
  background: #f8d7da;
  color: #721c24;
}

.comparison-feature-icon {
  font-size: 1.5rem;
}

.comparison-feature-text {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .platform-tabs {
    padding: 1rem 0;
  }

  .platform-tabs .row {
    flex-direction: column;
  }

  .platform-tab {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
  }

  .platform-icon {
    font-size: 2rem;
  }

  .platform-name {
    font-size: 1.5rem;
  }

  .comparison-table {
    display: none;
  }

  .mobile-comparison {
    display: block;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .filter-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
  }

  .product-card {
    margin-bottom: 1.5rem;
  }

  .help-section {
    padding: 1.5rem;
  }

  .help-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .platform-tab {
    padding: 1rem 0.5rem;
    min-height: 80px;
  }

  .platform-icon {
    font-size: 1.8rem;
  }

  .platform-name {
    font-size: 1.5rem;
  }

  .platform-desc {
    font-size: 1.5rem;
  }

  .comparison-features {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 0.25rem;
  }

  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
