/* ============================================================================
   VISALINK TRUST & CONVERSION LAYER CSS
   390px Mobile-First • Strict CSP Clean (Zero Inline Styles) • WCAG AA • 44px Tap
   ============================================================================ */

.vl-trust-wrap {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  box-sizing: border-box;
}
.vl-trust-wrap *, .vl-trust-wrap *::before, .vl-trust-wrap *::after {
  box-sizing: border-box;
}
.vl-hidden {
  display: none !important;
}
.vl-mb-0 {
  margin-bottom: 0 !important;
}
.vl-bg-white {
  background: #ffffff !important;
}

/* 1. Dải Pháp lý Đơn vị vận hành & Giấy phép — Hợp nhất gọn trong Footer chân trang */
.vl-trustbar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  font-size: 12px;
  color: #475569;
}
[data-theme="dark"] .vl-trustbar {
  background: #132118;
  border-top-color: #1f3326;
  color: #cbd5e1;
}
.vl-trustbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
}
.vl-trustbar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vl-trustbar-badge {
  background: #ecfdf5;
  color: #093915;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}
.vl-trustbar a {
  color: #147800;
  font-weight: 700;
  text-decoration: underline;
  padding: 2px 2px;
  display: inline-flex;
  align-items: center;
}
[data-theme="dark"] .vl-trustbar a {
  color: #6ee7b7;
}

/* 2. UpdatedBadge (exams.json) */
.vl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.vl-updated-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fcd34d;
}
.vl-updated-badge.is-verified {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #6ee7b7;
}
.vl-updated-badge a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* 3. Khối Kiến Thức Khảo Thí, Trường Hàng Đầu, Chẩn Đoán Nhanh & LeadForm */
.vl-conversion-hub {
  max-width: 1160px;
  margin: 22px auto;
  padding: 0 14px;
}
.vl-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .vl-hub-grid {
    grid-template-columns: 1fr;
  }
}
.vl-card {
  background: #ffffff;
  border: 1px solid #d8e6dc;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(9, 57, 21, 0.06);
  scroll-margin-top: 84px;
}
.vl-card + .vl-card {
  margin-top: 16px;
}
.vl-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #093915;
  background: #e8f8ed;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.vl-h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #093915;
  margin: 8px 0 10px;
  line-height: 1.26;
}
.vl-h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: #093915;
  margin: 4px 0 10px;
  line-height: 1.32;
}
.vl-muted-sm {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #334155;
}
.vl-action-row {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chẩn đoán mô phỏng 3 câu */
.vl-diag-q {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}
.vl-diag-meta {
  font-size: 12px;
  font-weight: 800;
  color: #093915;
  margin-bottom: 4px;
}
.vl-diag-prompt {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.vl-diag-opt {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1.5px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.vl-diag-opt:hover, .vl-diag-opt:focus-visible {
  border-color: #093915;
  background: #f0fdf4;
  outline: 2px solid #093915;
  outline-offset: 1px;
}
.vl-diag-opt.is-correct {
  border-color: #15803d;
  background: #dcfce7;
  color: #052e16;
}
.vl-diag-opt.is-wrong {
  border-color: #b91c1c;
  background: #fee2e2;
  color: #7f1d1d;
}
.vl-diag-exp {
  font-size: 12.5px;
  color: #064e3b;
  background: #ecfdf5;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
}

/* LeadForm chuẩn (44px touch targets) */
.vl-field {
  margin-bottom: 12px;
}
.vl-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}
.vl-input, .vl-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #64748b;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
}
.vl-input:focus-visible, .vl-select:focus-visible {
  border-color: #093915;
  outline: 2px solid #093915;
  outline-offset: 1px;
}
.vl-minor-box {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.vl-minor-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 8px;
}
.vl-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #1e293b;
  cursor: pointer;
}
.vl-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #093915;
}
.vl-inline-link {
  color: #093915;
  font-weight: 700;
  text-decoration: underline;
}
.vl-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.vl-turnstile-wrap {
  margin-bottom: 10px;
}
.vl-btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #b91c1c;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  scroll-margin-top: 88px;
  scroll-margin-bottom: 220px;
}
.vl-btn-primary:hover, .vl-btn-primary:focus-visible {
  background: #991b1b;
  outline: 2px solid #093915;
  outline-offset: 2px;
}
.vl-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.vl-btn-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #093915;
  background: #ffffff;
  color: #093915;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.vl-btn-secondary:hover, .vl-btn-secondary:focus-visible {
  background: #f0fdf4;
  outline: 2px solid #093915;
  outline-offset: 2px;
}
.vl-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.vl-alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.vl-alert-ok {
  background: #f0fdf4;
  border: 1.5px solid #15803d;
  color: #052e16;
}
.vl-thank-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.vl-thank-sub {
  margin-top: 6px;
  font-size: 12.5px;
}
.vl-thank-cta {
  margin-top: 12px;
}
.vl-streak-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* Bảng & Danh sách trường chính thống + Khối kiến thức tĩnh */
.vl-static-guide {
  max-width: 1160px;
  margin: 18px auto;
  padding: 0 14px;
}
.vl-answer-box {
  background: #f0fdf4;
  border-left: 4px solid #093915;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 12px;
  font-size: 14px;
  color: #0f172a;
}
.vl-geo-text {
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 14px;
}
.vl-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
@media (max-width: 640px) {
  .vl-feature-grid {
    grid-template-columns: 1fr;
  }
}
.vl-feature-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.vl-table-scroll {
  overflow-x: auto;
  margin: 12px 0;
}
.vl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.vl-table th, .vl-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.vl-table th {
  background: #f0fdf4;
  color: #093915;
  font-weight: 800;
}
.vl-inst-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.vl-inst-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.vl-inst-item a {
  color: #093915;
  font-weight: 800;
  text-decoration: underline;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.vl-inst-role {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}
.vl-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.vl-faq-item {
  border: 1px solid #dbe5dd;
  border-radius: 14px;
  background: #ffffff;
  padding: 4px 14px;
}
.vl-faq-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #093915;
  cursor: pointer;
  padding: 8px 0;
}
.vl-faq-body {
  padding: 0 0 12px;
  font-size: 13.5px;
  color: #334155;
}

