/* ==========================================================
   VIỆT DIGITAL — Modern Design System
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Brand */
    --brand-50:  #f0f4ff;
    --brand-100: #e0eaff;
    --brand-300: #93b4ff;
    --brand-500: #4f6bff;
    --brand-600: #3b54e6;
    --brand-700: #2e41b8;
    --accent-500: #a855f7;
    --accent-400: #c084fc;
    --pink-500:  #ec4899;

    /* Surfaces */
    --bg:        #ffffff;
    --bg-soft:   #f7f8fc;
    --bg-muted:  #eef0f7;
    --ink-900:   #0b0f1e;
    --ink-800:   #111827;
    --ink-700:   #1f2937;
    --ink-500:   #4b5563;
    --ink-400:   #6b7280;
    --ink-300:   #9ca3af;
    --line:      #e5e7ef;
    --line-soft: #eef1f8;

    /* Effects */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
    --shadow-sm: 0 2px 6px rgba(15,23,42,.06);
    --shadow:    0 10px 24px -8px rgba(15,23,42,.10);
    --shadow-lg: 0 24px 48px -16px rgba(15,23,42,.18);
    --shadow-brand: 0 18px 40px -12px rgba(79,107,255,.45);

    /* Layout */
    --max: 1200px;
    --max-narrow: 880px;

    /* Type */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-800);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color .18s;
}
a:hover { color: var(--brand-700); }

h1, h2, h3, h4, h5 {
    margin: 1.4em 0 .5em;
    line-height: 1.2;
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -.018em;
}
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 0;
}
.site-logo {
    display: inline-flex; align-items: center;
    color: var(--ink-900); letter-spacing: -.02em;
    text-decoration: none;
    transition: opacity .18s;
}
.site-logo:hover { opacity: .85; text-decoration: none; }
.site-logo-img {
    display: block;
    height: 40px; width: auto; max-width: 200px;
    color: var(--ink-900);
}
.site-logo-text {
    font-size: 1.15rem; font-weight: 800;
    color: var(--ink-900);
}

.site-nav { flex: 1; }
.site-nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 6px;
}
.site-nav a {
    color: var(--ink-700);
    font-weight: 500; font-size: .94rem;
    padding: 8px 14px; border-radius: 10px;
    transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--brand-600); }

.site-search {
    display: flex; align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}
.site-search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(79,107,255,.15); }
.site-search input {
    border: 0; background: transparent;
    padding: 8px 12px; font-size: .88rem;
    outline: none; width: 180px; font-family: inherit;
}
.site-search button {
    border: 0; background: transparent;
    padding: 8px 12px; cursor: pointer; font-size: .95rem;
}

.menu-toggle {
    display: none;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 12px; font-size: 1.2rem; cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px;
    font-weight: 600; font-size: .95rem;
    border: 1px solid var(--line);
    background: var(--bg); color: var(--ink-800);
    cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .18s, background .18s, border-color .18s;
    font-family: inherit;
}
.btn:hover { background: var(--bg-soft); transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff !important; border-color: transparent;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { filter: brightness(1.07); color: #fff; }

/* ===== HERO (home) ===== */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(168,85,247,.22), transparent 60%),
        radial-gradient(700px 400px at 0% 110%, rgba(79,107,255,.18), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
    padding: 90px 0 80px; text-align: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line-soft);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0 0 16px; font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(180deg, var(--ink-900) 0%, #4b5570 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--ink-500); margin: 0 auto 28px; max-width: 620px;
}

/* ===== SECTIONS ===== */
.section { margin: 56px 0; }
.section-header {
    display: flex; justify-content: space-between;
    align-items: baseline; margin-bottom: 24px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.section-header h2 { margin: 0; font-size: 1.45rem; }
.link-more {
    font-weight: 600; font-size: .9rem;
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap .2s;
}
.link-more:hover { gap: 10px; text-decoration: none; }

/* ===== POST GRID / CARDS ===== */
.post-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin: 24px 0;
}
.post-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-300);
}
.post-card-image {
    display: block; aspect-ratio: 16/9; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-50), #ede9fe);
}
.post-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-body { padding: 22px; }
.post-card-title { font-size: 1.08rem; margin: 0 0 10px; line-height: 1.4; }
.post-card-title a { color: var(--ink-900); }
.post-card-title a:hover { color: var(--brand-600); text-decoration: none; }
.post-card-meta { font-size: .82rem; color: var(--ink-400); margin-bottom: 10px; }
.post-card-excerpt {
    color: var(--ink-500); font-size: .92rem; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== TAGS ===== */
.tag {
    display: inline-block; padding: 4px 11px;
    background: var(--bg-soft); color: var(--ink-500);
    border-radius: 999px; font-size: .78rem;
    text-decoration: none; border: 1px solid var(--line);
    transition: all .18s;
}
.tag:hover {
    background: var(--brand-500); color: #fff;
    border-color: var(--brand-500); text-decoration: none;
}
.tag-small { font-size: .72rem; color: var(--ink-400); }

/* ===== POST DETAIL ===== */
.post-detail, .page-detail { max-width: var(--max-narrow); margin: 32px auto; }

.breadcrumb {
    font-size: .82rem; color: var(--ink-400);
    margin-bottom: 22px;
}
.breadcrumb span { margin: 0 6px; }
.breadcrumb a { color: var(--ink-400); }
.breadcrumb a:hover { color: var(--brand-600); }

.post-header { margin-bottom: 32px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; align-items: center; }
.post-tags strong { font-size: .85rem; color: var(--ink-400); margin-right: 4px; }
.post-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 14px; line-height: 1.15; }
.post-lead { font-size: 1.1rem; color: var(--ink-500); margin-bottom: 22px; }
.post-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: .88rem; color: var(--ink-400);
    padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.post-cover { margin: 28px 0; border-radius: var(--r-lg); overflow: hidden; }
