/* Instagram Profile Picture Downloader tool */
.ig-story-tool {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f6ff 0%, #ffffff 100%);
}

.ig-tool-shell {
  display: grid;
  gap: 24px;
}

.ig-tool-card,
.ig-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7e8f2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(32, 36, 50, 0.1);
}

.ig-tool-card {
  padding: 28px;
}

.ig-tool-card::before,
.ig-result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #7c3aed, #ff6b22);
}

.ig-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.ig-tool-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #e7e8f2;
  border-radius: 999px;
  background: #ffffff;
  color: #5b6780;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
}

.ig-tool-tabs a.active,
.ig-tool-tabs a:hover {
  background: #f4f1ff;
  color: #6d5dfc;
  border-color: #d8d6ff;
}

.ig-story-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  color: #2f3443;
}

.ig-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.ig-input-wrap {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dfe3ef;
  border-radius: 16px;
  background: #ffffff;
  padding-inline: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ig-input-wrap span {
  color: #ff6b22;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  margin-inline-end: 8px;
}

.ig-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #2f3443;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.ig-input-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ig-story-form .theme__btn {
  min-height: 54px;
  white-space: nowrap;
}

.ig-tool-note,
.ig-tool-status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: #5b6780;
}

.ig-tool-status {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f1ff;
  color: #6d5dfc;
  font-weight: 700;
}

.ig-tool-status.error {
  background: #fff1f2;
  color: #be123c;
}

.ig-result-card {
  padding: 30px;
}

.ig-profile-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.ig-profile-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 34px rgba(32, 36, 50, 0.14);
  background: #f4f1ff;
}

.ig-result-label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f1ff;
  color: #6d5dfc;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ig-profile-row h2 {
  margin-bottom: 10px;
  color: #2f3443;
}

.ig-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.ig-profile-stats li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #e7e8f2;
  border-radius: 999px;
  background: #fbfbff;
}

.ig-profile-stats strong {
  color: #2f3443;
  font-size: 14px;
  line-height: 18px;
}

.ig-profile-stats span {
  color: #5b6780;
  font-size: 12px;
  line-height: 16px;
}

/* Profile picture section heading */
.ig-stories-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.ig-stories-head h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
  margin: 0;
  color: #2f3443;
}

.ig-stories-head p {
  margin: 0;
  color: #5b6780;
  font-size: 14px;
  line-height: 20px;
}

/* ─── Large profile picture display ─────────────────────────────────────── */
.ig-pic-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 36px 28px;
  background: #f8f7ff;
  border: 1px solid #e7e8f2;
  border-radius: 20px;
}

.ig-pic-display img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow:
    0 0 0 2px #d8d6ff,
    0 20px 50px rgba(32, 36, 50, 0.2);
  background: #f4f1ff;
  display: block;
}

.ig-pic-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #7c3aed, #ff6b22);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}

.ig-pic-download:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── Feature info grid ──────────────────────────────────────────────────── */
.ig-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ig-info-grid article {
  border: 1px solid #e7e8f2;
  border-radius: 20px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(32, 36, 50, 0.07);
}

.ig-info-grid i {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #f4f1ff;
  color: #6d5dfc;
  font-size: 22px;
  margin-bottom: 14px;
}

.ig-info-grid h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  color: #2f3443;
  margin-bottom: 8px;
}

.ig-info-grid p {
  margin: 0;
  color: #5b6780;
  font-size: 15px;
  line-height: 25px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media only screen and (max-width: 767px) {
  .ig-tool-card,
  .ig-result-card {
    border-radius: 20px;
    padding: 22px 18px;
  }

  .ig-tool-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .ig-tool-tabs a {
    flex: 0 0 auto;
  }

  .ig-input-row {
    grid-template-columns: 1fr;
  }

  .ig-story-form .theme__btn {
    width: 100%;
    justify-content: center;
  }

  .ig-profile-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ig-profile-stats {
    justify-content: center;
  }

  .ig-stories-head {
    display: block;
  }

  .ig-stories-head h3 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 4px;
  }

  .ig-pic-display img {
    width: 180px;
    height: 180px;
  }

  .ig-pic-download {
    width: 100%;
    justify-content: center;
  }

  .ig-info-grid {
    grid-template-columns: 1fr;
  }
}