/* 4. ContactDock thu gọn tinh tế — mặc định chỉ 1 nút tròn nhỏ, mở menu khi bấm */
.vl-contact-dock {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.vl-contact-dock > * {
  pointer-events: auto;
}
.vl-dock-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 107, 34, 0.24);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #093915;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.84;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.vl-dock-fab:hover,
.vl-contact-dock.is-open .vl-dock-fab {
  opacity: 1;
  background: #ffffff;
  border-color: #0a6b22;
  box-shadow: 0 8px 22px rgba(9, 57, 21, 0.18);
}
.vl-dock-fab-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a6b22;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vl-dock-fab.has-hint::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d91e2a;
  border: 1.5px solid #ffffff;
}
.vl-dock-popover {
  width: min(272px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid rgba(10, 107, 34, 0.2);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
  padding: 10px;
  transform-origin: bottom right;
  animation: vlDockPop 0.16s ease-out;
}
@keyframes vlDockPop {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.vl-dock-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px;
  border-bottom: 1px solid #eef2f0;
  margin-bottom: 6px;
}
.vl-dock-popover-title {
  font-size: 12px;
  font-weight: 800;
  color: #093915;
  letter-spacing: 0.01em;
}
.vl-dock-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vl-dock-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.vl-dock-popover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vl-dock-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid #eef2f0;
  background: #f8faf9;
  color: #0f172a;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vl-dock-item:hover {
  background: #ecfdf5;
  border-color: #86efac;
}
.vl-dock-item[hidden] {
  display: none !important;
}
.vl-dock-item-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.vl-dock-item-tx {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.vl-dock-item-tx strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.vl-dock-item-tx small {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.vl-dock-item-settings .vl-dock-item-ic {
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.vl-dock-item-zalo .vl-dock-item-ic {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.vl-dock-item-hotline .vl-dock-item-ic {
  background: #fef2f2;
  border-color: #fecaca;
}
.vl-dock-item-pwa .vl-dock-item-ic {
  background: #fefce8;
  border-color: #fde68a;
}
@media (max-width: 640px) {
  .vl-contact-dock {
    right: 10px;
    bottom: 72px;
  }
  .vl-dock-fab {
    width: 40px;
    height: 40px;
    padding: 0;
    opacity: 0.72;
  }
  .vl-dock-fab-label {
    display: none;
  }
  .vl-dock-fab-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* 5. CookieConsent Banner (3 nhóm — gọn gàng trên màn hình 390px) */
.vl-cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-width: 560px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 auto;
  z-index: 60;
  background: #ffffff;
  border: 2px solid #093915;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(9, 57, 21, 0.22);
  font-size: 12px;
}
.vl-ck-title {
  font-weight: 800;
  font-size: 13.5px;
  color: #093915;
}
.vl-ck-desc {
  margin: 2px 0 6px;
  color: #334155;
  font-size: 12px;
}
.vl-cookie-groups {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
}
.vl-cookie-groups .vl-check-row {
  padding: 6px 8px;
  min-height: 40px;
  font-size: 11.5px;
}
.vl-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vl-cookie-actions button {
  flex: 1 1 105px;
  min-height: 44px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 10px;
}
.vl-ck-btn-reject {
  background: #f1f5f9;
  border: 1.5px solid #64748b;
  color: #0f172a;
}
.vl-ck-btn-save {
  background: #ffffff;
  border: 1.5px solid #093915;
  color: #093915;
}
.vl-ck-btn-accept {
  background: #093915;
  border: none;
  color: #ffffff;
}

/* 6. Footer Chuẩn 9 Học Viện — Đồng Nhất 100% Giao Diện Korean (Trắng + Viền #147800 + Đỏ #C8102E + Thanh Đáy #0E5C24) */
.vl-std-footer {
  background: #ffffff;
  color: #475569;
  border-top: 4px solid #147800;
  margin-top: 48px;
  font-size: 13.5px;
}
[data-theme="dark"] .vl-std-footer {
  background: #0f1a13;
  color: #cbd5e1;
}
.vl-std-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 20px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 860px) {
  .vl-std-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 16px 24px;
  }
}
.vl-kr-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vl-kr-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 10px;
}
.vl-kr-app-title {
  font-weight: 900;
  color: #147800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .vl-kr-app-title {
  color: #4ade80;
}
.vl-kr-app-sub {
  font-size: 11.5px;
  font-weight: 800;
  color: #c8102e;
  margin-top: 2px;
}
[data-theme="dark"] .vl-kr-app-sub {
  color: #fca5a5;
}
.vl-ft-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}
[data-theme="dark"] .vl-ft-desc {
  color: #cbd5e1;
}
.vl-kr-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #147800;
}
.vl-kr-quick-row a {
  color: #147800;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.vl-kr-quick-row a:hover {
  text-decoration: underline;
}
[data-theme="dark"] .vl-kr-quick-row,
[data-theme="dark"] .vl-kr-quick-row a {
  color: #86efac;
}
.vl-ft-heading {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 10px;
}
[data-theme="dark"] .vl-ft-heading {
  color: #f8fafc;
}
.vl-kr-funnel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.vl-kr-funnel-list a {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.vl-kr-funnel-list a:hover {
  color: #147800;
  text-decoration: underline;
}
[data-theme="dark"] .vl-kr-funnel-list a {
  color: #cbd5e1;
}
.vl-kr-portal-divider {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
[data-theme="dark"] .vl-kr-portal-divider {
  border-top-color: #1e3526;
}
.vl-kr-crimson-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 900;
  color: #c8102e;
  text-decoration: none;
  min-height: 36px;
}
.vl-kr-crimson-link:hover {
  text-decoration: underline;
}
[data-theme="dark"] .vl-kr-crimson-link {
  color: #fca5a5;
}
.vl-kr-sister-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.vl-kr-sister-pill {
  font-size: 11px;
  font-weight: 700;
  color: #093915;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.vl-kr-sister-pill:hover {
  background: #dcfce7;
}
.vl-kr-cta-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #c8102e;
  color: #ffffff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.22);
}
.vl-kr-cta-btn:hover {
  background: #a50d26;
}
.vl-footer-links {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 12px;
}
.vl-footer-links a, .vl-link-btn {
  color: #475569;
  font-weight: 700;
  text-decoration: underline;
  min-height: 38px;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.vl-footer-links a:hover, .vl-link-btn:hover {
  color: #147800;
}
.vl-footer-links .vl-del-link {
  color: #c8102e;
}
[data-theme="dark"] .vl-footer-links a,
[data-theme="dark"] .vl-link-btn {
  color: #cbd5e1;
}
.vl-ft-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}
.vl-kr-bottom-bar {
  background: #0e5c24;
  color: #d1fae5;
  padding: 12px 16px 84px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .vl-kr-bottom-bar {
    padding-bottom: 14px;
  }
}

