@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #0c1524;
  --muted: #5a6a7c;
  --line: #e2eaf3;
  --blue: #1f5fd6;
  --blue-deep: #1649ad;
  --blue-soft: #eef4fc;
  --sky: #0b7eb5;
  --bg: #eef3f8;
  --panel: #ffffff;
  --ok: #0f766e;
  --danger: #b91c1c;
  --max: 1180px;
  --pad: clamp(16px, 3.5vw, 36px);
  --radius: 14px;
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 32px rgba(15, 23, 42, 0.06);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(31, 95, 214, 0.09), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(11, 126, 181, 0.07), transparent 55%),
    linear-gradient(180deg, #f5f8fc 0%, var(--bg) 38%, #e8eef5 100%);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  padding-bottom: 64px;
}

/* —— Nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
  margin-top: -4px;
  margin-bottom: 4px;
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}
.brand em { font-style: normal; color: var(--blue); margin-left: -0.02em; }
.brand-name {
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand-accent {
  color: var(--blue);
  margin: 0;
  padding: 0;
}
.page-home .brand-name { letter-spacing: -0.06em; }
.page-home .footer-brand .brand-accent { color: var(--blue); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover, .nav a.is-active { color: var(--ink); background: #e8eef7; }
.nav .btn { margin-left: 6px; }
.topnav .nav a.btn-ghost,
.topnav .nav a.btn-primary {
  min-width: 7.85rem;
  justify-content: center;
  text-align: center;
}
/* Quan trọng: .nav a không được ghi đè màu chữ nút primary/secondary */
.nav a.btn-primary,
a.btn-primary {
  color: #ffffff !important;
  background: var(--blue);
}
.nav a.btn-primary:hover,
a.btn-primary:hover {
  color: #ffffff !important;
  background: var(--blue-deep);
}
.nav a.btn-secondary,
a.btn-secondary {
  color: #ffffff !important;
  background: #0f172a;
}
.nav a.btn-ghost {
  color: var(--ink) !important;
}

/* User menu (đã đăng nhập) */
.user-menu { position: relative; margin-left: 8px; }
.user-menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 4px 12px 4px 4px;
  cursor: pointer; font: inherit; color: var(--ink); font-weight: 600; font-size: 0.88rem;
}
.user-menu-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff; display: inline-grid; place-items: center;
  font-size: 0.85rem; font-weight: 800;
}
.user-menu-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 40;
}
.user-menu-drop a, .user-menu-drop button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: transparent;
  border-radius: 8px; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.user-menu-drop a:hover, .user-menu-drop button:hover { background: var(--blue-soft); }
.account-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px;
}
.account-tab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700;
  font-size: 0.86rem; cursor: pointer;
}
.account-tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.account-form { max-width: 420px; margin-top: 10px; }
.account-form .field { margin-bottom: 12px; }
.account-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; color: var(--muted); }
.account-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fff;
}

