:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #5865f2;
    --primary-dark: #3f49c9;
    --soft: #eef0ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.docs-navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    margin-right: 8px;
}

.docs-navbar .nav-link {
    color: var(--muted);
    font-weight: 700;
}

.docs-navbar .nav-link.active,
.docs-navbar .nav-link:hover { color: var(--primary); }

.nav-search {
    width: min(360px, 100%);
}

.nav-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 16px;
    background: #f9fafb;
}

.hero-section { padding: 70px 0 26px; }

.hero-card {
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(88, 101, 242, 0.20), transparent 36%),
        linear-gradient(135deg, #fff, #f4f5ff);
    box-shadow: var(--shadow);
    padding: 58px;
    text-align: center;
    border: 1px solid var(--border);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-card h1,
.page-title h1,
.category-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    margin-bottom: 15px;
}

.hero-card p,
.page-title p,
.category-hero p {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 760px;
    margin: 0 auto 28px;
}

.hero-search,
.search-page-form {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
}

.hero-search input,
.search-page-form input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 16px 18px;
    font-size: 1rem;
    background: transparent;
}

.hero-search button,
.search-page-form button,
.editor-form button,
.suggestion-review button,
.small-action {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 900;
}

.popular-searches {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: var(--muted);
}

.popular-searches a {
    background: var(--soft);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.quick-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: -4px;
}

.quick-panel a {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.quick-panel strong,
.quick-panel span {
    display: block;
}

.quick-panel strong {
    font-weight: 900;
}

.quick-panel span {
    color: var(--muted);
    font-size: 0.94rem;
    margin-top: 3px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-weight: 950;
    letter-spacing: -0.04em;
    margin: 0;
}

.section-heading a {
    color: var(--primary);
    font-weight: 900;
}

.category-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
    min-height: 210px;
    transition: 0.2s ease;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.category-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.35);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--primary);
    font-weight: 950;
    margin-bottom: 20px;
}

.category-icon.large {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    margin: 0 auto 18px;
    font-size: 1.8rem;
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 950;
}

.category-card p,
.feature-card p {
    color: var(--muted);
    margin-bottom: 12px;
}

.category-card small,
.feature-card span {
    color: var(--primary);
    font-weight: 900;
}

.feature-card {
    min-height: 180px;
}

.feature-card strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 950;
    margin: 10px 0;
}

.article-list,
.suggestion-list {
    display: grid;
    gap: 12px;
}

.article-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    transition: 0.2s ease;
}

.article-row:hover {
    border-color: rgba(88, 101, 242, 0.35);
    transform: translateY(-2px);
}

.article-row p {
    color: var(--muted);
    margin: 4px 0 0;
}

.article-row span {
    color: var(--muted);
    white-space: nowrap;
    font-size: 0.9rem;
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
}

.page-title,
.category-hero {
    margin-bottom: 32px;
}

.category-hero {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 42px 24px;
}

.back-link {
    color: var(--primary);
    font-weight: 900;
    display: inline-block;
    margin-bottom: 14px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 32px;
    align-items: start;
}

.docs-sidebar,
.toc-card {
    position: sticky;
    top: 94px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
}

.docs-sidebar h5,
.toc-card h5 {
    font-size: 0.9rem;
    font-weight: 950;
    margin-bottom: 14px;
}

.docs-sidebar a,
#toc a {
    display: block;
    color: var(--muted);
    padding: 8px 0;
    font-weight: 700;
}

.docs-sidebar a:hover,
#toc a:hover { color: var(--primary); }

.docs-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.docs-article h1 {
    font-weight: 950;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

.article-meta {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-excerpt {
    color: var(--muted);
    font-size: 1.12rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.article-content {
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    font-weight: 950;
    margin-top: 34px;
}

.article-content pre {
    background: #111827;
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    overflow: auto;
}

.article-feedback {
    margin-top: 38px;
    padding: 20px;
    border-radius: 18px;
    background: var(--soft);
    display: grid;
    gap: 12px;
}

.article-feedback > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-feedback button,
.article-feedback a {
    border: 0;
    background: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 900;
    color: var(--primary);
}

.feedback-message {
    color: var(--primary);
    font-weight: 800;
}

.editor-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    display: grid;
    gap: 14px;
}

.editor-form label {
    font-weight: 900;
}

.editor-form input,
.editor-form textarea,
.editor-form select,
.suggestion-review input,
.suggestion-review select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

.editor-form button {
    width: fit-content;
    min-height: 44px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
}

.check-row input {
    width: auto;
}

.narrow-page {
    max-width: 860px;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--muted);
    border-radius: 18px;
    padding: 26px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
}

.stat-card strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 950;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.admin-actions {
    display: grid;
    gap: 12px;
}

.admin-actions a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    font-weight: 950;
}