/* 7. Giao diện Trang Chính Sách & 6 Học Viện Global Pack (Zero Inline Styles) */
.vl-site-shell {
  margin: 0;
  background: #f5f7f5;
  color: #0f172a;
}
.vl-top-header {
  background: linear-gradient(95deg, #093915 0%, #11692B 100%);
  color: #ffffff;
  border-bottom: 3px solid #f5b82e;
  padding: 12px 16px;
}
.vl-top-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vl-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
}
.vl-brand-logo {
  height: 32px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 10px;
}
.vl-back-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
}
.vl-lang-nav {
  max-width: 1160px;
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vl-lang-chip {
  color: #ecfdf5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.vl-lang-chip.is-active {
  background: #fde68a;
  color: #093915;
}
.vl-hero-section {
  max-width: 1160px;
  margin: 20px auto 8px;
  padding: 0 14px;
}
.vl-hero-card {
  background: #ffffff;
  border: 1px solid #d8e6dc;
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 10px 28px rgba(9, 57, 21, 0.06);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 820px) {
  .vl-hero-card {
    grid-template-columns: 1fr;
  }
}
.vl-mascot-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.vl-mascot-img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.vl-policy-main {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 14px;
}
.vl-todo-legal-banner {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #78350f;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}
.vl-policy-list {
  padding-left: 20px;
  margin: 8px 0 14px;
}
.vl-policy-list li {
  margin-bottom: 6px;
}
.vl-noscript-box {
  max-width: 1160px;
  margin: 14px auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #78350f;
  font-size: 13px;
}

/* Unified 9-Academy Cloud Sync & Learner Practice MCP Hub Box */
.vl-mcp-sync-wrap {
  max-width: 1160px;
  margin: 18px auto;
  padding: 0 14px;
}
.vl-mcp-sync-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 18px 20px;
  color: #0f172a;
}
.vl-mcp-sync-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.vl-mcp-code-inp {
  flex: 1 1 210px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #09481b;
  background: #ffffff;
}
.vl-mcp-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  color: #064e3b;
}
.vl-mcp-endpoint-box {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #334155;
  word-break: break-all;
}

