/* ===== Variables (nền trắng) ===== */
:root {
  --bg: #ffffff;
  --bg-card: #f8fafc;
  --bg-elevated: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --accent-india: #059669;
  --accent-india-soft: rgba(5, 150, 105, 0.12);
  --border: #e2e8f0;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --container: min(901px, 92vw);
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.05rem;
  --text-lg: 1.1rem;
  --text-xl: 1.2rem;
  --text-2xl: 1.4rem;
  --text-3xl: 1.75rem;
  --title-section: clamp(1.5rem, 3vw, 1.95rem);
  --title-section-sm: clamp(1.25rem, 2.5vw, 1.5rem);
  --title-criterion: clamp(1.35rem, 2.8vw, 1.6rem);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* H1 ẩn cho SEO (mobile + desktop), không hiển thị trên trang */
.seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== Banner: full width, ngoài container, ảnh cover (desktop) ===== */
.banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 2px 0 0;
  flex-shrink: 0;
}

.banner-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

/* Mobile: thay ảnh bằng H1 text để không vỡ/méo */

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem 0.75rem;
}

/* Desktop: thêm padding ngang cho đẹp */
@media (min-width: 769px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===== Sections – giảm padding tối đa ===== */
.section {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
}

.container > .intro.section { padding: 5px 0 0.2rem; }
.container > .quick-table.section {
  padding: 0.2rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: var(--title-section);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.container > .quick-table .section-title {
  margin: 0 0 0.35rem;
  font-size: var(--title-section-sm);
}

/* ===== Intro ===== */
.intro-box {
  width: 100%;
  max-width: 100%;
  padding: 0 0 0.4rem;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.intro-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  width: 100%;
  box-sizing: border-box;
  text-align: justify;
}

.intro-text .intro-key {
  color: #1d4ed8;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.06em 0.2em;
  border-radius: 3px;
}

.suggest-note {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  max-width: 100%;
}

.intro-ref {
  margin: 0 0 0.6rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.intro-ref a { color: var(--link); text-decoration: none; }
.intro-ref a:hover { text-decoration: underline; }

/* ===== Tables ===== */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0.35rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.criterion .table-wrapper {
  width: 70%;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .criterion .table-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .criterion .data-table,
  .criterion .ref-table {
    width: 100%;
    table-layout: auto;
  }
  .criterion .data-table th,
  .criterion .data-table td,
  .criterion .ref-table th,
  .criterion .ref-table td {
    padding: 0.5rem 0.5rem;
    font-size: var(--text-xs);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
  }
}

/* ===== Bảng Quick Reference (5 sàn) ===== */
.quick-table-wrapper {
  margin: 0.25rem auto 0.35rem;
  max-width: min(500px, 100%);
  overflow: visible;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
}

.quick-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  table-layout: auto;
}

.quick-ref-table th,
.quick-ref-table td {
  padding: 0.2rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.quick-ref-table th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.quick-ref-table .col-no {
  width: 3rem;
  min-width: 3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.quick-ref-table .col-broker {
  width: auto;
  border-right: 1px solid var(--border);
}

.quick-ref-table .col-ref {
  width: 1%;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  border-right: none;
}

.quick-ref-table thead .col-ref {
  background: linear-gradient(90deg, rgba(124,58,237,0.85) 0%, rgba(99,102,241,0.8) 100%);
  border-left: 1px solid rgba(255,255,255,0.15);
}

.quick-ref-table tbody .col-no {
  font-weight: 800;
  font-size: var(--text-lg);
  color: #fff;
  border: none;
  border-right: 1px solid var(--border);
  padding: 0.2rem 0.25rem;
}

.quick-ref-table tbody tr:nth-child(1) .col-no { background: #eab308; border-radius: 6px 6px 0 0; }
.quick-ref-table tbody tr:nth-child(2) .col-no { background: #3b82f6; }
.quick-ref-table tbody tr:nth-child(3) .col-no { background: #ef4444; }
.quick-ref-table tbody tr:nth-child(4) .col-no { background: #22c55e; }
.quick-ref-table tbody tr:nth-child(5) .col-no { background: #15803d; border-radius: 0 0 0 6px; }

.quick-ref-table tbody .col-broker {
  background: var(--bg-card);
  color: var(--text);
}

.quick-ref-table tbody .col-ref {
  background: var(--bg-elevated);
  color: var(--text);
}

.quick-ref-table tbody tr:hover .col-broker,
.quick-ref-table tbody tr:hover .col-ref {
  background: #f1f5f9;
}

.quick-ref-table tbody tr:last-child td {
  border-bottom: none;
}

/* Broker: logo + tên (cùng hàng, căn giữa dọc) */
.broker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}




.quick-ref-table .broker-logo-table {
  width: 72px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
  margin: 0;
  vertical-align: middle;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  padding: 4px;
}

.quick-ref-table .broker-logo-table.logo-exness-balance {
  padding: 6px 5px;
}

.quick-ref-table .broker-logo-table.logo-vantage-balance {
  padding: 6px 6px;
}

.quick-ref-table .broker-logo-table.logo-hfm-balance,
.quick-ref-table .broker-logo-table.logo-xm-balance {
  padding: 10px 12px;
}




.quick-ref-table .broker-name {
  font-size: 0.92rem;
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
}

.quick-ref-table .col-ref a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 32px;
  padding: 0.4rem 0.68rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.42);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
  box-sizing: border-box;
}

.quick-ref-table .col-ref a:hover {
  background: #eef4ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

.ref-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-lg);
}

.ref-table th,
.ref-table td,
.data-table th,
.data-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ref-table thead th,
.data-table thead th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.ref-table thead th.ref-header {
  background: #e0e7ff;
  color: #3730a3;
  border: none;
}

.ref-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.ref-table tbody tr:hover,
.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Official website – nền nổi bật (mặc định, cho bảng ref-table khác) */
.ref-table a,
.data-table a {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}

.ref-table a:hover,
.data-table a:hover {
  background: var(--accent-soft);
  color: #b45309;
}

.disclaimer-inline {
  margin: 0.5rem 0 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
}

.container > .quick-table .disclaimer-inline {
  margin: 0.2rem 0 0;
  font-size: var(--text-sm);
}

.table-note {
  margin: 0.4rem 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* Bảng trong criteria & conclusion – chữ = intro, style lung linh nhiều màu */
.criterion .ref-table,
.criterion .data-table,
.conclusion .ref-table,
.conclusion .data-table {
  font-size: var(--text-sm);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.criterion .ref-table th,
.criterion .ref-table td,
.criterion .data-table th,
.criterion .data-table td,
.conclusion .ref-table th,
.conclusion .ref-table td {
  font-size: var(--text-sm);
}
.criterion .data-table thead th,
.criterion .ref-table thead th {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.5rem 0.75rem;
}
.criterion .data-table tbody tr:nth-child(odd) td { background: #f8fafc; }
.criterion .data-table tbody tr:nth-child(even) td { background: #fff; }
/* Màu 5 sàn đồng bộ bảng đầu: vàng, xanh, đỏ, xanh lá, xanh đậm – viền rộng 5px */
.criterion .data-table tbody tr:nth-child(1) td:first-child { border-left: 5px solid #eab308; }
.criterion .data-table tbody tr:nth-child(2) td:first-child { border-left: 5px solid #3b82f6; }
.criterion .data-table tbody tr:nth-child(3) td:first-child { border-left: 5px solid #ef4444; }
.criterion .data-table tbody tr:nth-child(4) td:first-child { border-left: 5px solid #22c55e; }
.criterion .data-table tbody tr:nth-child(5) td:first-child { border-left: 5px solid #15803d; }
.criterion .ref-table tbody tr:nth-child(1) td:first-child { border-left: 5px solid #eab308; }
.criterion .ref-table tbody tr:nth-child(2) td:first-child { border-left: 5px solid #3b82f6; }
.criterion .ref-table tbody tr:nth-child(3) td:first-child { border-left: 5px solid #ef4444; }
.criterion .ref-table tbody tr:nth-child(4) td:first-child { border-left: 5px solid #22c55e; }
.criterion .ref-table tbody tr:nth-child(5) td:first-child { border-left: 5px solid #15803d; }
.criterion .data-table tbody tr:hover td,
.criterion .ref-table tbody tr:hover td { background: #e0e7ff; }
.conclusion .ref-table thead th { background: linear-gradient(90deg, #0e7490 0%, #06b6d4 100%); color: #fff; }
.conclusion .ref-table tbody tr:nth-child(odd) td { background: #f8fafc; }
.conclusion .ref-table tbody tr:nth-child(even) td { background: #fff; }
.conclusion .ref-table tbody tr:nth-child(1) td:first-child { border-left: 5px solid #eab308; }
.conclusion .ref-table tbody tr:nth-child(2) td:first-child { border-left: 5px solid #3b82f6; }
.conclusion .ref-table tbody tr:nth-child(3) td:first-child { border-left: 5px solid #ef4444; }
.conclusion .ref-table tbody tr:nth-child(4) td:first-child { border-left: 5px solid #22c55e; }
.conclusion .ref-table tbody tr:nth-child(5) td:first-child { border-left: 5px solid #15803d; }

/* ===== Broker cards (Suggested) – cùng palette với bảng 5 sàn intro, màu nóng đậm ===== */
.broker-selection {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, rgba(255, 251, 235, 0.15) 50%, #fff 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.08), 0 0 0 1px rgba(217, 119, 6, 0.1);
}

.broker-selection .section-title {
  margin-bottom: 0.6rem;
  padding: 0 0.25rem;
}

.broker-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.85rem;
  align-items: start;
  padding: 0.85rem 0.5rem;
  margin: 0 0 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.broker-card:hover {
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.1), 0 0 0 1px rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.35);
}

.broker-card:last-child { border-bottom: 1px solid var(--border); margin-bottom: 0; }

/* Cùng 5 màu với bảng intro (col-no): vàng, xanh dương, đỏ, xanh lá, xanh đậm – nền đậm hơn */
.broker-selection .broker-card:nth-child(2) .broker-sidebar { background: rgba(234, 179, 8, 0.28); border-left: 4px solid #eab308; }
.broker-selection .broker-card:nth-child(3) .broker-sidebar { background: rgba(59, 130, 246, 0.22); border-left: 4px solid #3b82f6; }
.broker-selection .broker-card:nth-child(4) .broker-sidebar { background: rgba(239, 68, 68, 0.22); border-left: 4px solid #ef4444; }
.broker-selection .broker-card:nth-child(5) .broker-sidebar { background: rgba(34, 197, 94, 0.22); border-left: 4px solid #22c55e; }
.broker-selection .broker-card:nth-child(6) .broker-sidebar { background: rgba(21, 128, 61, 0.28); border-left: 4px solid #15803d; }

.broker-selection .broker-card:nth-child(2) .broker-content { border-left-color: #eab308; background: #fffbeb; }
.broker-selection .broker-card:nth-child(3) .broker-content { border-left-color: #3b82f6; background: #eff6ff; }
.broker-selection .broker-card:nth-child(4) .broker-content { border-left-color: #ef4444; background: #fef2f2; }
.broker-selection .broker-card:nth-child(5) .broker-content { border-left-color: #22c55e; background: #f0fdf4; }
.broker-selection .broker-card:nth-child(6) .broker-content { border-left-color: #15803d; background: #ecfdf5; }

.broker-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.broker-selection .broker-sidebar {
  padding: 0.75rem 0.95rem;
  gap: 0.34rem;
}




.broker-logo,
.broker-logo-img {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-bottom: 0.45rem;
  box-sizing: border-box;
}

.broker-selection .broker-logo-img.logo-exness-balance,
.broker-selection .broker-logo.logo-exness-balance {
  width: 72px;
  height: 44px;
  padding: 6px 5px;
}

.broker-selection .broker-logo-img.logo-vantage-balance,
.broker-selection .broker-logo.logo-vantage-balance {
  width: 72px;
  height: 44px;
  padding: 6px 6px;
}

.broker-selection .broker-logo-img.logo-hfm-balance,
.broker-selection .broker-logo.logo-hfm-balance,
.broker-selection .broker-logo-img.logo-xm-balance,
.broker-selection .broker-logo.logo-xm-balance {
  width: 72px;
  height: 44px;
  padding: 10px 12px;
}

.broker-selection .broker-logo-img.logo-ic-balance,
.broker-selection .broker-logo.logo-ic-balance {
  width: 72px;
  height: 44px;
  padding: 5px 6px;
}




.broker-selection .broker-logo-img,
.broker-selection .broker-logo {
  margin-bottom: 0.12rem;
}

.broker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text);
}

.broker-selection .broker-logo-img {
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.broker-logo-exness { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.broker-logo-octa   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.broker-logo-xm     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.broker-logo-ic     { background: linear-gradient(135deg, #059669, #047857); }
.broker-logo-fbs    { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.broker-name {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.broker-selection .broker-name {
  margin: 0 0 0.08rem;
}

.broker-link{
display:inline-flex;
align-items:center;
justify-content:center;

padding:8px 14px;
border-radius:8px;

font-size:16px;
font-weight:600;

color:#2563eb;
background:#ffffff;

border:1px solid #2563eb;

text-decoration:none;
transition:all .15s ease;

box-shadow:0 2px 6px rgba(37,99,235,.15);
}



.broker-content {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #3b82f6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}


.broker-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.broker-content .broker-key {
  color: #1d4ed8;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.08em 0.2em;
  border-radius: 3px;
}

/* ===== Criteria sections ===== */
.criteria-intro p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.criteria-intro p:last-child { margin-bottom: 0; }

/* ===== ZA Focus (South African Traders) – đồng bộ với broker-selection ===== */
.za-focus {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.3) 0%, rgba(255, 251, 235, 0.12) 50%, var(--bg-card) 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  margin: 0;
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.06), 0 0 0 1px rgba(217, 119, 6, 0.06);
}
.za-focus .section-title {
  margin: 0 0 0.5rem;
  font-size: var(--title-section-sm);
}
.za-focus p {
  margin: 0 0 0.5rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-muted);
}
.za-focus p:last-of-type { margin-bottom: 0; }
.za-checklist {
  margin: 0.75rem 0 1rem 0;
  padding: 0 0 0 1.1rem;
  list-style: none;
}
.za-checklist li {
  margin-bottom: 0.6rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-muted);
  position: relative;
  padding-left: 0.6rem;
}
.za-checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.za-checklist li:last-child { margin-bottom: 0; }
.za-checklist li strong { color: var(--text); }

.content-key {
  color: #1d4ed8;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.06em 0.2em;
  border-radius: 3px;
}

.criterion-title {
  font-family: var(--font-serif);
  font-size: var(--title-criterion);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.criterion-num {
  color: var(--accent);
  margin-right: 0.25rem;
}

.criterion-icon {
  display: inline;
  margin-right: 0.35rem;
  font-size: 1em;
  line-height: 1;
  vertical-align: middle;
}

.criterion p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.criterion p:last-of-type { margin-bottom: 0; }

/* ===== Conclusion ===== – nội dung full container, không fix cứng */
.conclusion p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.conclusion .table-wrapper { margin-top: 0.75rem; }
.conclusion .quick-table-wrapper { margin-top: 0.75rem; }

/* ===== Footer Risk Disclaimer – 100% width, nền đen chữ trắng ===== */
.disclaimer {
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  background: #0f0f0f;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.disclaimer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.disclaimer-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.disclaimer p {
  margin: 0;
  font-size: var(--text-sm);
  color: #fff;
  line-height: 1.55;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section { padding: 0.4rem 0; }
  .broker-card { padding: 0.5rem 0; }
  .banner-inner {
    min-height: 81px;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .container > .intro.section { padding: 5px 0 0.15rem; }
  .container > .quick-table.section { padding: 0.15rem 0 0.4rem; }
  .quick-table-wrapper { max-width: 100%; }
  .quick-ref-table .col-ref {
    width: 8.5rem;
    min-width: 8.5rem;
  }
  .quick-ref-table .col-ref a {
    padding: 0.34rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.15;
  }
  .quick-ref-table .broker-name { font-size: 0.95rem; line-height: 1.2; font-weight: 600; }
  .quick-ref-table .broker-logo-table { width: 56px; height: 36px; padding: 3px; }
.quick-ref-table .broker-logo-table.logo-xm-boost { width: 84px; height: 52px; }
.quick-ref-table .broker-logo-table.logo-vantage-boost { width: 64px; height: 41px; }
  .quick-ref-table .col-broker .broker-item { white-space: nowrap; }
  .quick-ref-table .col-ref a { white-space: nowrap; }
  .intro-box { padding: 0 0 0.35rem 0; }
  .intro-text {
    font-size: var(--text-xs);
    line-height: 1.65;
    text-align: justify;
  }
  .broker-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.5rem 0;
  }
  .broker-sidebar {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.25rem;
    text-align: left;
  }
  .broker-logo, .broker-logo-img { margin-bottom: 0; }
.broker-selection .broker-logo-img.logo-xm-boost,
.broker-selection .broker-logo.logo-xm-boost { width: 96px; height: 96px; }
.broker-selection .broker-logo-img.logo-vantage-boost,
.broker-selection .broker-logo.logo-vantage-boost { width: 74px; height: 74px; }
  .broker-name { margin: 0; }
  .broker-link{
display:inline-flex;
align-items:center;
justify-content:center;

padding:8px 14px;
border-radius:8px;

font-size:16px;
font-weight:600;

color:#2563eb;
background:#ffffff;

border:1px solid #2563eb;

text-decoration:none;
transition:all .15s ease;

box-shadow:0 2px 6px rgba(37,99,235,.15);
}
  .za-focus {
    padding: 0.7rem 0.85rem 0.85rem;
  }
  .za-focus .section-title { margin-bottom: 0.4rem; }
  .za-checklist {
    margin: 0.6rem 0 0.85rem 0;
    padding-left: 1rem;
  }
  .za-checklist li {
    margin-bottom: 0.5rem;
    font-size: var(--text-xs);
  }
  .ref-table th,
  .ref-table td,
  .data-table th,
  .data-table td {
    padding: 0.4rem 0.6rem;
    font-size: var(--text-base);
  }
  /* Cảnh báo rủi ro – mobile */
  .disclaimer {
    padding: 0.75rem 0;
    width: 100%;
  }
  .disclaimer-inner {
    padding: 0 1rem;
  }
  .disclaimer-title {
    font-size: var(--text-xs);
    margin-bottom: 0.35rem;
  }
  .disclaimer p {
    font-size: var(--text-xs);
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .broker-sidebar {
    flex-wrap: wrap;
  }
  .broker-link{
display:inline-flex;
align-items:center;
justify-content:center;

padding:8px 14px;
border-radius:8px;

font-size:16px;
font-weight:600;

color:#2563eb;
background:#ffffff;

border:1px solid #2563eb;

text-decoration:none;
transition:all .15s ease;

box-shadow:0 2px 6px rgba(37,99,235,.15);
}
}


.broker-link:hover{
background:#f1f5ff;
border-color:#1d4ed8;
color:#1d4ed8;
}

/* --- Scoped fix: How Each... only --- */
.broker-selection .howeach-sidebar {
  padding: 0.62rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-align: center;
}

.broker-selection .howeach-logo-img {
  width: 58px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.1rem;
  flex-shrink: 0;
}

.broker-selection .howeach-logo-exness { padding: 5px 4px; }
.broker-selection .howeach-logo-vantage { padding: 5px 5px; }
.broker-selection .howeach-logo-hfm,
.broker-selection .howeach-logo-xm { padding: 8px 10px; }
.broker-selection .howeach-logo-ic { padding: 4px 5px; }

.broker-selection .howeach-broker-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.18;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.broker-selection .howeach-broker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.15;
  color: #2563eb;
  background: #ffffff;
  border: 1px solid #2563eb;
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(37,99,235,.12);
  margin-top: 0.12rem;
  align-self: center;
}

.broker-selection .howeach-broker-link:hover {
  background: #f1f5ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .broker-selection .howeach-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    text-align: center;
    padding: 0.58rem 0.75rem;
  }

  .broker-selection .howeach-logo-img {
    margin-bottom: 0.1rem;
  }

  .broker-selection .howeach-broker-name {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .broker-selection .howeach-broker-link {
    display: inline-flex;
    align-self: center;
    margin-top: 0.14rem;
  }
}