.status-badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: capitalize;
}

.badge-published {
    background: #dcfce7;
    color: #166534 !important;
}

.badge-draft {
    background: #fef3c7;
    color: #92400e !important;
}

.badge-archived {
    background: #fee2e2;
    color: #991b1b !important;
}

.danger-btn {
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.small-link {
    color: var(--primary) !important;
    font-weight: 900;
}

.suggestion-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.suggestion-header p {
    color: var(--muted);
    margin: 4px 0 0;
}

.suggestion-body {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #f9fafb;
    margin-bottom: 16px;
}

.suggestion-review {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 10px;
}

.docs-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .category-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar,
    .toc-card {
        position: static;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 700px) {
    .hero-card {
        padding: 34px 22px;
    }

    .hero-search,
    .search-page-form,
    .suggestion-review,
    .form-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-search button,
    .search-page-form button {
        width: 100%;
        padding: 14px;
    }

    .category-grid,
    .feature-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .docs-article {
        padding: 26px;
    }

    .article-row,
    .admin-row {
        align-items: start;
        display: flex;
        flex-direction: column;
    }
}


.user-pill {
    background: var(--soft);
    border-radius: 999px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.profile-card h1 {
    font-weight: 950;
    letter-spacing: -0.04em;
    margin: 0;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--primary);
    font-weight: 950;
    font-size: 2rem;
    overflow: hidden;
}

.profile-avatar.small {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 1.3rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contributor-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.contributor-card,
.media-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 10px;
}

.contributor-card strong,
.contributor-card span,
.contributor-card p {
    display: block;
    margin: 0;
}

.contributor-card span,
.contributor-card p {
    color: var(--muted);
}

.media-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

.media-card input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 10px;
    color: var(--muted);
}

.file-icon {
    height: 150px;
    border-radius: 16px;
    background: var(--soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 950;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
}

.inline-form button {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .contributor-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .contributor-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .inline-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}


.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.breadcrumb-line a {
    color: var(--primary);
    font-weight: 800;
}

.article-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
    margin-bottom: 26px;
}

.article-tools a,
.article-tools button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
}

.search-filter {
    border: 0;
    background: #f9fafb;
    border-left: 1px solid var(--border);
    padding: 0 12px;
    color: var(--muted);
    font-weight: 800;
}

.search-section-title {
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
    margin: 22px 0 12px;
}

.api-hero {
    background:
        radial-gradient(circle at top right, rgba(88, 101, 242, 0.18), transparent 35%),
        #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 46px;
    margin-bottom: 28px;
}

.api-hero h1 {
    font-weight: 950;
    letter-spacing: -0.05em;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.api-hero p {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 780px;
}

.api-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.api-sidebar {
    position: sticky;
    top: 94px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
}

.api-sidebar h5 {
    font-weight: 950;
    margin-bottom: 14px;
}

.api-sidebar a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
    padding: 8px 0;
}

.api-list {
    display: grid;
    gap: 14px;
}

.api-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    transition: .2s ease;
}

.api-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, .35);
    box-shadow: var(--shadow);
}

.api-card h2 {
    font-size: 1.25rem;
    font-weight: 950;
    margin: 12px 0 6px;
}

.api-card p {
    color: var(--muted);
    margin: 0;
}

.method-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .75rem;
    font-weight: 950;
    margin-right: 8px;
}