.post-cover img { width: 100%; }

.post-content { font-size: 1.04rem; line-height: 1.78; color: var(--ink-700); }
.post-content h2 { margin-top: 1.8em; padding-top: .2em; }
.post-content h3 { margin-top: 1.4em; }
.post-content img { border-radius: var(--r); margin: 1.4em 0; }
.post-content blockquote {
    border-left: 3px solid var(--brand-500);
    padding: 14px 20px;
    margin: 1.5em 0;
    background: var(--bg-soft);
    color: var(--ink-700);
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
}
.post-content code {
    background: var(--bg-soft); padding: 2px 8px;
    border-radius: 6px; font-size: .88em;
    font-family: var(--font-mono); color: var(--brand-700);
    border: 1px solid var(--line-soft);
}
.post-content pre {
    background: var(--ink-900); color: #e2e8f0;
    padding: 18px; border-radius: var(--r-lg);
    overflow-x: auto; font-size: .9rem;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; border: 0; }
.post-content ul, .post-content ol { padding-left: 22px; }
.post-content li { margin: .25em 0; }
.post-content table {
    width: 100%; border-collapse: collapse; margin: 1.5em 0;
    font-size: .94rem; border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--line);
}
.post-content table th, .post-content table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 11px 14px; text-align: left;
}
.post-content table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-800); }
.post-content table tr:last-child td { border-bottom: 0; }

.post-footer {
    margin: 48px 0 32px;
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: flex; flex-direction: column; gap: 14px;
}
.post-share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-share strong { font-size: .9rem; }

.related-posts { margin: 48px 0; }
.related-posts h2 { margin-bottom: 22px; }

/* ===== PAGE / LIST ===== */
.page-header { margin: 32px 0; }
.page-header h1 { margin: 0 0 6px; }
.page-subtitle { color: var(--ink-500); margin: 0; font-size: 1.05rem; }
.page-content { font-size: 1.04rem; line-height: 1.78; color: var(--ink-700); }
.page-content > * { max-width: var(--max-narrow); }
.page-content h2 { margin-top: 1.8em; }
.page-content h3 { margin-top: 1.4em; }
.page-content blockquote {
    border-left: 3px solid var(--brand-500);
    padding: 12px 18px;
    margin: 1.4em 0;
    background: var(--bg-soft);
    color: var(--ink-700);
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
}
.page-content table {
    width: 100%; border-collapse: collapse; margin: 1.4em 0;
    font-size: .96rem; border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--line);
}
.page-content table th, .page-content table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 11px 14px; text-align: left;
}
.page-content table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-800); }
.page-content table tr:last-child td { border-bottom: 0; }

/* Contact methods — grid 2 cột gọn cho contact page, fit trong page-content 768px */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 1.4em 0;
    max-width: var(--max-narrow);
}
@media (max-width: 560px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--ink-800) !important;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.contact-method:hover {
    transform: translateY(-2px);
    border-color: var(--brand-300);
    box-shadow: 0 6px 16px -6px rgba(79,107,255,.18);
}
.contact-method-ico {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-method strong {
    display: block; font-size: .95rem; color: var(--ink-900);
    line-height: 1.2; margin-bottom: 2px;
}
.contact-method small {
    display: block; font-size: .82rem; color: var(--ink-400);
    font-family: var(--font-mono);
}

.page-cover { margin: 28px 0; border-radius: var(--r-lg); overflow: hidden; }

.empty-state {
    text-align: center; padding: 60px 16px;
    color: var(--ink-400);
    background: var(--bg-soft); border-radius: var(--r-lg);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin: 48px 0; flex-wrap: wrap;
}
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 14px; border: 1px solid var(--line);
    border-radius: 10px; color: var(--ink-700);
    text-decoration: none; font-size: .9rem; min-width: 42px;
    transition: all .18s;
}
.page-link:hover { background: var(--bg-soft); text-decoration: none; }
.page-link.active {
    background: var(--brand-500); color: #fff;
    border-color: var(--brand-500);
    box-shadow: 0 8px 18px -6px rgba(79,107,255,.45);
}
.page-dots { padding: 8px 4px; color: var(--ink-300); }

/* ===== SEARCH ===== */
.search-form { display: flex; gap: 8px; max-width: 600px; margin: 16px 0 24px; }
.search-form input {
    flex: 1; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 1rem; font-family: inherit;
    transition: border-color .18s, box-shadow .18s;
}
.search-form input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(79,107,255,.15); }
.search-meta { color: var(--ink-400); margin-top: 14px; font-size: .9rem; }

