
/* ==========================================================================
   SILKY SMOOTH, CLASSY AGENCY SERVICE CARDS — ZERO JITTER / ZERO VIBRATION
   ========================================================================== */

/* Grid container layout */
.ig-bazaar div.ig-grid,
div.ig-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 28px 0 54px !important;
  align-items: stretch !important;
}

@media (max-width: 1240px) {
  .ig-bazaar div.ig-grid,
  div.ig-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 860px) {
  .ig-bazaar div.ig-grid,
  div.ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 580px) {
  .ig-bazaar div.ig-grid,
  div.ig-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Kill all noisy pseudo-element animation sweeps that trigger hover flickers */
.ig-card::after,
article.ig-home-service-card::after,
.ig-boost-btn::after,
.ig-boost-cta::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

/* Card Root Container - Rock Solid, Pure Hardware Polish */
article.ig-home-service-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 310px !important;
  padding: 22px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 15, 15, 0.08) !important;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  /* Ultra-smooth, elegant transitions only on color/shadow - ZERO position shifting to eliminate all vibration */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  transition: border-color 0.28s ease,
              box-shadow 0.28s ease,
              background-color 0.28s ease !important;
  overflow: visible !important;
}

/* Light Theme Card */
.ig-stage.ig-light article.ig-home-service-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 15, 15, 0.08) !important;
}

/* Classy Hover State: Ambient Bloom & Specular Rim Light, ZERO movement */
.ig-stage.ig-light article.ig-home-service-card:hover,
article.ig-home-service-card:hover {
  transform: translateZ(0) !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.12),
              0 4px 16px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Dark Theme Support */
.ig-stage.ig-dark article.ig-home-service-card {
  background: #121316 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.ig-stage.ig-dark article.ig-home-service-card:hover {
  transform: translateZ(0) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 18px 40px -8px rgba(124, 58, 237, 0.22),
              0 6px 18px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Top Row: Icon + Channel + Badge */
.ig-card-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.ig-card-icon-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Squircle Icon */
article.ig-home-service-card .ig-card-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  margin: 0 !important;
  transform: none !important;
  transition: opacity 0.2s ease, filter 0.2s ease !important;
}

article.ig-home-service-card:hover .ig-card-icon {
  transform: none !important;
  filter: brightness(1.05) !important;
}

article.ig-home-service-card .ig-card-icon svg {
  width: 20px !important;
  height: 20px !important;
}

/* Channel Pill */
.ig-card-channel-pill {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  color: #52525b !important;
}

.ig-stage.ig-dark .ig-card-channel-pill {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #a1a1aa !important;
}

/* Highlight Badge */
.ig-card-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3.5px 8.5px !important;
  border-radius: 9999px !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%) !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.32) !important;
}

/* Card Headline */
h3.ig-card-headline {
  font-size: 15.5px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  color: #09090b !important;
  margin: 0 0 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 42px !important;
  font-family: var(--ig-font-body, "Manrope", sans-serif) !important;
}

.ig-stage.ig-dark h3.ig-card-headline {
  color: #ffffff !important;
}

/* Chip Row */
.ig-card-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 0 16px !important;
}

.ig-card-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3.5px 8px !important;
  border-radius: 6px !important;
  background: #f4f4f5 !important;
  color: #52525b !important;
  letter-spacing: 0.01em !important;
}

.ig-stage.ig-dark .ig-card-chip {
  background: #1c1d22 !important;
  color: #a1a1aa !important;
}

/* Rate Box */
.ig-card-rate-box {
  background: #fafaf9 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 13px !important;
  padding: 10px 14px !important;
  margin: auto 0 16px !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
}

.ig-stage.ig-dark .ig-card-rate-box {
  background: #17181c !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.ig-rate-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.ig-rate-label {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #71717a !important;
}

.ig-stage.ig-dark .ig-rate-label {
  color: #9ca3af !important;
}

.ig-rate-unit {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #71717a !important;
}

.ig-stage.ig-dark .ig-rate-unit {
  color: #9ca3af !important;
}