.method-get { background: #dcfce7; color: #166534; }
.method-post { background: #dbeafe; color: #1e40af; }
.method-put, .method-patch { background: #fef3c7; color: #92400e; }
.method-delete { background: #fee2e2; color: #991b1b; }

.endpoint-box {
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    margin: 24px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
}

.endpoint-box code {
    color: #fff;
}

.api-single-layout {
    grid-template-columns: 240px minmax(0, 1fr) 220px;
}

@media (max-width: 1000px) {
    .api-layout,
    .api-single-layout {
        grid-template-columns: 1fr;
    }

    .api-sidebar {
        position: static;
    }

    .search-filter {
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--border);
        padding: 12px;
    }
}


/* Upgrade 005 */
.theme-toggle,
.nav-command-btn {
    border: 0;
    background: var(--soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.nav-command-btn kbd {
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-left: 6px;
    font-size: .72rem;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 2000;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
}

.command-palette {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .45);
    z-index: 3000;
    display: none;
    padding: 90px 18px 18px;
}

.command-palette.open {
    display: block;
}

.command-palette-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.palette-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.palette-input-row span {
    background: var(--soft);
    color: var(--primary);
    border-radius: 10px;
    padding: 7px 10px;
    font-weight: 950;
}

.palette-input-row input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 1.05rem;
}

.palette-results {
    max-height: 420px;
    overflow: auto;
    padding: 10px;
}

.palette-results a,
.palette-empty {
    display: flex;
    flex-direction: column;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--text);
}

.palette-results a:hover {
    background: var(--soft);
}

.palette-results span {
    color: var(--muted);
    font-size: .88rem;
}

.code-copy-wrapper {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: .78rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 22px;
}

.tag-row a {
    background: var(--soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
    font-size: .9rem;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 34px;
}

.article-nav a {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    color: var(--primary);
    font-weight: 950;
}

.article-nav a:last-child {
    text-align: right;
}

.docs-explorer {
    display: grid;
    gap: 14px;
}

.docs-explorer-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
}

.docs-explorer-group button {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 950;
    color: var(--text);
}

.docs-explorer-group button.closed span:last-child {
    transform: rotate(-90deg);
}

.docs-explorer-group div {
    display: grid;
    padding: 0 20px 18px;
}

.docs-explorer-group div.closed {
    display: none;
}

.docs-explorer-group a {
    color: var(--muted);
    font-weight: 800;
    padding: 9px 0;
    border-top: 1px solid var(--border);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.theme-dark {
    --bg: #0f1220;
    --surface: #171a2b;
    --text: #f8fafc;
    --muted: #a7adbd;
    --border: #2a2e45;
    --soft: #202541;
    --shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.theme-dark .docs-navbar,
.theme-dark .docs-footer,
.theme-dark .hero-card,
.theme-dark .category-card,
.theme-dark .feature-card,
.theme-dark .article-row,
.theme-dark .docs-article,
.theme-dark .docs-sidebar,
.theme-dark .toc-card,
.theme-dark .api-card,
.theme-dark .api-hero,
.theme-dark .api-sidebar,
.theme-dark .editor-form,
.theme-dark .profile-card,
.theme-dark .contributor-card,
.theme-dark .media-card,
.theme-dark .docs-explorer-group,
.theme-dark .docs-explorer-group button,
.theme-dark .command-palette-card {
    background: var(--surface);
    color: var(--text);
}

.theme-dark .nav-search input,
.theme-dark .hero-search,
.theme-dark .search-page-form,
.theme-dark .editor-form input,
.theme-dark .editor-form textarea,
.theme-dark .editor-form select,
.theme-dark .palette-input-row input {
    background: #111426;
    color: var(--text);
}

.theme-dark .copy-code-btn {
    background: #202541;
    color: #fff;
}

@media print {
    .docs-navbar,
    .docs-sidebar,
    .toc-card,
    .article-tools,
    .article-feedback,
    .docs-footer,
    .command-palette {
        display: none !important;
    }

    .docs-layout {
        display: block;
    }

    .docs-article {
        box-shadow: none;
        border: 0;
    }
}

@media (max-width: 900px) {
    .account-grid,
    .article-nav {
        grid-template-columns: 1fr;
    }
}


/* Upgrade 006 - Full Docs / Developer Portal Layout */
.docs-navbar {
    background: rgba(10, 14, 28, 0.86);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}

.docs-navbar .navbar-brand,
.docs-navbar .nav-link {
    color: #e5e7eb;
}

.docs-navbar .nav-link.active,
.docs-navbar .nav-link:hover {
    color: #7c6dff;
}

.nav-search input {
    background: #0e1324;
    border-color: rgba(255,255,255,.10);
    color: #e5e7eb;
}

.nav-search input::placeholder {
    color: #7f8799;
}

.account-menu {
    min-width: 280px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    overflow: hidden;
    padding: 8px;
}

.account-menu .dropdown-item {
    color: #d1d5db;
    border-radius: 12px;
    padding: 10px 12px;
}

.account-menu .dropdown-item:hover {
    background: #202541;
    color: #fff;
}

.account-menu-head {
    display: grid;
    padding: 12px;
}

.account-menu-head strong {
    color: #fff;
}

.account-menu-head span {
    color: #9ca3af;
    font-size: .88rem;
}

.full-docs-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: calc(100vh - 70px);
    background:
        radial-gradient(circle at top right, rgba(88,101,242,.12), transparent 35%),
        #080d1b;
    color: #f8fafc;
}

.full-docs-sidebar {
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 22px 16px;
    background: rgba(8,13,27,.86);
}

.sidebar-section-title {
    color: #7f8799;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 950;
    margin: 8px 10px 12px;
}

.sidebar-link,
.sidebar-group button,
.sidebar-group a {
    color: #c7cce0;
    border-radius: 12px;
}

.sidebar-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    font-weight: 850;
    margin-bottom: 4px;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(124,109,255,.20));
    color: #fff;
}

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

.sidebar-group button {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    padding: 11px 12px;
    font-weight: 850;
    color: #c7cce0;
}

.sidebar-group button:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
}