.vl-dock-settings {
  background: #093915;
  color: #fde68a;
  border: 1.5px solid #f5b82e;
  cursor: pointer;
  font-family: inherit;
}

.vl-settings-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vl-settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #064e3b;
  font-size: 12px;
  font-weight: 700;
}

.vl-settings-chip.is-gold {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

/* Modal Thiết lập Học & Thiết lập Chung thống nhất 9 App */
.vl-uset-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.vl-uset-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  border: 2px solid #093915;
  padding: 18px 16px 20px;
  box-shadow: 0 24px 56px rgba(9, 57, 21, 0.28);
}

.vl-uset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.vl-uset-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #093915;
}

.vl-uset-close {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.vl-uset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.vl-uset-tab {
  flex: 1 1 140px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.vl-uset-tab.is-active {
  background: #093915;
  border-color: #093915;
  color: #ffffff;
}

.vl-uset-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .vl-uset-grid2 {
    grid-template-columns: 1fr;
  }
}

.vl-uset-code {
  background: #0f172a;
  color: #fde68a;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 8px 0;
}

.vl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}


/* ==========================================================================
   GOOGLE PLAY / CAPACITOR NATIVE READER MODE & DISTINCT 9-APP PALETTES
   Tự động kích hoạt khi html[data-playstore-app="1"] được gắn bởi playstore-guard.js
   ========================================================================== */
