:root {
    --bg: #07121d;
    --bg-2: #0e1d2d;
    --panel: rgba(18, 27, 40, 0.95);
    --panel-soft: rgba(29, 41, 58, 0.92);
    --line: rgba(255,255,255,0.09);
    --text: #edf4ff;
    --muted: #bfd0ee;
    --primary: #7bb9ff;
    --primary-2: #78f0c1;
    --accent: #ffbd73;
    --shadow: 0 22px 52px rgba(2, 8, 15, 0.45);
}

body.theme-light {
    --bg: #f0f7ff;
    --bg-2: #f9fbff;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-soft: rgba(242, 247, 255, 0.96);
    --line: rgba(34, 106, 196, 0.14);
    --text: #23314d;
    --muted: #4b5f83;
    --primary: #1a73e8;
    --primary-2: #16845c;
    --accent: #b56a16;
    --shadow: 0 24px 50px rgba(15, 49, 95, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Droid Arabic Kufi';
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.hero {
    position: relative;
    background: rgba(17, 25, 39, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px 28px 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0 auto auto -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(123,185,255,0.24), transparent 68%);
    pointer-events: none;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-badge {
    display: inline-block;
    background: rgba(123,185,255,0.12);
    border: 1px solid rgba(123,185,255,0.28);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.lang-switcher {
    display: inline-flex;
    gap: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
}

.hero > .lang-switcher {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 1;
}

.page-shell.en .hero > .lang-switcher {
    right: 28px;
    left: auto;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), #9fc9ff);
    color: #071827;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.25;
    max-width: 950px;
}

.lead {
    max-width: 900px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 2;
    margin: 0 0 18px;
}

.endpoint {
    width: 180px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 15px;
    color: var(--text);
    font-family: 'Droid Arabic Kufi';
    font-size: 0.96rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 0 rgba(123, 185, 255, 0);
}

.endpoint:hover {
    transform: translateY(-1px);
    border-color: rgba(123,185,255,0.38);
    background: rgba(123,185,255,0.06);
    box-shadow: 0 14px 32px rgba(123,185,255,0.10);
}

.endpoint:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(123,185,255,0.08);
}

.endpoint .method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--primary-2);
    color: #0b1d17;
    font-weight: 700;
    font-size: 12px;
}

.endpoint .path { white-space: nowrap; }

