/* =========================================================
   WiseEye Portal – Default theme (fallback cho mọi site)
   Màu chủ đạo lấy từ tenant qua biến --primary / --secondary.
   Mobile-first, responsive mọi màn hình.
   ========================================================= */
:root {
    --primary: #0d6efd;
    --secondary: #6610f2;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --header-h: 68px;
    --container: 1180px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: #111827; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent;
       font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-light { background: #fff; color: var(--primary); }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; text-decoration: none !important; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800;
              background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; text-decoration: none; }
.site-nav ul a:hover, .site-nav ul a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-switch a.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 12px;
                padding: 16px 20px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
                transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .site-nav:not(.open) { visibility: hidden; }
    .site-nav.open { transform: translateY(0); visibility: visible; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px; }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .lang-switch { justify-content: center; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head .eyebrow { display: inline-block; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }

.hero { padding: clamp(56px, 10vw, 120px) 0; background:
        radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent),
        radial-gradient(900px 400px at 110% 10%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent); }
.hero-inner { text-align: center; max-width: 860px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
         background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-bottom: 16px; }
.badge-muted { background: var(--bg-soft); color: var(--muted); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card-media { margin: -24px -24px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 a { color: inherit; }
.icon-circle { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px;
               background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .form select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 5px; }
.field-error, .validation-summary-errors { color: #dc2626; font-size: .85rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Content (blog, policy) ---------- */
.prose { font-size: 1.05rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em auto; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--primary); background: var(--bg-soft); }
.prose pre { background: #111827; color: #f9fafb; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 56px; margin-top: 0; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .muted { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding: 20px; text-align: center; font-size: .9rem; color: #94a3b8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Error ---------- */
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1;
              background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

/* ---------- Section backgrounds ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: #0f172a; color: #e2e8f0; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .muted, .bg-dark .lead { color: #94a3b8; }
.bg-dark .card { background: #111c33; border-color: #1e293b; }
.bg-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary .lead, .bg-primary .muted { color: #fff; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.small { font-size: .875rem; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.05fr 1fr; }
.hero-grid.hero-center { grid-template-columns: 1fr; text-align: center; max-width: 860px; }
.hero-grid.hero-center .hero-actions { justify-content: center; }
.hero-grid:not(.hero-center) .hero-actions { justify-content: flex-start; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(15, 23, 42, .18); }
.hero-note { margin-top: 14px; font-size: .9rem; }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-grid .hero-actions { justify-content: center !important; }
}

/* ---------- Features ---------- */
.feature-card h3 { margin-top: 4px; }
.feature-img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.split:last-child { margin-bottom: 0; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
                         font-size: .75rem; font-weight: 700; color: #fff; background: var(--primary); }

/* ---------- Gallery / stats / steps ---------- */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; transition: transform .2s; }
.gallery-item img:hover { transform: scale(1.02); }
.gallery-item figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); text-align: center; margin-top: 24px; }
.stat-value { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1.1; }
.bg-primary .stat-value, .bg-dark .stat-value { color: #fff; }
.stat-label { color: var(--muted); margin-top: 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; color: #fff; margin-bottom: 14px;
           background: linear-gradient(135deg, var(--primary), var(--secondary)); }

/* ---------- Testimonials / FAQ / CTA / video ---------- */
.testimonial { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); white-space: pre-line; }
.cta-box { border-radius: calc(var(--radius) * 1.5); padding: clamp(32px, 6vw, 64px); text-align: center; color: #fff;
           background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Page ---------- */
.page-hero { padding: clamp(32px, 6vw, 64px) 0 8px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Releases ---------- */
.mt { margin-top: 32px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-marker { position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--border); }
.timeline-item.is-latest .timeline-marker { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 20%, transparent); }
.release-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.release-head h2, .release-head h3 { margin: 0; }
.release-head a { color: inherit; }
.release-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.release-badges .badge { margin: 0; }
.release-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.release-notes { display: grid; gap: 12px; margin: 12px 0; }
.note-group h4 { font-size: .95rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.note-group ul { margin: 0; padding-left: 22px; }
.note-group li { margin-bottom: 4px; }
.note-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; }
.note-fixed .note-dot { background: #16a34a; }
.note-improved .note-dot { background: #0ea5e9; }
.note-security .note-dot { background: #dc2626; }
.note-breaking .note-dot { background: #f59e0b; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.file-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.file-info { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
.file-info > div { min-width: 0; }
.file-icon { font-size: 1.8rem; color: var(--primary); line-height: 1; }
.checksum summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.checksum code { font-size: .75rem; word-break: break-all; }
.download-card { padding: clamp(18px, 4vw, 32px); }
.latest-release { padding: clamp(20px, 4vw, 36px); }
@media (max-width: 560px) { .file-item .btn { width: 100%; } }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.post-card h3 a { color: inherit; }
.post-card .card-media { display: block; }
.post-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.5rem; color: var(--primary);
                    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, #fff), color-mix(in srgb, var(--secondary) 12%, #fff)); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-category { font-weight: 600; color: var(--primary); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; aspect-ratio: 1200/630; object-fit: cover; }
.post-tags, .post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
        background: #fff; color: var(--text); font-size: .88rem; text-decoration: none !important; }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); }
.chip.active { background: color-mix(in srgb, var(--primary) 10%, #fff); }
.chip-count { font-size: .75rem; color: var(--muted); }

/* ---------- Lead forms ---------- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.req { color: #dc2626; }
.form .is-invalid input, .form .is-invalid textarea { border-color: #dc2626; }
.form .field-error:empty { display: none; }
.form .check a { font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list i { color: var(--primary); font-size: 1.2rem; }
.contact-chat { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form .btn[disabled] { opacity: .7; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; height: 52px; padding: 0 14px; border-radius: 999px;
          color: #fff !important; text-decoration: none !important; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: 1.2rem; }
.fc-zalo { background: #0068ff; font-size: .95rem; }
.fc-messenger { background: linear-gradient(135deg, #00b2ff, #a033ff); }
.fc-phone { background: #16a34a; animation: fc-pulse 2s infinite; }
.fc-label { font-size: .95rem; }
@keyframes fc-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 14px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (max-width: 560px) { .fc-label { display: none; } .float-contact { right: 12px; bottom: 12px; } }
@media print { .float-contact, .site-header, .site-footer { display: none; } }

/* ---------- Màn hình rất nhỏ (≤ 420px) ---------- */
body { overflow-x: clip; }
@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero-actions .btn, .cta-box .btn { width: 100%; white-space: normal; }
    .card { padding: 18px; }
    .card-media { margin: -18px -18px 14px; }
    .btn-lg { padding: .8em 1.2em; font-size: 1rem; }
}

/* ---------- Khối mở rộng ---------- */
.mt-sm { margin-top: 14px; }
.split-single { grid-template-columns: 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
.form-center { margin: 0 auto; }
.announce { padding: 12px 0; font-size: .95rem; }
.announce-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; text-align: center; }
.announce a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce-primary { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; }
.announce-dark { background: #0f172a; color: #e2e8f0; }
.announce-soft { background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--text); }
.announce-warning { background: #fef3c7; color: #78350f; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logo-strip img { max-height: 48px; width: auto; max-width: 150px; object-fit: contain; transition: filter .2s, opacity .2s; }
.logo-strip.is-gray img { filter: grayscale(1); opacity: .65; }
.logo-strip.is-gray a:hover img, .logo-strip.is-gray span:hover img { filter: none; opacity: 1; }
.benefits.has-image { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.benefits.has-image .benefit-list { grid-template-columns: 1fr; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; }
.benefit-list li > i { color: var(--primary); font-size: 1.3rem; line-height: 1.3; }
.benefit-list strong { display: block; }
.benefit-list .muted { display: block; font-size: .93rem; }
.benefit-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .benefits.has-image { grid-template-columns: 1fr; } }
.device-card { text-align: center; }
.device-card h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.device-card .badge { margin-bottom: 4px; }
.device-img { height: 150px; display: grid; place-items: center; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.device-img img { max-height: 130px; width: auto; object-fit: contain; }
.device-img i { font-size: 3rem; color: var(--primary); }
.cmp-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody th { text-align: left; font-weight: 500; }
.cmp-table thead th { font-weight: 700; background: var(--bg-soft); }
.cmp-table .is-hl { background: color-mix(in srgb, var(--primary) 7%, #fff); }
.cmp-table thead .is-hl { background: var(--primary); color: #fff; }
.cmp-yes { color: #16a34a; font-size: 1.25rem; } .cmp-no { color: #cbd5e1; font-size: 1.25rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.tl-dot { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; z-index: 1;
          background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 0 0 6px var(--bg); }
.bg-soft .tl-dot { box-shadow: 0 0 0 6px var(--bg-soft); }
.tl-dot .bi-circle-fill { font-size: .55rem; }
.tl-date { display: inline-block; font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: 2px; }
.tl-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ptabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.ptabs-nav button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer;
                    color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: all .15s; }
.ptabs-nav button:hover { color: var(--primary); border-color: var(--primary); }
.ptabs-nav button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
.ptabs-panel { animation: tabIn .3s ease; margin-bottom: 0; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }
.big-quote { margin: 0; text-align: center; }
.big-quote > i { font-size: 3.5rem; color: var(--primary); line-height: 1; opacity: .35; }
.big-quote blockquote { margin: 0 0 24px; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.45; color: var(--text); }
.big-quote figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.big-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.map-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.map-grid.no-map { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-info p { display: flex; gap: 10px; }
.map-info i { color: var(--primary); }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.ptabs-panel[hidden] { display: none !important; }

/* ---- Menu thả xuống (admin → Menu) ---- */
.site-nav ul .has-sub { position: relative; }
.site-nav .sub-caret { font-size: .7em; margin-left: 2px; }
.site-nav ul.sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; display: block; padding: 6px; background: #fff;
    border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius-sm, 8px); box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav ul .has-sub:hover > .sub-menu, .site-nav ul .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav ul.sub-menu a { color: var(--text); background: transparent; white-space: nowrap; border-radius: 6px; box-shadow: none; }
.site-nav ul.sub-menu a:hover, .site-nav ul.sub-menu a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nav-action-link { font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 10px; }
.nav-action-link:hover { color: var(--primary); }
@media (max-width: 960px) {
    .site-nav ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; background: transparent; }
    .site-nav .sub-caret { display: none; }
}

/* =========================================================
   Motion & polish (dùng chung mọi theme) – xem js/motion.js
   ========================================================= */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Hiện dần khi cuộn */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
      transition-delay: calc(var(--rv-i, 0) * 85ms); will-change: opacity, transform; }
.rv.rv-left { transform: translate3d(-40px, 0, 0); }
.rv.rv-right { transform: translate3d(40px, 0, 0); }
.rv.rv-zoom { transform: scale(.94) translate3d(0, 20px, 0); }
.rv.rv-in { opacity: 1; transform: none; }

/* Thanh tiến trình cuộn */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary), var(--secondary)); pointer-events: none; }

/* Header: bóng khi cuộn + ẩn khi cuộn xuống */
.site-header { transition: transform .45s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); }
.site-header.is-hidden { transform: translateY(-110%); }

/* Nút: bóng sáng lướt qua + nhấn */
.btn { position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .3s, background-color .25s, color .25s, border-color .25s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease-out); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97) !important; }
.btn-primary:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn i { transition: transform .35s var(--ease-out); }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(3px); }
.btn:hover .bi-download, .btn:hover .bi-arrow-down-circle { transform: translateY(2px); }

/* Thẻ: nổi lên + ánh sáng theo con trỏ */
.card, .step, .faq-item { position: relative; isolation: isolate; }
.card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 23, 42, .10); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.card::before, .step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 10%, transparent), transparent 60%); }
.card:hover::before, .step:hover::before { opacity: 1; }
.icon-circle { transition: transform .5s var(--ease-spring); }
.card:hover .icon-circle { transform: scale(1.08) rotate(-6deg); }
.card-media img, .gallery-item img, .split-media img { transition: transform .9s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.05); }
.gallery-item { overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img:hover { transform: scale(1.04); }

/* Tiêu đề khối */
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .08em;
    background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.text-gradient { background: linear-gradient(120deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ mượt */
.faq-item { transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.faq-answer { overflow: hidden; transition: height .28s var(--ease-out), opacity .28s; }
.faq-item summary::after { transition: transform .3s var(--ease-out); }

/* Dải logo chạy */
.logo-strip.is-marquee { display: flex; overflow: hidden; gap: 0; flex-wrap: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 32s linear infinite; }
.logo-strip.is-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Hiệu ứng nền tái sử dụng */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blobMove { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.hero-in > * { animation: heroIn 1s var(--ease-out) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; } .hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; } .hero-in > *:nth-child(5) { animation-delay: .32s; } .hero-in > *:nth-child(6) { animation-delay: .4s; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

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