html[data-playstore-app="1"] [hidden],
html[data-playstore-app="1"] a[href*="/bang-gia"],
html[data-playstore-app="1"] a[href*="/chinh-sach-hoan-tien"],
html[data-playstore-app="1"] a[href*="/packages"],
html[data-playstore-app="1"] a[href*="/admin"],
html[data-playstore-app="1"] a[href*="/mcp"],
html[data-playstore-app="1"] [data-web-billing],
html[data-playstore-app="1"] [data-external-checkout],
html[data-playstore-app="1"] a[href*="zalo.me"],
html[data-playstore-app="1"] a[href*="wa.me"],
html[data-playstore-app="1"] a[href^="tel:"],
html[data-playstore-app="1"] .vl-contact-dock,
html[data-playstore-app="1"] .vl-kr-sister-strip,
html[data-playstore-app="1"] .v5-lang-switcher,
html[data-playstore-app="1"] .vl-lang-nav,
html[data-playstore-app="1"] a.vl-kr-crimson-link,
html[data-playstore-app="1"] .vl-kr-portal-divider,
html[data-playstore-app="1"] .vl-footer-app-link,
html[data-playstore-app="1"] .vl-app-download-banner,
html[data-playstore-app="1"] a[href*="learn.visalink.vn/learn"],
html[data-playstore-app="1"] .vl-action-row a[href="https://visalink.vn/"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/du-hoc"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/xuat-khau"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/hoc-bong"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/ky-nang"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/ky-su"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/dinh-cu"],
html[data-playstore-app="1"] a[href^="https://visalink.vn/visa"],
html[data-playstore-app="1"] a[href*="visalink.vn"]:not([href*="/privacy"]):not([href*="/terms"]):not([href*="/delete-account"]):not([href*="/support"]):not([href*="/chinh-sach-bao-mat"]):not([href*="/dieu-khoan"]):not([href*="/yeu-cau-xoa-du-lieu"]) {
  display: none !important;
}

/* Bộ bảng màu chủ đạo khác biệt theo từng ngôn ngữ chống Repetitive Content */
html[data-academy-slug="korean"] { --vl-app-accent: #0f4c81; }
html[data-academy-slug="japanese"] { --vl-app-accent: #b91c1c; }
html[data-academy-slug="chinese"] { --vl-app-accent: #9a3412; }
html[data-academy-slug="english"] { --vl-app-accent: #1e3a8a; }
html[data-academy-slug="german"] { --vl-app-accent: #b45309; }
html[data-academy-slug="polish"] { --vl-app-accent: #be123c; }
html[data-academy-slug="french"] { --vl-app-accent: #1d4ed8; }
html[data-academy-slug="spanish"] { --vl-app-accent: #c2410c; }
html[data-academy-slug="russian"] { --vl-app-accent: #0f766e; }

html[data-academy-slug] .vl-top-header,
html[data-academy-slug] .v5-topbar {
  border-top: 4px solid var(--vl-app-accent, #093915);
}
html[data-academy-slug] .vl-kicker {
  background: color-mix(in srgb, var(--vl-app-accent, #093915) 12%, #ffffff);
  color: var(--vl-app-accent, #093915);
}

/* ==========================================================================
   PHỤ LỤC H (H4) — SHARED AI BADGE, EXAM NO-AI BANNER & ESTIMATED SCORE PILL
   ========================================================================== */
.vl-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  vertical-align: middle;
}

.vl-exam-no-ai-banner {
  background: #ecfdf5;
  color: #064e3b;
  border: 1.5px solid #34d399;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.vl-est-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}
