:root {
    --primary: #1a56db;
    --primary-light: #e8eefb;
    --primary-dark: #1240a8;
    --primary-hover: #1648b8;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --bg-muted: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f0f1f3;
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --info: #2563eb;
    --info-light: #eff6ff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --sidebar-width: 260px;
    --faq-width: 280px;
    --header-height: 60px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: 0.2s ease;
    --content-max: 780px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-to-content {
    position: fixed; top: -100px; left: 16px; z-index: 9999;
    padding: 12px 24px; background: var(--primary); color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600; font-size: 14px; text-decoration: none; transition: top 0.2s;
}
.skip-to-content:focus { top: 0; outline: 2px solid #fff; outline-offset: -2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ===== HEADER ===== */
.docs-header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 24px; z-index: 100; gap: 16px;
}

.docs-header__logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 17px; color: var(--text);
    white-space: nowrap; text-decoration: none; flex-shrink: 0;
}
.docs-header__logo:hover { text-decoration: none; color: var(--text); }

.docs-header__logo-icon,
.docs-header__logo-img {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 8px; object-fit: contain;
}

.docs-header__badge {
    background: var(--bg-muted); color: var(--text-light);
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 10px; letter-spacing: 0.5px; text-transform: uppercase; flex-shrink: 0;
}

.docs-header__search { flex: 1; max-width: 480px; margin: 0 auto; position: relative; }

.docs-header__search input {
    width: 100%; padding: 8px 16px 8px 38px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: var(--font);
    background: var(--bg-soft); color: var(--text); transition: all var(--transition);
}
.docs-header__search input::placeholder { color: var(--text-lighter); }
.docs-header__search input:focus {
    outline: none; border-color: var(--primary); background: var(--bg);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.docs-header__search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-lighter); font-size: 14px; pointer-events: none;
}

.docs-header__search-kbd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: var(--text-lighter); background: var(--bg);
    border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
    font-family: var(--font); pointer-events: none;
}

.docs-header__search-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto;
    display: none; z-index: 200;
}
.docs-header__search-results.active { display: block; }

.search-result-item {
    padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border-light);
    transition: background 0.15s; display: block; text-decoration: none;
}
.search-result-item:hover, .search-result-item.highlighted { background: var(--bg-soft); text-decoration: none; }
.search-result-item__title { font-weight: 600; font-size: 14px; color: var(--text); }
.search-result-item__path { font-size: 12px; color: var(--text-lighter); margin-top: 2px; }

.docs-header__nav { display: flex; gap: 4px; flex-shrink: 0; }

.docs-header__nav-link {
    padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
    color: var(--text-light); transition: all 0.15s; white-space: nowrap; text-decoration: none;
}
.docs-header__nav-link:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }
.docs-header__nav-link.active { background: var(--primary-light); color: var(--primary); }

.docs-header__menu-btn {
    display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
    font-size: 20px; color: var(--text); cursor: pointer; padding: 4px 8px;
    line-height: 1; flex-shrink: 0; transition: background var(--transition);
    align-items: center; justify-content: center;
}
.docs-header__menu-btn:hover { background: var(--bg-muted); }

/* ===== LAYOUT ===== */
.docs-layout {
    display: flex; margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ===== SIDEBAR ===== */
.docs-sidebar {
    width: var(--sidebar-width); min-width: var(--sidebar-width);
    border-right: 1px solid var(--border); background: var(--bg-soft); padding: 20px 0;
    position: fixed; top: var(--header-height); left: 0; bottom: 0;
    overflow-y: auto; overflow-x: hidden; z-index: 50; transition: transform 0.3s ease;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-lighter); }

.sidebar-section { margin-bottom: 4px; }

.sidebar-section__title {
    display: flex; align-items: center; gap: 8px; padding: 8px 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-light); cursor: pointer; user-select: none; transition: color 0.15s;
    border: none; background: none; width: 100%; text-align: left; font-family: var(--font);
}
.sidebar-section__title:hover { color: var(--text); }
.sidebar-section__title .arrow { font-size: 10px; transition: transform 0.2s; margin-left: auto; flex-shrink: 0; }
.sidebar-section.collapsed .arrow { transform: rotate(-90deg); }
.sidebar-section.collapsed .sidebar-section__links { display: none; }

.sidebar-section__links { padding: 2px 12px 6px; }

.sidebar-link {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
    font-size: 13.5px; color: var(--text-light); border-radius: 6px;
    transition: all 0.15s; text-decoration: none; line-height: 1.4;
}
.sidebar-link:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-link__icon { width: 18px; min-width: 18px; text-align: center; font-size: 13px; opacity: 0.7; }

