/* =========================================================
   CST DETALHE - DASHBOARD PREMIUM
========================================================= */

.af-cst-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(0, 113, 227, .10), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #f5f5f7 44%, #ffffff 100%);
  color: #101828;
}

.af-cst-page .af-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */

.af-cst-hero-premium {
  padding: 96px 0 18px;
}

.af-cst-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 13px;
}

.af-cst-breadcrumb a {
  color: #0b63ce;
  text-decoration: none;
  font-weight: 650;
}

.af-cst-breadcrumb strong {
  color: #0f172a;
}

.af-cst-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
}

.af-cst-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-cst-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.af-cst-title {
  margin: 0 0 12px;
  color: #081225;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -.045em;
}

.af-cst-title span {
  color: #006ee6;
}

.af-cst-description {
  max-width: 760px;
  margin: 0 0 13px;
  color: #005de0;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 750;
}

.af-cst-lead {
  max-width: 760px;
  margin: 0;
  color: #344054;
  font-size: 15.5px;
  line-height: 1.75;
}

.af-cst-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.af-cst-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 800;
}

/* HERO SUMMARY */

.af-cst-hero-summary {
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}

.af-cst-hero-summary h2 {
  margin: 0 0 16px;
  color: #101828;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.af-cst-hero-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-cst-hero-summary li {
  position: relative;
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.af-cst-hero-summary li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #006ee6;
  color: #006ee6;
  font-size: 10px;
  font-weight: 900;
}

.af-cst-hero-summary li:last-child {
  border-bottom: 0;
}

.af-cst-hero-summary strong {
  color: #101828;
  font-size: 12.5px;
  font-weight: 850;
}

.af-cst-hero-summary span {
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

/* TABS */

.af-cst-tabs-wrap {
  position: sticky;
  top: 58px;
  z-index: 30;
  padding: 14px 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.af-cst-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.af-cst-tabs::-webkit-scrollbar {
  display: none;
}

.af-cst-tabs a {
  flex-shrink: 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  color: #101828;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  transition: .2s ease;
}

.af-cst-tabs a:hover {
  color: #006ee6;
  border-color: rgba(0,110,230,.35);
}

/* CONTENT */

.af-cst-content {
  padding: 28px 0 30px;
}

.af-cst-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 760px) 360px;
  gap: 24px;
  align-items: start;
}

.af-cst-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.af-cst-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CARDS */

.af-cst-card,
.af-cst-mini-card,
.af-cst-sidebar-card,
.af-cst-cta-card {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(15,23,42,.09);
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
}

.af-cst-card {
  padding: 24px;
  border-radius: 16px;
}

.af-cst-card-wide {
  min-height: 128px;
}

.af-cst-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.af-cst-card-title-between {
  justify-content: space-between;
}

.af-cst-card-title-between > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.af-cst-card-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eaf3ff;
  color: #006ee6;
  font-size: 14px;
  font-weight: 900;
}

.af-cst-card h2 {
  margin: 0;
  color: #101828;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -.02em;
}

.af-cst-card p,
.af-cst-sidebar-card p {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.75;
}

/* MINI CARDS */

.af-cst-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.af-cst-mini-card {
  padding: 22px;
  border-radius: 16px;
}

.af-cst-mini-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.af-cst-mini-icon.ok {
  color: #079455;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.af-cst-mini-icon.danger {
  color: #d92d20;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.af-cst-mini-icon.info {
  color: #006ee6;
  background: #eaf3ff;
  border: 1px solid rgba(0,110,230,.22);
}

.af-cst-mini-card h3,
.af-cst-sidebar-card h3 {
  margin: 0 0 13px;
  color: #101828;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 850;
}

.af-cst-mini-card ul,
.af-cst-sidebar-card ul,
.af-cst-check-list {
  margin: 0;
  padding-left: 18px;
}

.af-cst-mini-card li,
.af-cst-sidebar-card li {
  margin-bottom: 8px;
  color: #344054;
  font-size: 14.5px;
  line-height: 1.55;
}

.af-cst-mini-card li:last-child,
.af-cst-sidebar-card li:last-child {
  margin-bottom: 0;
}

/* CHECK LIST */

.af-cst-check-list {
  padding-left: 0 !important;
  list-style: none;
}

.af-cst-check-list li {
  position: relative;
  padding-left: 28px;
}

.af-cst-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #079455;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

/* TABLE */

.af-cst-table-wrap {
  overflow-x: auto;
}

.af-cst-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.10);
  font-size: 14px;
}

.af-cst-card th {
  padding: 12px 14px;
  background: #f2f6fb;
  color: #101828;
  font-weight: 850;
  text-align: left;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.af-cst-card td {
  padding: 12px 14px;
  color: #344054;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.af-cst-card tr:last-child td {
  border-bottom: 0;
}

.af-cst-card td a {
  color: #006ee6;
  font-weight: 850;
  text-decoration: none;
}

/* XML */

.af-cst-code {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.7;
}

.af-cst-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* RELATED */

.af-cst-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.af-cst-related-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  text-decoration: none;
  transition: .2s ease;
}