/* —— Buttons (tương phản rõ) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 18px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary {
  background: #0f172a;
  color: #fff;
}
.btn-secondary:hover { background: #1e293b; }
.btn-ghost {
  background: transparent;
  border-color: #cbd5e1;
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; border-color: #94a3b8; }
.btn-text {
  background: transparent;
  border: none;
  color: var(--blue);
  padding: 8px 10px;
  font-weight: 600;
}
.btn-text:hover { color: var(--blue-deep); text-decoration: underline; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
  padding: 40px 0 48px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  font-weight: 700;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: none;
  margin-bottom: 24px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.trust-row span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-row strong { color: var(--ink); font-weight: 700; display: block; font-size: 0.92rem; margin-bottom: 2px; }

/* Hero flow canvas — nửa trang, cao bằng khối tiêu đề */
.hero-flow {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #dbe7f5;
  background:
    radial-gradient(860px 500px at 10% 6%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(720px 440px at 92% 90%, rgba(29,78,216,.07), transparent 58%),
    radial-gradient(520px 360px at 50% 42%, rgba(255,255,255,.96), transparent 70%),
    linear-gradient(165deg, #f8fbff 0%, #ffffff 45%, #eff6ff 100%);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.08);
}
.hero-flow .dust {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(37,99,235,.14) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  opacity: .14;
  mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 8%, transparent 76%);
  pointer-events: none;
}
.hero-flow svg.wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-flow .gnode {
  position: absolute;
  min-width: 118px;
  padding: 9px 12px 9px 11px;
  background: rgba(255,255,255,.92);
  border: 1.5px solid color-mix(in srgb, var(--a, #2563eb) 40%, #e2e8f0);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(37,99,235,.06);
  z-index: 1;
}
.hero-flow .gnode .row { display: flex; align-items: center; gap: 7px; }
.hero-flow .gnode .badge {
  width: 16px; height: 16px; border-radius: 5px;
  background: color-mix(in srgb, var(--a, #2563eb) 16%, #fff);
  color: var(--a, #2563eb);
  font-size: 8px; font-weight: 800;
  display: grid; place-items: center; flex: 0 0 auto;
}
.hero-flow .gnode small {
  display: block; margin-top: 2px; margin-left: 23px;
  color: #64748b; font-weight: 500; font-size: 9px;
}
.hero-flow .gnode.ghost {
  background: rgba(255,255,255,.62);
  border-color: rgba(147,197,253,.75);
  box-shadow: none;
  color: rgba(15,23,42,.65);
  font-weight: 600;
}
.hero-flow .gnode.ghost .badge {
  background: rgba(219,234,254,.95);
  color: #3b82f6;
}

/* —— Sections —— */
.section { padding: 36px 0; border-top: 1px solid var(--line); }
.section-tight { padding-top: 0; border-top: none; }
.section-wide .sec-title,
.section-wide .sec-desc,
.section-wide .prose-block { max-width: none; }
.sec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.sec-title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 700;
}
.sec-desc { color: var(--muted); max-width: 68ch; margin-bottom: 28px; }
.sec-desc-wide { max-width: none; }

.feat-grid, .price-grid, .post-grid, .trust-grid {
  display: grid;
  gap: 16px;
}
.feat-grid, .trust-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.price-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.price-grid.plans-3 { grid-template-columns: repeat(3, 1fr); }
.post-grid { grid-template-columns: repeat(3, 1fr); }

.feat, .price-card, .post-card, .panel, .dl-box, .auth-card, .trust-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}
.feat { padding: 22px; }
.feat h3 {
  font-family: var(--display);
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feat p { color: var(--muted); font-size: 0.93rem; }

/* Pro badge — tinh tế, không vương miện */
.badge-pro {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 2px 7px;
  line-height: 1.4;
  vertical-align: middle;
}

.price-card {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.price-card.featured {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #93c5fd, var(--shadow);
}
.price-card .tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  padding: 4px 8px;
}
.price-card h3 { font-family: var(--display); font-size: 1.15rem; }
.price-card .price {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.15em;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.price-card li.lock::before { background: #94a3b8; }

.dl-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.dl-box p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.changelog { display: grid; gap: 10px; }
.change-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.94rem;
}
.change-item strong { color: var(--blue); font-weight: 600; }

.trust-card { padding: 20px; }
.trust-card h3 { font-size: 1rem; margin-bottom: 6px; font-family: var(--display); }
.trust-card p { color: var(--muted); font-size: 0.9rem; }

/* Auth */
.auth-wrap { max-width: 420px; margin: 36px auto 0; }
.auth-card { padding: 32px 28px; box-shadow: var(--shadow); }
/* Auth — đồng bộ header với trang chủ */
.page-auth .topnav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
.page-auth .brand-accent {
  color: var(--blue);
}
.auth-card h1 {
  font-family: var(--font);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.auth-card .sub { color: var(--muted); margin-bottom: 22px; font-size: 0.94rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.field input, .filters input, .filters select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-msg { margin-top: 12px; font-size: 0.88rem; color: var(--danger); min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.auth-foot a { color: var(--blue); font-weight: 600; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-google {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1f2937 !important;
  border: 1px solid #d1d5db;
  font-weight: 600;
  box-shadow: none;
}
.btn-google:hover { background: #f3f4f6; }
.btn-google::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.panel { padding: 22px; margin-top: 16px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 10px; font-family: var(--display); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.stat {
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 14px;
}
.stat b { display: block; font-size: 1.2rem; font-family: var(--display); }
.stat span { color: var(--muted); font-size: 0.8rem; }
.qr-box { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.qr-box code {
  display: block;
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 6px 0;
  font-size: 0.9rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
.footer a:hover { color: var(--blue); }

/* Blog */
.blog-head { padding: 28px 0 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.filters input, .filters select { width: auto; min-width: 160px; }
.post-card { overflow: hidden; transition: border-color .15s ease; }
.post-card:hover { border-color: #93c5fd; }
.post-card img { width: 100%; height: 160px; object-fit: cover; background: #e8eef7; }
.post-card .body { padding: 16px; }
.post-card .cat { font-size: 0.72rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.post-card h2 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.post-card p { color: var(--muted); font-size: 0.88rem; }
.crumbs { color: var(--muted); font-size: 0.88rem; margin: 12px 0 18px; }
.article h1 { font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -0.03em; margin: 8px 0 12px; }
.article .meta { color: var(--muted); font-size: 0.86rem; }
.article-cover {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: var(--radius); margin: 16px 0 22px; border: 1px solid var(--line);
}
.article-body { font-size: 1.02rem; }
.article-body h2 { margin: 1.4em 0 0.5em; font-size: 1.25rem; font-family: var(--display); }
.article-body p, .article-body li { margin-bottom: 0.75em; color: #334155; }
.article-body ul { padding-left: 1.2em; margin-bottom: 1em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags span {
  background: #f1f5f9; border-radius: 999px; padding: 4px 10px;
  font-size: 0.78rem; color: var(--muted);
}
.related { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.related ul { list-style: none; }
.related a { color: var(--blue); font-weight: 600; }

/* Kiến thức — layout biên tập (nền dùng chung body như trang chủ) */
.knowledge-page {
  background: transparent;
}
.knowledge-hero { padding: 36px 0 8px; }
.knowledge-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 8px 0 12px;
}
.knowledge-filters { margin-bottom: 28px; }
.knowledge-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  margin: 8px 0 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.knowledge-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}
.knowledge-feature-media { min-height: 320px; background: #0f172a; }
.knowledge-feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px;
}
.knowledge-feature-copy {
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, #fff 0%, #f8fbff 100%);
}
.knowledge-kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.knowledge-feature-copy h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.2;
}
.knowledge-feature-copy p { color: var(--muted); margin: 0 0 18px; }
.knowledge-more { font-weight: 700; color: var(--blue); }
.knowledge-masonry {
  column-count: 3;
  column-gap: 18px;
  margin-bottom: 40px;
}
.knowledge-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.knowledge-card:hover { border-color: #93c5fd; transform: translateY(-2px); }
.knowledge-card-media img {
  width: 100%; height: 170px; object-fit: cover; display: block; background: #e8eef7;
}
.knowledge-card.is-tall .knowledge-card-media img { height: 240px; }
.knowledge-card-body { padding: 16px 16px 18px; }
.knowledge-card .cat {
  font-size: 0.7rem; font-weight: 800; color: var(--blue);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px;
}
.knowledge-card h3 {
  font-family: var(--display); font-size: 1.05rem; margin: 0 0 8px;
  letter-spacing: -0.02em; line-height: 1.25;
}
.knowledge-card p {
  color: var(--muted); font-size: 0.88rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.knowledge-article { max-width: 760px; margin: 0 auto 48px; }
.knowledge-article-head { margin-bottom: 16px; }
.knowledge-body > figure:first-child { margin-top: 0.4em; }
.knowledge-article-head h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em; margin: 8px 0 12px;
}
.knowledge-cover-wrap {
  display: none;
}
.knowledge-body figure {
  margin: 1.6em 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.knowledge-body figure img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.knowledge-body figcaption {
  padding: 10px 14px; font-size: 0.85rem; color: var(--muted); background: #f8fafc;
}
.knowledge-related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.knowledge-related h2 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 14px; }
.knowledge-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.knowledge-mini {
  display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; text-decoration: none; color: inherit;
}
.knowledge-mini img { width: 100%; height: 110px; object-fit: cover; display: block; }
.knowledge-mini span {
  display: block; padding: 10px 12px; font-weight: 650; font-size: 0.9rem; line-height: 1.3;
}
@media (max-width: 980px) {
  .knowledge-feature { grid-template-columns: 1fr; }
  .knowledge-masonry { column-count: 2; }
  .knowledge-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .knowledge-masonry { column-count: 1; }
  .knowledge-related-grid { grid-template-columns: 1fr; }
  .knowledge-feature-copy { padding: 22px 18px; }
}

/* Honeypot — ẩn khỏi người dùng thật */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* —— Product mockups (giống UI app) —— */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
.mock-win {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.mock-dots { display: flex; gap: 5px; margin-right: 6px; }
.mock-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1; display: block;
}
.mock-body { display: flex; min-height: 280px; }
.mock-side {
  width: 72px;
  background: #0f172a;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-side span {
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
.mock-side span.on { background: rgba(37,99,235,0.55); }
.mock-main { flex: 1; padding: 14px; background: #f8fafc; }
.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mock-chip {
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
}
.mock-chip.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mock-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.mock-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  background: #fff;
}
.mock-pill {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
}
.mock-pill.off { background: #f1f5f9; color: #64748b; }

.mock-canvas {
  position: relative;
  height: 260px;
  background:
    linear-gradient(#e2e8f0 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px) 0 0 / 20px 20px,
    #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mock-node {
  position: absolute;
  min-width: 112px;
  padding: 8px 10px 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
}
.mock-node::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent, #2563eb);
}
.mock-node small {
  display: block;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}
.mock-wire {
  position: absolute;
  border: none;
  height: 0;
  border-top: 2px solid rgba(37,99,235,0.28);
  transform-origin: left center;
  pointer-events: none;
}

.prose-block {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 78ch;
  line-height: 1.7;
}
.prose-wide { max-width: none; }
.prose-block p { margin-bottom: 1em; }
.prose-block ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose-block li { margin-bottom: 0.55em; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-card .n {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.8rem; margin-bottom: 10px;
}
.step-card h3 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 0.9rem; }
.cta-band {
  margin: 8px 0 0;
  padding: 28px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0ea5e9 140%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.cta-band p { color: rgba(255,255,255,0.78); max-width: 48ch; font-size: 0.95rem; }
.cta-band .btn-primary {
  background: #fff;
  color: #0f172a !important;
  box-shadow: none;
}
.cta-band .btn-primary:hover { background: #e2e8f0; color: #0f172a !important; }
.cta-band .cta-ghost {
  border-color: rgba(255,255,255,.35) !important;
  color: #fff !important;
}
.cta-band .cta-ghost:hover { background: rgba(255,255,255,.08); }
.logo-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.logo-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

@media (max-width: 1100px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .feat-grid, .post-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .page-home .price-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-flow { min-height: 380px; height: auto; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin-left: 0; width: 100%; }
  .hero, .feat-grid, .price-grid, .post-grid, .stat-row, .trust-grid, .showcase, .steps { grid-template-columns: 1fr; }
  .hero { gap: 22px; padding: 28px 0 36px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-flow { min-height: 360px; height: auto; }
  .hero-flow .gnode { min-width: 100px; font-size: 10px; padding: 7px 10px; }
  .hero-flow .gnode.hide-sm { display: none; }
  .trust-row { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 40px 0; }
  .cta-band { padding: 22px 18px; }
}
@media (max-width: 700px) {
  .feat-grid, .post-grid, .trust-grid, .price-grid { grid-template-columns: 1fr; }
}

/* —— Trang chủ: hero ảnh thật + feature split —— */
.topnav-home {
  z-index: 200;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.hero-real {
  position: relative;
  margin: 2px 0 14px;
  min-height: min(72vh, 600px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.11);
  isolation: isolate;
}
.hero-real-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-real-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-real-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8, 16, 32, 0.82) 0%, rgba(8, 16, 32, 0.55) 42%, rgba(8, 16, 32, 0.18) 72%, rgba(8, 16, 32, 0.05) 100%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.15) 0%, transparent 40%, rgba(8, 16, 32, 0.35) 100%);
}
.hero-real-inner {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 48px);
  color: #f8fafc;
  animation: heroCopyIn 0.9s ease both;
}
.brand-hero {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #fff;
}
.hero-real h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
  max-width: 18ch;
}
.hero-real .lead {
  color: rgba(248, 250, 252, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 38ch;
}
.hero-real .actions .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  backdrop-filter: blur(6px);
}
.hero-real .actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section.section-feature {
  padding: 34px 0;
  border-top: none;
}
.section.section-alt {
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(226, 234, 243, 0.95);
}
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(18px, 2.8vw, 32px);
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-copy .sec-title { max-width: 20ch; }
.feature-copy .sec-desc { max-width: 44ch; margin-bottom: 12px; }
.feature-points {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.feature-points li {
  position: relative;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0.85;
}
.feature-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature-shot.is-in {
  opacity: 1;
  transform: translateY(0);
}
.feature-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.feature-shot.shot-portrait {
  max-width: min(440px, 100%);
  margin-inline: auto;
  width: 100%;
}
.feature-shot.shot-portrait img {
  object-fit: contain;
  object-position: top center;
  max-height: none;
  width: 100%;
}
.page-home .feature-split {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.page-home .feature-shot {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}
.page-home .feature-shot img {
  image-rendering: auto;
}

.steps-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.steps-clean article {
  padding: 8px 4px 0;
  border-top: 2px solid var(--blue);
}
.steps-clean .n {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin: 12px 0 8px;
}
.steps-clean h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.steps-clean p {
  color: var(--muted);
  font-size: 0.93rem;
}
.trust-grid-compact { margin-top: 22px; grid-template-columns: repeat(4, 1fr); }

.trust-strip {
  border-block: 1px solid rgba(226, 234, 243, 0.95);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}
.trust-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.trust-pill-icon { font-size: 1rem; line-height: 1; }

.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 0;
  padding: 0;
}
.hero-highlights li {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}

.footer-home {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  text-align: left;
  margin-top: 20px;
  padding-block: 12px 8px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.page-home .footer-brand strong,
.footer-home .footer-brand strong {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}
.page-home .footer-brand em,
.footer-home .footer-brand .brand-accent { font-style: normal; color: var(--blue); }
.footer-copy { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .footer-home {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding-block: 12px 6px;
  }
  .footer-brand { justify-content: center; }
}

.sitemap-page { padding: 28px 0 40px; }
.sitemap-block { margin-top: 28px; }
.sitemap-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.sitemap-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}
.sitemap-list a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-page .sec-desc a { color: var(--blue); font-weight: 600; }

/* Kiến thức — đồng bộ tech với trang chủ */
.knowledge-page {
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
.knowledge-page .sec-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.knowledge-page h1,
.knowledge-page h2,
.knowledge-page h3,
.knowledge-page .knowledge-feature-copy h2,
.knowledge-page .knowledge-related h2,
.knowledge-page .knowledge-article-head h1 {
  font-family: var(--font);
  letter-spacing: -0.03em;
}
.topnav-site { padding-bottom: 8px; }

.knowledge-hero-tech {
  position: relative;
  margin: 4px 0 20px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(31, 95, 214, 0.12), transparent 62%),
    linear-gradient(165deg, #0b1220 0%, #111827 100%);
}
.knowledge-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 20% 40%, #000 15%, transparent 75%);
  pointer-events: none;
}
.knowledge-hero-tech .knowledge-hero-inner {
  position: relative;
  z-index: 1;
}
.knowledge-hero-tech .sec-label { color: #93c5fd; }
.knowledge-hero-tech h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: #fff;
  max-width: 22ch;
  margin: 8px 0 10px;
}
.knowledge-hero-tech .sec-desc {
  color: rgba(226, 232, 240, 0.8);
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}
.knowledge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}
.knowledge-filters input,
.knowledge-filters select {
  flex: 1 1 180px;
  min-width: 0;
}
.knowledge-feature {
  border-radius: 14px;
}
.knowledge-card {
  border-radius: 12px;
}
.knowledge-kicker {
  font-family: var(--mono);
  font-weight: 500;
}

/* Nút gọi / Zalo / Telegram góc màn hình — 3 icon tròn bằng nhau */
.contact-float-stack {
  --cf-size: 40px;
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.phone-float,
.zalo-float,
.telegram-float {
  box-sizing: border-box;
  display: block;
  flex: 0 0 var(--cf-size);
  width: var(--cf-size) !important;
  height: var(--cf-size) !important;
  min-width: var(--cf-size);
  min-height: var(--cf-size);
  max-width: var(--cf-size);
  max-height: var(--cf-size);
  padding: 0;
  margin: 0;
  background: transparent;
  text-decoration: none;
  line-height: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.phone-float:hover,
.zalo-float:hover,
.telegram-float:hover {
  transform: translateY(-2px) scale(1.04);
}
.contact-float-icon,
.zalo-float-icon {
  display: block;
  width: var(--cf-size) !important;
  height: var(--cf-size) !important;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  box-shadow: none;
  /* bóng mềm, tránh viền sắc */
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.14)) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.06));
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@media (max-width: 640px) {
  .contact-float-stack {
    --cf-size: 40px;
    right: 14px;
    bottom: 32px;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .trust-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

.cta-band-photo {
  background:
    linear-gradient(120deg, rgba(12, 21, 36, 0.94), rgba(22, 73, 173, 0.88)),
    url("/assets/screens/screen-03.jpg") center / cover;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-real { min-height: min(72vh, 560px); }
  .hero-real-shade {
    background:
      linear-gradient(180deg, rgba(8, 16, 32, 0.78) 0%, rgba(8, 16, 32, 0.55) 55%, rgba(8, 16, 32, 0.72) 100%);
  }
  .hero-real h1 { max-width: none; }
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .steps-clean { grid-template-columns: 1fr; gap: 18px; }
  .feature-shot.shot-portrait { max-width: 100%; }
}
.pay-wait {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  color: #1e40af;
  font-weight: 650;
  font-size: 0.92rem;
}
.pay-wait[hidden] { display: none !important; }
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
}
.pay-modal-overlay[hidden] { display: none !important; }
.pay-modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.pay-modal-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 0 28px 8px 0;
  letter-spacing: -0.02em;
}
.pay-modal-desc { margin: 0 0 16px; font-size: 0.9rem; }
.pay-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pay-modal-close:hover { background: #e2e8f0; color: var(--ink); }
.pay-modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.pay-modal-qr {
  flex: 0 0 auto;
  text-align: center;
}
.pay-modal-qr img {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: block;
}
.pay-modal-qr .sec-desc { margin-top: 8px; font-size: 0.85rem; }
.pay-modal-info {
  flex: 1 1 180px;
  display: grid;
  gap: 10px;
}
.pay-modal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}
.pay-modal-row span:first-child { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.pay-modal-row code {
  display: block;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  word-break: break-all;
}
.pay-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.pending-order-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 12px;
  font-size: 0.92rem;
}
.pending-order-banner[hidden] { display: none !important; }
.pay-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #bfdbfe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: paySpin 0.75s linear infinite;
  flex-shrink: 0;
}
.pay-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
}
.pay-success-overlay[hidden] { display: none !important; }
.pay-success-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.pay-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 800;
}
.pay-success-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.pay-success-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@keyframes paySpin {
  to { transform: rotate(360deg); }
}

.account-auth-badge {
  display: inline-block;
  margin: 4px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}
.account-hint {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
}
.account-hint a {
  color: var(--blue);
  font-weight: 700;
}

/* —— Trang chủ v2: tech, gọn, bảng giá lên trên —— */
.page-home {
  --display: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  padding-bottom: 28px;
}
.page-home .brand,
.page-home .sec-title,
.page-home h1,
.page-home h2,
.page-home h3,
.page-home .price-card h3,
.page-home .price-card .price,
.page-home .steps-clean .n {
  font-family: var(--font);
  letter-spacing: -0.03em;
}
.page-home .sec-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.page-home .section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.page-home .section-tight {
  padding-top: 8px;
  border-top: none;
}

.hero-tech {
  position: relative;
  margin: 4px 0 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(680px 320px at 0% 0%, rgba(31, 95, 214, 0.14), transparent 62%),
    radial-gradient(520px 280px at 100% 100%, rgba(11, 126, 181, 0.1), transparent 58%),
    linear-gradient(165deg, #0b1220 0%, #111827 48%, #0f172a 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.hero-tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-tech-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.hero-tech-copy { color: #f1f5f9; max-width: 36rem; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 12px;
}
.hero-tech h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  max-width: 22ch;
}
.hero-tech .lead {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 46ch;
}
.hero-tech .actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
}
.hero-tech .actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.hero-stats li {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.75);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
}
.hero-stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-tech-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hero-tech-shot.is-in {
  opacity: 1;
  transform: none;
}
.hero-tech-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.trust-strip-tech {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}
.trust-strip-tech .trust-strip-inner {
  padding: 12px var(--pad);
  justify-content: space-between;
}
.trust-strip-tech .trust-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  gap: 8px;
}
.trust-strip-tech .trust-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  display: inline-block;
}

.section-intro { border-top: none; padding-top: 32px; }
.intro-lead {
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 18px;
}
.intro-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.intro-pills span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head-row .sec-desc { margin-bottom: 0; max-width: 52ch; }
.section-pricing-home { padding-top: 32px; }
.section-pricing-home .price-grid { margin-top: 0; }
.page-home .price-card {
  border-radius: 12px;
  padding: 22px 18px;
}
.page-home .price-card .price { font-size: 1.65rem; }

.dl-box-tech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fc 100%);
  border-color: #cbd5e1;
}

.section-features-home .sec-desc { margin-bottom: 22px; }
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.showcase.is-in {
  opacity: 1;
  transform: none;
}
.showcase-reverse { direction: rtl; }
.showcase-reverse > * { direction: ltr; }
.showcase-copy h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.showcase-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.showcase-points {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.showcase-points li {
  position: relative;
  padding-left: 1em;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.showcase-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.showcase-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}
.showcase-shot img { width: 100%; height: auto; display: block; }

.feat-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.feat-cell {
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}
.feat-cell h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.feat-cell p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.steps-compact { margin-top: 16px; gap: 14px; }
.steps-compact article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.steps-compact .n {
  font-family: var(--mono) !important;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.steps-compact h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.steps-compact p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.section-trust-home .trust-card {
  border-radius: 12px;
  padding: 18px 16px;
}
.page-home .trust-grid-compact {
  margin-top: 16px;
}

.cta-band-tech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background:
    linear-gradient(135deg, rgba(12, 21, 36, 0.97) 0%, rgba(22, 73, 173, 0.92) 100%);
  color: #f8fafc;
}
.cta-band-tech h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.cta-band-tech p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.9rem;
  max-width: 48ch;
}
.cta-band-tech .cta-ghost {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  background: transparent !important;
}

.changelog-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.changelog-compact .change-item {
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.changelog-meta { margin-top: 12px !important; font-size: 0.88rem; }

@media (max-width: 960px) {
  .hero-tech-inner,
  .showcase,
  .showcase-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .feat-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-tech h1 { max-width: none; }
  .trust-strip-tech .trust-strip-inner { justify-content: center; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .feat-matrix { grid-template-columns: 1fr; }
  .changelog-compact { grid-template-columns: 1fr; }
  .section-head-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-real-bg img,
  .hero-real-inner,
  .feature-shot,
  .hero-tech-shot,
  .showcase { animation: none !important; transition: none !important; }
  .feature-shot,
  .hero-tech-shot,
  .showcase { opacity: 1; transform: none; }
  .pay-spinner { animation: none; border-top-color: var(--blue); }
}