/* ===== MAIN CONTENT ===== */
.docs-main { flex: 1; margin-left: var(--sidebar-width); margin-right: var(--faq-width); min-width: 0; }

.docs-content { max-width: var(--content-max); margin: 0 auto; padding: 32px 40px 80px; }

.breadcrumb {
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    color: var(--text-lighter); margin-bottom: 24px; flex-wrap: wrap; list-style: none; padding: 0;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb__sep { color: var(--border); user-select: none; }
.breadcrumb__current { color: var(--text); font-weight: 500; }

.docs-toc {
    margin: 24px 0 32px; padding: 16px 20px;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.docs-toc__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 10px; }
.docs-toc__list { list-style: none; padding: 0; }
.docs-toc__list li { margin-bottom: 4px; }
.docs-toc__list a {
    font-size: 13.5px; color: var(--text-light); padding: 3px 0; display: block;
    transition: color 0.15s; text-decoration: none; border-left: 2px solid transparent; padding-left: 10px;
}
.docs-toc__list a:hover { color: var(--primary); text-decoration: none; }
.docs-toc__list a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.docs-last-updated { font-size: 12px; color: var(--text-lighter); margin-bottom: 8px; }

/* Typography */
.docs-content h1 { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.02em; }
.docs-content h2 {
    font-size: 22px; font-weight: 700; color: var(--text); margin-top: 40px; margin-bottom: 12px;
    padding-top: 20px; border-top: 1px solid var(--border-light);
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 28px; }
.docs-content h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 28px; margin-bottom: 8px; scroll-margin-top: calc(var(--header-height) + 20px); }
.docs-content h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 20px; margin-bottom: 6px; }
.docs-content p { color: var(--text); margin-bottom: 16px; line-height: 1.75; }
.docs-content .lead { font-size: 17px; color: var(--text-light); line-height: 1.75; margin-bottom: 28px; }
.docs-content ul, .docs-content ol { margin-bottom: 16px; padding-left: 24px; }
.docs-content li { margin-bottom: 6px; line-height: 1.65; }
.docs-content li > ul, .docs-content li > ol { margin-top: 6px; margin-bottom: 0; }
.docs-content strong { font-weight: 600; }
.docs-content code { background: var(--bg-muted); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; }

.docs-content h2 .anchor-link, .docs-content h3 .anchor-link {
    opacity: 0; margin-left: 6px; color: var(--text-lighter); font-weight: 400; text-decoration: none; transition: opacity 0.15s;
}
.docs-content h2:hover .anchor-link, .docs-content h3:hover .anchor-link { opacity: 1; }
.docs-content h2 .anchor-link:hover, .docs-content h3 .anchor-link:hover { color: var(--primary); text-decoration: none; }

/* Video */
.video-container { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-container__header {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--bg-muted); border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text);
}
.video-container__header svg { color: var(--danger); flex-shrink: 0; }
.video-container iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }
.video-placeholder {
    width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; gap: 8px;
}
.video-placeholder__icon { font-size: 48px; opacity: 0.5; }
.video-placeholder__text { opacity: 0.7; }