.af-cst-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,110,230,.35);
}

.af-cst-related-card strong {
  color: #006ee6;
  font-size: 14px;
}

.af-cst-related-card span {
  color: #344054;
  font-size: 12.5px;
  line-height: 1.35;
}

/* SIDEBAR */

.af-cst-sidebar-card {
  padding: 22px;
  border-radius: 16px;
}

.af-cst-error-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
}

.af-cst-error-card h3 {
  color: #b42318;
}

/* FAQ */

.af-cst-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-cst-faq-item {
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.10);
}

.af-cst-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.af-cst-faq-question span {
  color: #101828;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
}

.af-cst-faq-question strong {
  color: #006ee6;
  font-size: 18px;
  transition: transform .25s ease;
}

.af-cst-faq-item.active .af-cst-faq-question strong {
  transform: rotate(45deg);
}

.af-cst-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.af-cst-faq-answer p {
  margin: 0;
  padding: 0 14px 14px;
  color: #344054;
  font-size: 13.5px;
  line-height: 1.65;
}

/* CTA */

.af-cst-cta {
  padding: 0 0 56px;
}

.af-cst-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px;
  border-radius: 18px;
  background:
    radial-gradient(circle at left center, rgba(0,113,227,.16), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.af-cst-cta-card h2 {
  margin: 0 0 6px;
  color: #101828;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
}

.af-cst-cta-card p {
  margin: 0;
  color: #344054;
  font-size: 15px;
}

.af-cst-cta-card a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: #006ee6;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(0,110,230,.24);
}

/* RESPONSIVO */

@media (max-width: 1100px) {
  .af-cst-hero-card,
  .af-cst-dashboard {
    grid-template-columns: 1fr;
  }

  .af-cst-sidebar {
    position: static;
  }

  .af-cst-mini-grid {
    grid-template-columns: 1fr;
  }

  .af-cst-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .af-cst-page .af-container {
    padding: 0 18px;
  }

  .af-cst-hero-premium {
    padding: 84px 0 16px;
  }

  .af-cst-hero-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .af-cst-title {
    font-size: 36px;
  }

  .af-cst-description,
  .af-cst-lead {
    font-size: 15px;
  }

  .af-cst-hero-summary li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .af-cst-tabs-wrap {
    top: 54px;
  }

  .af-cst-tabs {
    justify-content: flex-start;
  }

  .af-cst-card,
  .af-cst-mini-card,
  .af-cst-sidebar-card {
    padding: 20px;
    border-radius: 15px;
  }

  .af-cst-related {
    grid-template-columns: 1fr;
  }

  .af-cst-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }

  .af-cst-cta-card a {
    width: 100%;
  }
}
/* =========================================================
   CENTRAL CST
========================================================= */

.af-section-title {
  margin-bottom: 42px;
}

.af-section-title span {
  display: inline-block;

  margin-bottom: 12px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #2563eb;
}

.af-section-title h2 {
  margin: 0 0 14px;

  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;

  color: #0f172a;
}

.af-section-title p {
  max-width: 760px;

  font-size: 17px;
  line-height: 1.8;

  color: #475569;
}

/* GRID */

.af-cst-index-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );

  gap: 26px;
}

/* CARD */

.af-cst-index-card {
  position: relative;

  display: flex;
  flex-direction: column;

  gap: 18px;

  min-height: 260px;

  padding: 28px;

  border-radius: 30px;

  text-decoration: none;

  background:
    rgba(255,255,255,.82);

  border:
    1px solid rgba(148,163,184,.12);

  backdrop-filter:
    blur(12px);

  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.af-cst-index-card:hover {
  transform:
    translateY(-8px);

  border-color:
    rgba(37,99,235,.20);

  box-shadow:
    0 24px 60px rgba(15,23,42,.08);
}

/* HEADER CARD */

.af-cst-index-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-cst-index-card-head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #64748b;
}

.af-cst-index-card-head strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 800;

  color: #2563eb;
}

/* TÍTULO */

.af-cst-index-card h3 {
  margin: 0;

  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;

  color: #0f172a;
}

/* TEXTO */

.af-cst-index-card p {
  margin: 0;

  font-size: 15px;
  line-height: 1.75;

  color: #475569;
}

/* TAGS */

.af-cst-index-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.af-cst-index-tags span {
  padding:
    7px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  background:
    rgba(37,99,235,.08);

  color: #2563eb;
}

/* LINK */

.af-cst-index-link {
  margin-top: auto;

  font-size: 15px;
  font-weight: 700;

  color: #2563eb;
}

/* RESPONSIVO */

@media (max-width: 768px) {

  .af-section-title h2 {
    font-size: 34px;
  }

  .af-cst-index-card {
    min-height: auto;
    padding: 24px;
  }

}