.search-results { margin: 24px 0; }
.search-result-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.search-result-item h2 { font-size: 1.2rem; margin: 0 0 6px; }
.search-result-item h2 a { color: var(--ink-900); }
.search-result-item h2 a:hover { color: var(--brand-600); text-decoration: none; }
.search-meta-row {
    font-size: .82rem; color: var(--ink-400);
    margin-bottom: 8px; display: flex; gap: 6px;
    align-items: center; flex-wrap: wrap;
}
.search-snippet { color: var(--ink-500); margin: 0; font-size: .93rem; }
.search-snippet mark { background: #fef3c7; color: var(--ink-800); padding: 1px 4px; border-radius: 4px; }

/* ===== ERROR ===== */
.error-page { text-align: center; padding: 80px 16px; }
.error-page h1 {
    font-size: 5rem; margin: 0;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.error-page h2 { margin: 14px 0; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 80px;
    background: var(--ink-900);
    color: #cbd5e1;
    padding: 64px 0 24px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; font-weight: 700; }
.footer-logo {
    display: inline-flex; align-items: center;
    margin-bottom: 14px; color: #fff;
    text-decoration: none; transition: opacity .18s;
}
.footer-logo:hover { opacity: .85; text-decoration: none; }
.footer-logo-img {
    display: block;
    height: 36px; width: auto; max-width: 180px;
    color: #fff; /* SVG wordmark dùng currentColor → trắng trên footer dark */
}
.footer-grid {
    display: grid; gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 40px;
}
.footer-grid p { color: #94a3b8; font-size: .92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 7px 0; font-size: .9rem; }
.footer-grid a { color: #cbd5e1; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    text-align: center; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .82rem; color: #94a3b8;
}
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #cbd5e1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
    .hero { padding: 60px 16px 50px; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .site-nav { order: 3; width: 100%; display: none; }
    .site-nav.open { display: block; }
    .site-nav ul {
        flex-direction: column; gap: 0;
        border-top: 1px solid var(--line-soft); padding-top: 8px;
    }
    .site-nav li { padding: 4px 0; }
    .site-search input { width: 130px; }
    .menu-toggle { display: inline-flex; }
    .post-title { font-size: 1.7rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===== ANIMATIONS ===== */
@keyframes vd-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vd-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes vd-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,107,255,.5); }
    50%      { box-shadow: 0 0 0 14px rgba(79,107,255,0); }
}
@keyframes vd-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================
   LANDING PAGE — vd-* namespace
   ========================================================== */

/* Full-bleed: mỗi section tự break out khỏi .container của base.php.
   Không cần wrapper .vd, các section có thể đứng riêng — markdown editable. */
.vd-hero,
.vd-logos,
.vd-sec,
.vd-final {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* Section đầu tiên cần khử margin-top mặc định của container */
.vd-hero:first-child { margin-top: -32px; }
.vd-wrap        { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.vd-wrap-narrow { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.vd-rel         { position: relative; z-index: 1; }
.vd-svg         { display: inline-block; vertical-align: middle; flex: none; }

/* Section base */
.vd-sec     { padding: 96px 0; position: relative; }
.vd-sec-alt { background: var(--bg-soft); }
.vd-sec-dark {
    background: var(--ink-900); color: #cbd5e1;
    position: relative; overflow: hidden;
}
.vd-sec-dark::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(700px 350px at 20% 10%, rgba(79,107,255,.25), transparent 55%),
        radial-gradient(700px 350px at 80% 90%, rgba(168,85,247,.22), transparent 55%);
    pointer-events: none;
}

.vd-sec-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.vd-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--brand-600); margin-bottom: 16px;
    padding: 5px 14px; border-radius: 999px;
    background: var(--brand-50); border: 1px solid var(--brand-100);
}
.vd-sec-dark .vd-kicker {
    background: rgba(79,107,255,.14);
    border-color: rgba(79,107,255,.28);
    color: #a5b4fc;
}
.vd-h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    margin: 0 0 14px; font-weight: 800;
    color: var(--ink-900); letter-spacing: -.02em; line-height: 1.18;
}
.vd-sec-dark .vd-h2 { color: #fff; }
.vd-lead {
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    color: var(--ink-500); margin: 0;
    line-height: 1.65;
}
.vd-sec-dark .vd-lead { color: #94a3b8; }
.vd-grad {
    background: linear-gradient(120deg, var(--brand-500) 0%, var(--accent-500) 60%, var(--pink-500) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== HERO ===== */
.vd-hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(168,85,247,.18), transparent 55%),
        radial-gradient(900px 500px at 0% 110%, rgba(79,107,255,.20), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    padding: 80px 0 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}
.vd-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at center, #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse 75% 60% at center, #000 30%, transparent 78%);
    pointer-events: none;
}
.vd-hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px; align-items: center;
}
@media (max-width: 960px) { .vd-hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.vd-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--ink-700);
    margin-bottom: 22px;
    box-shadow: var(--shadow-xs);
    animation: vd-fade-up .6s ease-out;
}
.vd-eyebrow-pill {
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff; padding: 3px 10px; border-radius: 999px;
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
}
.vd-hero-title {
    font-size: clamp(2.1rem, 4.8vw, 3.4rem);
    line-height: 1.06; margin: 0 0 20px;
    font-weight: 800; letter-spacing: -.025em;
    color: var(--ink-900);
    animation: vd-fade-up .7s ease-out;
}
.vd-hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.13rem);
    color: var(--ink-500);
    max-width: 540px; margin: 0 0 32px;
    line-height: 1.65;
    animation: vd-fade-up .8s ease-out;
}
.vd-cta-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 36px;
    animation: vd-fade-up .9s ease-out;
}
.vd-cta-center { justify-content: center; margin-bottom: 0; }