/* Info boxes */
.info-box {
    padding: 14px 18px; border-radius: var(--radius); margin: 20px 0;
    font-size: 14px; line-height: 1.65; display: flex; gap: 12px; align-items: flex-start;
}
.info-box__icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-box--tip { background: var(--success-light); border: 1px solid #a7f3d0; color: #065f46; }
.info-box--warning { background: var(--warning-light); border: 1px solid #fde68a; color: #92400e; }
.info-box--note { background: var(--info-light); border: 1px solid #bfdbfe; color: #1e40af; }
.info-box--danger { background: var(--danger-light); border: 1px solid #fecaca; color: #991b1b; }

/* Steps */
.steps { counter-reset: step; margin: 20px 0; }
.step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.step:last-child { border-bottom: none; }
.step__number {
    counter-increment: step; width: 32px; height: 32px; min-width: 32px;
    background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.step__number::before { content: counter(step); }
.step__content { flex: 1; min-width: 0; }
.step__title { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.step__desc { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* Field table */
.field-table-wrapper {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius);
}
.field-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 500px; }
.field-table th {
    text-align: left; padding: 10px 14px; background: var(--bg-muted);
    font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-light); border-bottom: 2px solid var(--border); white-space: nowrap;
}
.field-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.field-table tbody tr:last-child td { border-bottom: none; }
.field-table tr:hover td { background: var(--bg-soft); }
.field-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.field-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.field-badge--required { background: #fef2f2; color: var(--danger); }
.field-badge--optional { background: var(--bg-muted); color: var(--text-lighter); }
.field-badge--auto { background: #eff6ff; color: var(--info); }

/* Grid doc */
.grid-doc { margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.grid-doc__header { padding: 10px 16px; background: var(--bg-muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); }
.grid-doc__row { display: flex; padding: 8px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; gap: 12px; }
.grid-doc__row:last-child { border-bottom: none; }
.grid-doc__col-name { width: 160px; min-width: 120px; font-weight: 600; font-size: 13px; color: var(--text); flex-shrink: 0; }
.grid-doc__col-desc { color: var(--text-light); flex: 1; min-width: 0; line-height: 1.5; }

/* Nav links */
.docs-nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.nav-link-card { flex: 1; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); text-decoration: none; min-width: 0; }
.nav-link-card:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.nav-link-card--next { text-align: right; }
.nav-link-card__label { font-size: 12px; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.nav-link-card__title { font-weight: 600; color: var(--primary); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== FAQ SIDEBAR ===== */
.docs-faq {
    width: var(--faq-width); min-width: var(--faq-width); position: fixed;
    top: var(--header-height); right: 0; bottom: 0;
    border-left: 1px solid var(--border); background: var(--bg-soft);
    padding: 24px 16px; overflow-y: auto; overflow-x: hidden; z-index: 50;
}
.docs-faq::-webkit-scrollbar { width: 4px; }
.docs-faq::-webkit-scrollbar-track { background: transparent; }
.docs-faq::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.faq-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); margin-bottom: 16px; padding: 0 4px; }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg); overflow: hidden; transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item__question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600;
    color: var(--text); user-select: none; gap: 8px; border: none; background: none;
    width: 100%; text-align: left; font-family: var(--font); line-height: 1.4; transition: color 0.15s;
}
.faq-item__question:hover { color: var(--primary); }
.faq-item__arrow { font-size: 10px; transition: transform 0.2s; color: var(--text-lighter); flex-shrink: 0; }
.faq-item.open .faq-item__arrow { transform: rotate(90deg); }
.faq-item__answer { display: none; padding: 0 12px 12px; font-size: 13px; color: var(--text-light); line-height: 1.65; }
.faq-item.open .faq-item__answer { display: block; }

.faq-contact { margin-top: 20px; padding: 16px; background: var(--primary-light); border-radius: var(--radius); text-align: center; }
.faq-contact__title { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.faq-contact__text { font-size: 12px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.faq-contact__btn { display: inline-block; padding: 8px 20px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--transition); }
.faq-contact__btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

/* ===== LANDING PAGE ===== */
.landing-hero {
    text-align: center; padding: 64px 40px 48px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border); margin-top: var(--header-height);
}
.landing-hero__title { font-size: 38px; font-weight: 800; color: var(--text); margin-bottom: 12px; letter-spacing: -0.03em; }
.landing-hero__subtitle { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto 32px; line-height: 1.65; }

.landing-hero__search { max-width: 520px; margin: 0 auto; position: relative; }
.landing-hero__search input {
    width: 100%; padding: 14px 20px 14px 46px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 16px; font-family: var(--font); background: var(--bg);
    box-shadow: var(--shadow); transition: all var(--transition); color: var(--text);
}
.landing-hero__search input::placeholder { color: var(--text-lighter); }
.landing-hero__search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12), var(--shadow); }
.landing-hero__search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-lighter); font-size: 18px; pointer-events: none; }

.landing-content { max-width: 1100px; margin: 0 auto; padding: 48px 32px 80px; }
.landing-section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text); letter-spacing: -0.01em; }

