:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --surface: #f1f5f2;
  --charcoal: #111827;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-light: #4ade80;
  --zalo: #0068ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 56px; } }

/* Security Notice Bar (30% charcoal + 10% emerald CTA) */
.notice-bar { background: var(--charcoal); color: var(--bg-soft); font-size: 13px; }
.notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 9px; }
.notice-left { display: flex; align-items: center; gap: 8px; color: #e2e8f0; min-width: 0; }
.notice-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-xs-accent { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; }
.btn-xs-accent:hover { background: var(--accent-hover); }
.notice-hide { font-size: 12px; color: #94a3b8; white-space: nowrap; padding: 4px; }
.notice-hide:hover { color: #fff; }

/* Navbar */
.site-header { background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; font-weight: 600; letter-spacing: -0.02em; }
.brand-link img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: 16px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: #334155; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: none; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--bg-soft); padding: 2px; gap: 2px; flex-shrink: 0; }
.lang-opt { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 1; }
.lang-opt span { display: none; }
.lang-opt:hover { color: var(--ink); background: #fff; }
.lang-opt.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,0.08); }
.lang-switch-sm .lang-opt { padding: 7px 8px; }
.flag-svg { width: 18px; height: 12px; display: block; flex-shrink: 0; border-radius: 1px; box-shadow: 0 0 0 1px rgba(15,23,42,0.12); }
.btn-nav { display: inline-block; background: var(--charcoal); color: #fff; font-size: 13.5px; font-weight: 500; padding: 8px 14px; white-space: nowrap; }
.btn-nav:hover { background: var(--accent); }
.mobile-controls { display: flex; align-items: center; gap: 10px; }
.menu-btn { width: 40px; height: 40px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.mobile-nav { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { font-weight: 500; font-size: 15px; }
.mobile-nav .btn-nav { text-align: center; padding: 12px; }
@media (min-width: 1024px) {
  .nav-links, .nav-actions { display: flex; }
  .mobile-controls, .mobile-nav { display: none !important; }
}
@media (min-width: 1200px) {
  .nav-links { gap: 26px; }
  .nav-links a { font-size: 14.5px; }
  .nav-actions { gap: 14px; }
  .lang-opt { padding: 5px 8px; }
  .lang-opt span { display: inline; }
  .btn-nav { padding: 8px 18px; font-size: 14px; }
}

/* Compact Hero (subtle architectural emerald blueprint dot-grid + ambient wash) */
.hero {
  position: relative;
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(circle at 86% 18%, rgba(21,128,61,0.085) 0%, rgba(21,128,61,0) 44%),
    radial-gradient(circle at 12% 88%, rgba(17,24,39,0.04) 0%, rgba(17,24,39,0) 38%),
    radial-gradient(rgba(21,128,61,0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 28px 38px;
}
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.03; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.hero-sub { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 540px; }
.hero-cta-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-accent { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 20px; white-space: nowrap; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { display: inline-flex; align-items: center; gap: 6px; background: var(--charcoal); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 20px; white-space: nowrap; }
.btn-dark:hover { background: #334155; }
.link-inline { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.link-inline:hover { color: var(--accent); }
.hero-preview { display: block; overflow: hidden; background: var(--charcoal); }
.hero-preview img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.hero-preview:hover img { transform: scale(1.02); }
.hero-preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; font-size: 12px; color: #e2e8f0; background: var(--charcoal); }
.text-green-dot { color: #22c55e; font-weight: 600; }

/* Sections & Headings (subtle architectural background textures — 60-30-10 compliant) */
.sec-white {
  background-color: #fff;
  padding-block: 44px;
}
.sec-soft {
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(15,23,42,0.022) 0,
    rgba(15,23,42,0.022) 1px,
    transparent 1px,
    transparent 14px
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 56px;
}
.sec-stone {
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 92% 16%, transparent 0 64px, rgba(21,128,61,0.065) 64px 65px, transparent 65px 128px, rgba(21,128,61,0.05) 128px 129px, transparent 129px 192px, rgba(21,128,61,0.035) 192px 193px, transparent 193px),
    radial-gradient(rgba(21,128,61,0.09) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  border-top: 1px solid rgba(21,128,61,0.14);
  padding-block: 52px;
}
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
@media (min-width: 1024px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-title { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.2rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.sec-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Operations Hub */
.ops-top { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ops-top { grid-template-columns: 8fr 4fr; } }
.channels-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .channels-grid { grid-template-columns: repeat(2, 1fr); } }
.ch-card { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--border); background: var(--bg-soft); }
.ch-card.primary {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  border-color: var(--charcoal);
  border-left: 3px solid var(--accent);
}
@media (min-width: 640px) { .ch-card.primary { grid-column: span 2; } }
.ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ch-id-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ch-avatar { width: 40px; height: 40px; flex-shrink: 0; background: #fff; padding: 2px; overflow: hidden; }
.ch-avatar img { width: 100%; height: 100%; object-fit: contain; }
.ch-name { margin: 0; font-size: 16px; font-weight: 600; }
.ch-role { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ch-card.primary .ch-role { color: #94a3b8; }
.ch-foot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ch-meta { font-size: 14px; line-height: 1.45; }
.ch-meta p { margin: 0; }
.ch-handle { color: var(--accent); font-weight: 600; }
.ch-card.primary .ch-handle { color: var(--accent-light); }
.btn-copy-sm { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: var(--ink); }
.ch-card.primary .btn-copy-sm { border-color: transparent; background: rgba(255,255,255,0.12); color: #fff; }
.ch-card.primary .btn-copy-sm:hover { background: rgba(255,255,255,0.2); }
.ch-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm-solid { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--charcoal); color: #fff; }
.btn-sm-solid:hover { background: var(--accent); }
.ch-card.primary .btn-sm-solid { background: var(--accent); }
.ch-card.primary .btn-sm-solid:hover { background: var(--accent-hover); }
.btn-sm-outline { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.btn-sm-outline:hover { background: var(--accent); color: #fff; }

.hotline-box { background: var(--surface); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hotline-box h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.hotline-row, .fund-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.hotline-row a { font-weight: 600; color: var(--ink); }
.hotline-row a:hover { color: var(--accent); }
.fund-link:hover { background: var(--charcoal); color: #fff; }

/* 9 Bank Directory */
.banks-box { margin-top: 28px; border: 1px solid var(--border); background: var(--bg-soft); padding: 20px; }
@media (min-width: 640px) { .banks-box { padding: 24px; } }
.banks-head { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .banks-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.banks-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.input-field { width: 100%; border: 1px solid #cbd5e1; background: #fff; padding: 9px 14px; font-size: 14px; color: var(--ink); }
.input-field:focus { border-color: var(--accent); outline: none; }
.search-wrap { width: 100%; }
@media (min-width: 640px) { .search-wrap { width: 260px; } }
.banks-grid { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 640px) { .banks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .banks-grid { grid-template-columns: repeat(3, 1fr); } }
.bank-card { border: 1px solid var(--border); background: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.bank-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bank-name { font-size: 14px; font-weight: 600; color: var(--accent); }
.bank-holder { font-size: 12px; color: var(--muted); }
.bank-num { margin: 8px 0 0; font-size: 18px; font-weight: 600; }
.bank-actions { margin-top: 12px; display: flex; gap: 6px; }
.btn-stk { flex: 1; background: var(--charcoal); color: #fff; padding: 7px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.btn-stk:hover { background: var(--accent); }
.btn-sub { background: var(--surface); color: var(--ink); padding: 7px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.btn-sub:hover { background: var(--border); }
.btn-qr { border: 1px solid rgba(21,128,61,0.4); background: #fff; color: var(--accent); padding: 7px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.btn-qr:hover { background: var(--accent); color: #fff; }

/* Verification Desk (Check UID + Domain) */
.tools-box { margin-top: 24px; background: var(--surface); padding: 20px; }
@media (min-width: 640px) { .tools-box { padding: 24px; } }
.tabs-bar { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .tabs-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; } }
.tab-group { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .tab-group { display: flex; flex-wrap: wrap; } }
.tab-btn { padding: 9px 16px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--border); white-space: nowrap; text-align: center; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.inline-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .inline-form { flex-direction: row; } }
.quick-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.quick-chips button { text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.quick-chips button:hover { color: var(--accent); }
.status-banner { margin-top: 14px; padding: 14px 16px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #fff; }
.status-banner.ok { background: var(--accent); }
.status-banner.warn { background: var(--charcoal); }
.status-banner.err { background: #fff; color: #991b1b; border: 1px solid #fecaca; }

/* Collapsible Rules Accordion */
.rules-grid { margin-top: 20px; display: grid; gap: 8px; }
@media (min-width: 768px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
details.rule-item { border: 1px solid var(--border); background: #fff; }
details.rule-item summary { cursor: pointer; list-style: none; padding: 14px 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.rule-item summary::-webkit-details-marker { display: none; }
details.rule-item summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); flex-shrink: 0; }
details.rule-item[open] summary::after { content: "−"; color: var(--accent); }
details.rule-item .rule-body { margin: 0; padding: 12px 16px; background: var(--bg-soft); font-size: 14px; color: var(--muted); }
.faq-grid { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 768px) { .faq-grid { grid-template-columns: repeat(3, 1fr); } }
.faq-card { border: 1px solid var(--border); background: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.faq-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.faq-card ol { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

/* Ecosystem 5-Platform Real Screenshot Gallery */
.eco-grid { margin-top: 28px; display: grid; gap: 20px; }
@media (min-width: 768px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .eco-grid { grid-template-columns: repeat(6, 1fr); }
  .eco-card.wide { grid-column: span 3; }
  .eco-card.narrow { grid-column: span 2; }
}
.eco-card { display: flex; flex-direction: column; background: var(--bg-soft); overflow: hidden; }
.eco-card:hover { background: var(--surface); }
.eco-thumb { display: block; overflow: hidden; background: var(--charcoal); }
.eco-thumb img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.eco-card:hover .eco-thumb img { transform: scale(1.02); }
.eco-body { flex: 1; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.eco-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eco-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eco-brand img { width: 32px; height: 32px; background: #fff; padding: 4px; object-fit: contain; flex-shrink: 0; }
.eco-brand h3 { margin: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-cat { font-size: 12px; font-weight: 500; color: var(--accent); flex-shrink: 0; }
.eco-desc { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.eco-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }

/* Corporate Legal Strip */
.corp-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .corp-grid { grid-template-columns: 7fr 5fr; } }
.corp-head { display: flex; align-items: center; gap: 14px; }
.corp-crest { width: 48px; height: 48px; background: #fff; padding: 6px; flex-shrink: 0; }
.corp-crest img { width: 100%; height: 100%; object-fit: contain; }
.corp-dl { margin: 20px 0 0; display: grid; gap: 12px 24px; font-size: 14px; }
@media (min-width: 640px) { .corp-dl { grid-template-columns: repeat(2, 1fr); } .corp-dl .span-2 { grid-column: span 2; } }
.corp-dl dt { font-size: 12px; color: var(--muted); }
.corp-dl dd { margin: 2px 0 0; font-weight: 600; }
.docs-box { background: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.docs-grid { margin-top: 14px; display: grid; gap: 8px; }
@media (min-width: 640px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-link { display: flex; align-items: center; justify-content: space-between; background: var(--bg-soft); padding: 10px 14px; font-size: 14px; font-weight: 500; }
.doc-link:hover { background: var(--charcoal); color: #fff; }

/* Subpages (Contact & Legal) */
.legal-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: 4fr 8fr; } }
.legal-card { background: #fff; padding: 28px; }
@media (min-width: 640px) { .legal-card { padding: 44px; } }
.legal-card h1 { margin: 0; font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.06; letter-spacing: -0.03em; }
.legal-card h2 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.legal-card p, .legal-card li { color: var(--muted); font-size: 15px; }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.office-card { margin-top: 28px; background: var(--charcoal); color: #fff; padding: 28px; }
.form-grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

/* Footer */
.site-footer {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(21,128,61,0.14) 0%, transparent 42%),
    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: 100% 100%, 32px 32px, 32px 32px;
  border-top: 2px solid var(--accent);
  color: var(--bg-soft);
}
.footer-inner { padding-block: 48px 80px; }
@media (min-width: 640px) { .footer-inner { padding-block: 56px 40px; } }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 7fr; } }
.footer-cols { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #94a3b8; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-cols a { color: #e2e8f0; }
.footer-cols a:hover { color: var(--accent-light); }
.footer-bottom { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #94a3b8; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Floating Left & Right Quick Docks */
.dock-left { position: fixed; left: 12px; bottom: 12px; z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.dock-btn { display: flex; align-items: center; overflow: hidden; transition: transform 0.2s ease; }
.dock-btn:hover { transform: translateY(-2px); }
.dock-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dock-zalo { background: var(--zalo); color: #fff; font-size: 11px; font-weight: 700; }
.dock-chat { background: #fff; border: 1px solid rgba(15,23,42,0.16); color: var(--accent); }
.dock-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; transition: max-width 0.3s ease, padding 0.3s ease; }
.dock-btn:hover .dock-label { max-width: 150px; padding-right: 12px; }

.dock-right { position: fixed; right: 12px; bottom: 12px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dock-rail { display: none; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (min-width: 640px) { .dock-rail { display: flex; } }
.dock-eco-link { display: flex; flex-direction: row-reverse; align-items: center; background: #fff; border: 1px solid rgba(15,23,42,0.15); }
.dock-eco-link:hover { border-color: var(--accent); }
.dock-eco-link .dock-icon { width: 36px; height: 36px; padding: 6px; }
.dock-eco-link .dock-label { color: var(--ink); }
.dock-eco-link:hover .dock-label { max-width: 175px; padding-left: 12px; padding-right: 4px; }
.dock-mobile { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (min-width: 640px) { .dock-mobile { display: none; } }
.dock-mobile-menu { background: #fff; border: 1px solid rgba(15,23,42,0.15); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.dock-mobile-menu a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dock-mobile-toggle { background: var(--charcoal); color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* VietQR & Welcome Security Notice Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,0.62); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; width: 100%; max-width: 380px; padding: 24px; }
.modal-qr-wrap { margin-top: 14px; background: var(--bg-soft); padding: 12px; text-align: center; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.modal-qr-wrap img { margin: 0 auto; max-height: 290px; width: auto; }
.qr-loader { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 0; color: var(--muted); font-size: 13px; }
.tta-spinner { width: 22px; height: 22px; border: 2.5px solid rgba(21,128,61,0.2); border-top-color: var(--accent); border-radius: 50%; animation: ttaSpin 0.7s linear infinite; display: inline-block; flex-shrink: 0; }
.btn-accent .tta-spinner, .btn-dark .tta-spinner { width: 15px; height: 15px; border-width: 2px; border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
.is-loading { opacity: 0.78; cursor: wait !important; pointer-events: none; }
@keyframes ttaSpin { to { transform: rotate(360deg); } }

.tta-popup-card { position: relative; background: #fff; width: 100%; max-width: 460px; padding: 28px 24px 24px; border: 1px solid rgba(21,128,61,0.2); box-shadow: 0 24px 48px -12px rgba(15,23,42,0.32); animation: ttaPopupIn 0.28s ease-out forwards; }
@media (min-width: 640px) { .tta-popup-card { padding: 36px 36px 28px; } }
.tta-popup-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--muted); font-size: 14px; font-weight: 600; }
.tta-popup-close:hover { background: var(--charcoal); color: #fff; }
.tta-popup-body { text-align: center; }
.tta-shield-ring { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface); border: 2px solid rgba(21,128,61,0.25); display: flex; align-items: center; justify-content: center; padding: 10px; }
.tta-shield-ring img { width: 52px; height: 52px; object-fit: contain; }
.tta-popup-badge { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--surface); border: 1px solid rgba(21,128,61,0.25); margin-bottom: 10px; }
.tta-popup-title { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.3; font-weight: 700; color: var(--ink); text-wrap: balance; }
.tta-popup-text { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tta-popup-url { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 15px; font-weight: 700; }
.tta-popup-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.tta-popup-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.tta-popup-cta:hover { background: var(--accent-hover); }
.tta-popup-secondary { width: 100%; padding: 10px 18px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500; }
.tta-popup-secondary:hover { background: var(--surface); color: var(--ink); }
.tta-popup-check { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.tta-popup-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
@keyframes ttaPopupIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
