/* Analise Instagram - layout ferramenta-first. */
.ia-landing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px circle at 8% -18%, rgba(99, 102, 241, 0.24), transparent 56%),
    radial-gradient(760px circle at 100% 0%, rgba(236, 72, 153, 0.18), transparent 54%),
    linear-gradient(180deg, #0f172a 0%, #0b1224 52%, #111827 100%);
  color: #f8fafc;
}

.content-section-layout > section.ia-landing {
  background:
    radial-gradient(900px circle at 8% -18%, rgba(99, 102, 241, 0.24), transparent 56%),
    radial-gradient(760px circle at 100% 0%, rgba(236, 72, 153, 0.18), transparent 54%),
    linear-gradient(180deg, #0f172a 0%, #0b1224 52%, #111827 100%);
  color: #f8fafc;
}

.ia-landing__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 86%);
  pointer-events: none;
}

.ia-hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.ia-hero-copy {
  min-width: 0;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ia-landing__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.content-section-layout section.ia-landing .ia-landing__title,
.ia-landing__title {
  margin: 0;
  color: #f8fafc !important;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  font-weight: 850;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

.ia-landing__lead {
  max-width: 47rem;
  margin-top: 1rem;
  margin-right: auto;
  margin-left: auto;
  color: rgba(248, 250, 252, 0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ia-toolcard {
  width: 100%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 1.2rem !important;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.ia-toolcard .form-label {
  color: #1e293b;
}

.ia-toolcard .form-control {
  min-height: 3.25rem;
  border-radius: 0.9rem;
  border-color: #dbe3ef;
  box-shadow: none;
}

.ia-toolcard .form-control:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 0.22rem rgba(99, 102, 241, 0.13);
}

.ia-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.ia-input-wrap {
  min-width: 0;
}

.ia-btn-gradient {
  min-height: 3.25rem;
  padding-right: 1.35rem;
  padding-left: 1.35rem;
  border: none;
  border-radius: 0.9rem;
  background-image: linear-gradient(120deg, #551bb3, #2563eb 56%, #06b6d4);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.ia-btn-gradient:hover {
  color: #fff;
  filter: brightness(1.06);
}

.ia-btn-gradient:focus-visible {
  outline: 3px solid rgba(165, 180, 252, 0.85);
  outline-offset: 2px;
}

.content-section-layout section.ia-landing .ia-toolcard .form-text,
.content-section-layout section.ia-landing .ia-toolcard .text-muted {
  color: #64748b !important;
}

.ia-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.ia-support-copy {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ia-landing__muted,
.content-section-layout section.ia-landing .ia-landing__seo.text-muted {
  color: rgba(248, 250, 252, 0.78) !important;
  line-height: 1.75;
}

.ia-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ia-benefits__item {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ia-benefits__accent {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a78bfa, #22d3ee);
}

.ia-benefits__title {
  color: #f8fafc;
  font-weight: 800;
}

.content-section-layout section.ia-landing .ia-benefits__text.text-muted,
.ia-benefits__text {
  color: rgba(248, 250, 252, 0.74) !important;
  font-size: 0.93rem;
  line-height: 1.6;
}

#ia-analysis-result[hidden],
#ia-analysis-result.d-none-hide {
  display: none !important;
}

.ia-toolcard__result {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

[data-ia-result="1"],
.ia-result-shell {
  color: #0f172a;
}

.content-section-layout section.ia-landing #ia-analysis-result h2 {
  color: #0f172a !important;
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.ia-result-avatar {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #fff;
  background: #f1f5f9;
  color: #64748b;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.15);
}

.ia-result-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-profile-head {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.ia-profile-main {
  min-width: 0;
}

.ia-profile-name {
  color: #475569;
  font-weight: 700;
}

.ia-profile-open {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #551bb3;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.ia-profile-open:hover {
  color: #3f1587;
  background: #f8fafc;
}

.ia-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ia-stat-card {
  padding: 1rem;
  border: 1px solid #e5edf7;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.ia-stat-card dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ia-stat-card dd {
  margin: 0.25rem 0 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
}

.ia-result-stats dd {
  color: inherit;
}

.ia-result-bio {
  color: #334155;
  font-size: 0.95rem;
}

.ia-posts-panel {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.ia-posts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ia-posts-heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 900;
}

.ia-posts-heading p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.ia-posts-badge {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 850;
}

.ia-posts-badge--ok {
  background: #ecfdf5;
  color: #047857;
}

.ia-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ia-post-list-item {
  min-width: 0;
}

.ia-post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5edf7;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ia-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.ia-post-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ia-post-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.ia-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  color: #94a3b8;
  font-size: 2rem;
}

.ia-post-type {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.ia-post-body {
  padding: 0.85rem;
}

.ia-post-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.9rem;
}

.ia-post-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ia-post-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1;
}

.ia-post-metric-icon--heart {
  color: #dc2626;
}

.ia-post-open {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin-top: 0.8rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.8rem;
  color: #551bb3;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.ia-post-open:hover {
  color: #3f1587;
  background: #f8fafc;
}

.ia-skeleton-wrap {
  width: 100%;
}

.ia-skeleton-row--profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ia-skeleton-grid--nine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ia-skel-cell {
  min-width: 0;
}

.ia-skel {
  display: block;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.28) 50%, rgba(148, 163, 184, 0.15) 100%);
  background-size: 200% 100%;
  animation: ia-skel-move 1.15s ease-in-out infinite;
}

.ia-skel-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ia-skel-line {
  height: 14px;
  margin-bottom: 0.65rem;
  border-radius: 8px;
}

.ia-skel-line.lg {
  width: 70%;
}

.ia-skel-line.sm {
  width: 54%;
}

.ia-skel-line.w-66 {
  width: 66%;
}

.ia-skel-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

#ia-analysis-result:not([hidden]) .ia-result-shell {
  animation: ia-fade-in 0.35s ease-out;
}

@keyframes ia-skel-move {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes ia-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .ia-hero-copy,
  .ia-support-copy {
    text-align: left;
  }

  .ia-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .content-section-layout section.ia-landing .container-fluid {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .content-section-layout section.ia-landing .ia-landing__title {
    font-size: 2rem !important;
  }

  .ia-landing__lead {
    font-size: 1rem;
  }

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

  .ia-profile-head {
    align-items: flex-start;
  }

  .ia-result-stats,
  .ia-post-grid {
    grid-template-columns: 1fr;
  }

  .ia-posts-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ia-btn-gradient {
    width: 100%;
  }

  .ia-skeleton-row--profile {
    align-items: center;
  }
}

@media (min-width: 992px) {
  .ia-hero-shell {
    padding-top: 50px;
  }

  .ia-support-grid {
    padding-bottom: 28px;
  }
}

/* Resultado estilo dashboard inspirado no design enviado. */
.ia-dashboard-result {
  display: grid;
  gap: 2rem;
  color: #14161a;
}

.ia-dashboard-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 176px;
  padding: 1.55rem 1.65rem;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

.ia-dashboard-profile__main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}

.ia-dashboard-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.ia-dashboard-avatar {
  display: block;
  width: 128px;
  height: 128px;
  border: 4px solid #fff;
  border-radius: 999px;
  outline: 4px solid #a78bfa;
  object-fit: cover;
  background: #f1f5f9;
  color: #64748b;
}

.ia-dashboard-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-dashboard-avatar-check {
  position: absolute;
  right: -2px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.ia-dashboard-identity {
  min-width: 0;
}

.ia-dashboard-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.content-section-layout section.ia-landing .ia-dashboard-identity h2,
.ia-dashboard-identity h2 {
  margin: 0;
  color: #14161a !important;
  font-size: 1.55rem !important;
  font-weight: 900;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.ia-dashboard-growth-btn,
.ia-post-growth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.ia-dashboard-growth-btn {
  min-height: 32px;
  padding: 0.55rem 0.72rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(85, 27, 179, 0.22);
}

.ia-dashboard-growth-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ia-dashboard-growth-btn--followers {
  background: linear-gradient(135deg, #6b35d8, #bda8ff);
}

.ia-dashboard-identity p {
  margin: 0.25rem 0 1rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.ia-dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}

.ia-dashboard-stats div {
  min-width: 142px;
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid #e5e7eb;
}

.ia-dashboard-stats div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.ia-dashboard-stats dt {
  color: #737780;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ia-dashboard-stats dd {
  margin: 0 0 0.25rem;
  color: #14161a;
  font-size: 1.95rem;
  font-weight: 950;
  line-height: 1;
}

.ia-dashboard-actions {
  display: grid;
  gap: 0.8rem;
  flex: 0 0 auto;
  min-width: 128px;
}

.ia-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ia-dashboard-btn--primary {
  background: #14161a;
  color: #fff;
}

.ia-dashboard-btn--primary:hover {
  color: #fff;
  background: #000;
}

.ia-dashboard-btn--soft {
  background: #f3f5f9;
  color: #14161a;
}

.ia-dashboard-btn--soft:hover {
  background: #e9edf5;
}

.ia-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.ia-dashboard-metric-card {
  min-height: 140px;
  padding: 1.35rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.ia-dashboard-metric-card--dark {
  background: #14161a;
  color: #fff;
}

.ia-dashboard-card-kicker {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.ia-dashboard-metric-card strong {
  display: block;
  margin-top: 1.5rem;
  color: inherit;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1;
}

.ia-dashboard-metric-card span {
  display: block;
  margin-top: 0.4rem;
  color: #737780;
  font-size: 0.82rem;
}

.ia-dashboard-metric-card--dark span {
  color: rgba(255, 255, 255, 0.62);
}

.ia-dashboard-feed {
  display: grid;
  gap: 1.4rem;
}

.ia-dashboard-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #14161a;
}

.ia-dashboard-feed-head h3 {
  margin: 0;
  color: #14161a;
  font-size: 1.25rem;
  font-weight: 900;
}

.ia-dashboard-feed-head span {
  color: rgba(20, 22, 26, 0.62);
  font-size: 0.95rem;
  font-weight: 800;
}

.ia-dashboard-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.ia-dashboard-post-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.ia-dashboard-post-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f7;
}

.ia-dashboard-post-ctas {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  max-width: calc(100% - 1.44rem);
}

.ia-post-growth-btn {
  min-height: 30px;
  padding: 0.5rem 0.68rem;
  border-radius: 0.45rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}

.ia-post-growth-btn:hover {
  color: #fff;
  filter: brightness(0.96);
}

.ia-post-growth-btn--likes {
  background: #4f2aa6;
}

.ia-post-growth-btn--views {
  background: #ff2519;
}

.ia-dashboard-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ia-dashboard-post-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 2rem;
}

.ia-dashboard-post-type {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.ia-dashboard-post-footer {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 750;
}

.ia-dashboard-post-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ia-dashboard-post-icon {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1;
}

.ia-dashboard-post-icon--heart {
  color: #ef4444;
}

.ia-dashboard-post-icon--comment {
  color: #3b82f6;
}

.ia-dashboard-post-more {
  margin-left: auto;
  color: #6b7280;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.ia-dashboard-empty,
.ia-dashboard-note {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  color: #475569;
}

.ia-dashboard-empty span {
  display: block;
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1199.98px) {
  .ia-dashboard-metrics,
  .ia-dashboard-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ia-dashboard-result {
    gap: 1rem;
  }

  .ia-dashboard-profile,
  .ia-dashboard-profile__main {
    align-items: flex-start;
    flex-direction: column;
  }

  .ia-dashboard-profile {
    padding: 1.15rem;
  }

  .ia-dashboard-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .ia-dashboard-growth-btn {
    min-height: 34px;
  }

  .ia-dashboard-avatar {
    width: 96px;
    height: 96px;
  }

  .ia-dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .ia-dashboard-stats div {
    min-width: 0;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .ia-dashboard-actions {
    width: 100%;
  }

  .ia-dashboard-metrics,
  .ia-dashboard-post-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ia-dashboard-post-ctas {
    top: 0.6rem;
    left: 0.6rem;
  }

  .ia-post-growth-btn {
    min-height: 28px;
    padding: 0.46rem 0.58rem;
    font-size: 0.72rem;
  }
}
