/* EaseBill public home page (views/home/index.php). Light and dark, like the app. */
:root {
    --lp-bg: #0B1120; --lp-bg-2: #0F172A; --lp-card: #131C31; --lp-card-2: #18233C;
    --lp-line: rgba(148, 163, 184, .16); --lp-text: #E2E8F0; --lp-strong: #F8FAFC; --lp-muted: #94A3B8;
    --lp-blue: #3B82F6; --lp-blue-2: #1D4ED8; --lp-cyan: #22D3EE; --lp-green: #10B981; --lp-red: #F87171; --lp-amber: #F59E0B;
    --lp-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
}
[data-theme="light"] {
    --lp-bg: #F8FAFC; --lp-bg-2: #EEF4FF; --lp-card: #FFFFFF; --lp-card-2: #F1F5F9;
    --lp-line: rgba(15, 23, 42, .1); --lp-text: #334155; --lp-strong: #0F172A; --lp-muted: #64748B;
    --lp-shadow: 0 24px 60px rgba(15, 23, 42, .14);
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--lp-bg); color: var(--lp-text); font: 400 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-strong); margin: 0; letter-spacing: -.02em; }
.lp-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.lp-narrow { width: min(820px, 100% - 40px); }
.lp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--lp-blue); color: #fff; }
.lp-skip:focus { left: 12px; }
.lp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.lp-btn i { transition: transform .2s; }
.lp-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.lp-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 13px; }
.lp-btn-primary { background: linear-gradient(135deg, #4F8DFF, #1D4ED8); color: #fff !important; box-shadow: 0 10px 26px rgba(37, 99, 235, .35); }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 99, 235, .45); }
.lp-btn-ghost { border-color: var(--lp-line); background: color-mix(in srgb, var(--lp-card) 70%, transparent); color: var(--lp-strong) !important; }
.lp-btn-ghost:hover { border-color: var(--lp-blue); transform: translateY(-2px); }
.lp-btn-light { background: #fff; color: #1D4ED8 !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.lp-btn-light:hover { transform: translateY(-2px); }
.lp-btn:focus-visible, .lp-theme:focus-visible, .lp-links a:focus-visible { outline: 3px solid rgba(59, 130, 246, .55); outline-offset: 2px; }

/* Top bar */
.lp-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--lp-bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lp-nav.is-scrolled { border-bottom-color: var(--lp-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--lp-strong) !important; }
.lp-brand-sm { font-size: 16px; }
.lp-links { display: flex; gap: 26px; margin-left: 12px; }
.lp-links a { text-decoration: none; color: var(--lp-muted); font-weight: 600; font-size: 14.5px; border-radius: 6px; }
.lp-links a:hover { color: var(--lp-strong); }
.lp-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-theme { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--lp-line); background: transparent; color: var(--lp-muted); cursor: pointer; font-size: 15px; transition: color .2s, transform .4s; }
.lp-theme:hover { color: var(--lp-strong); transform: rotate(180deg); }

/* Hero */
.lp-hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.lp-glow { position: absolute; inset: -20% -10% auto; height: 680px; pointer-events: none;
    background: radial-gradient(600px 320px at 18% 30%, rgba(59, 130, 246, .28), transparent 70%),
                radial-gradient(520px 300px at 82% 20%, rgba(34, 211, 238, .16), transparent 70%); }
.lp-hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .1); color: #60A5FA; font-weight: 700; font-size: 13px; }
[data-theme="light"] .lp-pill { color: #1D4ED8; }
.lp-hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.07; font-weight: 800; }
.lp-grad { background: linear-gradient(90deg, #60A5FA, #22D3EE 55%, #34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .lp-grad { background-image: linear-gradient(90deg, #1D4ED8, #0891B2 55%, #059669); }
.lp-lead { font-size: 18px; color: var(--lp-muted); max-width: 560px; margin: 0 0 28px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lp-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--lp-text); font-size: 14.5px; }
.lp-ticks i { color: var(--lp-green); margin-right: 8px; }

/* Product preview */
.lp-preview { position: relative; }
.lp-window { border: 1px solid var(--lp-line); border-radius: 18px; background: var(--lp-card); box-shadow: var(--lp-shadow); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; }
.lp-preview:hover .lp-window { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); background: var(--lp-card-2); }
.lp-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.lp-window-bar span:nth-child(2) { background: #FBBF24; } .lp-window-bar span:nth-child(3) { background: #34D399; }
.lp-window-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--lp-muted); }
.lp-window-body { padding: 18px; display: grid; gap: 14px; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-kpi { position: relative; padding: 12px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-card-2); }
.lp-kpi small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-kpi b { display: block; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 15px; }
.lp-kpi i { position: absolute; top: 10px; right: 10px; font-size: 12px; color: var(--lp-muted); }
.pos { color: var(--lp-green); } .neg { color: var(--lp-red); } .warn { color: var(--lp-amber); }
.lp-chart { padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-card-2); }
.lp-chart-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--lp-strong); }
.lp-chart-head em { font-style: normal; font-weight: 600; color: var(--lp-muted); }
.lp-bars { height: 120px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 6px; border-bottom: 1px solid var(--lp-line); }
.lp-bar-pair { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.lp-bar-pair span { width: 40%; border-radius: 4px 4px 0 0; background: linear-gradient(#60A5FA, #2563EB); transform-origin: bottom; animation: lp-grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
.lp-bar-pair span + span { background: linear-gradient(#FCA5A5, #EF4444); }
@keyframes lp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.lp-rows { display: grid; gap: 6px; }
.lp-rows div { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--lp-card-2); font-size: 12.5px; }
.lp-rows .lp-mono:first-child { color: #60A5FA; font-weight: 600; }
.lp-rows em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
em.ok { color: #34D399; background: rgba(16, 185, 129, .14); } em.due { color: #FBBF24; background: rgba(245, 158, 11, .14); } em.info { color: #60A5FA; background: rgba(59, 130, 246, .14); }
.lp-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-card); box-shadow: var(--lp-shadow); animation: lp-bob 5s ease-in-out infinite; }
.lp-float i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(16, 185, 129, .15); color: var(--lp-green); }
.lp-float b { display: block; font-size: 13px; color: var(--lp-strong); } .lp-float small { color: var(--lp-muted); font-size: 11.5px; }
.lp-float-a { left: -30px; bottom: -22px; }
.lp-float-b { right: -22px; top: -26px; animation-delay: -2.5s; }
.lp-float-b i { background: rgba(59, 130, 246, .15); color: #60A5FA; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.lp-section { padding: 84px 0; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lp-eyebrow { display: inline-block; margin-bottom: 10px; color: #60A5FA; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="light"] .lp-eyebrow { color: #1D4ED8; }
.lp-head h2, .lp-split h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 800; }
.lp-head p { color: var(--lp-muted); font-size: 17px; margin: 14px 0 0; }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-card, .lp-panel, .lp-step { padding: 22px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); transition: transform .25s, border-color .25s, box-shadow .25s; }
.lp-card:hover, .lp-panel:hover, .lp-step:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.lp-card-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(79, 141, 255, .22), rgba(29, 78, 216, .22)); color: #60A5FA; font-size: 18px; margin-bottom: 14px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
[data-theme="light"] .lp-card-icon { color: #1D4ED8; }
.lp-card:hover .lp-card-icon, .lp-panel:hover .lp-card-icon { transform: scale(1.12) rotate(-6deg); }
.lp-card h3, .lp-panel h3, .lp-step h3 { font-size: 17px; margin-bottom: 6px; }
.lp-card p, .lp-panel p, .lp-step p { margin: 0; color: var(--lp-muted); font-size: 14.5px; }

/* Flow */
.lp-flow-section { background: linear-gradient(180deg, transparent, var(--lp-bg-2) 30%, var(--lp-bg-2) 70%, transparent); }
.lp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.lp-flow li { position: relative; text-align: center; padding: 22px 12px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); }
.lp-flow li:not(:last-child)::after { content: "\f054"; font: 900 12px 'Font Awesome 6 Free'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lp-blue); color: #fff; }
.lp-flow span { width: 48px; height: 48px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 14px; background: rgba(59, 130, 246, .14); color: #60A5FA; font-size: 19px; }
.lp-flow b { display: block; color: var(--lp-strong); }
.lp-flow small { color: var(--lp-muted); font-size: 13px; }

/* GST */
.lp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lp-lead-sm { color: var(--lp-muted); font-size: 17px; margin: 14px 0 20px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-list i { width: 22px; height: 22px; margin-right: 10px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(16, 185, 129, .15); color: var(--lp-green); font-size: 11px; }
.lp-gst-card { padding: 22px; border: 1px solid var(--lp-line); border-radius: 18px; background: var(--lp-card); box-shadow: var(--lp-shadow); font-size: 14.5px; }
.lp-gst-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.lp-gst-row b { font-family: 'JetBrains Mono', monospace; color: var(--lp-strong); font-weight: 600; }
.lp-gst-head span { font-weight: 800; color: var(--lp-strong); }
.lp-gst-head em { font-style: normal; color: var(--lp-muted); font-size: 12.5px; }
.lp-gst-sep { height: 1px; margin: 10px 0; background: var(--lp-line); }
.lp-gst-total { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(59, 130, 246, .12); font-weight: 800; color: var(--lp-strong); }
.lp-gst-total b { font-family: 'JetBrains Mono', monospace; color: #60A5FA; }

/* Steps, panels */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step-no { width: 38px; height: 38px; display: inline-grid; place-items: center; margin-bottom: 14px; border-radius: 50%; background: linear-gradient(135deg, #4F8DFF, #1D4ED8); color: #fff; font-weight: 800; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-panel { padding: 28px; }

/* FAQ */
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-card); padding: 0 20px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--lp-strong); display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--lp-muted); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0 0 18px; color: var(--lp-muted); }

/* CTA + footer */
.lp-cta-band { padding: 20px 0 80px; }
.lp-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 22px; background: linear-gradient(135deg, #2563EB, #1D4ED8 45%, #0E7490); color: #fff; box-shadow: 0 24px 60px rgba(37, 99, 235, .35); }
.lp-cta-in h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.lp-cta-in p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); }
.lp-footer { border-top: 1px solid var(--lp-line); padding: 26px 0; }
.lp-footer-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lp-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-footer nav a { text-decoration: none; color: var(--lp-muted); font-size: 14px; }
.lp-footer nav a:hover { color: var(--lp-strong); }
.lp-footer small { color: var(--lp-muted); }

/* Scroll reveal */
.lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* Tablet & phone */
@media (max-width: 1024px) {
    .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-hero-in, .lp-split { grid-template-columns: 1fr; gap: 44px; }
    .lp-window { transform: none; }
    .lp-float-a { left: 8px; } .lp-float-b { right: 8px; }
    .lp-preview { margin: 20px 0 10px; }
    .lp-flow { grid-template-columns: repeat(3, 1fr); }
    .lp-flow li:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
    .lp-links, .lp-hide-sm { display: none; }
    .lp-nav-in { height: 60px; gap: 12px; }
    .lp-hero { padding: 40px 0 60px; }
    .lp-lead { font-size: 16px; }
    .lp-hero-cta .lp-btn { flex: 1 1 100%; }
    .lp-section { padding: 56px 0; }
    .lp-grid, .lp-steps, .lp-two { grid-template-columns: 1fr; }
    .lp-flow { grid-template-columns: 1fr; }
    .lp-flow li { display: grid; grid-template-columns: 48px 1fr; text-align: left; column-gap: 14px; align-items: center; }
    .lp-flow li span { grid-row: span 2; margin: 0; }
    .lp-flow li::after { display: none; }
    .lp-kpis { grid-template-columns: 1fr 1fr; }
    .lp-kpi:last-child { display: none; }
    .lp-rows div { grid-template-columns: 1fr auto; }
    .lp-rows div span:nth-child(2), .lp-rows div span:nth-child(3) { display: none; }
    .lp-float { display: none; }
    .lp-cta-in { flex-direction: column; align-items: stretch; text-align: center; padding: 30px 22px; }
    .lp-footer-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-reveal { opacity: 1; transform: none; transition: none; }
    .lp-float, .lp-bar-pair span { animation: none; }
    .lp-window { transform: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   User guide (/docs)
   ========================================================================== */
.lp-wide { width: min(1320px, 100% - 40px); }
.doc-brand-tag { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(59, 130, 246, .15); color: #60A5FA; font-size: 11px; font-weight: 700; vertical-align: middle; }
[data-theme="light"] .doc-brand-tag { color: #1D4ED8; }
.doc-toc-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--lp-line); border-radius: 10px; background: transparent; color: var(--lp-strong); cursor: pointer; }
.doc-search { position: relative; flex: 1 1 auto; max-width: 460px; margin-left: 10px; }
.doc-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lp-muted); font-size: 14px; }
.doc-search input { width: 100%; height: 42px; padding: 0 44px 0 40px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-card); color: var(--lp-strong); font: 500 15px 'Plus Jakarta Sans', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.doc-search input:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.doc-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 1px 7px; border: 1px solid var(--lp-line); border-bottom-width: 2px; border-radius: 6px; color: var(--lp-muted); font: 600 12px 'Plus Jakarta Sans', sans-serif; }