.sidebar-group div {
    display: grid;
    padding: 2px 0 8px 34px;
}

.sidebar-group div.closed {
    display: none;
}

.sidebar-group a {
    color: #8992aa;
    padding: 7px 8px;
    font-weight: 750;
}

.sidebar-group a:hover {
    color: #fff;
}

.sidebar-help-card {
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(88,101,242,.17), rgba(255,255,255,.04));
}

.sidebar-help-card strong {
    display: block;
    margin-bottom: 8px;
}

.sidebar-help-card p {
    color: #9ca3af;
    font-size: .92rem;
}

.sidebar-help-card a {
    display: block;
    background: #5865f2;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-weight: 950;
}

.full-docs-main {
    padding: 48px 54px;
}

.full-docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    gap: 42px;
    align-items: center;
    margin-bottom: 34px;
}

.full-docs-hero h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: .96;
    font-weight: 950;
    letter-spacing: -.08em;
    margin: 18px 0;
}

.full-docs-hero h1 span {
    color: #7c6dff;
}

.full-docs-hero p {
    color: #aab2c5;
    font-size: 1.12rem;
    max-width: 650px;
}

.full-docs-search {
    display: flex;
    max-width: 650px;
    margin-top: 26px;
    background: #0e1324;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 8px;
}

.full-docs-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 12px 14px;
}

.full-docs-search button {
    border: 0;
    background: linear-gradient(135deg, #5865f2, #7c6dff);
    color: #fff;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 950;
}

.left-align {
    justify-content: flex-start;
}

.hammity-orbit-card {
    position: relative;
    min-height: 370px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at center, rgba(124,109,255,.55), transparent 25%),
        radial-gradient(circle at top right, rgba(236,72,153,.18), transparent 35%),
        #101631;
    overflow: hidden;
    box-shadow: 0 24px 90px rgba(0,0,0,.35);
}

.orbit-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #9f7aea);
    color: #fff;
    font-size: 4rem;
    font-weight: 950;
    box-shadow: 0 0 80px rgba(124,109,255,.8);
}

.orbit-ring {
    position: absolute;
    inset: 80px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 50%;
}

.ring-two {
    inset: 40px 105px;
}

.orbit-pill {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    font-size: 1.4rem;
}

.pill-one { left: 18%; top: 30%; }
.pill-two { right: 20%; top: 32%; }
.pill-three { left: 22%; bottom: 24%; }
.pill-four { right: 18%; bottom: 26%; }

.full-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.full-feature-grid a {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
    color: #fff;
    transition: .2s ease;
}

.full-feature-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(124,109,255,.45);
    background: rgba(124,109,255,.10);
}

.full-feature-grid span {
    font-size: 1.7rem;
}

.full-feature-grid strong,
.full-feature-grid p {
    display: block;
}

.full-feature-grid strong {
    margin-top: 12px;
    font-weight: 950;
}

.full-feature-grid p {
    color: #9ca3af;
    margin: 4px 0 0;
}

.full-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .85fr;
    gap: 18px;
}

.full-panel {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    padding: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 14px;
    margin-bottom: 10px;
}

.panel-head h2 {
    font-size: 1.2rem;
    font-weight: 950;
    margin: 0;
}

.panel-head a {
    color: #7c6dff;
    font-weight: 900;
}

.panel-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    align-items: center;
    color: #fff;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-row span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(124,109,255,.18);
}

.panel-row strong,
.panel-row small {
    display: block;
}

.panel-row small {
    color: #8892aa;
}

.panel-row b {
    color: #8892aa;
}

.status-good {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #2ee58f;
    margin-bottom: 22px;
}

.status-good span {
    width: 40px;
    height: 40px;
    border: 1px solid #2ee58f;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.status-good small {
    color: #9ca3af;
    display: block;
}

.status-line {
    margin: 14px 0;
}

.status-line div {
    display: flex;
    justify-content: space-between;
    color: #d1d5db;
    font-size: .9rem;
    margin-bottom: 7px;
}

.status-line i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #2ee58f;
}

.status-button {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(124,109,255,.16);
    color: #bdb7ff;
    font-weight: 950;
}

@media (max-width: 1200px) {
    .full-docs-shell {
        grid-template-columns: 1fr;
    }

    .full-docs-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .full-docs-hero,
    .full-panels-grid {
        grid-template-columns: 1fr;
    }

    .hammity-orbit-card {
        min-height: 300px;
    }
}

@media (max-width: 780px) {
    .full-docs-main {
        padding: 28px 18px;
    }

    .full-feature-grid {
        grid-template-columns: 1fr;
    }

    .full-docs-search {
        flex-direction: column;
    }

    .full-docs-search button {
        padding: 13px;
    }
}
