.docs-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.75rem;
    border: 1px solid #dbe4f0;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #e8fff6;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-hero__title {
    margin-top: 1rem;
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.docs-hero__text {
    margin-top: 1rem;
    max-width: 760px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.docs-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.docs-stat-card,
.docs-info-card,
.docs-error-card {
    border: 1px solid #dbe4f0;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
}

.docs-stat-card__label,
.docs-info-card__label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.docs-stat-card__value,
.docs-info-card strong,
.docs-error-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.docs-hero__actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.docs-btn--primary {
    background: #0f172a;
    color: #ffffff;
}

.docs-btn--primary:hover {
    background: #111827;
    transform: translateY(-1px);
}

.docs-btn--ghost {
    background: #ffffff;
    color: #0f172a;
    border-color: #dbe4f0;
}

.docs-btn--ghost:hover {
    background: #f8fafc;
}

.docs-panel {
    height: 100%;
    border-radius: 1.5rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.docs-panel__header {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.85rem;
}

.docs-inline-code {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #020617;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.87rem;
    word-break: break-word;
}

.docs-panel__divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 1rem 0;
}

.docs-panel__footer {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
}

.docs-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
}

.docs-sidebar__card {
    border: 1px solid #dbe4f0;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.docs-sidebar__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.docs-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.docs-sidebar__nav a {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 0.95rem;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.docs-sidebar__nav a:hover,
.docs-sidebar__nav a.is-active {
    background: #eff6ff;
    color: #0f172a;
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.docs-section {
    border: 1px solid #dbe4f0;
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.docs-section__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.docs-section__eyebrow {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 0.82rem;
}

.docs-section__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.docs-section__text {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-grid {
    display: grid;
    gap: 1rem;
}

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

.docs-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-code-card,
.docs-table-card {
    border: 1px solid #dbe4f0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0f172a;
}

.docs-code-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: #111827;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
}

.docs-copy-btn {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.docs-code-card pre {
    margin: 0;
    padding: 1.15rem;
    overflow-x: auto;
    color: #d1fae5;
    font-size: 0.88rem;
    line-height: 1.75;
}

.docs-code-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-table-card {
    background: #ffffff;
}

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

.docs-table-card thead {
    background: #f8fafc;
}

.docs-table-card th,
.docs-table-card td {
    text-align: left;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.docs-table-card th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: #64748b;
}

.docs-error-card {
    background: #fff;
}

.docs-error-card span {
    display: block;
    margin-top: 0.45rem;
    color: #475569;
    line-height: 1.6;
}

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

    .docs-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 980px) {
    .docs-hero {
        grid-template-columns: 1fr;
    }

    .docs-hero__meta,
    .docs-grid--3,
    .docs-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .docs-section,
    .docs-sidebar__card,
    .docs-hero {
        padding: 1.1rem;
        border-radius: 1.2rem;
    }

    .docs-hero__title {
        font-size: 1.7rem;
    }

    .docs-hero__actions {
        flex-direction: column;
    }

    .docs-btn {
        width: 100%;
    }
}

.docs-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.docs-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.docs-tabs__nav button {
    border: 1px solid #dbe4f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-tabs__nav button:hover,
.docs-tabs__nav button.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.docs-tab-pane {
    display: none;
}

.docs-tab-pane.is-active {
    display: block;
}

.docs-copy-btn.is-copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}
/* Onboarding banner */
.onboarding-banner {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.onboarding-header {
    margin-bottom: 1.25rem;
}
.onboarding-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.onboarding-icon { font-size: 1.1rem; }
.onboarding-bar-wrap {
    height: 6px;
    background: #334155;
    border-radius: 99px;
    overflow: hidden;
}
.onboarding-bar {
    height: 100%;
    background: #6366f1;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.onboarding-step {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #1e293b;
}
.onboarding-step.done {
    opacity: 0.55;
}
.step-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1e293b;
    border: 2px solid #334155;
    color: #6366f1;
    font-size: 0.8rem;
}
.onboarding-step.done .step-check {
    background: #1e3a2f;
    border-color: #22c55e;
    color: #22c55e;
}
.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}
.step-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}
.step-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}
.step-cta {
    font-size: 0.85rem;
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s;
}
.step-cta:hover { color: #6366f1; }