.vd-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 24px; border-radius: 12px;
    font-weight: 600; font-size: .96rem;
    text-decoration: none; cursor: pointer;
    transition: transform .15s, box-shadow .18s, filter .18s, background .18s, border-color .18s;
    border: 1px solid transparent;
    font-family: inherit; line-height: 1;
}
.vd-btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff;
    box-shadow: var(--shadow-brand);
    position: relative; overflow: hidden;
}
.vd-btn-primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: vd-shimmer 2.6s ease-in-out infinite;
    pointer-events: none;
}
.vd-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; text-decoration: none; }
.vd-btn-ghost {
    background: #fff; color: var(--ink-800);
    border-color: var(--line); box-shadow: var(--shadow-xs);
}
.vd-btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand-300); color: var(--ink-800); text-decoration: none; }
.vd-btn-on-dark {
    background: rgba(255,255,255,.08); color: #fff;
    border-color: rgba(255,255,255,.22);
}
.vd-btn-on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }

.vd-trust-row {
    display: flex; gap: 22px; flex-wrap: wrap;
    color: var(--ink-400); font-size: .88rem;
    animation: vd-fade-up 1s ease-out;
}
.vd-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.vd-trust-check { color: #10b981; }

/* ===== HERO VISUAL (SERP MOCK) ===== */
.vd-hero-visual {
    position: relative;
    animation: vd-fade-up 1.05s ease-out;
}
.vd-serp {
    background: #fff; border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0; position: relative;
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
    overflow: visible;
}
.vd-serp::before {
    content: ""; position: absolute; top: -20px; right: 30px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.4), transparent 70%);
    z-index: -1; filter: blur(28px);
}
.vd-serp-head {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-soft);
    border-radius: 20px 20px 0 0;
}
.vd-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.vd-dot-r { background: #ef4444; }
.vd-dot-y { background: #f59e0b; }
.vd-dot-g { background: #10b981; }
.vd-serp-url {
    flex: 1; margin-left: 12px; padding: 5px 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-mono); font-size: .72rem;
    color: var(--ink-500);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd-serp-body { padding: 14px 16px; }
.vd-result {
    padding: 11px 14px; border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid transparent;
}
.vd-result-url {
    font-size: .72rem; color: #16a34a;
    margin-bottom: 4px; font-family: var(--font-mono);
}
.vd-result-title {
    font-size: .96rem; font-weight: 500; color: #1d4ed8;
    margin: 0 0 4px; line-height: 1.3;
}
.vd-result-desc {
    font-size: .78rem; color: var(--ink-400); line-height: 1.5;
}
.vd-result-active {
    background: linear-gradient(135deg, var(--brand-50), #faf5ff);
    border-color: var(--brand-300);
    position: relative;
    box-shadow: 0 0 0 3px rgba(79,107,255,.1);
}
.vd-result-active .vd-result-title { color: var(--brand-700); font-weight: 600; }
.vd-serp-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin: 4px 16px 16px;
    padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.vd-stat { text-align: center; padding: 4px; }
.vd-stat-n {
    font-size: 1.35rem; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.vd-stat-l { font-size: .68rem; color: var(--ink-400); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.vd-cursor {
    position: absolute; right: 32px; bottom: 88px;
    width: 28px; height: 28px;
    animation: vd-float 2.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.vd-cursor-badge {
    position: absolute; right: 6px; bottom: 64px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff; padding: 5px 12px; border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    box-shadow: var(--shadow-brand);
    animation: vd-pulse-glow 2s infinite;
    white-space: nowrap;
}

/* ===== HERO VARIANT: Stats card (cho about/contact/services thay SERP mock) ===== */
.vd-stats-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.vd-stats-card::before {
    content: ""; position: absolute; top: -16px; right: 24px;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%);
    z-index: -1; filter: blur(24px);
}
.vd-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.vd-stats-item {
    padding: 18px 16px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.vd-stats-item:hover { transform: translateY(-2px); border-color: var(--brand-300); }
.vd-stats-n {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1; letter-spacing: -.025em;
    margin-bottom: 6px;
}
.vd-stats-l {
    font-size: .78rem; color: var(--ink-400);
    font-weight: 600; letter-spacing: .02em;
}

/* ===== LOGO STRIP ===== */
.vd-logos {
    padding: 40px 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--line-soft);
}
.vd-logos-title {
    text-align: center; font-size: .78rem; font-weight: 700;
    color: var(--ink-400); text-transform: uppercase;
    letter-spacing: .12em; margin-bottom: 24px;
}
.vd-logos-row {
    display: flex; justify-content: center; align-items: center;
    gap: 36px; flex-wrap: wrap;
}
.vd-logo-chip {
    font-weight: 700; font-size: 1rem; color: var(--ink-500);
    letter-spacing: -.005em;
    display: inline-flex; align-items: center; gap: 9px;
    opacity: .72;
    transition: opacity .2s;
}
.vd-logo-chip:hover { opacity: 1; }
.vd-logo-dot {
    width: 8px; height: 8px; border-radius: 2px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
}

/* ===== GRID 3 ===== */
.vd-grid-3 {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.vd-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 28px;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    position: relative; overflow: hidden;
}
.vd-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg, var(--brand-500), var(--accent-500), var(--pink-500));
    transition: transform .35s ease;
}
.vd-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-300);
}
.vd-card:hover::before { transform: scaleX(1); }
.vd-card-ico {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-50), #f3e8ff);
    color: var(--brand-600);
    margin-bottom: 18px;
}
.vd-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ink-900); font-weight: 700; }
.vd-card p  { margin: 0; color: var(--ink-500); font-size: .94rem; line-height: 1.65; }
.vd-card-meta {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: .85rem; color: var(--ink-500);
}
.vd-card-meta strong { color: var(--brand-600); }

