/* Vietnam-specific layer. Shared country-page typography and components come from the UK page styles. */
body.aifo-vn-best-template {
  background: #050608;
}

.aifo-vn-page .aifo-uk-hero {
  background-color: #020407;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.16) 0%, rgba(2, 4, 7, 0.07) 44%, rgba(2, 4, 7, 0.02) 72%, rgba(2, 4, 7, 0.01) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.02) 58%, rgba(0, 0, 0, 0.22) 100%),
    url("../../images/backgrounds/best-prop-firms-vietnam-hero-v1.webp") center -60px / cover no-repeat;
}

.aifo-vn-page .aifo-uk-hero-copy {
  max-width: 750px;
}

.aifo-vn-page .aifo-uk-hero h1 {
  max-width: 700px;
}

.aifo-vn-page .aifo-uk-kicker svg {
  flex: 0 0 auto;
  width: 28px;
  height: 20px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.aifo-vn-status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.aifo-vn-status-summary article {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(17, 19, 25, 0.86);
}

.aifo-vn-status-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.aifo-vn-status-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.aifo-vn-status-summary .is-available {
  border-color: rgba(65, 201, 130, 0.3);
}

.aifo-vn-status-summary .is-limited {
  border-color: rgba(249, 135, 21, 0.38);
}

.aifo-vn-status-summary .is-restricted {
  border-color: rgba(239, 91, 91, 0.28);
}

.aifo-vn-page .aifo-uk-filter-bar {
  align-items: flex-end;
}

.aifo-vn-page .aifo-uk-table {
  min-width: 0;
}

.aifo-vn-page .aifo-uk-table th:first-child,
.aifo-vn-page .aifo-uk-table td:nth-child(3) {
  min-width: 0;
}

.aifo-vn-page .aifo-uk-table th:nth-child(1) { width: 13%; }
.aifo-vn-page .aifo-uk-table th:nth-child(2) { width: 15%; }
.aifo-vn-page .aifo-uk-table th:nth-child(3) { width: 17%; }
.aifo-vn-page .aifo-uk-table th:nth-child(4) { width: 18%; }
.aifo-vn-page .aifo-uk-table th:nth-child(5) { width: 20%; }
.aifo-vn-page .aifo-uk-table th:nth-child(6) { width: 17%; }

.aifo-vn-page .aifo-uk-table-wrap {
  max-height: var(--vn-table-viewport-height, 790px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #f98715 #1b1d22;
  scrollbar-width: thin;
}

.aifo-vn-page .aifo-uk-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 0;
}

.aifo-vn-page .aifo-uk-table-wrap::-webkit-scrollbar-track {
  background: #1b1d22;
}

.aifo-vn-page .aifo-uk-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #1b1d22;
  border-radius: 999px;
  background: #f98715;
}

.aifo-vn-page .aifo-uk-table thead th {
  z-index: 4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aifo-vn-page .aifo-uk-table thead th:last-child {
  position: sticky;
  top: 0;
  z-index: 4;
}

.aifo-vn-page .aifo-uk-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
}

.aifo-vn-page .aifo-uk-table thead th:first-child {
  left: 0;
  z-index: 5;
}

.aifo-vn-access-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dceee5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aifo-vn-access-status::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #41c982;
  box-shadow: 0 0 0 4px rgba(65, 201, 130, 0.1);
  content: "";
}

.aifo-vn-access-status.is-limited {
  color: #ffd4a9;
}

.aifo-vn-access-status.is-limited::before {
  background: #f98715;
  box-shadow: 0 0 0 4px rgba(249, 135, 21, 0.11);
}

.aifo-vn-access-status.is-restricted {
  color: #f6b7b7;
}

.aifo-vn-access-status.is-restricted::before {
  background: #ef5b5b;
  box-shadow: 0 0 0 4px rgba(239, 91, 91, 0.1);
}

.aifo-vn-source-note {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.aifo-vn-time-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.aifo-vn-time-intro,
.aifo-vn-time-item {
  min-height: 126px;
  padding: 22px;
  background: #111319;
}

.aifo-vn-time-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(249, 135, 21, 0.18), transparent 48%),
    #0d0f14;
}

