:root {
    --bg: #fafbfd;
    --bg-white: #ffffff;
    --bg-soft: #f4f6fa;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e8ecf1;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9em;
    color: var(--rose-700);
}

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 800px 600px at 10% 0%, rgba(244, 63, 94, 0.04), transparent),
        radial-gradient(ellipse 600px 400px at 90% 30%, rgba(99, 102, 241, 0.03), transparent),
        radial-gradient(ellipse 500px 500px at 50% 100%, rgba(16, 185, 129, 0.03), transparent);
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.navbar-main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-link img {
    height: 34px;
}

.nav-pills-custom {
    list-style: none;
    padding: 0;
}

.nav-pills-custom .nav-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-pills-custom .nav-link:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

.nav-pills-custom .nav-link.active {
    color: var(--rose-700);
    background: var(--rose-100);
    font-weight: 600;
}

.kb-mobile-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    background: var(--bg-white);
}

.kb-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    background: var(--bg-white);
}

.kb-mobile-toggle:hover,
.kb-icon-btn:hover {
    color: var(--rose-700);
    border-color: var(--rose-100);
    background: var(--rose-50);
}

.kb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--emerald-600);
    font-size: 0.82rem;
    font-weight: 600;
}

.kb-status-pill .dot,
.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-500);
    animation: pulse 2s infinite;
}

.btn-new-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(244, 63, 94, 0.25);
}

.btn-new-ticket-label {
    white-space: nowrap;
}

.btn-new-ticket:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.35);
}

.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rose-500), transparent);
    border-radius: 2px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--emerald-600);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--rose-500), var(--indigo-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.search-box {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 1rem 1.5rem 1rem 3.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--rose-200);
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.kb-search-icon {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.kb-search-shortcut {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: var(--slate-50);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

body.kb-spotlight-open {
    overflow: hidden;
}

.kb-spotlight[hidden] {
    display: none !important;
}

.kb-spotlight {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.kb-spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px);
}

.kb-spotlight-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(1rem + env(safe-area-inset-top))
        calc(1rem + env(safe-area-inset-right))
        calc(1rem + env(safe-area-inset-bottom))
        calc(1rem + env(safe-area-inset-left));
}

.kb-spotlight-panel {
    width: min(920px, 100%);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.kb-spotlight-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.4rem 0.8rem;
}

.kb-spotlight-title {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 700;
}

.kb-spotlight-copy {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.kb-spotlight-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.kb-spotlight-input-wrap {
    position: relative;
    padding: 0 1.4rem 1rem;
}

.kb-search-icon.is-modal {
    left: 2.5rem;
}

.kb-spotlight-input-wrap input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.05rem 1.15rem 1.05rem 3.2rem;
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kb-spotlight-input-wrap input:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--rose-200);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.kb-spotlight-helper {
    padding: 0 1.4rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.kb-spotlight-helper button {
    border: none;
    background: transparent;
    color: var(--rose-600);
    padding: 0;
    font-weight: 600;
}

.kb-spotlight-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.3rem 0.7rem 0.95rem;
}

.kb-spotlight-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.9rem 1.4rem 1.2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.kb-spotlight-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--slate-50);
    color: var(--text-primary);
}

.kb-spotlight-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-right: 0.35rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    font-size: 0.78rem;
    color: var(--text-primary);
}

.kb-badge-live,
.kb-badge-coming {
    font-size: 0.72rem;
    font-weight: 700;
    border-width: 1px;
    border-style: solid;
}

.kb-badge-live {
    color: var(--emerald-600) !important;
    background: var(--emerald-50) !important;
    border-color: var(--emerald-100) !important;
}

.kb-badge-coming {
    color: var(--amber-600) !important;
    background: var(--amber-50) !important;
    border-color: var(--amber-100) !important;
}

.kb-search-result {
    display: block;
    padding: 0.95rem 1rem;
    margin: 0.35rem 0.45rem;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.18s ease;
    color: inherit;
}

.kb-search-result:hover,
.kb-search-result.is-active {
    color: var(--text-primary);
    background: var(--rose-50);
    border-color: var(--rose-100);
}

.kb-search-result.is-disabled {
    opacity: 0.7;
    background: var(--slate-50);
}

.kb-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.kb-search-head strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.18rem;
}

.kb-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.kb-search-snippet {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.88rem;
}

.kb-search-snippet mark,
.kb-search-head mark {
    padding: 0.05rem 0.22rem;
    border-radius: 6px;
    background: var(--amber-100);
    color: var(--text-primary);
}

