*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg2: #f5f7f5;            /* giấy ngả xanh sân cỏ rất nhẹ */
  --border: #e6e9e6;
  --text: #111;
  --muted: #6f766f;
  --green: #2d7a2d;
  --green-deep: #1e5c1e;     /* cạnh keycap xanh */
  --key-edge: #000;          /* cạnh keycap đen */
  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', Inter, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.65; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Type scale (display) ── */
h1, h2, h3 { font-family: var(--font-display); }

/* ── Quality floor: keyboard focus rõ ràng ── */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}

/* ── SIGNATURE: keycap ── */
/* Chữ "phím" trong headline là một keycap thật */
.key {
  display: inline-block;
  padding: 0 .16em;
  background: #fff;
  border: 2.5px solid #111;
  border-radius: .16em;
  box-shadow: 0 .14em 0 var(--key-edge);
  line-height: 1.15;
  transform: rotate(-1.2deg);
  color: var(--green);
}
/* Mọi CTA là một keycap: có cạnh đáy, bấm là lún xuống */
.btn-primary, .btn-nav-cta, .btn-affiliate, .mobile-menu-cta {
  box-shadow: 0 3px 0 var(--key-edge);
}
.btn-primary:active, .btn-nav-cta:active, .btn-affiliate:active, .mobile-menu-cta:active {
  transform: translateY(3px) !important;
  box-shadow: 0 0 0 var(--key-edge);
}
.btn-ghost { box-shadow: 0 3px 0 #d4d8d4; }
.btn-ghost:active { transform: translateY(3px) !important; box-shadow: 0 0 0 #d4d8d4; }
.btn-affiliate.green, .pick { box-shadow: 0 3px 0 var(--green-deep); }
.btn-affiliate.green:active, .pick:active { transform: translateY(3px) !important; box-shadow: 0 0 0 var(--green-deep); }

/* ── Eyebrow (nhãn section) ── */
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner {
  max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .06em; color: #111; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.footer-logo { justify-content: center; }
.logo-dot { color: var(--green); }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav a {
  padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: #444;
  border-radius: 6px; transition: background .15s, color .15s; cursor: pointer;
  position: relative;
}
.nav a:hover, .nav a.active { background: #f0f3f0; color: #111; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-cta {
  background: #111; color: #fff !important;
  padding: 8px 16px; border-radius: 7px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: background .2s, transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-nav-cta:hover { background: #2b2b2b; }

/* ── Hamburger + menu mobile ── */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; position: relative; flex-shrink: 0; border-radius: 8px;
}
.nav-toggle:active { background: #f0f3f0; }
.nav-toggle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 2px; background: #111; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #111; border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 199;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  flex-direction: column; padding: 6px 0;
  max-height: calc(100dvh - 60px); overflow-y: auto;
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 48px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; color: #222;
  border-bottom: 1px solid #f2f2f2;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a:active { background: var(--bg2); color: var(--green); }
.mobile-menu .mobile-menu-cta {
  color: #fff !important; background: #111; margin: 8px 16px 4px; border-radius: 6px;
  text-align: center; border-bottom: none;
}
.mobile-menu .mobile-menu-cta:hover { background: #333; }

/* ── Scroll container (cuộn mượt, không snap) ── */
.pages {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: 60px;
  scroll-padding-top: 60px;
}
.page {
  position: relative;
  padding: 64px 0;
}
.page--alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page--hero {
  min-height: min(660px, calc(100dvh - 60px));
  display: flex; align-items: center;
  padding: 40px 0 56px;
}
.page--trust { padding: 22px 0; background: #0d0d0f; }
.page--footer {
  padding: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.page-inner {
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 24px;
}

/* ── Reveal Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rc {
  opacity: 0;
}
.page.is-visible .rc {
  animation: fadeUp .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}
#s-profile .avatar-wrap.rc {
  animation-name: fadeRight;
}

/* ── Hero ── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-text { display: flex; flex-direction: column; gap: 0; }
.hero-tag {
  display: inline-block;
  background: #f0f0f0; color: #555;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: .4px; margin-bottom: 18px; width: fit-content;
}
.hero-text h1 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.01em; }
.hero-sub { font-size: 15px; color: #555; line-height: 1.75; margin-bottom: 26px; max-width: 460px; }
.hero-sub strong { color: #111; }
.hero-btns { display: flex; gap: 12px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-chips .chip {
  font-size: 12px; font-weight: 600; color: #333;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
}
.hero-picks { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-picks-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pick {
  font-size: 12.5px; padding: 7px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--green); color: var(--green);
  font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.pick b { color: #111; font-weight: 800; }
.pick:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.pick:hover b { color: #fff; }

.hero-img-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,.18));
  transition: transform .4s var(--ease);
}
.hero-img-wrap:hover img { transform: translateY(-6px) scale(1.01); }
.kb-floating-label {
  position: absolute;
  bottom: -8px; left: 12px;
  background: #111; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .5px;
}
.kb-glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(ellipse, rgba(123,47,255,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #aaa; font-size: 11px; letter-spacing: .5px;
}
.scroll-arrow {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, #ccc, transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(1.15); }
}

/* ── Buttons ── */
.btn-primary {
  background: #111; color: #fff;
  padding: 12px 24px; border-radius: 6px;
  font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s var(--ease);
  cursor: pointer;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #111;
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  border: 1px solid #ccc;
  transition: border-color .2s, transform .2s var(--ease);
  cursor: pointer;
}
.btn-ghost:hover { border-color: #888; transform: translateY(-2px); }

/* ── Profile ── */
.profile-layout {
  display: flex; align-items: center; gap: 52px;
}
.avatar-wrap {
  flex-shrink: 0; position: relative;
  width: 140px; height: 140px;
}
.avatar-wrap img {
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid #e0e0e0;
  position: relative; z-index: 1;
}
.avatar-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed #ddd;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-body { flex: 1; }
.profile-body h2 { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.profile-handle { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.profile-bio { color: #444; font-size: 14px; line-height: 1.8; max-width: 540px; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.social-btn {
  background: #fff; border: 1px solid #ddd;
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.social-btn:hover { border-color: #999; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.affil-note { font-size: 12px; color: #aaa; }
.avatar-logo { border: none !important; object-fit: contain; background: transparent; }

/* ── Nút Ủng hộ (header) ── */
.btn-support-nav {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ffd54a, #ff9a3c);
  color: #3a2a00 !important; font-weight: 800; font-size: 13px;
  padding: 7px 13px; border-radius: 5px; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-support-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,154,60,.45); }

/* ── Nút Ủng hộ WeScan (profile) ── */
.support-btn {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #fff3d6, #ffe1b0);
  border: 1.5px solid #ffcf7a; border-radius: 14px;
  padding: 14px 18px; margin: 18px 0; max-width: 470px;
  transition: transform .2s var(--ease), box-shadow .25s;
}
.support-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,160,50,.3); }
.support-ic { font-size: 26px; line-height: 1; flex-shrink: 0; }
.support-text { display: flex; flex-direction: column; flex: 1; text-align: left; }
.support-text b { font-size: 15px; font-weight: 800; color: #6b4a00; }
.support-text small { font-size: 12px; color: #8a6a2e; margin-top: 2px; line-height: 1.4; }
.support-arrow { font-size: 18px; color: #b07a1e; font-weight: 800; flex-shrink: 0; }

/* ── Social buttons (icon thương hiệu) ── */
.social-btn { display: inline-flex; align-items: center; gap: 7px; }
.social-btn svg { flex-shrink: 0; }

/* ── Video showcase (profile) ── */
.video-showcase { margin-top: 48px; }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vid-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.vid-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.vid-thumb {
  position: relative; aspect-ratio: 4 / 5;
  background-size: cover; background-position: center; background-color: #111;
}
.vid-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
}
.vid-play {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s var(--ease);
}
.vid-card:hover .vid-play { background: var(--green); transform: scale(1.08); }
.vid-title { padding: 12px 14px; font-size: 13px; font-weight: 700; line-height: 1.45; }

/* ── Keyboard Section ── */
.kb-section-layout { display: flex; flex-direction: column; }
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kb-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; position: relative;
  opacity: 0;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.kb-card.is-visible {
  animation: fadeUp .6s var(--ease) both;
  animation-delay: calc(var(--ci, 0) * 80ms);
}
.kb-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.kb-card img { height: 160px; width: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.kb-card:hover img { transform: scale(1.04); }
.kb-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.kb-card-name { font-size: 13px; font-weight: 700; }
.kb-card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.kb-price { font-size: 14px; font-weight: 800; }
.kb-type { font-size: 10px; color: #666; background: #f0f0f0; padding: 2px 7px; border-radius: 3px; }
.kb-badge {
  position: absolute; top: 10px; left: 10px;
  background: #111; color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 3px;
}
.kb-badge--green, .kb-badge.green { background: var(--green); }
.kb-card-cta {
  margin-top: 8px;
  font-size: 12px; color: #555; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.kb-card-cta::after { content: '→'; transition: transform .2s; }
.kb-card:hover .kb-card-cta::after { transform: translateX(3px); }

/* ── Section headings (dùng chung) ── */
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.section-sub { font-size: 13px; color: var(--muted); max-width: 640px; }

/* ── Trust bar ── */
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; color: #fff; }
.trust-ic { font-size: 24px; line-height: 1; }
.trust-item strong { display: block; font-size: 13px; font-weight: 700; }
.trust-item small { display: block; font-size: 11px; color: #9a9aa2; margin-top: 2px; }

/* ── Budget guide ── */
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.budget-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px;
  position: relative; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.budget-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,.09); transform: translateY(-3px); }
.budget-card--hot { border-color: var(--green); box-shadow: 0 8px 28px rgba(45,122,45,.1); }
.budget-badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
}
.budget-price { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.budget-name { font-size: 13px; font-weight: 700; color: #333; }
.budget-card p { font-size: 13px; color: #555; line-height: 1.65; flex: 1; }
.budget-cta {
  margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--green);
  align-self: flex-start; cursor: pointer;
}
.budget-cta:hover { text-decoration: underline; }
.budget-note { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }

/* ── How it works ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: #111; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-name { font-size: 15px; font-weight: 800; }
.step-name-wrap { display: flex; align-items: center; gap: 12px; }
.step-card p { font-size: 13px; color: #555; line-height: 1.65; }
.how-cta { margin-top: 26px; display: flex; justify-content: center; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 2px 18px; transition: border-color .2s;
}
.faq-item[open] { border-color: #cfcfcf; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 15px 0; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--muted);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 16px; font-size: 13px; color: #555; line-height: 1.7; }

/* ── Footer ── */
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px;
  text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 13px; cursor: pointer; }
.footer-links a:hover { color: #111; }
.footer-copy { color: #bbb; font-size: 11px; }

/* ── Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
}
.modal.open { pointer-events: all; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 16px;
  max-width: 900px; width: 90vw;
  max-height: 85dvh;
  display: flex;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .35s var(--ease);
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
}
.modal.open .modal-box { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: rgba(0,0,0,.08); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(0,0,0,.16); }

.modal-left {
  width: 42%; flex-shrink: 0;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-left img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.modal-right {
  flex: 1; padding: 28px 28px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.modal-badge {
  font-size: 11px; font-weight: 700;
  color: #fff; background: #111;
  padding: 3px 10px; border-radius: 3px;
  width: fit-content;
}
.modal-badge:empty { display: none; }
.modal-badge.green { background: var(--green); }
.modal-right h2 { font-size: 22px; font-weight: 900; line-height: 1.2; }
.modal-meta { display: flex; align-items: center; gap: 10px; }
.modal-desc { font-size: 13px; color: #444; line-height: 1.75; }

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spec-item {
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.spec-label {
  font-size: 10px; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: .6px;
}
.spec-value {
  font-size: 13px; font-weight: 700; color: #111;
  line-height: 1.3;
}
.spec-note {
  font-size: 11px; color: #777; line-height: 1.4;
}

.modal-video { display: flex; flex-direction: column; gap: 8px; }
.video-label { font-size: 12px; font-weight: 600; color: #555; }
.video-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 8px; overflow: hidden; background: #000;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.video-wrap.portrait {
  padding-top: 0;
  aspect-ratio: 9 / 16;
  width: 100%; max-width: 250px;
  margin: 0 auto;
}
.modal-video.hidden { display: none; }

.btn-affiliate {
  display: inline-flex; align-items: center; gap: 6px;
  background: #111; color: #fff;
  padding: 12px 22px; border-radius: 7px;
  font-weight: 700; font-size: 13px;
  transition: background .2s, transform .2s var(--ease);
  width: fit-content; margin-top: 4px;
}
.btn-affiliate:hover { background: #333; transform: translateY(-2px); }
.btn-affiliate.green { background: var(--green); }
.btn-affiliate.green:hover { background: #1f5c1f; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-img-wrap { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-text h1 { font-size: 30px; }
  .page--hero { min-height: auto; }
  .profile-layout { flex-direction: column; text-align: center; gap: 24px; }
  .social-links { justify-content: center; }
  .support-btn { margin-left: auto; margin-right: auto; }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
  .budget-grid, .steps-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-head h2 { font-size: 22px; }
  .modal-box { flex-direction: column; max-height: 90dvh; }
  .modal-left { width: 100%; height: 200px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-nav-cta { display: none; }
}
@media (max-width: 520px) {
  .kb-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 29px; }
  .vid-grid { grid-template-columns: 1fr; }
  /* Header 390px: logo mark + Ủng hộ + hamburger, tất cả ≥44px */
  .header .logo span { display: none; }
  .header .logo { min-width: 44px; min-height: 44px; align-items: center; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .header-actions { gap: 8px; }
  .btn-support-nav { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; font-size: 12.5px; }
  .btn-nav-cta { padding: 6px 11px; font-size: 12px; }

  /* Touch target ≥44px cho phần thân trang */
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { text-align: center; padding: 14px 24px; }
  .pick { min-height: 44px; display: inline-flex; align-items: center; }
  .budget-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .social-btn { min-height: 44px; padding: 0 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
  .modal-close { width: 44px; height: 44px; font-size: 22px; }
  .btn-affiliate { width: 100%; justify-content: center; padding: 14px 22px; }
  .kb-card img { height: 190px; }
  .page { padding: 48px 0; }
  .page-inner { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc, .kb-card { animation: none !important; opacity: 1 !important; }
  .scroll-arrow { animation: none; }
  .avatar-ring { animation: none; }
  .btn-primary, .btn-ghost, .btn-nav-cta, .btn-affiliate, .pick, .kb-card, .budget-card, .vid-card, .support-btn, .social-btn { transition: none !important; }
}

/* ── FCO Advisor Chat Widget ── */
.fco-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; align-items: center; gap: 8px;
  background: #111; color: #fff; border: none;
  padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: transform .2s var(--ease), opacity .2s, background .2s;
}
.fco-fab:hover { background: #333; transform: translateY(-2px); }
.fco-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }
.fco-fab-icon { font-size: 18px; }

.fco-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 301;
  width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100dvh - 40px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.fco-chat.open { opacity: 1; transform: none; pointer-events: auto; }

.fco-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #111; color: #fff;
}
.fco-chat-title { font-weight: 700; font-size: 14px; }
.fco-chat-close {
  background: none; border: none; color: #fff; font-size: 22px;
  line-height: 1; cursor: pointer; opacity: .8;
}
.fco-chat-close:hover { opacity: 1; }

.fco-chat-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg2);
}
.fco-msg {
  max-width: 84%; padding: 9px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.fco-msg--bot  { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.fco-msg--user { align-self: flex-end; background: #111; color: #fff; border-bottom-right-radius: 4px; }
.fco-msg em { color: var(--green); font-style: normal; font-weight: 600; }

.fco-chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border); background: var(--bg);
}
.fco-chat-input input {
  flex: 1; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.fco-chat-input input:focus { border-color: #111; }
.fco-chat-input button {
  background: #111; color: #fff; border: none; border-radius: 50%;
  width: 44px; height: 44px; font-size: 15px; cursor: pointer;
  flex-shrink: 0; transition: background .2s;
}
.fco-chat-input button:hover:not(:disabled) { background: #333; }
.fco-chat-input button:disabled { opacity: .5; cursor: default; }

@media (max-width: 520px) {
  .fco-chat { right: 8px; bottom: 8px; height: calc(100dvh - 16px); }
  .fco-fab-text { display: none; }
  .fco-fab { padding: 14px; }
}