.ig-rate-val {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #09090b !important;
  font-family: var(--ig-font-data, "Space Grotesk", sans-serif) !important;
}

.ig-stage.ig-dark .ig-rate-val {
  color: #ffffff !important;
}

/* Buttons Grid */
.ig-card-btn-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Primary Boost Button - 100% Full Width, Pure Instant Tap, Zero Obstacles */
.ig-boost-cta,
.js-order-open {
  width: 100% !important;
  flex: 1 1 100% !important;
  min-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 46px !important;
  padding: 0 20px !important;
  border-radius: 13px !important;
  border: none !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateZ(0) !important;
  user-select: none !important;
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease !important;
}

.ig-boost-cta:hover,
.js-order-open:hover {
  transform: translateZ(0) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.ig-boost-cta:active,
.js-order-open:active {
  transform: scale(0.985) !important;
}

/* Make every single inner pixel and text pass clicks directly to the button */
.ig-boost-cta *,
.js-order-open *,
.shop-preview-cta *,
.ig-boost-btn * {
  pointer-events: none !important;
}

.ig-cta-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  transform: none !important;
  transition: background 0.2s ease !important;
  pointer-events: none !important;
}

.ig-boost-cta:hover .ig-cta-arrow {
  background: rgba(255, 255, 255, 0.35) !important;
}

.ig-chat-cta, .wa-chat-btn, .wa-shop-btn {
  display: none !important;
}

/* ==========================================================================
   SILKY SMOOTH POPUP HOVER & ZERO SHAKING FOR SERVICE CARDS
   ========================================================================== */
article.ig-home-service-card {
  position: relative !important;
  cursor: pointer !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-font-smoothing: antialiased !important;
  backface-visibility: hidden !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
  will-change: transform, box-shadow !important;
}

article.ig-home-service-card:hover {
  transform: translate3d(0, -4px, 0) !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 16px 36px -4px rgba(124, 58, 237, 0.14),
              0 6px 16px rgba(0, 0, 0, 0.05) !important;
}

/* Prevent all child hover animations that cause jitter/oscillation */
article.ig-home-service-card:hover * {
  transform: none !important;
  animation: none !important;
}

article.ig-home-service-card .ig-boost-cta:hover {
  filter: brightness(1.08) !important;
  transform: none !important;
}

article.ig-home-service-card .wa-chat-btn:hover {
  filter: brightness(1.08) !important;
  transform: none !important;
}

/* Modal Smooth Popup Animation */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-backdrop:not([hidden]),
.modal-backdrop.is-open,
.modal-backdrop.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
}

.modal-backdrop .modal-card {
  transform: scale(0.96) translateY(12px) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-width: 480px !important;
  width: 100% !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35) !important;
}

.modal-backdrop:not([hidden]) .modal-card,
.modal-backdrop.is-open .modal-card,
.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0) !important;
}

/* ==========================================================================
   REDESIGNED FAQ ACCORDION STYLES
   ========================================================================== */
.ig-faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}
.ig-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) {
  .ig-faq-grid {
    grid-template-columns: 1fr;
  }
}
.ig-faq-card {
  background: var(--ig-tile-bg, #fff);
  border: 1px solid var(--ig-edge, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ig-faq-card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.08);
}
.ig-faq-card[open] {
  border-color: var(--ig-accent, #7C3AED);
}
.ig-faq-summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ig-text-strong, #111);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.ig-faq-summary::-webkit-details-marker {
  display: none;
}
.ig-faq-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--ig-accent, #7C3AED);
  transition: transform 0.2s ease;
  user-select: none;
}
.ig-faq-card[open] .ig-faq-icon {
  transform: rotate(45deg);
}
.ig-faq-body {
  padding: 0 18px 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ig-text-soft, #555);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 2px;
  padding-top: 12px;
}
.ig-faq-helpdesk {
  background: linear-gradient(135deg, #16171a 0%, #24140b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid rgba(124, 58, 237, 0.25);
  margin-top: 8px;
}
.ig-faq-helpdesk-text h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 850;
  color: #fff;
}
.ig-faq-helpdesk-text p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
}
.ig-faq-helpdesk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.ig-faq-helpdesk-btn:hover {
  filter: brightness(1.1);
}