.kb-search-empty {
    margin: 0.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--slate-50);
    border-radius: 18px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.hero-tag {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-white);
    padding: 0.4rem 0.7rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 0.2s;
}

.hero-tag:hover {
    color: var(--rose-600);
    border-color: var(--rose-100);
    background: var(--rose-50);
}

.quick-strip {
    padding: 2.5rem 0;
    margin-top: 1rem;
}

.showcase-strip {
    padding: 0.5rem 0 1.75rem;
}

.dashboard-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.showcase-copy .section-desc {
    max-width: 34rem;
}

.showcase-visual {
    position: relative;
}

.showcase-visual::after {
    content: "";
    position: absolute;
    inset: auto 6% -18px 6%;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.18), transparent 70%);
    filter: blur(16px);
    z-index: 0;
}

.showcase-image,
.article-hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.kb-media-stack {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 1.1rem;
}

.kb-media-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.kb-inline-media-image {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.kb-media-card figcaption {
    padding: 0.9rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.kb-media-card.is-placeholder {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(99, 102, 241, 0.05)),
        var(--bg-white);
}

.kb-media-card.is-placeholder.is-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    min-height: 240px;
}

.kb-media-visual {
    min-height: 110px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(99, 102, 241, 0.08)),
        var(--slate-50);
    border: 1px dashed var(--rose-200);
    color: var(--rose-600);
    font-size: 2rem;
}

.kb-media-copy strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.kb-media-copy p {
    margin: 0 0 0.4rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.kb-media-copy span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.quick-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-card:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.qc-icon,
.contact-icon,
.fc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-card .qc-text h6,
.article-row .content h6,
.contact-card h5,
.feature-card h3 {
    font-weight: 700;
    margin-bottom: 0.12rem;
}

.quick-card .qc-text span,
.article-row .content span,
.contact-card p,
.support-note p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.quick-card .qc-arrow {
    margin-left: auto;
    color: var(--border);
    transition: all 0.2s;
}

.quick-card:hover .qc-arrow {
    color: var(--rose-500);
    transform: translateX(3px);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rose-600);
    margin-bottom: 0.5rem;
}

.section-tag::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--rose-500);
    border-radius: 1px;
}

