

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============= MODAL STYLES ============= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 2rem;
  padding-top: 3rem;
  max-width: 785px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
  margin: auto;
  z-index: 100000;
  display: block;
  visibility: visible;
  opacity: 1;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #475569;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.16, 0.82, 0.35, 1);
  z-index: 100001;
  line-height: 1;
}

.modal-close:hover {
  color: #6366f1;
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  margin-top: 0.5rem;
  display: block;
  visibility: visible;
}

.modal-body > * {
  display: block;
  visibility: visible;
}

#profilePreviewModal.active {
  display: flex;
}

#profilePreviewModal {
  display: none;
}

#profilePreviewModal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #1e293b;
  max-width: 785px;
  min-height: 490px;
}


#profilePreviewModal .modal-content:before {
  display: none;
}

#profilePreviewBody {
  max-height: 78vh;
  overflow-y: auto;
  padding: 0;
  padding-top: 10px;
}

#profilePreviewBody::-webkit-scrollbar {
  width: 10px;
}

#profilePreviewBody::-webkit-scrollbar-track {
  background: #f0f4f8;
  border-radius: 10px;
}

#profilePreviewBody::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
}

#profilePreviewBody::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.95);
}

/* ============= PROFILE CARDS ============= */
.profile-cards-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .profile-cards-container {
    display: flex;
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .profile-cards-container {
    display: flex;
    gap: 1rem;
  }
}

.ig-profile-card {
  display: flex;
  gap: 27px;
  border-radius: 16px;
  padding: 1.2rem;
  position: relative;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 0.82, 0.35, 1);
  overflow: hidden;
}

/* .ig-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
} */

/* Before Card Styling */
.before-card-style {
  background: white;
  border: 1px solid rgba(203, 213, 225, 0.5);
}


.before-card-style .ig-fullname,
.before-card-style .ig-username,
.before-card-style .ig-stat-num,
.before-card-style .ig-stat-label {
 color: rgba(0, 0, 0, 0.8);
}

/* After Card Styling - UPDATED */
.after-card-style {
  background: white;
  border: 2px solid var(--pink);
  /* box-shadow: 0 8px 32px rgba(227, 45, 85, 0.25), 0 2px 10px rgba(0, 0, 0, 0.1); */
  position: relative;
}

/* .after-card-style:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(227, 45, 85, 0.08), transparent 70%);
  pointer-events: none;
} */

.after-card-style .ig-avatar img {
  border: 3px solid;
  border-image: var(--core-gradient) 1;
}

.after-card-style .ig-highlight-text {
  color: var(--pink);
  font-weight: 800;
}

/* Card Label */
.ig-card-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.8px;
  background: rgba(59, 30, 52, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
}

/* Header & Avatar */
.ig-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.ig-avatar {
  flex-shrink: 0;
  position: relative;
}

.ig-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ig-avatar img:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.after-card-style .ig-avatar img {
  padding: 3px;
  background: linear-gradient(135deg, #ec4899 0%, #f97316 50%, #eab308 100%);
  border: none;
}

/* Stats */
.ig-stats {
  display: flex;
  justify-content: space-around;
  flex-grow: 1;
  text-align: center;
  gap: 0.5rem;
}

.ig-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ig-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: black;
}

.ig-stat-label {
  font-size: 0.75rem;
  color: black;
  font-weight: 500;
  text-transform: capitalize;
}

.before-card-style .ig-stat-num {
  color: rgba(0, 0, 0, 0.8);
}

.before-card-style .ig-stat-label {
  color: #64748b;
}

/* Info Section */
.ig-info {
  padding-left: 0;
}

.ig-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ig-username {
  font-weight: 700;
  font-size: 0.95rem;
  color: black;
  letter-spacing: -0.3px;
}

.ig-fullname {
  font-size: 0.9rem;
  color: black;
  margin-bottom: 0;
  font-weight: 500;
}

.before-card-style .ig-username {
  color: rgba(0, 0, 0, 0.8);
}

.before-card-style .ig-fullname {
  color: rgba(0, 0, 0, 0.8);
}

/* Highlight Text */
.ig-highlight-text {
  /* color: #60a5fa; */
  font-weight: 800;
}

/* ============= GROWTH HIGHLIGHTS ============= */
.ig-growth-highlights {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.6rem;
  padding: 12px 24px;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.3);
}

.ig-package-row {
  display: flex;
  gap: 5rem;
}

.ig-growth-row {
  display: flex;
    align-items: center;
  text-align: center;
}

.ig-growth-row > span:first-child {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ig-growth-val {
  font-size: 1.1rem;
  font-weight: 800;
background: var(--accent-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============= BUTTONS ============= */
.action-btn {
background: var(--accent-cyan);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 0.82, 0.35, 1);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 28px -8px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.action-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.action-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -8px rgba(99, 102, 241, 0.45);
}

.action-btn:hover:before {
  left: 100%;
}

.action-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.35);
}

.secondary-btn {
  font-family: inherit;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(203, 213, 225, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.secondary-btn:hover {
  color: #6366f1;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-content {
    padding: 1.5rem;
    padding-top: 3.5rem;
    border-radius: 0px;
    min-height: 100%;
   max-height: 100vh;
  }
  #profilePreviewModal .modal-content
  {
    min-height: inherit;
    height: 100%;
  }

  .ig-header {
    gap: 1rem;
  }

  .ig-avatar img {
    width: 70px;
    height: 70px;
  }

  .ig-stat-num {
    font-size: 1rem;
  }

  .ig-stat-label {
    font-size: 0.7rem;
  }

  .ig-growth-highlights {
    gap: 1.5rem;
    padding: 1rem;
  }

}

@media (max-width: 640px) {
  #profilePreviewBody {
    padding: 0;
  }

  .profile-cards-container {
      display: flex;
      flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    padding: 1.25rem;
    padding-top: 3.5rem;
  }

  .action-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .ig-growth-row > span:first-child {
    font-size: 0.7rem;
  }

  .ig-growth-val {
    font-size: 1rem;
  }
}



        .arrow-container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        @media (max-width: 640px) {
        .arrow-container {
           rotate: 90deg;
        }
}

        .arrow {
            width: 45px;
            height: 45px;
            background: var(--accent-cyan);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
            backdrop-filter: blur(10px);
            border: 1px solid #b92444;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(103, 1, 26, 0.4);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 0 10px rgba(140, 4, 42, 0);
            }
        }