/* Website giới thiệu (trang công khai). Tách khỏi app.css để trang nhẹ; dùng font hệ thống, không tải web font. */
:root {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --border: #e4e7ef;
    --text: #141826;
    --text-muted: #5b6475;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef0ff;
    --accent: #a855f7;
    --success: #15803d;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 12px 32px -12px rgba(30, 27, 75, .18);
    --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
    --container: 1180px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 8px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--primary-soft); color: #3730a3; padding: 1px 6px; border-radius: 5px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #c7cbe0; background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f0ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { flex: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--text-muted); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang-switch {
    font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; margin-right: 4px;
}
.lang-switch:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--text); display: grid; place-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-panel a:not(.btn) { color: var(--text); font-weight: 550; padding: 10px 8px; border-radius: 8px; }
.mobile-nav-panel a:not(.btn):hover { background: var(--bg-alt); text-decoration: none; }
.mobile-nav-panel .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 80px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(168, 85, 247, .16), transparent 70%),
        radial-gradient(700px 380px at 0% 0%, rgba(79, 70, 229, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
.grad-text { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-muted); font-size: 14.5px; }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.hero-visual { position: relative; min-height: 440px; }
.phone {
    position: absolute; right: 40px; top: 0; width: 280px; height: 440px;
    border-radius: 40px; padding: 48px 14px 14px;
    background: linear-gradient(160deg, #312e81, #6d28d9 60%, #a855f7);
    border: 8px solid #111827; box-shadow: var(--shadow);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #111827; }
.phone-time { color: #fff; text-align: center; font-size: 46px; font-weight: 300; line-height: 1; margin-bottom: 20px; letter-spacing: -.02em; }
.notif {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255, 255, 255, .9); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px;
    font-size: 12.5px; line-height: 1.35; color: var(--text);
}
.notif strong { display: block; font-size: 13px; }
.notif span { color: #3f4657; }
.notif-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); display: grid; place-items: center; font-size: 15px; }
.notif-call { background: #ecfdf5; }

.code-card {
    background: #0f172a; color: #e2e8f0; border-radius: 14px; box-shadow: var(--shadow);
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow: hidden;
}
.hero-visual .code-card { position: absolute; left: 0; bottom: -20px; width: 350px; font-size: 12px; }
.code-card-head { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #1e293b; color: #94a3b8; font-size: 12px; }
.code-card-head span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.code-card-head span:first-child { background: #f87171; }
.code-card-head span:nth-child(2) { background: #fbbf24; }
.code-card-head span:nth-child(3) { background: #34d399; margin-right: 6px; }
.code-card pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code-card code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code-card i { font-style: normal; color: #93c5fd; }
.code-card b { font-weight: 400; color: #86efac; }

/* ---------- Platform strip ---------- */
.platform-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; background: #fff; }
.platform-strip .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.platform-strip p { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.platform-strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 28px; flex-wrap: wrap; }
.platform-strip li { font-weight: 650; color: #374151; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 17px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-link { text-align: center; margin: 36px 0 0; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.feature:hover { border-color: #c7d2fe; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps > li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps > li::before {
    content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps p { color: var(--text-muted); margin: 0; }

.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.usecase { background: var(--surface); padding: 28px; }
.usecase p { color: var(--text-muted); margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
}
.plan-highlight { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-name { font-size: 20px; margin: 0 0 4px; }
.plan-tagline { color: var(--text-muted); font-size: 14.5px; min-height: 3.3em; }
.plan-price { margin: 0 0 20px; }
.plan-price strong { display: block; font-size: 34px; font-weight: 780; letter-spacing: -.02em; line-height: 1.2; }
.plan-price span { color: var(--text-muted); font-size: 14px; }
.plan .check-list { margin-top: 22px; font-size: 14.5px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 4px 0 4px 28px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .6em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plain-list { margin: 0; padding-left: 20px; color: var(--text-muted); }
.plain-list li { padding: 3px 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-alt); font-weight: 700; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare-2 { min-width: 560px; }
.compare-2 td:nth-child(2) { background: #fafaff; font-weight: 600; }
.note { color: var(--text-muted); font-size: 15px; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 24px; font-weight: 400; color: var(--primary); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 17px; margin: 0; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 48px; border-radius: 20px; color: #fff;
    background: linear-gradient(120deg, #4338ca, #7c3aed 60%, #a855f7);
    box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; font-size: clamp(24px, 3vw, 32px); }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero {
    padding: 56px 0 48px;
    background: radial-gradient(800px 320px at 90% -20%, rgba(168, 85, 247, .14), transparent 70%), var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 900px; }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .lead { margin-left: auto; margin-right: auto; }
.page-hero .hero-cta { margin-bottom: 0; }
.breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--text); }
.toc a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.split-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.code-card-static { align-self: center; }
.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.spec dt { font-weight: 650; }
.spec dd { margin: 0; color: var(--text-muted); }
[id] { scroll-margin-top: 84px; }

.sdk-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sdk-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.sdk-item strong { display: block; font-size: 17px; }
.sdk-item span { color: var(--text-muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.contact-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.contact-card h2 { font-size: 19px; margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #94a3b8; font-size: 14.5px; max-width: 340px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.site-footer nav a, .site-footer div > a:not(.logo) { display: block; color: #cbd5e1; font-size: 15px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-backlinks { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 28px; }
.footer-backlinks ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-backlinks + .footer-bottom { margin-top: 28px; }
.site-footer .footer-backlinks a { display: inline; font-size: 14px; color: #94a3b8; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 22px; font-size: 13px; color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-4 { grid-template-columns: repeat(2, 1fr); }
    .sdk-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
    .main-nav, .header-cta { display: none; }
    .mobile-nav { display: block; }
    .hero { padding: 48px 0 64px; }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
    .phone { position: relative; right: auto; top: auto; }
    .hero-visual .code-card { position: relative; left: auto; bottom: auto; margin-top: -60px; width: min(340px, 100%); }
    .steps, .usecase-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 64px 0; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .pricing-grid, .steps-4 { grid-template-columns: 1fr; }
    .sdk-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-banner { padding: 32px 24px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .spec { grid-template-columns: 1fr; gap: 2px; }
    .spec dd { margin-bottom: 8px; }
    .phone { width: 260px; height: 420px; }
}

/* ---------- Tài liệu (trang Hướng dẫn, Tài liệu API): dùng lại component của trang quản trị ---------- */
.docs { --surface-2: var(--bg-alt); --radius-sm: 10px; --info: #0369a1; --info-soft: #e5f3fb; --success-soft: #e7f6ec; --danger: #dc2626; --danger-soft: #fdecec; font-size: 15px; }
.docs .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; scroll-margin-top: 84px; }
.docs .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.docs .card-header h2 { font-size: 20px; margin: 0; }
.docs .card-body { padding: 20px; }
.docs .hint { color: var(--text-muted); font-size: 14px; }
.docs .card-header .hint { margin: 4px 0 0; }
.docs h3 { font-size: 16px; }
.docs .grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.docs .table-wrap { overflow-x: auto; }
.docs .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs .table th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); white-space: nowrap; }
.docs .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs .table tr:last-child td { border-bottom: none; }
.docs .mono { font-family: var(--mono); font-size: 13px; }
.docs .badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-alt); color: var(--text-muted); white-space: nowrap; }
.docs .badge-success { background: var(--success-soft); color: var(--success); }
.docs .badge-danger { background: var(--danger-soft); color: var(--danger); }
.docs .badge-info { background: var(--info-soft); color: var(--info); }
.docs pre.code { background: #f6f8fa; color: var(--text); border: 1px solid var(--border); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 0; font-variant-ligatures: none; }
.docs pre.code code, .docs .code-block code { background: none; padding: 0; color: inherit; }
.docs .code-block { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.docs .code-block .code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.docs .code-block pre.code { border: 0; border-radius: 0; }
.docs .btn-sm { padding: 4px 10px; font-size: 13px; }
.docs .sdk-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.docs .sdk-steps > li { counter-increment: step; position: relative; padding: 0 0 24px 40px; border-left: 2px solid var(--border); margin-left: 13px; }
.docs .sdk-steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.docs .sdk-steps > li::before { content: counter(step); position: absolute; left: -14px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.docs .sdk-steps > li > h3 { margin: 0 0 6px; }
.docs .sdk-steps ul { padding-left: 18px; }
.docs .sdk-platforms { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.docs .sdk-platform { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); }
.docs .sdk-platform:hover { border-color: var(--primary); text-decoration: none; }
.docs .sdk-platform .name { font-weight: 650; }
.docs .sdk-platform .hint { margin: 0; font-size: 13px; }
.docs .sdk-check { list-style: none; padding: 0; margin: 0; }
.docs .sdk-check li { padding: 4px 0 4px 26px; position: relative; }
.docs .sdk-check li::before { content: "☐"; position: absolute; left: 2px; color: var(--primary); }
.docs .dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; }
.docs .dl dt { font-weight: 600; }
.docs .dl dd { margin: 0; color: var(--text-muted); }
.docs .mt-0 { margin-top: 0; }
@media (max-width: 920px) {
    .docs .grid-2 { grid-template-columns: 1fr; }
    .docs .dl { grid-template-columns: 1fr; gap: 2px; }
    .docs .dl dd { margin-bottom: 8px; }
}

/* ---------- Hướng dẫn tích hợp: 2 cột (trái: nền tảng / ngôn ngữ, phải: hướng dẫn) ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-nav {
    position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px;
}
.guide-nav-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 6px 10px 8px; }
.guide-nav-item {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent;
    font: inherit; color: var(--text); cursor: pointer;
}
.guide-nav-item:hover { background: var(--surface-2); text-decoration: none; }
.guide-nav-item.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.guide-nav-item .icon { font-size: 18px; width: 24px; text-align: center; flex: none; }
.guide-nav-item .text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.guide-nav-item .name { font-weight: 600; }
.guide-nav-item .hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.guide-nav-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.guide-main { min-width: 0; }
.guide-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 10px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.guide-card:hover { border-color: var(--primary); text-decoration: none; }
.guide-card .name { font-weight: 650; }
.guide-card .hint { font-size: 13px; color: var(--text-muted); margin: 0; }
.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.guide-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.guide-pager a:hover { border-color: var(--primary); text-decoration: none; }
.guide-pager a.next { grid-column: 2; text-align: right; }
.guide-pager .hint { font-size: 13px; color: var(--text-muted); }

@media (max-width: 920px) {
    .guide-layout { grid-template-columns: 1fr; gap: 16px; }
    .guide-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; gap: 6px; }
    .guide-nav-title, .guide-nav-sep, .guide-nav-item .hint { display: none; }
    .guide-nav-item { width: auto; flex: none; white-space: nowrap; padding: 6px 12px; border-color: var(--border); }
}
.docs .guide-layout { --surface-2: var(--bg-alt); }
.page-hero-compact { padding: 36px 0 32px; }
.page-hero-compact h1 { font-size: clamp(26px, 3.4vw, 36px); }