.section-heading {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 640px;
    margin-inline: auto;
}

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.card-rose {
    --card-gradient: linear-gradient(135deg, var(--rose-500), #fb7185);
}

.card-emerald {
    --card-gradient: linear-gradient(135deg, var(--emerald-500), #34d399);
}

.card-purple {
    --card-gradient: linear-gradient(135deg, var(--purple-500), var(--indigo-500));
}

.card-sky {
    --card-gradient: linear-gradient(135deg, var(--sky-500), var(--indigo-500));
}

.card-amber {
    --card-gradient: linear-gradient(135deg, var(--amber-500), #fb923c);
}

.card-green {
    --card-gradient: linear-gradient(135deg, var(--emerald-500), #22c55e);
}

.card-slate {
    --card-gradient: linear-gradient(135deg, #94a3b8, #64748b);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(99, 102, 241, 0.08));
    color: var(--rose-600);
}

.module-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.module-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.module-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.module-links a,
.module-link-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--slate-600);
    font-size: 0.84rem;
    text-decoration: none;
}

.module-links a:hover {
    color: var(--rose-600);
}

.module-link-disabled {
    opacity: 0.58;
}

.module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.article-row,
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s;
}

.article-row:hover,
.related-card:hover {
    color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.article-row .num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rose-500);
    min-width: 2.2rem;
}

.article-row .content {
    flex: 1;
}

.article-row .arrow {
    color: var(--text-muted);
}

.video-thumb,
.support-note,
.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.video-thumb {
    min-height: 180px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.7rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.video-thumb i {
    font-size: 1.75rem;
}

.video-thumb span {
    font-weight: 700;
}

.video-thumb.tone-rose {
    background: linear-gradient(135deg, #fecdd3, #fda4af);
}

.video-thumb.tone-purple {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
}

.support-note {
    padding: 1.25rem;
}

.support-note strong {
    display: block;
    margin-bottom: 0.4rem;
}

.contact-card {
    height: 100%;
    padding: 1.4rem;
}

.contact-card p {
    margin-bottom: 0;
    line-height: 1.65;
}

.contact-card .btn-sm-contact {
    margin-top: 1rem;
}

.tone-rose {
    background: var(--rose-50);
    color: var(--rose-600);
}

.tone-emerald {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.tone-purple {
    background: var(--purple-50);
    color: var(--purple-600);
}

.tone-sky {
    background: var(--sky-50);
    color: var(--sky-600);
}

.tone-indigo {
    background: var(--indigo-50);
    color: var(--indigo-600);
}

.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 0;
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.breadcrumb-bar .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-bar .breadcrumb-item a:hover {
    color: var(--rose-600);
}

.breadcrumb-bar .breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

.article-layout {
    padding: 2.5rem 0 4rem;
}

.sidebar-toc {
    position: sticky;
    top: 96px;
}

.toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    padding-left: 0.75rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border-light);
}

.toc-list li a {
    display: block;
    padding: 0.45rem 0 0.45rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list li a:hover,
.toc-list li a.active {
    color: var(--rose-700);
    border-left-color: var(--rose-500);
    font-weight: 600;
}

.toc-info-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.toc-info-card h6 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.toc-info-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.btn-sm-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-600);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    background: var(--rose-50);
    border: 1px solid var(--rose-100);
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-hero-figure {
    margin: 1.75rem 0 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}

.meta-tag.tag-module {
    background: var(--rose-50);
    color: var(--rose-700);
}

.meta-tag.tag-level {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.meta-tag.tag-time {
    background: var(--slate-100);
    color: var(--slate-600);
}

.article-header h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.article-header .subtitle {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
    color: var(--rose-700);
    font-weight: 700;
    font-size: 0.82rem;
}

.author-info .name {
    font-weight: 600;
    font-size: 0.88rem;
}

.author-info .date {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.article-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #334155;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    color: var(--text-primary);
    scroll-margin-top: 100px;
}

.article-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.55rem;
    line-height: 1.7;
}

.callout {
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.callout-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.callout-content strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.callout-content p {
    font-size: 0.86rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.callout-info {
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
}

.callout-info .callout-icon {
    background: var(--sky-100);
    color: var(--sky-600);
}

.callout-info strong {
    color: var(--sky-600);
}

.callout-tip {
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
}

.callout-tip .callout-icon {
    background: var(--emerald-100);
    color: var(--emerald-600);
}

.callout-tip strong {
    color: var(--emerald-600);
}

.callout-danger {
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.callout-danger .callout-icon {
    background: #fecaca;
    color: #dc2626;
}

.callout-danger strong {
    color: #dc2626;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.step-list li {
    counter-increment: step-counter;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-list li::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.step-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.col-table {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.col-table table {
    width: 100%;
    border-collapse: collapse;
}

.col-table thead th {
    background: var(--bg-soft);
    padding: 0.7rem 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.col-table tbody td {
    padding: 0.78rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.col-table tbody tr:last-child td {
    border-bottom: none;
}

.col-name {
    font-weight: 600;
    color: var(--text-primary);
}

.col-desc {
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-card {
    display: flex;
    gap: 0.9rem;
    padding: 1.15rem 1.2rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.related-block {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.related-card {
    flex-direction: column;
    align-items: flex-start;
}

.related-card strong {
    font-size: 0.95rem;
}

.related-card span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.related-card.is-disabled {
    opacity: 0.7;
    background: var(--slate-50);
}

.kb-mobile-sidebar {
    --bs-offcanvas-width: min(92vw, 380px);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    border-right: 1px solid var(--border-light);
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.12);
}

.kb-mobile-sidebar .offcanvas-header {
    padding: 1rem 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.kb-sidebar-shell {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0 1rem calc(1.1rem + env(safe-area-inset-bottom));
}

.kb-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.2rem 0 1rem;
    border-bottom: 1px solid var(--border-light);
}

.kb-sidebar-logo {
    height: 30px;
}

.kb-sidebar-user small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kb-sidebar-user strong {
    display: block;
    font-size: 0.96rem;
}

.kb-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kb-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.kb-sidebar-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.15rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-sidebar-section-label small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.kb-sidebar-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.kb-sidebar-quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 120px;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kb-sidebar-quick-link:hover,
.kb-sidebar-quick-link.is-active {
    color: var(--text-primary);
    transform: translateY(-1px);
    border-color: var(--rose-100);
    box-shadow: var(--shadow-md);
}

.kb-sidebar-quick-link.is-active {
    background:
        linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.98));
}

.kb-sidebar-quick-icon,
.kb-sidebar-group-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(99, 102, 241, 0.12));
    color: var(--rose-600);
    font-size: 1.05rem;
}

.kb-sidebar-quick-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kb-sidebar-quick-copy strong,
.kb-sidebar-group-copy strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}

.kb-sidebar-quick-copy small,
.kb-sidebar-group-copy small {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.kb-sidebar-group {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-sidebar-group[open] {
    border-color: var(--rose-100);
    box-shadow: var(--shadow-sm);
}

.kb-sidebar-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem;
    list-style: none;
    cursor: pointer;
}

.kb-sidebar-group-head::-webkit-details-marker {
    display: none;
}

.kb-sidebar-group-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.kb-sidebar-group-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.kb-sidebar-group-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.kb-sidebar-group-meta i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.kb-sidebar-group[open] .kb-sidebar-group-meta i {
    color: var(--rose-600);
    transform: rotate(180deg);
}

.kb-sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0.85rem 0.85rem;
}

.kb-sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--slate-50);
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kb-sidebar-sublink:hover,
.kb-sidebar-sublink.is-active {
    background: var(--rose-50);
    color: var(--rose-700);
}

.kb-sidebar-sublink:hover i,
.kb-sidebar-sublink.is-active i {
    transform: translateX(2px);
}

.kb-sidebar-sublink i {
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.kb-sidebar-sublink.is-muted {
    color: var(--text-muted);
}

.kb-sidebar-sublink.is-muted small {
    font-size: 0.72rem;
}

.kb-not-found {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.kb-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
    color: var(--rose-700);
    font-size: 1.8rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.75;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding-top: 4rem;
    }

    .sidebar-toc {
        position: static;
    }

    .dashboard-showcase {
        grid-template-columns: 1fr;
    }

    .kb-spotlight-shell {
        align-items: stretch;
        padding-top: calc(0.9rem + env(safe-area-inset-top));
    }

    .kb-spotlight-panel {
        border-radius: 24px;
    }

    .kb-media-card.is-placeholder,
    .kb-media-card.is-placeholder.is-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 1.65rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .kb-search-shortcut {
        display: none;
    }

    .navbar-main {
        padding: 0.7rem 0;
    }

    .logo-link img {
        height: 30px;
    }

    .btn-new-ticket {
        padding: 0.55rem 0.8rem;
    }

    .kb-not-found {
        padding: 1.75rem;
    }

    .kb-spotlight-panel {
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.8rem);
    }

    .kb-spotlight-header {
        padding: 1rem 1rem 0.65rem;
    }

    .kb-spotlight-input-wrap,
    .kb-spotlight-helper,
    .kb-spotlight-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .kb-spotlight-results {
        padding: 0.2rem 0.55rem 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .btn-new-ticket {
        padding: 0.6rem 0.7rem;
        min-width: 44px;
    }

    .btn-new-ticket-label {
        display: none;
    }

    .kb-sidebar-shell {
        gap: 1rem;
    }

    .kb-sidebar-quick-grid {
        grid-template-columns: 1fr;
    }

    .kb-sidebar-quick-link {
        min-height: auto;
        padding: 0.95rem;
    }

    .kb-sidebar-group-head {
        padding: 0.9rem;
    }

    .kb-spotlight-shell {
        padding:
            calc(0.65rem + env(safe-area-inset-top))
            calc(0.65rem + env(safe-area-inset-right))
            calc(0.65rem + env(safe-area-inset-bottom))
            calc(0.65rem + env(safe-area-inset-left));
    }

    .kb-spotlight-panel {
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.3rem);
        border-radius: 22px;
    }

    .kb-spotlight-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .kb-spotlight-close {
        align-self: flex-end;
    }

    .kb-spotlight-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .kb-spotlight-copy {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .kb-search-icon.is-modal {
        left: 2rem;
    }

    .kb-spotlight-input-wrap input {
        padding-left: 2.85rem;
        font-size: 16px;
    }

    .kb-spotlight-helper {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .kb-spotlight-results {
        padding: 0.2rem 0.4rem 0.8rem;
    }

    .kb-search-result {
        margin: 0.28rem;
        padding: 0.85rem 0.9rem;
        border-radius: 16px;
    }

    .kb-search-head {
        flex-direction: column;
        gap: 0.55rem;
    }

    .kb-search-head .badge {
        align-self: flex-start;
    }

    .kb-search-snippet {
        font-size: 0.84rem;
    }

    .kb-spotlight-footer {
        gap: 0.55rem;
        padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
        font-size: 0.74rem;
    }

    .kb-spotlight-footer span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.45rem 0.65rem;
        border-radius: 12px;
        background: var(--slate-50);
    }

    .kb-spotlight-footer kbd {
        min-width: 24px;
        height: 24px;
        margin-right: 0;
    }
}