.aifo-vn-time-intro span,
.aifo-vn-time-item span {
  color: #f98715;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aifo-vn-time-intro h3,
.aifo-vn-time-item strong {
  display: block;
  margin: 8px 0 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
}

.aifo-vn-time-intro h3 { font-size: 20px; }
.aifo-vn-time-item strong { font-size: 18px; }

.aifo-vn-time-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.aifo-vn-restriction-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid #f98715;
  border-radius: 0 12px 12px 0;
  background: rgba(249, 135, 21, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.aifo-vn-page .aifo-uk-legal-icon {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.aifo-vn-page .aifo-uk-firm-card.is-featured::before {
  background: linear-gradient(90deg, #f98715, #ffb15c);
}

@media (max-width: 980px) {
  .aifo-vn-time-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aifo-vn-time-intro {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .aifo-vn-page .aifo-uk-hero {
    background:
      linear-gradient(180deg, rgba(2, 4, 7, 0.22), rgba(2, 4, 7, 0.94)),
      url("../../images/backgrounds/best-prop-firms-vietnam-hero-v1.webp") 68% 12% / cover no-repeat;
  }

  .aifo-vn-status-summary,
  .aifo-vn-time-strip {
    grid-template-columns: 1fr;
  }

  .aifo-vn-time-intro {
    grid-column: auto;
  }

  .aifo-vn-time-intro,
  .aifo-vn-time-item {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 430px) {
  #nav.aifo-nav.fixed-header .navbar-brand img {
    width: 92px;
    height: auto;
  }

  #nav.aifo-nav.fixed-header .aifo-nav__mobile-cta {
    padding-inline: 10px;
    font-size: 12px;
  }
}


/* English Vietnam edition: bounded artwork, matching the Vietnamese hero treatment. */
.aifo-vn-page[lang="en-VN"] .aifo-uk-hero { min-height: 640px; background: #020407; }
.aifo-vn-page[lang="en-VN"] .aifo-uk-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100% - 1800px) / 2));
  width: min(1440px, 100%);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #020407 0%, rgba(2,4,7,.55) 16%, transparent 40%, transparent 92%, #020407 100%),
    linear-gradient(0deg, #020407 0%, transparent 12%),
    url("../../images/backgrounds/best-prop-firms-vietnam-hero-v1.webp") right bottom / contain no-repeat;
}
.aifo-vn-page[lang="en-VN"] .aifo-uk-hero-grid { position: relative; z-index: 1; min-height: 640px; padding-block: 64px 48px; align-items: start; }
@media (max-width: 900px) {
  .aifo-vn-page[lang="en-VN"] .aifo-uk-hero, .aifo-vn-page[lang="en-VN"] .aifo-uk-hero-grid { min-height: 0; }
  .aifo-vn-page[lang="en-VN"] .aifo-uk-hero-grid { padding-block: 56px 40px; }
}
@media (max-width: 767px) {
  .aifo-vn-page[lang="en-VN"] .aifo-uk-hero::before {
    right: 0;
    width: 100%;
    background:
      linear-gradient(180deg, rgba(2,4,7,.94) 0%, rgba(2,4,7,.74) 48%, rgba(2,4,7,.68) 100%),
      url("../../images/backgrounds/best-prop-firms-vietnam-hero-v1.webp") 72% bottom / auto 560px no-repeat;
  }
  .aifo-vn-page[lang="en-VN"] .aifo-uk-hero .is-secondary { background: rgba(8,10,15,.88); border-color: rgba(255,255,255,.2); }
}


/* EN: size the six checks to their text instead of reserving empty card space. */
.aifo-vn-page[lang="en-VN"] .aifo-uk-checklist { gap: 18px; border: 0; border-radius: 0; background: none; overflow: visible; }
.aifo-vn-page[lang="en-VN"] .aifo-uk-checklist li { min-height: 0; padding: 24px; }

/* Country-access tables retain their column relationships on small screens. */
.aifo-vn-page[lang="en-VN"] #comparison .aifo-uk-table { min-width: 1100px; }
.aifo-vn-page[lang="en-VN"] #comparison .aifo-uk-table-wrap { overflow-x: auto; }
.aifo-vn-page[lang="en-VN"] #comparison .aifo-uk-table-wrap::-webkit-scrollbar { height: 6px; }

.aifo-vn-page .aifo-uk-table tbody th {
  overflow-wrap: anywhere;
}