/* ==========================================================================
   AUTHENTIC SocialBar UNIFIED NAVIGATION RAIL
   ========================================================================== */
.ig-rail {
  background: var(--ig-rail-bg, rgba(247, 247, 245, 0.94)) !important;
  border-right: 1px solid var(--ig-rail-border, rgba(10, 10, 10, 0.10)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 18px 5px 16px !important;
  gap: 4px !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  backdrop-filter: blur(12px) !important;
  z-index: 100 !important;
  width: 86px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.ig-rail-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer !important;
  margin-bottom: 20px !important;
}

.ig-rail-logo-img {
  width: 61px !important;  /* 20% smaller than the original 76px (kd 2026-10-01) */
  height: 61px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4), 0 0 20px rgba(0, 229, 255, 0.3) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.ig-rail-logo:hover .ig-rail-logo-img {
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5), 0 0 28px rgba(0, 229, 255, 0.45) !important;
}

.ig-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 10px 4px !important;
  border-radius: 13px !important;
  color: var(--ig-text-mute, #747470) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  cursor: pointer !important;
}

.ig-nav-item:hover {
  background: var(--ig-overlay-chip, rgba(124, 58, 237, 0.09)) !important;
  color: var(--ig-accent, #7C3AED) !important;
}

.ig-nav-item.active {
  background: var(--ig-overlay-chip, rgba(124, 58, 237, 0.09)) !important;
  color: var(--ig-accent, #7C3AED) !important;
  border-color: var(--ig-edge-strong, rgba(124, 58, 237, 0.7)) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.16) !important;
}

.ig-nav-item svg {
  display: block !important;
  flex-shrink: 0 !important;
}

.ig-rail-foot {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  padding-top: 10px !important;
}

.ig-rail-divider {
  height: 1px !important;
  width: 100% !important;
  background: var(--ig-rail-border, rgba(10, 10, 10, 0.10)) !important;
  margin: 8px 2px !important;
}

.ig-rail-account {
  position: relative !important;
  width: 100% !important;
}

.ig-theme-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 8px 7px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ig-rail-border, rgba(10, 10, 10, 0.12)) !important;
  background: var(--ig-input-bg, #ffffff) !important;
  color: var(--ig-text-mute, #747470) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.ig-theme-toggle:hover {
  background: var(--ig-overlay-chip, rgba(124, 58, 237, 0.09)) !important;
  color: var(--ig-accent, #7C3AED) !important;
}

/* Ensure subpages that didn't have grid columns display properly with .ig-rail */
.ig-stage {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  min-height: 100vh !important;
}

body.ig-with-rail {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh !important;
  margin: 0 !important;
}

body.ig-with-rail > .app-shell,
body.ig-with-rail > .qrpay-wrap,
body.ig-with-rail > #root {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}


/* ==========================================================================
   FAILSAFE ANTI-BREAKAGE SYSTEM FOR SERVICE CARDS
   ========================================================================== */
article.ig-home-service-card,
.ig-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  min-height: 280px !important;
}

article.ig-home-service-card > *,
.ig-card > * {
  width: 100% !important;
  box-sizing: border-box !important;
}

article.ig-home-service-card .ig-card-top-row,
.ig-card .ig-card-top-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

article.ig-home-service-card h3,
article.ig-home-service-card h3.ig-card-headline,
.ig-card h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px 0 !important;
  clear: both !important;
}

article.ig-home-service-card .ig-card-chip-row,
.ig-card .ig-card-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

article.ig-home-service-card .ig-card-rate-box,
.ig-card .ig-card-rate-box {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 10px 0 14px 0 !important;
}

article.ig-home-service-card .ig-card-btn-row,
article.ig-home-service-card .ig-boost-cta,
.ig-card .ig-boost-cta {
  display: flex !important;
  width: 100% !important;
  margin-top: auto !important;
}
