/* =========================================================
   1888.BIZ – Prototype giao diện
   Một hệ thống màu / font / nút dùng chung cho toàn site.
   Mỗi dịch vụ chỉ đổi màu nhận diện qua class .t-smm / .t-acc / .t-ads
   ========================================================= */
:root {
  --navy: #0b1530;
  --navy-2: #13214a;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e6eaf2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --hdr-bg: rgba(255, 255, 255, .94);
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-soft: #eef4ff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px -16px rgba(15, 23, 42, .28);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* Màu nhận diện theo dịch vụ */
.t-smm { --c: #2563eb; --c-ink: #1d4ed8; --c-soft: #eef4ff; --c-grad: linear-gradient(135deg, #0a1842 0%, #1e3a8a 55%, #2563eb 100%); }
.t-acc { --c: #7c3aed; --c-ink: #6d28d9; --c-soft: #f4effe; --c-grad: linear-gradient(135deg, #190d3b 0%, #4c1d95 55%, #7c3aed 100%); }
.t-ads { --c: #059669; --c-ink: #047857; --c-soft: #e9f9f2; --c-grad: linear-gradient(135deg, #04231f 0%, #065f46 55%, #059669 100%); }

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Ô icon thương hiệu */
.bi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.bi svg { width: 64%; height: 64%; }
.bi.round { border-radius: 50%; }
.bi-google { box-shadow: inset 0 0 0 1px var(--line); }
.bi-zalo svg { width: 92%; height: 92%; }

/* Ô icon dịch vụ */
.svc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--c, var(--brand)); color: #fff; flex: none; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; transition: background .15s, box-shadow .15s, transform .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c, var(--brand)); color: #fff; box-shadow: 0 8px 18px -8px var(--c, var(--brand)); }
.btn-primary:hover { background: var(--c-ink, var(--brand-ink)); }
.btn-light { background: #fff; color: var(--c-ink, var(--brand-ink)); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-light:hover { background: #f1f5f9; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Thanh thông báo ---------- */
.ticker { background: var(--navy); color: #cbd5e1; font-size: 13px; }
.ticker .wrap { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ticker-tag { flex: none; background: #ef4444; color: #fff; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.ticker a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.ticker a:hover { color: #fff; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--brand); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 20px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px; font-weight: 500; font-size: 15px; color: var(--text); }
.nav-link:hover, .nav-link.on { color: var(--ink); background: var(--bg); }
.nav-link.on { font-weight: 600; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.dd-item:hover { background: var(--bg); }
.dd-item b, .mnav-svc b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.dd-item small, .mnav-svc small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mkt-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink); }
.mkt-btn:hover { border-color: #cbd5e1; }
.mkt-name { display: none; }
.mkt-lang { font-size: 12px; font-weight: 700; color: var(--muted); }
.mkt-btn .i { color: var(--muted); }
.menu-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.mnav { display: none; border-top: 1px solid var(--line); background: var(--card); padding: 4px 16px 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.hdr.open .mnav { display: block; }
.mnav > a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mnav > a:last-child { border-bottom: 0; }
.mnav-label { padding: 14px 4px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mnav .mnav-svc { border-bottom: 0; padding: 8px 4px; }
@media (min-width: 600px) { .mkt-name { display: inline; } }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .hdr.open .mnav { display: none; }
}

/* ---------- Hero trang chủ ---------- */
.hero, .gate {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .55), transparent 65%),
    radial-gradient(520px 280px at 88% 35%, rgba(124, 58, 237, .32), transparent 70%),
    radial-gradient(520px 280px at 8% 75%, rgba(5, 150, 105, .24), transparent 70%),
    var(--navy);
}
.hero::before, .gate::before, .lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero { text-align: center; padding: 32px 0 96px; }
@media (min-width: 768px) { .hero { padding: 48px 0 128px; } }
@media (max-width: 767px) {
  .kicker { margin-top: 16px; font-size: 11px; }
  .hero-cta { margin-top: 22px; flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; min-height: 52px; }
  .hero .hero-cta .btn-ghost { display: none; } /* trên điện thoại: thông báo đã có ở thanh chạy phía trên */
}
.hero .wrap { position: relative; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 500; }
.chip button { color: #fff; font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.chip button:hover { background: rgba(255, 255, 255, .24); }
.kicker { margin-top: 22px; font-size: 12px; letter-spacing: .2em; font-weight: 700; color: #93c5fd; }
.hero h1 { color: #fff; font-size: clamp(44px, 10vw, 80px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.hero-sub { font-size: clamp(16px, 2.4vw, 20px); color: #cbd5e1; margin-top: 12px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Cổng dịch vụ (3 thẻ) ---------- */
.gw { margin-top: -88px; position: relative; z-index: 2; }
.gw-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .gw-grid { grid-template-columns: repeat(3, 1fr); } }
.gw-card { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.gw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gw-top { background: var(--c-grad); color: #fff; padding: 22px; display: flex; align-items: center; gap: 14px; }
.gw-top .svc-ico { background: rgba(255, 255, 255, .16); width: 52px; height: 52px; border-radius: 14px; }
.gw-top .svc-ico .i { width: 26px; height: 26px; }
.gw-top h3 { color: #fff; font-size: 21px; }
.gw-top small { color: rgba(255, 255, 255, .82); font-size: 14px; }
.gw-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.gw-domain { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-ink); background: var(--c-soft); padding: 4px 10px; border-radius: 999px; font-weight: 600; align-self: flex-start; }
.gw-body .btn { margin-top: auto; }
.gw-arrow { display: none; }
/* Điện thoại: thẻ dịch vụ gọn thành 1 hàng, 3 dịch vụ nằm gọn trong 1 màn hình, bấm 1 lần */
@media (max-width: 767px) {
  .gw { margin-top: -64px; }
  .gw-grid { gap: 10px; }
  .gw-card { border-radius: 16px; }
  .gw-top { padding: 14px 14px 14px 14px; gap: 12px; }
  .gw-top .svc-ico { width: 46px; height: 46px; border-radius: 12px; }
  .gw-top h3 { font-size: 18px; }
  .gw-top small { font-size: 13px; }
  .gw-arrow { display: grid; place-items: center; margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
  .gw-body { display: none; }
}

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.trust-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.trust-item .i { color: var(--brand); }

/* ---------- Section chung ---------- */
.sec { padding: 56px 0; scroll-margin-top: 72px; }
@media (min-width: 768px) { .sec { padding: 72px 0; } }
.sec-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 24px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-head h2, .h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand); font-size: 14px; white-space: nowrap; padding: 6px 0; }
.lead { font-size: 17px; margin-top: 12px; }

/* Giới thiệu */
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 56px; } }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.point { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; }
.point .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* Thông báo */
.news { display: grid; gap: 10px; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; align-items: center; }
a.news-item:hover { border-color: #cbd5e1; }
.news-item h3 { font-size: 16px; font-weight: 700; }
.news-item p { font-size: 14px; color: var(--muted); grid-column: 2; }
.news-date { font-size: 13px; color: var(--muted); grid-column: 2; }
.tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-maintenance { background: #fee2e2; color: #b91c1c; }
.tag-update { background: #dbeafe; color: #1d4ed8; }
.tag-notice { background: #e0e7ff; color: #4338ca; }
.tag-promo { background: #fef3c7; color: #b45309; }
@media (min-width: 768px) {
  .news-item { grid-template-columns: 96px 1fr auto; padding: 16px 20px; }
  .news-date { grid-column: 3; grid-row: 1 / span 2; }
}

/* Blog */
.cards3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 16 / 8; background: var(--c-grad); display: grid; place-items: center; color: #fff; }
.post-thumb .i { width: 44px; height: 44px; stroke-width: 1.6; opacity: .92; }
.post-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.post-meta b { color: var(--c-ink); }
.post h3 { font-size: 17px; }
.post p { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #94a3b8; padding: 48px 0 96px; font-size: 14px; }
@media (min-width: 768px) { .ftr { padding-bottom: 28px; } }
.ftr-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ftr-brand { grid-column: auto; } }
.ftr .logo { color: #fff; }
.ftr .logo span { color: #60a5fa; }
.ftr-kicker { font-size: 11px; letter-spacing: .18em; font-weight: 700; color: #64748b; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.ftr ul { display: grid; gap: 8px; }
.ftr a:hover, .flink:hover { color: #fff; }
.flink { color: inherit; font-size: inherit; text-align: left; }
.mkt-btn.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e2e8f0; margin-top: 8px; }
.ftr-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 13px; }
.ftr-social { display: flex; gap: 8px; }
.ftr-social .bi { width: 34px; height: 34px; }

.to-top { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Landing: breadcrumb + hero ---------- */
.crumb { background: var(--card); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.crumb .wrap { display: flex; align-items: center; gap: 6px; min-height: 44px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); }
.crumb .i { width: 14px; height: 14px; }
.crumb b { color: var(--ink); font-weight: 600; }

/* Thông báo riêng của dịch vụ, hiện ngay đầu landing */
.lp-notice { background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 14px; color: #78350f; }
.lp-notice .wrap { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.lp-notice b { color: #451a03; }
.lp-notice-desc { color: #92400e; }

.lp-hero { position: relative; overflow: hidden; color: #fff; background: var(--c-grad); padding: 44px 0 104px; }
.lp-hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .lp-hero { padding: 64px 0 120px; } .lp-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; }
.badge .flag { width: 18px; height: 12px; }
.badge-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .35); }
.lp-hero h1 { color: #fff; font-size: clamp(32px, 6vw, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-top: 16px; }
.lp-hero .lead { color: rgba(255, 255, 255, .86); max-width: 560px; }
.checks { margin-top: 20px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ck { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.ck .i { width: 14px; height: 14px; stroke-width: 3; }
.lp-hero .hero-cta { justify-content: flex-start; }
.lp-mini { display: flex; gap: 8px; margin-top: 22px; }
.lp-mini .bi { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.lp-visual { display: none; }
@media (min-width: 960px) { .lp-mini { display: none; } .lp-visual { display: block; } }
.vis-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; padding: 24px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.vis-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.vis-head .svc-ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--c); }
.vis-head b { display: block; color: #fff; font-size: 17px; }
.vis-head small { color: rgba(255, 255, 255, .75); font-size: 13px; }
.vis-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 999px; }
.vis-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.vis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vis-grid .bi { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.vis-grid .bi-more { background: rgba(255, 255, 255, .12); color: #fff; }
.vis-grid .bi-more .i { width: 40%; height: 40%; }

/* Dải số liệu */
.stats { margin-top: -64px; position: relative; z-index: 2; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--c-soft); color: var(--c); display: grid; place-items: center; flex: none; }
.stat b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.stat small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (min-width: 560px) { .stat { flex-direction: row; align-items: center; gap: 12px; } }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 22px 20px; }
  .stat:nth-child(-n+2) { border-bottom: 0; }
  .stat:not(:last-child) { border-right: 1px solid var(--line); }
}

/* Nền tảng */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 768px) { .plats { grid-template-columns: repeat(8, 1fr); gap: 14px; } }
.plat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.3; }
.plat .bi { width: 44px; height: 44px; }
.plat-other .bi { background: var(--bg); color: var(--muted); }

/* Thẻ tính năng / chính sách */
.feats { display: grid; gap: 14px; }
@media (min-width: 560px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feats { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sec-alt .feat { background: var(--bg); border-color: transparent; }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--c-soft); color: var(--c); display: grid; place-items: center; }
.sec-alt .feat .ico { background: var(--card); }
.feat h3 { font-size: 17px; }
.feat p { font-size: 14px; color: var(--muted); }

/* Quy trình */
.steps { display: grid; gap: 12px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 5px var(--c-soft); }
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.step p b { color: var(--c-ink); }
@media (min-width: 768px) {
  .step { flex-direction: column; padding: 22px; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -18px; width: 18px; height: 2px; background: var(--c); opacity: .35; }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; } }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: var(--c); box-shadow: 0 0 0 3px var(--c-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--c); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .ans { padding: 0 18px 16px; font-size: 15px; }

/* CTA cuối trang */
.sec-final { padding-top: 0; }
.final { position: relative; overflow: hidden; background: var(--c-grad); border-radius: 24px; color: #fff; padding: 32px 22px; display: grid; gap: 22px; align-items: center; }
.final::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
@media (min-width: 900px) { .final { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.final h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); }
.final p { color: rgba(255, 255, 255, .85); margin-top: 8px; }
.final-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final-contacts { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.final-contacts span { margin-right: 4px; }
.final-contacts .bi { width: 38px; height: 38px; }

/* ---------- Trang phụ: thông báo, blog, bài viết ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding: 40px 0; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.page-hero p { color: #cbd5e1; margin-top: 6px; }
.article { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 20px; }
@media (min-width: 768px) { .article { padding: 44px 52px; } }
.article h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 10px; }
.article .lead { color: var(--muted); }
.article .body { margin-top: 24px; display: grid; gap: 16px; font-size: 17px; }
.note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.related { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--c-soft); color: var(--ink); }
.related small { display: block; color: var(--muted); font-size: 12px; }
.related b { display: block; font-size: 15px; }
.related > .i { margin-left: auto; color: var(--c); }

/* ---------- Bảng chọn thị trường ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.picker { position: relative; z-index: 1; background: var(--card); color: var(--text); border-radius: 24px; padding: 28px 18px 22px; width: 100%; max-width: 560px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); text-align: center; }
@media (min-width: 600px) { .picker { padding: 36px 36px 26px; } }
.picker .logo { font-size: 28px; }
.picker h2 { font-size: 22px; margin-top: 14px; }
.picker .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.mkts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.mkt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 4px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, background .15s, box-shadow .15s; }
.mkt:hover { border-color: #bfdbfe; }
.mkt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.mkt .flag { width: 48px; height: 32px; border-radius: 6px; }
.mkt b { color: var(--ink); font-size: 15px; line-height: 1.25; }
.mkt small { color: var(--muted); font-size: 12px; }
.mkt-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; }
.mkt-check .i { width: 12px; height: 12px; stroke-width: 3.5; }
.mkt.on .mkt-check { display: grid; }
.picker h3 { font-size: 15px; margin-top: 22px; }
.langs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--card); }
.lang:hover { border-color: #bfdbfe; }
.lang.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.lang code { font-family: inherit; font-size: 11px; font-weight: 800; background: var(--bg); padding: 3px 7px; border-radius: 999px; color: var(--muted); }
.lang.on code { background: #dbeafe; color: var(--brand-ink); }
.remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.picker .btn-block { margin-top: 16px; }
.picker-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.picker-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.picker-close:hover { background: var(--bg); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Popup thông báo */
.popup { position: relative; background: var(--card); border-radius: 22px; padding: 30px 22px 22px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.popup-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.popup-ico .i { width: 26px; height: 26px; }
.popup .tag { justify-self: auto; }
.popup h2 { font-size: 20px; }
.popup p { color: var(--muted); }
.popup .btn { margin-top: 8px; }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(11, 21, 48, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; width: max-content; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast code { color: #93c5fd; word-break: break-all; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Bổ sung cho bản chính thức (Laravel)
   ========================================================= */
.gw-top .h3 { color: #fff; font-size: 21px; margin: 0; line-height: 1.25; }
@media (max-width: 767px) { .gw-top .h3 { font-size: 18px; } }

/* Bảng chọn dùng radio thật (chạy được cả khi tắt JS) */
.mkt, .lang { cursor: pointer; }
.mkt input, .lang input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mkt:has(input:checked), .mkt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.mkt:has(input:checked) .mkt-check { display: grid; }
.lang:has(input:checked), .lang.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.mkt:has(input:focus-visible), .lang:has(input:focus-visible) { outline: 3px solid #93c5fd; outline-offset: 2px; }
.gate { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; }
.gate-links { position: relative; z-index: 1; display: flex; gap: 16px; font-size: 13px; }
.gate-links a { color: rgba(255, 255, 255, .6); }
.gate-links a:hover { color: #fff; }

.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-cover { width: 100%; border-radius: 14px; margin-top: 20px; }
.prose h2, .prose h3 { margin-top: 12px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; color: var(--muted); font-weight: 600; }
.btn-outline { border: 1px solid var(--line); background: var(--card); color: var(--ink); }

/* Ảnh nền hero trang chủ (tải trong Admin) */
.hero.hero-img { background: linear-gradient(180deg, rgba(11, 21, 48, .72), rgba(11, 21, 48, .9)), var(--hero-img) center / cover no-repeat, var(--navy); }

/* Ảnh minh hoạ landing */
.lp-photo { display: block; }
.lp-photo img { width: 100%; height: auto; max-height: 460px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 959px) { .lp-photo img { max-height: 260px; } }

/* Banner */
.banners { margin-top: 20px; display: grid; gap: 14px; }
.banner { display: block; border-radius: 18px; overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.banner img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 1; object-fit: cover; }
a.banner { transition: transform .2s, box-shadow .2s; }
a.banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (max-width: 640px) {
  .banners.multi { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .banners.multi .banner { scroll-snap-align: start; }
  .banner img { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) { .banners.multi { grid-template-columns: 1fr 1fr; } .banners.multi .banner img { aspect-ratio: 2 / 1; } }
.sec-banners { padding-bottom: 0; }

/* Hỏi đồng ý cookie */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; font-size: 14px; }
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { min-height: 42px; padding: 0 18px; }