.endpoint .copy-feedback {
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(121, 240, 193, 0.12);
    border: 1px solid rgba(121, 240, 193, 0.25);
    color: var(--primary-2);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.endpoint.copied .copy-feedback {
    opacity: 1;
    transform: translateX(0);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.stat strong {
    display: block;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 8px;
    color: var(--primary);
}

.stat span {
    color: var(--muted);
    font-size: 0.94rem;
}

.tabs {
    background: rgba(17, 25, 39, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line);
}

.tab-button {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 18px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab-button:hover,
.tab-button.active {
    background: rgba(123,185,255,0.08);
    color: var(--text);
    border-bottom: 2px solid var(--primary);
}

.tab-panel {
    display: none;
    padding: 26px 24px 28px;
}

.tab-panel.active { display: block; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mini-title {
    margin: 0;
    font-size: 1.25rem;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(120,240,193,0.12);
    border: 1px solid rgba(120,240,193,0.25);
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 700;
}

.info {
    color: var(--muted);
    margin: 12px 0 18px;
    line-height: 2;
    font-size: 0.98rem;
}

.insight-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0 18px;
}

.insight {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--muted);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    justify-content: space-between;
    align-items: center;
}

.insight strong { color: var(--text); }

.insight-code {
    display: inline-block;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(123,185,255,0.18);
    background: rgba(123,185,255,0.06);
    color: var(--primary-2);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 0 rgba(123,185,255,0);
}

.insight-code:hover {
    transform: translateY(-1px);
    border-color: rgba(123,185,255,0.32);
    background: rgba(123,185,255,0.10);
    box-shadow: 0 8px 22px rgba(123,185,255,0.08);
}

.insight-code:active { transform: translateY(0); }

.insight-code.copied {
    background: rgba(120,240,193,0.14);
    border-color: rgba(120,240,193,0.38);
    color: var(--primary-2);
}

.page-shell.en .insight {
    direction: ltr;
    text-align: left;
    justify-content: flex-start;
}

.page-shell.en .insight-code {
    direction: ltr;
    text-align: left;
}

.code-box {
    position: relative;
    background: #0a1220;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.copy-code-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(123,185,255,0.32);
    background: rgba(123,185,255,0.08);
}

.copy-code-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.copy-code-badge {
    position: absolute;
    top: 12px;
    right: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(120,240,193,0.14);
    border: 1px solid rgba(120,240,193,0.32);
    color: var(--primary-2);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.copy-code-badge.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

pre {
    margin: 0;
    color: #dfe9ff;
    font-size: 0.9rem;
    line-height: 1.8;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    direction: ltr;
    text-align: left;
    padding-top: 8px;
}

.page-shell {
    direction: rtl;
    font-family: 'Droid Arabic Kufi';
}

.page-shell.en {
    direction: ltr;
    font-family: 'Droid Arabic Kufi';
}

.page-shell.en .lang-text,
.page-shell.en .lead,
.page-shell.en .mini-title,
.page-shell.en .info,
.page-shell.en .stat span,
.page-shell.en .hero-badge,
.page-shell.en .lang-btn,
.page-shell.en .pill,
.page-shell.en .insight,
.page-shell.en .insight strong,
.page-shell.en .tab-button,
.page-shell.en h1,
.page-shell.en .lang-switcher,
.page-shell.en .top-row,
.page-shell.en .section-head {
    font-family: 'Droid Arabic Kufi';
}

.page-shell.en .lang-switcher,
.page-shell.en .top-row,
.page-shell.en .section-head,
.page-shell.en .endpoint,
.page-shell.en .api-page-header,
.page-shell.en .api-header-inner,
.page-shell.en .api-nav,
.page-shell.en .api-brand,
.page-shell.en .api-brand-copy,
.page-shell.en .api-footer,
.page-shell.en .api-footer-inner,
.page-shell.en .api-footer-grid,
.page-shell.en .api-footer-links,
.page-shell.en .api-footer-contact {
    direction: ltr;
}

.page-shell.en .api-header-label,
.page-shell.en .api-header-subtitle,
.page-shell.en .api-nav-link,
.page-shell.en .api-footer-brand h3,
.page-shell.en .api-footer-links h4,
.page-shell.en .api-footer-contact h4,
.page-shell.en .api-footer-brand p,
.page-shell.en .api-footer-links a,
.page-shell.en .api-footer-contact a,
.page-shell.en .api-footer-copy {
    text-align: left;
}

.page-shell.en .api-brand { justify-content: flex-start; }
.page-shell.en .api-nav { justify-content: flex-start; }

.page-shell.en .api-footer-links a,
.page-shell.en .api-footer-contact a {
    justify-content: flex-start;
}

.api-page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px 0;
}

.api-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(16, 25, 38, 0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.api-menu-toggle { display: none; }
.api-mobile-lang-switcher { display: none; }
.api-header-inner > .api-mobile-theme-toggle { display: none; }

.api-menu {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.api-desktop-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.api-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.api-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a73e8, #4ca6ff);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 15px 28px rgba(26, 115, 232, 0.28);
}

.api-header-label {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.api-header-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    opacity: 0.9;
}

.api-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px;
}

.api-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    font-family: 'Droid Arabic Kufi';
    font-size: 0.92rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.api-nav-link:hover,
.api-nav-link:focus-visible,
.api-nav-link.active {
    background: rgba(123,185,255,0.08);
    border-color: rgba(123,185,255,0.18);
    color: var(--text);
    box-shadow: 0 10px 18px rgba(123,185,255,0.10);
    outline: none;
}

.api-header-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(123,185,255,0.18);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.api-header-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(123,185,255,0.32);
    background: rgba(123,185,255,0.08);
}

body.theme-light .api-page-header .api-header-inner,
body.theme-light .api-page-header .api-menu-toggle,
body.theme-light .api-page-header .api-header-toggle {
    background: rgba(247, 251, 255, 0.96);
    color: #1c3862;
}

body.theme-light .api-page-header .api-header-inner {
    border-color: rgba(34, 106, 196, 0.14);
    box-shadow: 0 24px 50px rgba(15, 49, 95, 0.08);
}

body.theme-light .api-page-header .api-header-label,
body.theme-light .api-page-header .api-nav-link {
    color: #1a3d72;
}

body.theme-light .hero,
body.theme-light .tabs,
body.theme-light .api-footer-inner {
    background: rgba(255, 255, 255, 0.96);
}

.api-footer {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px 38px;
}

.api-footer-inner {
    background: rgba(16, 25, 38, 0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 26px 24px 18px;
}

.api-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.api-footer-brand h3,
.api-footer-links h4,
.api-footer-contact h4 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1rem;
}

.api-footer-brand p,
.api-footer-links a,
.api-footer-contact a,
.api-footer-copy {
    color: var(--muted);
    text-decoration: none;
    line-height: 1.9;
}

.api-footer-links,
.api-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-footer-links a,
.api-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.api-footer-links a:hover,
.api-footer-contact a:hover { color: var(--text); }

.api-footer-copy {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    text-align: center;
}

.lang-text[hidden] { display: none !important; }

@media (max-width: 849.98px) {
    .hero > .lang-switcher { display: none; }
    .tab-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .api-header-inner {
        justify-content: space-between;
        gap: 10px !important;
    }

    .api-desktop-menu { display: none; }

    .api-menu-toggle {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(123,185,255,0.18);
        border-radius: 14px;
        background: rgba(255,255,255,0.02);
        color: var(--text);
        font-size: 1.1rem;
        cursor: pointer;
    }

    .api-mobile-lang-switcher {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .api-header-inner > .api-mobile-theme-toggle {
        width: 46px;
        height: 46px;
        display: inline-flex;
        flex: 0 0 46px;
    }

    .api-menu {
        position: fixed;
        z-index: 1001;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 14px;
        width: min(88vw, 360px);
        height: 100dvh;
        overflow-y: auto;
        padding: 22px 20px 28px;
        background: linear-gradient(160deg, #101d31 0%, #07121d 100%);
        box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease;
    }

    .api-menu.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .api-menu-backdrop {
        position: fixed;
        z-index: 1000;
        inset: 0;
        display: block;
        background: rgba(3, 13, 28, 0.58);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .api-menu-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .api-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .api-menu-close {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(123,185,255,0.22);
        border-radius: 12px;
        background: rgba(255,255,255,0.07);
        color: var(--text);
        cursor: pointer;
    }

    .api-menu .api-brand { justify-content: flex-start; }

    .api-menu .api-nav {
        width: 100%;
        order: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 6px;
    }

    .api-menu .api-nav-link {
        justify-content: flex-start;
        width: 100%;
    }

    .api-menu .lang-switcher { align-self: flex-start; }
    .api-menu .api-header-toggle { align-self: flex-start; }
    .api-footer-grid { grid-template-columns: 1fr; }
}

body.page-shell {
    --bg: #dce7f4;
    --bg-2: #edf3f9;
    --panel: rgba(255, 255, 255, 0.58);
    --panel-soft: rgba(255, 255, 255, 0.34);
    --line: rgba(73, 103, 143, 0.12);
    --text: #253b59;
    --muted: #6d7f96;
    --primary: #3478d4;
    --primary-2: #198754;
    --accent: #3478d4;
    --shadow: 0 18px 45px rgba(42, 67, 105, 0.12);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg), var(--bg-2));
    font-family: 'Droid Arabic Kufi';
}

body.page-shell::before,
body.page-shell::after {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

body.page-shell::before {
    top: -230px;
    right: -120px;
    background: #4b8be3;
}

body.page-shell::after {
    bottom: -260px;
    left: -170px;
    background: #8ec2e7;
}

body.page-shell.theme-light {
    --bg: #dce7f4;
    --bg-2: #edf3f9;
    --panel: rgba(255, 255, 255, 0.58);
    --panel-soft: rgba(255, 255, 255, 0.34);
    --line: rgba(73, 103, 143, 0.12);
    --text: #253b59;
    --muted: #6d7f96;
    --primary: #3478d4;
    --primary-2: #198754;
    color: var(--text);
}

body.page-shell.theme-dark {
    --bg: #0a1422;
    --bg-2: #122337;
    --panel: rgba(21, 35, 53, 0.75);
    --panel-soft: rgba(25, 42, 63, 0.9);
    --line: rgba(255, 255, 255, 0.08);
    --text: #eaf2fb;
    --muted: #a6b6c9;
    --primary: #78adf2;
    --primary-2: #78d6b0;
    background: linear-gradient(135deg, var(--bg), var(--bg-2));
}

.api-page-header,
.api-footer { max-width: 1180px; }

.api-page-header { padding: 18px 18px 0; }

.api-header-inner,
.hero,
.tabs,
.api-footer-inner,
.stat {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
}

.api-header-inner { min-height: 74px; padding: 12px 20px; }

body.page-shell.theme-dark .api-header-inner,
body.page-shell.theme-dark .hero,
body.page-shell.theme-dark .tabs,
body.page-shell.theme-dark .api-footer-inner,
body.page-shell.theme-dark .stat { border-color: var(--line); }

.api-brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: linear-gradient(135deg, #4a8ce7, #2864be);
    box-shadow: 0 10px 25px rgba(52, 120, 212, 0.25);
}

.api-header-label { font-size: 15px; font-weight: 900; }
.api-header-subtitle { font-size: 10px; }

.api-nav-link {
    min-height: 0;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
}

.api-nav-link:hover,
.api-nav-link:focus-visible,
.api-nav-link.active {
    color: var(--primary);
    background: rgba(52, 120, 212, 0.1);
    border-color: transparent;
    box-shadow: inset 0 -2px 0 var(--primary);
}

.api-header-toggle {
    width: 46px;
    height: 46px;
    background: var(--panel-soft);
    border-color: rgba(255, 255, 255, 0.8);
}

.page { max-width: 1180px; padding: 18px 18px 80px; }

.hero { padding: 50px; margin-bottom: 22px; }

.hero::after {
    width: 500px;
    height: 500px;
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(59, 126, 221, 0.22), transparent 70%);
}

.hero-badge {
    padding: 9px 16px;
    border: 0;
    border-radius: 20px;
    background: rgba(52, 120, 212, 0.1);
    color: var(--primary);
    font-size: 12px;
}

.lang-switcher {
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.lang-btn { padding: 8px 14px; border-radius: 11px; font-size: 11px; }

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 15px rgba(52, 120, 212, 0.25);
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 15px;
}

.lead { max-width: 780px; font-size: 15px; line-height: 2.2; }

.endpoint {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
    padding: 10px 12px 10px 20px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    direction: ltr;
}

.endpoint .method { padding: 7px 10px; border-radius: 8px; background: var(--primary-2); color: #fff; }

.page-shell.ku .endpoint {
    display: flex;
    width: max-content;
    margin-right: auto;
    margin-left: 0;
    direction: rtl;
}

body.page-shell.theme-light .endpoint {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(52, 120, 212, 0.2);
    box-shadow: 0 10px 24px rgba(42, 67, 105, 0.08);
}

.stats { grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.stat { padding: 25px 20px; text-align: center; }
.stat strong { font-size: 30px; color: var(--primary); }
.stat span { font-size: 12px; }
.tabs { overflow: hidden; }
.tab-buttons { background: transparent; }

.tab-button { padding: 16px 10px; font-size: 12px; border-bottom: 3px solid transparent; }

.tab-button:hover,
.tab-button.active {
    color: var(--primary);
    background: rgba(52, 120, 212, 0.05);
    border-bottom-color: var(--primary);
}

.tab-panel { padding: 35px; }
.mini-title { font-size: 22px; font-weight: 900; }
.info { font-size: 13px; }

.pill {
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.1);
    border: 0;
    color: var(--primary-2);
    font-size: 11px;
}

.insight-box { grid-template-columns: repeat(3, 1fr); gap: 12px; }

.insight {
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.insight-code {
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(54, 120, 115, 0.08);
    color: #4d917f;
}

.code-box { border-radius: 20px; background: #111b2a; }
.response-section { margin-top: 30px; }

.response-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

.response-title i { color: var(--primary-2); }

.response-code-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111b2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.response-code-label {
    padding: 13px 18px;
    color: #9db1c8;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    direction: ltr;
    font-family: Consolas, monospace;
    font-size: 11px;
    text-align: left;
}

pre { padding: 25px; color: #d6e4f5; font-size: 12px; line-height: 2; }
.api-footer { padding: 0 18px 38px; }
.api-footer-inner { padding: 35px; }

.api-footer-brand h3,
.api-footer-links h4,
.api-footer-contact h4 { font-size: 17px; font-weight: 900; }

.api-footer-brand p,
.api-footer-links a,
.api-footer-contact a,
.api-footer-copy { font-size: 12px; }

@media (max-width: 991px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 80px 25px 35px; }
    .insight-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .stats { grid-template-columns: 1fr; }
    .tab-panel { padding: 20px 15px; }
    .api-footer-inner { padding: 25px; }
    pre { padding: 18px; font-size: 10px; }
}

.page-shell.en .inline-ltr-left {
    direction: ltr;
    text-align: left;
}