/* Clickable card variant (cho contact page) */
.vd-card-link {
    display: block; color: inherit; text-decoration: none;
    cursor: pointer;
}
.vd-card-link:hover { text-decoration: none; color: inherit; }
.vd-card-link p strong { color: var(--ink-900); }

/* ===== FEATURED SERVICE BANNER (services hero) ===== */
.vd-feature-banner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    background: linear-gradient(135deg, var(--ink-900) 0%, #1e1b4b 100%);
    border-radius: 24px;
    padding: 40px 44px;
    color: #e6edf7;
    position: relative;
    overflow: hidden;
}
.vd-feature-banner::before {
    content: ""; position: absolute; top: -60px; right: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%);
    filter: blur(28px);
}
@media (max-width: 880px) {
    .vd-feature-banner { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
.vd-feature-left { position: relative; z-index: 1; }
.vd-feature-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #1a1300; font-size: .72rem; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 16px;
}
.vd-feature-left h3 {
    margin: 0 0 14px;
    font-size: 1.7rem; color: #fff; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.2;
}
.vd-feature-left > p {
    color: #cbd5e1; font-size: 1rem; line-height: 1.65;
    margin: 0 0 18px;
}
.vd-feature-list {
    list-style: none; padding: 0; margin: 0 0 24px;
}
.vd-feature-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0; font-size: .93rem; color: #cbd5e1;
    line-height: 1.5;
}
.vd-feature-list .vd-li-ico { color: #c084fc; flex: none; margin-top: 1px; }
.vd-feature-right {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 14px;
    align-self: center;
}
.vd-feature-stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 20px 22px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vd-feature-stat-n {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, #fde047, #f472b6);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1; margin-bottom: 4px; letter-spacing: -.025em;
}
.vd-feature-stat-l {
    font-size: .8rem; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}

/* ===== INFO GRID (contact: giờ làm việc + khu vực) ===== */
.vd-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 760px) { .vd-info-grid { grid-template-columns: 1fr; } }
.vd-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
}
.vd-info-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.vd-info-head h3 { margin: 0; font-size: 1.1rem; color: var(--ink-900); font-weight: 700; }
.vd-info-card p {
    margin: 0 0 10px; color: var(--ink-500);
    font-size: .94rem; line-height: 1.6;
}
.vd-info-card p:last-child { margin-bottom: 0; }

.vd-table {
    width: 100%; border-collapse: collapse;
    font-size: .93rem;
}
.vd-table tr { border-bottom: 1px solid var(--line-soft); }
.vd-table tr:last-child { border-bottom: 0; }
.vd-table td { padding: 11px 0; color: var(--ink-500); }
.vd-table td:last-child { text-align: right; color: var(--ink-800); }
.vd-table strong { color: var(--ink-900); font-weight: 700; }

/* ===== COMPARE ===== */
.vd-compare {
    display: grid; gap: 22px;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 780px) { .vd-compare { grid-template-columns: 1fr; } }