.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 44px; align-items: start; padding: 28px 0 60px; }
.doc-toc { position: sticky; top: 86px; max-height: calc(100vh - 106px); display: flex; flex-direction: column; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); overflow: hidden; }
.doc-toc-head { padding: 14px 16px; border-bottom: 1px solid var(--lp-line); font-weight: 800; color: var(--lp-strong); display: flex; flex-direction: column; }
.doc-toc-head span { font-weight: 500; font-size: 12px; color: var(--lp-muted); }
.doc-toc nav { overflow-y: auto; padding: 8px 8px 14px; overscroll-behavior: contain; scrollbar-width: thin; }
.doc-toc-chapter { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 4px; border-radius: 9px; color: var(--lp-strong) !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.doc-toc-chapter i { width: 18px; text-align: center; color: #60A5FA; font-size: 13px; }
.doc-toc-chapter:hover { background: rgba(59, 130, 246, .1); }
.doc-toc ul { list-style: none; margin: 0 0 4px; padding: 0 0 0 20px; border-left: 1px solid var(--lp-line); margin-left: 18px; }
.doc-toc li a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--lp-muted) !important; font-size: 13.5px; text-decoration: none; transition: color .15s, background .15s; }
.doc-toc li a:hover { color: var(--lp-strong) !important; }
.doc-toc li a.is-active { color: #60A5FA !important; background: rgba(59, 130, 246, .12); font-weight: 600; }
[data-theme="light"] .doc-toc li a.is-active { color: #1D4ED8 !important; }

.doc-main { min-width: 0; max-width: 880px; }
.doc-hero { padding: 10px 0 18px; }
.doc-hero h1 { margin: 16px 0 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.doc-hero > p { color: var(--lp-muted); font-size: 17px; margin: 0 0 22px; }
.doc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc-quick-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-card); text-decoration: none; transition: transform .2s, border-color .2s; }
.doc-quick-card:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .5); }
.doc-quick-card i { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(59, 130, 246, .14); color: #60A5FA; }
.doc-quick-card b { display: block; color: var(--lp-strong); font-size: 14.5px; }
.doc-quick-card small { color: var(--lp-muted); font-size: 12.5px; }

.doc-chapter { padding-top: 34px; scroll-margin-top: 80px; }
.doc-chapter-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--lp-line); }
.doc-chapter-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #4F8DFF, #1D4ED8); color: #fff; font-size: 21px; box-shadow: 0 10px 24px rgba(37, 99, 235, .3); }
.doc-chapter-head small { color: #60A5FA; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.doc-chapter-head h2 { font-size: 28px; font-weight: 800; margin: 2px 0 4px; }
.doc-chapter-head p { margin: 0; color: var(--lp-muted); }

.doc-guide { position: relative; margin-top: 18px; padding: 22px 24px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-card); scroll-margin-top: 84px; }
.doc-guide:target { border-color: var(--lp-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.doc-guide h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.doc-anchor { color: var(--lp-muted) !important; text-decoration: none; opacity: 0; font-weight: 600; margin-left: -18px; width: 10px; transition: opacity .15s; }
.doc-guide:hover .doc-anchor { opacity: 1; }
.doc-where { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(59, 130, 246, .1); color: #60A5FA; font-size: 13px; font-weight: 600; }
[data-theme="light"] .doc-where { color: #1D4ED8; }
.doc-where i { font-size: 11px; }
.doc-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 28px; color: var(--lp-text); font-size: 15.5px; line-height: 1.6; }
.doc-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(59, 130, 246, .15); color: #60A5FA; font-weight: 800; font-size: 13px; }
.doc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: -12px; width: 1px; background: var(--lp-line); }
[data-theme="light"] .doc-steps li::before { color: #1D4ED8; }
.doc-steps b, .doc-tip b { color: var(--lp-strong); }
.doc-tip { display: flex; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .08); color: var(--lp-text); font-size: 14.5px; }
.doc-tip i { color: var(--lp-amber); margin-top: 3px; }
mark.doc-hit { background: rgba(250, 204, 21, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.doc-empty { margin: 30px 0; padding: 22px; border: 1px dashed var(--lp-line); border-radius: 14px; color: var(--lp-muted); text-align: center; }
.doc-end { margin-top: 40px; padding: 28px; border-radius: 18px; border: 1px solid var(--lp-line); background: var(--lp-card); }
.doc-end h2 { font-size: 24px; } .doc-end p { color: var(--lp-muted); }
.doc-scrim { display: none; }

@media (max-width: 1024px) {
    .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
    .doc-toc-toggle { display: inline-grid; place-items: center; }
    .doc-toc { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; }
    body.toc-open .doc-toc { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
    body.toc-open .doc-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, .55); }
}
@media (max-width: 760px) {
    .doc-search { margin-left: 0; }
    .doc-search kbd { display: none; }
    .lp-docs .lp-brand span { display: none; }
    .doc-quick { grid-template-columns: 1fr 1fr; }
    .doc-guide { padding: 18px 16px; }
    .doc-steps li { font-size: 15px; padding-left: 40px; }
    .doc-chapter-head h2 { font-size: 23px; }
}
@media (max-width: 420px) { .doc-quick { grid-template-columns: 1fr; } }

/* User guide: What's new / version history */
.doc-latest { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 22px; padding: 9px 14px; border: 1px solid var(--lp-line); border-radius: 999px; background: var(--lp-card); color: var(--lp-text); text-decoration: none; font-size: 14px; font-weight: 600; max-width: 100%; }
.doc-latest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.doc-latest i:first-child { color: var(--lp-blue); }
.doc-latest:hover { border-color: var(--lp-blue); }
.doc-rel-badge { margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--lp-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.doc-rel-group { margin-top: 14px; }
.doc-rel-group h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.doc-rel-group ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; color: var(--lp-muted); }
.doc-rel-new h4 { color: var(--lp-blue); }
.doc-rel-improved h4 { color: var(--lp-cyan); }
.doc-rel-fixed h4 { color: var(--lp-amber); }
.doc-rel-security h4 { color: var(--lp-green); }
