/* =========================================================
   1888.BIZ – lớp giao diện mới (tải sau site.css)
   Nền tech/agency, header căn giữa, sáng/tối, nút chat gộp,
   popup mẫu, CTA, trang liên hệ, công cụ.
   ========================================================= */

/* ---------- Giao diện tối ---------- */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d1f; --card: #0f1830; --ink: #f1f5f9; --text: #b6c2d6; --muted: #8393ad; --line: #1f2c4a;
  --brand: #4f8cff; --brand-ink: #7aa7ff; --brand-soft: #13224a; --hdr-bg: rgba(8, 14, 32, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 18px 40px -16px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .t-smm { --c-soft: rgba(37, 99, 235, .2); --c-ink: #7aa7ff; }
:root[data-theme="dark"] .t-acc { --c-soft: rgba(124, 58, 237, .22); --c-ink: #b794ff; }
:root[data-theme="dark"] .t-ads { --c-soft: rgba(5, 150, 105, .22); --c-ink: #34d399; }
:root[data-theme="dark"] .toast { background: #1e293b; }
:root[data-theme="dark"] .note, :root[data-theme="dark"] .lp-notice { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #fcd34d; }
:root[data-theme="dark"] .lp-notice b { color: #fde68a; }
:root[data-theme="dark"] .mkt-btn, :root[data-theme="dark"] .menu-btn { background: var(--card); }
:root[data-theme="dark"] .btn-outline { background: var(--card); }
:root[data-theme="dark"] .picker, :root[data-theme="dark"] .popup { border: 1px solid var(--line); }
body { transition: background-color .25s, color .25s; }

.theme-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.theme-btn:hover { border-color: #94a3b8; }
.theme-btn:active { transform: scale(.94); }
.th-sun, .th-moon { display: grid; place-items: center; }
.th-moon { display: none; }
:root[data-theme="dark"] .th-sun { display: none; }
:root[data-theme="dark"] .th-moon { display: grid; }

/* ---------- Thanh thông báo đầu trang: căn giữa ---------- */
.ticker .wrap { justify-content: center; text-align: center; }
.ticker a { text-align: center; }

/* ---------- Header: menu căn giữa ---------- */
.hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.hdr-in .logo { justify-self: start; }
.nav { justify-self: center; margin-left: 0; }
.hdr-right { justify-self: end; margin-left: 0; }
.nav-link { position: relative; }
.nav-link.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.dd-menu { left: 50%; transform: translateX(-50%); }
.hdr { box-shadow: 0 1px 0 rgba(15, 23, 42, .02); }

/* ---------- Nền tech / agency ---------- */
.tech { position: relative; overflow: hidden; isolation: isolate; }
.hero.tech::before, .gate.tech::before, .page-hero.tech::before { display: none; }
.hero-in { position: relative; z-index: 2; }
.tbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tbg-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.tbg-orb.o1 { width: 520px; height: 520px; left: -140px; top: -180px; background: #2563eb; animation: drift1 16s ease-in-out infinite alternate; }
.tbg-orb.o2 { width: 460px; height: 460px; right: -120px; top: 5%; background: #7c3aed; opacity: .42; animation: drift2 19s ease-in-out infinite alternate; }
.tbg-orb.o3 { width: 380px; height: 380px; left: 38%; bottom: -220px; background: #06b6d4; opacity: .32; animation: drift1 22s ease-in-out infinite alternate-reverse; }
.tbg-grid {
  position: absolute; inset: -56px 0 0 0;
  background-image: linear-gradient(rgba(125, 170, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 170, 255, .14) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 78%);
  animation: gridmove 9s linear infinite;
}
.tbg-scan { position: absolute; left: 0; right: 0; height: 160px; top: -160px; background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, .16), transparent); animation: scan 8s linear infinite; }
.tbg-float { position: absolute; opacity: .92; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .4)); }
.tbg-float .bi { width: 54px; height: 54px; border-radius: 16px; }
.tbg-float.f1 { left: 9%; top: 22%; animation-delay: -1s; }
.tbg-float.f2 { right: 10%; top: 18%; animation-delay: -3s; }
.tbg-float.f3 { left: 17%; bottom: 24%; animation-delay: -2s; }
.tbg-float.f4 { right: 18%; bottom: 28%; animation-delay: -4s; }
.tbg-float.f5 { left: 3%; top: 58%; animation-delay: -5s; }
.tbg-float.f6 { right: 4%; top: 52%; animation-delay: -.5s; }
.tbg-float.f5 .bi, .tbg-float.f6 .bi { width: 42px; height: 42px; border-radius: 13px; opacity: .8; }
@media (max-width: 899px) { .tbg-float.f5, .tbg-float.f6 { display: none; } .tbg-float .bi { width: 40px; height: 40px; border-radius: 12px; } .tbg-float.f1 { left: 4%; top: 12%; } .tbg-float.f2 { right: 4%; top: 10%; } .tbg-float.f3 { left: 5%; bottom: 14%; } .tbg-float.f4 { right: 5%; bottom: 16%; } }
@media (max-width: 560px) { .tbg-float { opacity: .5; } .tbg-float.f3, .tbg-float.f4 { display: none; } }
.page-hero .tbg-float, .page-hero .tbg-scan { display: none; }
@keyframes drift1 { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, 70px) scale(1.08); } }
@keyframes gridmove { to { transform: translateY(56px); } }
@keyframes scan { to { transform: translateY(900px); } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(2deg); } }

.hero.tech { background: linear-gradient(180deg, #060d24 0%, #0b1530 60%, #0e1a3d 100%); }
.hero.hero-img.tech { background: linear-gradient(180deg, rgba(6, 13, 36, .78), rgba(11, 21, 48, .92)), var(--hero-img) center / cover no-repeat, var(--navy); }
.gate.tech { background: linear-gradient(180deg, #060d24 0%, #0b1530 100%); }
.hero h1 { background: linear-gradient(95deg, #fff 20%, #a5c8ff 55%, #cfb8ff 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.hero .kicker { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(96, 165, 250, .12); border: 1px solid rgba(96, 165, 250, .28); }
.hero .btn-primary { background: linear-gradient(135deg, #2563eb, #6d4aff); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .8); }
.hero .btn-primary:hover { filter: brightness(1.08); }
.page-hero.tech { background: linear-gradient(180deg, #060d24, #0b1530); padding: 56px 0; text-align: center; }
.page-hero.tech h1 { background: linear-gradient(95deg, #fff 30%, #a5c8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero.tech p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Thẻ dịch vụ ---------- */
.gw-head { text-align: center; margin-bottom: 20px; }
.gw-head h2 { color: #fff; font-size: clamp(20px, 3vw, 26px); }
.gw-head p { color: #cbd5e1; margin-top: 4px; }
.gw-card { position: relative; }
.gw-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s; }
.gw-card:hover { box-shadow: 0 26px 50px -22px var(--c); }
.gw-card:hover::after { box-shadow: inset 0 0 0 1.5px var(--c); }
.gw-top { position: relative; overflow: hidden; }
.gw-top::before { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.gw-card:hover .gw-arrow { transform: translateX(3px); }
.trust-item { transition: transform .2s, border-color .2s; }
.trust-item:hover { transform: translateY(-2px); border-color: var(--brand); }

/* ---------- Hiện dần khi cuộn ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease, box-shadow .25s, border-color .2s; }
.gw-card.reveal { transition: opacity .6s ease, transform .25s ease, box-shadow .25s; }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(20px); }

/* ---------- Dải CTA ---------- */
.sec-cta { padding: 40px 0 8px; }
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff; padding: 34px 24px;
  display: grid; gap: 22px; align-items: center;
  background: radial-gradient(600px 260px at 85% 0%, rgba(167, 139, 250, .55), transparent 70%), linear-gradient(120deg, #0a1842 0%, #1e3a8a 50%, #5b3bd6 100%);
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .6);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000); mask-image: linear-gradient(100deg, transparent 25%, #000); pointer-events: none; }
.cta-glow { position: absolute; width: 320px; height: 320px; left: -90px; bottom: -160px; border-radius: 50%; background: #38bdf8; filter: blur(80px); opacity: .35; pointer-events: none; }
.cta-text, .cta-actions { position: relative; z-index: 1; }
.cta-text h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.cta-text p { color: rgba(255, 255, 255, .86); margin-top: 8px; max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { width: 100%; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px 52px; } .cta-actions { flex-direction: row; } .cta-actions .btn { width: auto; } }
.cta-band .btn-light { color: #1e3a8a; }

/* ---------- Dải số liệu + thẻ lợi ích ---------- */
.sec-tight { padding: 40px 0 8px; }
.statbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .statbar { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.statbar-i { text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.statbar-i b { display: block; font-size: clamp(28px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em; background: linear-gradient(120deg, var(--brand), #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.15; }
.statbar-i span { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sec-head.center { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.feats4 { display: grid; gap: 14px; }
@media (min-width: 600px) { .feats4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feats4 { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.feat-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.feat-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 24px 40px -24px var(--brand); }
.feat-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 12px 22px -10px rgba(79, 70, 229, .7); }
.feat-card h3 { font-size: 17px; }
.feat-card p { font-size: 14px; color: var(--muted); }
.sec-alt .feat-card { background: var(--bg); }
.ftr-note { font-size: 13px; color: #94a3b8; }

/* ---------- Nút chat CSKH gộp ---------- */
.fab { position: fixed; right: 14px; bottom: 14px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-row { display: flex; align-items: center; gap: 10px; }
.fab-toggle { position: relative; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -8px rgba(79, 70, 229, .85); transition: transform .15s; }
.fab-toggle:hover { transform: scale(1.06); }
.fab-toggle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(99, 102, 241, .6); animation: ring 2.4s ease-out infinite; pointer-events: none; }
.fab.open .fab-toggle::after { display: none; }
.fab-toggle .i { width: 26px; height: 26px; }
.fab-off, .fab.open .fab-on { display: none; }
.fab.open .fab-off { display: block; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: blink 2s ease-in-out infinite; }
.fab-dot { position: absolute; top: 3px; right: 3px; margin: 0; width: 13px; height: 13px; border: 2px solid #fff; box-shadow: none; }
.fab-panel { display: none; width: min(320px, calc(100vw - 28px)); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; }
.fab.open .fab-panel { display: block; animation: pop .2s ease-out; }
.fab-head { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: linear-gradient(135deg, #0a1842, #2563eb 70%, #6d4aff); }
.fab-head b { display: block; font-size: 16px; color: #fff; }
.fab-head small { display: flex; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .9); }
.fab-head-ico { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.fab-list { padding: 8px; display: grid; gap: 2px; }
.fab-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 13px; font-weight: 600; color: var(--ink); transition: background .15s; }
.fab-item:hover { background: var(--bg); }
.fab-item > span:not(.bi) { flex: 1; }
.fab-item .bi { width: 38px; height: 38px; }
.fab-item > .i:last-child { color: var(--muted); }
.fab-form .bi svg, .fab-form .bi .i { color: #fff; width: 20px; height: 20px; }
.fab-greet { position: relative; max-width: 270px; padding: 13px 32px 13px 15px; border-radius: 18px 18px 4px 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.45; animation: pop .3s ease-out; }
.fab-greet b { display: flex; align-items: center; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.fab-greet-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.fab-greet-x:hover { background: var(--bg); }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes blink { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .08); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (min-width: 768px) { .fab { right: 22px; bottom: 22px; } }

/* ---------- Popup thủ công ---------- */
.popup { max-width: 430px; background: var(--card); }
.popup-ico { margin-bottom: 2px; }
.popup-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.popup-notice .popup-tag { background: #fef3c7; color: #b45309; }
.popup h2 { color: var(--ink); font-size: 22px; line-height: 1.25; }
.popup-community h2 { font-size: 24px; }
.popup-body { color: var(--muted); font-size: 15px; }
.popup-img { width: calc(100% + 44px); margin: -30px -22px 6px; border-radius: 22px 22px 0 0; max-height: 220px; object-fit: cover; }
.popup-btns { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.popup .popup-btn-zalo { background: #0068ff; box-shadow: 0 10px 22px -10px #0068ff; }
.popup .popup-btn-telegram { background: #229ed9; box-shadow: 0 10px 22px -10px #229ed9; }
.popup .popup-btn-outline { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.popup .btn { margin-top: 0; }
.popup-later { margin-top: 2px; padding: 8px 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.popup-later:hover { color: var(--ink); }
.picker-close { color: var(--muted); }

/* ---------- Trang liên hệ ---------- */
.muted { color: var(--muted); }
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.contact-side p.muted { margin-top: 6px; }
.ch-cards { display: grid; gap: 10px; margin-top: 16px; }
.ch-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ch-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.ch-card b { display: block; color: var(--ink); line-height: 1.3; }
.ch-card small { display: block; color: var(--muted); font-size: 13px; }
.ch-card > .i:last-child { margin-left: auto; color: var(--muted); }
.info-list { display: grid; gap: 14px; margin-top: 22px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 600; }
.info-list li > .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.info-list small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.info-list a:hover { color: var(--brand); }
.contact-side .note { margin-top: 18px; }
.contact-form, .tool-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 20px; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }

/* ---------- Trang công cụ ---------- */
.tools-note { display: flex; align-items: center; gap: 8px; }
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 18px; }
.tool-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; transition: .15s; }
.tool-tab .i { width: 18px; height: 18px; }
.tool-tab:hover { border-color: var(--brand); }
.tool-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px var(--brand); }
.tool-panel[hidden] { display: none; }
.tool-row { display: grid; gap: 12px; }
@media (min-width: 700px) { .tool-row { grid-template-columns: 160px 1fr; } }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-actions .btn, .tfa-out .btn { min-height: 42px; padding: 0 16px; }
.tfa-out { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px dashed var(--line); }
.tfa-out small { color: var(--muted); font-weight: 600; }
.tfa-out b { display: block; font-size: clamp(32px, 7vw, 44px); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.2; }
.tfa-ring { position: relative; flex: 1; min-width: 140px; height: 8px; border-radius: 99px; background: var(--line); }
.tfa-ring i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #7c3aed); transition: width .5s linear; }
.tfa-ring span { position: absolute; right: 0; top: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 12px; }
.tbl-wrap:empty, .tbl:empty { display: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th { position: sticky; top: 0; background: var(--bg); color: var(--ink); font-weight: 700; }
.tbl td:first-child, .tbl th:first-child { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .tbg-orb, .tbg-grid, .tbg-scan, .tbg-float, .fab-toggle::after, .live-dot { animation: none !important; }
  .js-reveal .reveal:not(.in) { opacity: 1; transform: none; }
}

/* Landing dịch vụ: cùng ngôn ngữ nền với trang chủ, giữ màu nhận diện của dịch vụ */
.lp-hero { isolation: isolate; }
.lp-hero .tbg-orb, .lp-hero .tbg-float { display: none; }
.lp-hero::before { display: none; }
.lp-hero .lp-hero-grid { z-index: 2; }
.lp-hero .tbg-grid { background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px); }

/* =========================================================
   Đợt 2: hero 2 cột + mô phỏng hệ thống, thẻ dịch vụ lớn,
   nhãn mục (eyebrow), thẻ đánh số kiểu cmsnt
   ========================================================= */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-bottom: 12px; border-radius: 999px; border: 1px solid rgba(37, 99, 235, .25); background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sec-head.center h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; }

/* Hero 2 cột */
.hero.hero2 { text-align: left; padding: 40px 0 64px; }
@media (min-width: 768px) { .hero.hero2 { padding: 64px 0 96px; } }
.hero2-grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero2-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero2 .kicker { margin-top: 14px; }
.hero.hero2 h1 { margin-top: 14px; font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.035em; background: none; -webkit-text-fill-color: #fff; color: #fff; }
.hero2 h1 span { display: block; }
.hero2 h1 .grad { background: linear-gradient(95deg, #60a5fa 0%, #a78bfa 55%, #f0abfc 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero2-sub { margin-top: 16px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 700; color: #e2e8f0; }
.hero2-lead { margin-top: 10px; max-width: 560px; color: #9fb0cc; font-size: 15.5px; }
.hero2 .hero-cta { justify-content: flex-start; margin-top: 26px; }
.hero2-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.hero2-checks li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #cbd5e1; font-weight: 500; }
.hero2-checks .i { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: rgba(34, 197, 94, .18); color: #4ade80; stroke-width: 3; }
@media (max-width: 767px) {
  .hero.hero2 { text-align: center; }
  .hero2 .hero-cta, .hero2-checks { justify-content: center; }
  .hero2-lead { margin-left: auto; margin-right: auto; }
  .hero.hero2 .hero-cta .btn-ghost { display: inline-flex; }
}

/* Mô phỏng hệ thống bên phải */
.hero2-visual { position: relative; min-height: 400px; display: none; }
@media (min-width: 1000px) { .hero2-visual { display: block; } }
.dash { position: absolute; left: 0; top: 30px; width: 78%; border-radius: 18px; background: rgba(15, 26, 58, .78); border: 1px solid rgba(148, 178, 255, .18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(148, 178, 255, .12); }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.dash-bar i:nth-child(1) { background: #f87171; }
.dash-bar i:nth-child(2) { background: #fbbf24; }
.dash-bar i:nth-child(3) { background: #4ade80; }
.dash-bar span { margin-left: 10px; flex: 1; font-size: 11.5px; color: #94a3b8; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 3px 10px; }
.dash-body { padding: 14px; display: grid; gap: 10px; }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.dash-row .svc-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--c-grad); }
.dash-row .svc-ico .i { width: 18px; height: 18px; }
.dash-name { flex: 1; min-width: 0; }
.dash-name b { display: block; color: #fff; font-size: 14px; }
.dash-name small { display: block; color: #8ea2c4; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-ok { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; color: #4ade80; }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 10px 6px 0; }
.dash-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60a5fa, rgba(124, 58, 237, .35)); animation: grow 1.2s ease-out both; transform-origin: bottom; }
.phone { position: absolute; right: 0; top: 0; width: 210px; padding: 16px 14px 22px; border-radius: 34px; background: linear-gradient(180deg, #0f1a3a, #0b1530); border: 6px solid #1e2a4d; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); display: grid; gap: 10px; animation: floaty 7s ease-in-out -3.5s infinite; }
.phone-notch { width: 70px; height: 16px; border-radius: 0 0 12px 12px; background: #1e2a4d; margin: -16px auto 4px; }
.phone-logo { text-align: center; font-weight: 900; font-size: 20px; color: #fff; letter-spacing: -.02em; margin-bottom: 4px; }
.phone-logo span { color: #60a5fa; }
.phone-tile { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; background: var(--c-grad); color: #fff; box-shadow: 0 10px 22px -12px var(--c); }
.phone-tile b { font-size: 14px; color: #fff; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #e2e8f0; background: rgba(15, 26, 58, .9); border: 1px solid rgba(148, 178, 255, .22); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: floaty 6s ease-in-out infinite; }
.chip-live { right: 150px; top: -14px; }
.chip-mkts { left: 8%; bottom: 0; animation-delay: -2s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes grow { from { transform: scaleY(.1); } }
.hero2 .tbg-float.f1 { left: 46%; top: 8%; }
.hero2 .tbg-float.f3 { left: 44%; bottom: 10%; }
@media (max-width: 999px) { .hero2 .tbg-float.f1 { left: 4%; top: 10%; } .hero2 .tbg-float.f3 { left: 5%; bottom: 10%; } }

/* Thẻ dịch vụ lớn */
.svc-sec { padding-top: 64px; }
.svc3 { display: grid; gap: 16px; }
@media (min-width: 900px) { .svc3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.svc-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 26px 24px 24px; border-radius: 24px; color: #fff; background: var(--c-grad); box-shadow: 0 24px 48px -28px var(--c); }
.svc-card.reveal { transition: opacity .6s ease, transform .25s ease, box-shadow .25s; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000); mask-image: linear-gradient(120deg, transparent 35%, #000); }
.svc-card::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -26px var(--c); }
.svc-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.svc-card h3 { color: #fff; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -.01em; max-width: 70%; }
.svc-card ul { display: grid; gap: 8px; max-width: 68%; }
.svc-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.4; }
.svc-card li .i { margin-top: 2px; padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .2); stroke-width: 3; }
.svc-card p { color: rgba(255, 255, 255, .88); max-width: 68%; font-size: 14.5px; }
.svc-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: #fff; color: var(--c-ink); font-weight: 700; font-size: 14px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); transition: gap .2s; }
:root[data-theme="dark"] .svc-btn { color: #1e293b; }
.svc-card:hover .svc-btn { gap: 12px; }
.svc-art { position: absolute; right: 18px; bottom: 70px; width: 120px; height: 150px; pointer-events: none; }
.svc-art-big { position: absolute; right: 10px; top: 30px; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transform: rotate(-8deg); }
.svc-art-big .i { width: 38px; height: 38px; color: #fff; }
.svc-art-i { position: absolute; animation: bob 6s ease-in-out infinite; }
.svc-art-i .bi { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .55); }
.svc-art-i.a0 { right: 0; top: 0; }
.svc-art-i.a1 { left: 0; top: 18px; animation-delay: -1.5s; }
.svc-art-i.a2 { left: 6px; bottom: 6px; animation-delay: -3s; }
.svc-art-i.a3 { right: -4px; bottom: 0; animation-delay: -4.5s; }
.svc-art-i.a4 { left: 46px; bottom: -14px; animation-delay: -2.2s; }
@media (max-width: 899px) { .svc-card { min-height: 0; } .svc-art { bottom: auto; top: 22px; transform: scale(.8); transform-origin: top right; } }

/* Thẻ đánh số (quy trình) */
.numcards { display: grid; gap: 14px; }
@media (min-width: 600px) { .numcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .numcards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.numcard { position: relative; overflow: hidden; padding: 24px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.numcard.reveal { transition: opacity .6s ease, transform .25s ease, border-color .25s, box-shadow .25s; }
.numcard:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 24px 40px -26px var(--brand); }
.numcard-n { position: absolute; right: 14px; top: 4px; font-size: 64px; font-weight: 900; letter-spacing: -.04em; color: var(--ink); opacity: .07; line-height: 1; }
.numcard .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.numcard h3 { font-size: 17px; }
.numcard p { font-size: 14px; color: var(--muted); }
.numcard::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), transparent); opacity: .5; }

/* Popup: dòng ghi chú nhỏ + nút Để sau cùng hàng (kiểu cmsnt) */
.popup-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.popup-note { font-size: 12.5px; color: var(--muted); text-align: left; }
.popup-foot .popup-later { margin: 0 0 0 auto; padding: 6px 4px; }

/* Liên hệ kiểu cmsnt */
.page-intro { padding: 28px 0 8px; }
.page-intro .crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.page-intro .crumbs a:hover { color: var(--ink); }
.page-intro h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.02em; }
.page-intro p { margin-top: 8px; color: var(--muted); max-width: 720px; font-size: 16.5px; }
.ch-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .ch-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ch-grid { grid-template-columns: repeat(3, 1fr); } }
.ch-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ch-tile:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.ch-tile .bi { width: 46px; height: 46px; border-radius: 13px; }
.ch-tile small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ch-tile b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; word-break: break-all; }
.ch-tile em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.contact-cols { display: grid; gap: 24px; margin-top: 40px; align-items: start; }
@media (min-width: 960px) { .contact-cols { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.info-blocks { display: grid; gap: 12px; margin-top: 14px; }
.info-block { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.info-block h4 { font-size: 15px; margin-bottom: 6px; }
.info-block div { white-space: pre-line; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.side-box { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.side-box h3 { font-size: 16px; }
.side-box .info-list { margin-top: 0; }
.h3s { font-size: 19px; font-weight: 800; }

/* Kết quả kiểm tra UID */
.live-res { display: grid; gap: 6px; }
.live-sum { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.live-sum span { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.live-sum .ok { color: #16a34a; } .live-sum .bad { color: #dc2626; }
.st-alive { color: #16a34a; font-weight: 700; } .st-dead { color: #dc2626; font-weight: 700; } .st-unknown { color: var(--muted); font-weight: 700; }

/* Tinh chỉnh bố cục hero 2 cột và thẻ dịch vụ ở màn hình vừa */
.hero2 .tbg-float.f3, .hero2 .tbg-float.f5, .hero2 .tbg-float.f6 { display: none; }
@media (min-width: 1000px) { .hero2 .tbg-float { display: none; } .dash { width: 72%; } }
@media (min-width: 900px) and (max-width: 1199px) {
  .svc-art { display: none; }
  .svc-card h3, .svc-card ul, .svc-card p { max-width: none; }
}

.fld2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .fld2 { grid-template-columns: 1fr 1fr; } }

@media (max-width: 560px) { .hero2-lead { display: none; } }

/* Mobile: menu ẩn thì cụm nút phải vẫn nằm sát lề phải (giữ đúng cột lưới) */
.hdr-in .logo { grid-column: 1; }
.nav { grid-column: 2; }
.hdr-right { grid-column: 3; }

/* Nút lên đầu trang: điện thoại nằm bên trái nút chat; máy tính nằm dưới nút chat; giao diện tối dùng nền trắng */
:root[data-theme="dark"] .to-top { background: #fff; color: #0b1530; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .6); }
@media (min-width: 768px) {
  .fab-row { flex-direction: column-reverse; align-items: center; }
  .to-top { width: 46px; transition: opacity .2s, height .2s, margin .2s; }
  .to-top:not(.show) { height: 0; margin-top: -10px; overflow: hidden; }
}