.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 48px; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--bg); transition: all 0.25s ease; text-decoration: none; display: block; }
.app-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.app-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-card__icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.app-card__icon--platform { background: #6366f1; }
.app-card__icon--inventory { background: #059669; }
.app-card__icon--erp { background: #d97706; }
.app-card__icon--booking { background: #2563eb; }
.app-card__icon--invoice { background: #dc2626; }
.app-card__name { font-size: 18px; font-weight: 700; color: var(--text); }
.app-card__tag { font-size: 11px; font-weight: 600; color: var(--text-lighter); background: var(--bg-muted); padding: 2px 8px; border-radius: 4px; margin-top: 2px; display: inline-block; }
.app-card__desc { font-size: 14px; color: var(--text-light); line-height: 1.65; margin-bottom: 16px; }
.app-card__features { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card__feature { font-size: 12px; background: var(--bg-muted); color: var(--text-light); padding: 3px 10px; border-radius: 4px; font-weight: 500; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text); transition: all 0.15s; text-decoration: none; }
.quick-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }
.quick-link__icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
    background: var(--primary); color: #fff; border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.docs-footer { border-top: 1px solid var(--border); padding: 32px 40px; background: var(--bg-soft); }
.docs-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.docs-footer__copy { font-size: 13px; color: var(--text-lighter); }
.docs-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.docs-footer__links a { font-size: 13px; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.docs-footer__links a:hover { color: var(--primary); text-decoration: underline; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 140; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sidebar-overlay.active { display: block; }

.docs-layout--landing .docs-main { margin-left: 0; margin-right: 0; }

/* ===== RESPONSIVE 1200px ===== */
@media (max-width: 1200px) {
    :root { --faq-width: 0px; }
    .docs-faq { display: none; }
    .docs-main { margin-right: 0; }
    .back-to-top { right: 20px; }
}

/* ===== RESPONSIVE 1024px ===== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 230px; }
    .docs-content { padding: 28px 32px 60px; }
    .docs-header__badge { display: none; }
}

/* ===== RESPONSIVE 900px ===== */
@media (max-width: 900px) {
    :root { --sidebar-width: 280px; }
    .docs-sidebar { transform: translateX(-100%); position: fixed; z-index: 150; box-shadow: none; }
    .docs-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .docs-main { margin-left: 0; }
    .docs-header__menu-btn { display: flex; }
    .docs-content { padding: 24px 24px 60px; }
    .docs-content h1 { font-size: 26px; }
    .docs-content h2 { font-size: 20px; }
    .docs-header__nav { display: none; }
    .landing-hero { padding: 40px 24px 32px; }
    .landing-hero__title { font-size: 28px; }
    .landing-hero__subtitle { font-size: 16px; margin-bottom: 24px; }
    .landing-content { padding: 32px 20px 60px; }
    .docs-footer { padding: 24px 20px; }
    .docs-footer__inner { justify-content: center; text-align: center; }
    .docs-nav-links { gap: 12px; }
    .nav-link-card { padding: 12px; }
    .nav-link-card__title { font-size: 14px; }
}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {
    .app-cards { grid-template-columns: 1fr; gap: 16px; }
    .quick-links { grid-template-columns: 1fr; }
    .docs-header__search { max-width: 300px; }
    .docs-header__search-kbd { display: none; }
    .landing-hero__search { max-width: 100%; }
    .grid-doc__row { flex-direction: column; gap: 4px; }
    .grid-doc__col-name { width: auto; min-width: auto; }
    .field-table { min-width: 480px; }
}

/* ===== RESPONSIVE 600px ===== */
@media (max-width: 600px) {
    .docs-header { padding: 0 16px; gap: 10px; }
    .docs-header__search { max-width: 200px; }
    .docs-content { padding: 20px 16px 50px; }
    .docs-content h1 { font-size: 23px; }
    .docs-content h2 { font-size: 19px; margin-top: 32px; }
    .docs-content h3 { font-size: 16px; }
    .docs-content .lead { font-size: 15px; }
    .landing-hero { padding: 32px 16px 28px; }
    .landing-hero__title { font-size: 24px; }
    .landing-hero__subtitle { font-size: 15px; }
    .landing-content { padding: 28px 16px 50px; }
    .landing-section-title { font-size: 20px; }
    .app-card { padding: 18px; }
    .app-card__name { font-size: 16px; }
    .app-card__desc { font-size: 13px; }
    .step { gap: 12px; }
    .step__number { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
    .info-box { padding: 12px 14px; font-size: 13px; }
    .docs-nav-links { flex-direction: column; }
    .nav-link-card--next { text-align: left; }
    .video-container__header { font-size: 12px; }
    .docs-toc { padding: 12px 16px; }
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {
    .docs-header__logo span { display: none; }
    .docs-header__search { max-width: none; flex: 1; }
    .landing-hero__title { font-size: 22px; }
    .app-card__icon { width: 36px; height: 36px; font-size: 16px; }
    .docs-footer__links { gap: 16px; justify-content: center; }
    .breadcrumb { font-size: 12px; }
}

/* ===== PRINT ===== */
@media print {
    .docs-header, .docs-sidebar, .docs-faq, .sidebar-overlay, .back-to-top,
    .docs-nav-links, .video-container, .docs-header__search, .skip-to-content,
    .docs-toc { display: none !important; }
    .docs-main { margin: 0 !important; }
    .docs-content { max-width: 100%; padding: 0; }
    .docs-layout { margin-top: 0; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .docs-content h1 { font-size: 22pt; }
    .docs-content h2 { font-size: 16pt; border-top: 1px solid #ccc; }
    a { color: #000; text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
    .breadcrumb a[href]::after, .nav-link-card a[href]::after { content: none; }
    .info-box { border: 1px solid #ccc; }
    .field-table-wrapper { overflow: visible; border: none; }
    .field-table { min-width: auto; }
    .docs-footer { border-top: 1px solid #ccc; padding: 16px 0; }
}