.vd-cmp {
    border-radius: var(--r-lg); padding: 30px;
    border: 1px solid;
}
.vd-cmp h3 {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 18px; font-size: 1.1rem; font-weight: 700;
}
.vd-cmp-pin {
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.vd-cmp ul { list-style: none; padding: 0; margin: 0; }
.vd-cmp li {
    padding: 9px 0; font-size: .94rem;
    display: flex; align-items: flex-start; gap: 11px;
    line-height: 1.55;
}
.vd-li-ico { flex: none; margin-top: 1px; }
.vd-cmp-bad { background: linear-gradient(180deg, #fef2f2, #fff); border-color: #fecaca; }
.vd-cmp-bad h3        { color: #b91c1c; }
.vd-cmp-bad .vd-cmp-pin { background: #fee2e2; color: #b91c1c; }
.vd-cmp-bad .vd-li-ico  { color: #ef4444; }
.vd-cmp-good { background: linear-gradient(180deg, #ecfdf5, #fff); border-color: #a7f3d0; }
.vd-cmp-good h3        { color: #047857; }
.vd-cmp-good .vd-cmp-pin { background: #d1fae5; color: #047857; }
.vd-cmp-good .vd-li-ico  { color: #10b981; }

/* ===== PROCESS / STEPS ===== */
.vd-steps {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.vd-step {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 30px 24px 24px;
    position: relative;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.vd-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand-300);
}
.vd-step-num {
    position: absolute; top: -16px; left: 22px;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff; font-weight: 800; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-brand);
    font-family: var(--font-mono);
}
.vd-step-ico { color: var(--brand-500); margin-top: 4px; margin-bottom: 4px; }
.vd-step h4 { margin: 12px 0 8px; font-size: 1.04rem; color: var(--ink-900); font-weight: 700; }
.vd-step p  { margin: 0; color: var(--ink-500); font-size: .9rem; line-height: 1.6; }

/* ===== PRICING ===== */
.vd-pricing {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}
.vd-price {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 32px 26px;
    position: relative; display: flex; flex-direction: column;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.vd-price:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-300);
}
.vd-price-featured {
    background: linear-gradient(180deg, var(--ink-900) 0%, #1e1b4b 100%);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    color: #e6edf7;
}
@media (min-width: 900px) {
    .vd-price-featured { transform: scale(1.03); }
    .vd-price-featured:hover { transform: scale(1.03) translateY(-4px); }
}
.vd-price-tag {
    position: absolute; top: -12px; left: 26px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #1a1300; font-size: .68rem; font-weight: 800;
    letter-spacing: .06em; padding: 5px 12px;
    border-radius: 999px; text-transform: uppercase;
}
.vd-price-name {
    font-size: .82rem; font-weight: 700; color: var(--ink-400);
    text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 14px;
}
.vd-price-featured .vd-price-name { color: #c4b5fd; }
.vd-price-amount {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 4px;
}
.vd-price-n {
    font-size: 2.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1; letter-spacing: -.025em;
}
.vd-price-featured .vd-price-n {
    background: linear-gradient(135deg, #fde047, #f472b6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.vd-price-u { font-size: 1rem; color: var(--ink-400); font-weight: 600; }
.vd-price-featured .vd-price-u { color: #94a3b8; }
.vd-price-unit { font-size: .82rem; color: var(--ink-400); margin-bottom: 22px; }
.vd-price-featured .vd-price-unit { color: #94a3b8; }
.vd-price-features {
    list-style: none; padding: 0; margin: 0 0 22px;
    flex: 1; padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}
.vd-price-featured .vd-price-features { border-top-color: rgba(255,255,255,.08); }
.vd-price-features li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0; font-size: .9rem; color: var(--ink-700);
    line-height: 1.5;
}
.vd-price-featured .vd-price-features li { color: #cbd5e1; }
.vd-price-features .vd-li-ico { color: var(--brand-500); }
.vd-price-featured .vd-price-features .vd-li-ico { color: #c084fc; }
.vd-price-btn {
    text-align: center; padding: 11px 18px;
    border-radius: 10px; font-weight: 600; font-size: .92rem;
    text-decoration: none;
    background: var(--bg-soft); color: var(--ink-800);
    border: 1px solid var(--line);
    transition: all .18s;
}
.vd-price-btn:hover {
    background: var(--ink-900); color: #fff;
    border-color: var(--ink-900); text-decoration: none;
}
.vd-price-featured .vd-price-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #1a1300; border-color: transparent;
}
.vd-price-featured .vd-price-btn:hover { filter: brightness(1.05); }

.vd-pricing-note {
    display: flex; align-items: center; gap: 14px;
    text-align: left; margin-top: 36px;
    padding: 20px 24px; background: var(--bg);
    border-radius: var(--r-lg); border: 1px dashed var(--brand-300);
    color: var(--ink-500); font-size: .94rem; line-height: 1.5;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.vd-pricing-note strong { color: var(--ink-900); }
.vd-note-ico { color: #f59e0b; flex: none; }

/* ===== WHY (dark) — 3×2 grid, horizontal card (icon trái, text phải) ===== */
.vd-why-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) { .vd-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vd-why-grid { grid-template-columns: 1fr; } }

.vd-why-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas: "ico title" "ico desc";
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 22px 22px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .22s, background .22s, border-color .22s;
}
.vd-why-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
}
.vd-why-ico {
    grid-area: ico;
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(168,85,247,.6);
    margin-bottom: 0;
}
.vd-why-item h4 {
    grid-area: title;
    margin: 4px 0 0;
    font-size: .98rem; font-weight: 700;
    color: #fff; line-height: 1.3;
    letter-spacing: -.005em;
}
.vd-why-item p {
    grid-area: desc;
    margin: 0;
    color: #8b96ab; font-size: .88rem; line-height: 1.55;
}

/* ===== FAQ ===== */
.vd-faq details {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color .22s, box-shadow .22s;
}
.vd-faq details[open] {
    border-color: var(--brand-300);
    box-shadow: var(--shadow);
}
.vd-faq summary {
    list-style: none; cursor: pointer;
    font-weight: 600; color: var(--ink-900);
    display: flex; justify-content: space-between;
    align-items: center; gap: 16px; font-size: 1rem;
    position: relative;
}
.vd-faq summary::-webkit-details-marker { display: none; }
.vd-faq summary::after {
    content: ""; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-soft); border: 1px solid var(--line);
    position: relative;
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 12px 2px, 2px 12px;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--ink-700);
    transition: transform .28s ease, background-color .22s, border-color .22s, color .22s;
}
.vd-faq details[open] summary::after {
    background-color: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
    background-size: 12px 2px, 0 0;
    transform: rotate(180deg);
}
.vd-faq p { margin: 14px 0 0; color: var(--ink-500); line-height: 1.7; }

/* ===== FINAL CTA ===== */
.vd-final {
    padding: 96px 0;
    background:
        radial-gradient(600px 320px at 10% 20%, rgba(79,107,255,.35), transparent 60%),
        radial-gradient(600px 320px at 90% 80%, rgba(168,85,247,.35), transparent 60%),
        linear-gradient(135deg, var(--ink-900) 0%, #1e1b4b 100%);
    color: #fff;
    position: relative; overflow: hidden;
    text-align: center;
}
.vd-final::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 60% at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.vd-final-inner { position: relative; z-index: 1; }
.vd-final-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: #fff; margin: 0 0 16px;
    font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
}
.vd-final-sub { color: #cbd5e1; max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; line-height: 1.6; }

.vd-contact-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px; margin: 48px auto 0;
}
.vd-contact-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg); padding: 22px;
    text-align: left;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .2s, transform .2s, border-color .2s;
}
.vd-contact-card:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.22);
}
.vd-contact-ico {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    color: #fff; display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.vd-contact-lbl {
    font-size: .72rem; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em;
    font-weight: 600;
}
.vd-contact-val {
    display: block; margin-top: 5px;
    color: #fff; font-weight: 600;
    text-decoration: none;
    word-break: break-word; font-size: .95rem;
}
.vd-contact-val:hover { color: #93b4ff; text-decoration: none; }

/* ===== Post meta refresh ===== */
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { color: var(--ink-400); }

/* ===== Mobile ===== */
@media (max-width: 720px) {
    .vd-sec { padding: 64px 0; }
    .vd-final { padding: 72px 0; }
    .vd-hero { padding: 56px 0 72px; }
    .vd-serp { transform: none; }
    .vd-sec-head { margin-bottom: 40px; }
}

/* ==========================================================
   FLOATING CONTACT CTA CLUSTER
   Render bởi partial: themes/default/partials/contact-cta.php
   Render bởi config:  config['contact']
   ========================================================== */

.cta-cluster {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none; /* để vùng giữa không chặn click trang */
}
.cta-cluster > * { pointer-events: auto; }

.cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 8px 22px -6px rgba(15, 23, 42, .25),
        0 0 0 1px rgba(255, 255, 255, .15) inset;
    transition:
        transform .25s cubic-bezier(.34,1.56,.64,1),
        box-shadow .25s,
        filter .2s;
    overflow: visible;
}
.cta-btn:hover {
    transform: translateY(-3px) scale(1.06);
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
    box-shadow:
        0 14px 32px -8px rgba(15, 23, 42, .35),
        0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.cta-btn:active { transform: translateY(-1px) scale(1.02); transition-duration: .1s; }

/* Tooltip xuất hiện khi hover */
.cta-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%; transform: translateY(-50%) translateX(8px);
    padding: 7px 12px;
    background: var(--ink-900);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 8px 16px -4px rgba(0,0,0,.25);
    font-family: var(--font);
}
.cta-btn[data-tooltip]::after {
    content: "";
    position: absolute;
    right: calc(100% + 6px);
    top: 50%; transform: translateY(-50%) scale(.6);
    width: 8px; height: 8px;
    background: var(--ink-900);
    transform-origin: center;
    rotate: 45deg;
    opacity: 0;
    transition: opacity .2s;
}
.cta-btn:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
.cta-btn:hover::after  { opacity: 1; }

/* Primary button — to hơn, có pulse */
.cta-primary {
    width: 60px;
    height: 60px;
    box-shadow:
        0 14px 30px -8px rgba(15, 23, 42, .35),
        0 0 0 1px rgba(255, 255, 255, .2) inset;
}

/* Pulse halo cho primary */
.cta-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: cta-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
    pointer-events: none;
}
@keyframes cta-ping {
    0%   { transform: scale(1);   opacity: .55; }
    75%, 100% { transform: scale(1.8); opacity: 0; }
}

/* === PNG button variant === */
/* Icon PNG fill toàn button, không gradient bg vì PNG đã có màu brand sẵn.
   Không đặt overflow:hidden ở đây vì sẽ clip tooltip — img tự bo tròn qua
   border-radius: inherit. */
.cta-btn-png {
    background: transparent !important;
    box-shadow:
        0 8px 22px -6px rgba(15, 23, 42, .22),
        0 0 0 1px rgba(255, 255, 255, .04) inset;
    padding: 0;
}
.cta-btn-png:hover {
    box-shadow:
        0 14px 32px -8px rgba(15, 23, 42, .35),
        0 0 0 2px rgba(79, 107, 255, .25) inset;
}
.cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; /* bo tròn đồng bộ với button cha */
    display: block;
    pointer-events: none;
}
/* PNG primary có pulse — màu ping generic (brand) vì không biết màu PNG */
.cta-btn-png .cta-ping {
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
    opacity: .5;
}

/* === BRAND COLORS (fallback SVG) === */
.cta-phone     { background: linear-gradient(135deg, #10b981, #059669); }
.cta-phone .cta-ping { background: #10b981; }

.cta-zalo      { background: linear-gradient(135deg, #2563eb, #1e40af); }
.cta-zalo .cta-ping { background: #2563eb; }

.cta-messenger { background: linear-gradient(135deg, #a855f7, #d946ef, #ec4899); background-size: 200% 200%; animation: cta-msn 4s ease infinite; }
.cta-messenger .cta-ping { background: #c026d3; }
@keyframes cta-msn {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.cta-email     { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.cta-email .cta-ping { background: #f59e0b; }

.cta-telegram  { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.cta-telegram .cta-ping { background: #0ea5e9; }

.cta-whatsapp  { background: linear-gradient(135deg, #25d366, #128c7e); }
.cta-whatsapp .cta-ping { background: #25d366; }

.cta-viber     { background: linear-gradient(135deg, #7360f2, #59267c); }
.cta-viber .cta-ping { background: #7360f2; }

.cta-default   { background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); }
.cta-default .cta-ping { background: var(--brand-500); }

/* === Entrance pop (load lần đầu) + Idle motion (luôn chạy) === */
/* Mỗi button có 2 animation chạy nối tiếp:
   1. cta-pop: entrance từ nhỏ + lệch dưới → vị trí chuẩn
   2. cta-bob (secondary) hoặc cta-shake-phone (primary): idle motion */

.cta-stack .cta-btn {
    opacity: 0;
    animation:
        cta-pop .4s cubic-bezier(.34,1.56,.64,1) forwards,
        cta-bob 3.6s ease-in-out infinite;
}
/* Stagger delay cho cả entrance + idle (idle delay = entrance delay + 1s để chờ entrance xong) */
.cta-stack .cta-btn:nth-child(1) { animation-delay: .2s, 1.2s; }
.cta-stack .cta-btn:nth-child(2) { animation-delay: .3s, 1.7s; } /* +.5s lệch wave */
.cta-stack .cta-btn:nth-child(3) { animation-delay: .4s, 2.2s; }
.cta-stack .cta-btn:nth-child(4) { animation-delay: .5s, 2.7s; }
.cta-stack .cta-btn:nth-child(5) { animation-delay: .6s, 3.2s; }
.cta-stack .cta-btn:nth-child(6) { animation-delay: .7s, 3.7s; }

.cta-cluster .cta-primary {
    opacity: 0;
    animation:
        cta-pop .45s cubic-bezier(.34,1.56,.64,1) forwards,
        cta-shake-phone 4s ease-in-out infinite;
    animation-delay: .1s, 2.5s;
}

/* Hover: cancel idle animation để hover transform (-3px scale 1.06) áp dụng được.
   CSS animation override static transform, nên phải bỏ animation hoàn toàn.
   Lưu ý: phải force opacity:1 vì cta-pop forwards bị huỷ → opacity revert về base 0 → button biến mất. */
.cta-btn:hover {
    animation: none !important;
    opacity: 1 !important;
}

@keyframes cta-pop {
    0%   { opacity: 0; transform: translateY(20px) scale(.5); }
    100% { opacity: 1; transform: translateY(0)    scale(1);  }
}

/* Bob nhẹ cho secondary buttons — up/down + nghiêng nhẹ → wave effect */
@keyframes cta-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-5px) rotate(-2deg); }
}

/* Phone primary — rung như đang đổ chuông mỗi 4 giây */
@keyframes cta-shake-phone {
    0%, 86%, 100% { transform: rotate(0) translateY(0); }
    88%  { transform: rotate(-14deg) translateY(-2px); }
    90%  { transform: rotate(14deg)  translateY(-2px); }
    92%  { transform: rotate(-10deg) translateY(-2px); }
    94%  { transform: rotate(8deg)   translateY(-2px); }
    96%  { transform: rotate(-4deg)  translateY(-2px); }
    98%  { transform: rotate(2deg)   translateY(-2px); }
}

/* === Mobile (<= 640px) — gọn hơn, vẫn lộ rõ primary === */
@media (max-width: 640px) {
    .cta-cluster {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }
    .cta-btn       { width: 44px; height: 44px; }
    .cta-primary   { width: 54px; height: 54px; }
    .cta-stack     { gap: 8px; }
    .cta-btn svg   { width: 20px; height: 20px; }
    .cta-primary svg { width: 24px; height: 24px; }

    /* Trên mobile: tắt tooltip (vì chạm vào sẽ click) */
    .cta-btn[data-tooltip]::before,
    .cta-btn[data-tooltip]::after { display: none; }
}

/* Tôn trọng prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cta-ping,
    .cta-messenger,
    .cta-stack .cta-btn,
    .cta-cluster .cta-primary { animation: none; }
    .cta-stack .cta-btn,
    .cta-cluster .cta-primary { opacity: 1; }
}
