@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/inter-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../assets/fonts/inter-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url('../assets/fonts/inter-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url('../assets/fonts/inter-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.header--site-header {
    --header-accent: #009966;
    --header-accent-bright: #00bc7d;
    height: 90px;
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
}

.header--container {
    width: 100%;
    max-width: 1431px;
    margin: 0 auto;
    padding: 0 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header--logo-image {
    height: 36px;
    width: auto;
}

.header--main-nav {
    display: flex;
    gap: 40px;
}

.header--nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.18px;
    transition: color 0.2s;
}

.header--nav-link:hover,
.header--nav-link.active {
    color: var(--color-white);
}

.header--actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header--login-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.18px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.header--login-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header--signup-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.18px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.header--signup-btn:hover {
    background-color: #008855;
}

.header--search {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 16px;
    margin: 0 40px;
}

.header--search .header--search-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--color-white);
    fill: currentColor;
    opacity: 1;
    cursor: text;
}

.header--search .header--search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    padding: 12px;
}

.header--search .header--search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header--search .header--search-btn {
    background-color: #ef4444;
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header--search .header--search-btn:hover {
    background-color: #dc2626;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 28px rgba(0,0,0,0.15);
    z-index: 1100;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}

.search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown__empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.search-dropdown__section {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.search-dropdown__section:last-of-type {
    border-bottom: none;
}

.search-dropdown__section-title {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.15s;
}

.search-dropdown__item:hover {
    background-color: #f9fafb;
}

.search-dropdown__img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background-color: #f9fafb;
    flex-shrink: 0;
}

.search-dropdown__img--placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.search-dropdown__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0 2px;
}

.search-dropdown__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-dropdown__label {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown__label strong {
    color: #009966;
    font-weight: 700;
}

.search-dropdown__sublabel {
    font-size: 11px;
    color: #9ca3af;
}

.search-dropdown__price {
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-dropdown__stockout {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 10px;
    background-color: #fef2f2;
    color: #c10007;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.18px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-dropdown__stockout svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.search-dropdown__viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    border-top: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.search-dropdown__viewall svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
}

.search-dropdown__viewall:hover {
    background-color: #f0fdf4;
}

.header--user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header--guest-signup-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.18px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.header--guest-signup-btn:hover {
    background-color: #008855;
}

.header--admin-switch {
    position: relative;
}

.header--admin-switch-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 84px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header--admin-switch-btn:hover,
.header--admin-switch-btn.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.header--admin-switch-icon {
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: 0.95;
}

.header--admin-switch-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.header--admin-switch-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid var(--color-bg-dark);
    display: none;
}

.header--admin-switch-dot.active {
    display: block;
}

.header--admin-switch-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1200;
}

.header--admin-switch-panel.open {
    display: block;
}

.header--admin-switch-header {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.header--admin-switch-input {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
}

.header--admin-switch-input:focus {
    border-color: #009966;
}

.header--admin-switch-results {
    margin-top: 8px;
    max-height: 230px;
    overflow: auto;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
}

.header--admin-switch-result {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 9px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.header--admin-switch-result:last-child {
    border-bottom: none;
}

.header--admin-switch-result:hover {
    background: #f9fafb;
}

.header--admin-switch-result-name {
    display: block;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--admin-switch-result-meta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--admin-switch-empty {
    padding: 12px 10px;
    font-size: 12px;
    color: #6b7280;
}

.header--admin-switch-reset {
    margin-top: 10px;
    width: 100%;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.header--admin-switch-reset:hover {
    background: #f9fafb;
}

.header--cart-btn {
    position: relative;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.header--cart-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.header--cart-btn .header--cart-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.header--cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.header--user-dropdown {
    position: relative;
}

.header--user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(70vw, 320px);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.header--user-dropdown-trigger:hover,
.header--user-dropdown-trigger.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.header--user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header--user-avatar span {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header--user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    max-width: 220px;
}

.header--user-name {
    display: block;
    max-width: 100%;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--user-name--x-user {
    color: #ef4444 !important;
}

.header--dropdown-user-name--x-user {
    color: #ef4444 !important;
}

.header--user-type {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--dropdown-chevron {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: #ffffff;
    fill: currentColor;
    opacity: 1;
    transition: transform 0.2s;
}

.header--user-dropdown-trigger.active .header--dropdown-chevron {
    transform: rotate(180deg);
}

.header--dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.header--dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header--dropdown-header {
    padding: 16px;
    background-color: #f9fafb;
}

.header--dropdown-user-name {
    display: block;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--dropdown-user-email {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
}

.header--dropdown-divider {
    height: 1px;
    background-color: #f3f4f6;
}

.header--dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6a7282;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-family);
}

.header--dropdown-item:hover {
    background-color: #f9fafb;
}

.header--dropdown-item--highlight {
    background-color: transparent;
    color: #009966;
}

.header--dropdown-item--highlight:hover {
    background-color: #f9fafb;
}

.header--dropdown-icon {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 1;
}

.header--dropdown-item.header--logout-btn {
    color: #ef4444;
}

.header--dropdown-item.header--logout-btn:hover {
    background-color: #fef2f2;
}

.header--dropdown-item.header--logout-btn .header--dropdown-icon {
    color: inherit;
    opacity: 1;
}

@media (max-width: 1200px) {
    .header--container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .header--site-header {
        height: auto;
    }

    .header--container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        gap: 10px 12px;
    }

    .header--logo {
        flex: 0 0 auto;
    }

    .header--logo-image {
        height: 30px;
    }

    .header--main-nav {
        order: 5;
        flex: 1 0 100%;
        justify-content: center;
        display: flex;
        gap: 24px;
    }

    .header--nav-link {
        font-size: 13px;
    }

    .header--actions {
        gap: 10px;
    }

    .header--login-link {
        font-size: 13px;
        padding: 8px 14px;
    }

    .header--signup-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    .header--search {
        order: 10;
        flex: 1 0 100%;
        max-width: none;
        margin: 0;
        width: 100%;
    }

    .header--user-actions {
        flex: 0 0 auto;
    }

    .header--user-info {
        display: none;
    }

    .header--user-dropdown-trigger {
        padding: 6px;
    }

    .header--dropdown-chevron {
        color: var(--color-white);
        opacity: 1;
    }

    .header--admin-switch-btn {
        width: 44px;
        gap: 0;
    }

    .header--admin-switch-panel {
        width: min(320px, calc(100vw - 32px));
        max-width: none;
    }

    .header--admin-switch-label {
        display: none;
    }

    .header--guest-signup-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
}

@media (max-width: 360px) {
    .header--container {
        justify-content: center;
        gap: 8px 10px;
    }

    .header--logo-image {
        height: 28px;
    }

    .header--actions,
    .header--user-actions {
        flex: 1 0 100%;
        justify-content: center;
    }
}
.footer--site-footer {
    background-color: var(--color-bg-dark);
    padding: 28px 0 12px;
}

.footer--container {
    max-width: 1431px;
    margin: 0 auto;
    padding: 0 76px;
}

.footer--main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer--brand {
    max-width: 347px;
}

.footer--logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer--desc {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.18px;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.5;
}

.footer--links,
.footer--contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer--links .footer--title {
    text-align: center;
}

.footer--links-columns {
    display: flex;
    gap: 48px;
}

.footer--links-list,
.footer--contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer--title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.45px;
    color: var(--color-white);
}

.footer--links .footer--link,
.footer--contact .footer--link {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.18px;
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
    transition: color 0.2s;
}

.footer--links .footer--link:hover,
.footer--contact .footer--link:hover {
    color: var(--color-white);
}

.footer--bottom {
    padding-top: 24px;
    text-align: center;
}

.footer--copyright {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.18px;
    color: rgba(255, 255, 255, 0.40);
}

.footer--payment-logos {
    display: block;
    margin-top: 20px;
    max-width: 165px;
    height: auto;
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .footer--container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .footer--container {
        padding: 0 16px;
    }

    .footer--main {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }

    .footer--brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer--payment-logos {
        margin: 20px auto 0;
    }

    .footer--links {
        align-items: center;
    }

    .footer--links-columns {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer--links-list {
        align-items: center;
    }

    .footer--contact {
        align-items: center;
    }
}
:root {
    --color-primary: #009966;
    --color-primary-dark: #007a55;
    --color-primary-soft: #e6f8f1;
    --color-bg-dark: #0f172a;
    --color-bg-page: #f8fafc;
    --color-text-dark: #0f172b;
    --color-text-primary: #334155;
    --color-text-secondary: #64748b;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-page);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
}

.api-docs-main {
    min-height: calc(100vh - 90px - 296px);
    background:
        radial-gradient(circle at top left, rgba(0, 153, 102, 0.12), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

.api-docs-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.api-docs-hero {
    padding: 64px 0 40px;
}

.api-docs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 32px;
    align-items: stretch;
}

.api-docs-hero-grid > *,
.api-docs-layout > *,
.api-docs-content,
.api-docs-section,
.api-docs-sidebar,
.api-docs-table-wrap,
.api-docs-section pre {
    min-width: 0;
}

.api-docs-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border: 1px solid rgba(0, 153, 102, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.api-docs-hero h1 {
    margin-top: 18px;
    max-width: 760px;
    color: var(--color-text-dark);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    overflow-wrap: anywhere;
}

.api-docs-hero p {
    margin-top: 18px;
    max-width: 680px;
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.api-docs-endpoint-card {
    background: var(--color-bg-dark);
    border-radius: 24px;
    padding: 28px;
    color: var(--color-white);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.api-docs-endpoint-card span {
    display: block;
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.api-docs-endpoint-card code {
    display: block;
    margin-top: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    white-space: normal;
    word-break: break-word;
}

.api-docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 64px;
}

.api-docs-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.api-docs-sidebar a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 14px;
    transition: 0.2s ease;
}

.api-docs-sidebar a:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.api-docs-sidebar a.is-active {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border: 1px solid rgba(0, 153, 102, 0.25);
}

.api-docs-sidebar a.api-docs-sidebar-separate {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.api-docs-content {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.api-docs-section {
    contain: layout style;
    scroll-margin-top: 110px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.api-docs-section-errors {
    content-visibility: auto;
    contain-intrinsic-size: auto 2400px;
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 35%);
    border-color: #fecaca;
    box-shadow: 0 14px 40px rgba(127, 29, 29, 0.08);
}

.api-docs-section-errors h2 {
    color: #991b1b;
}

.api-docs-section h2 {
    color: var(--color-text-dark);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.api-docs-section h3 {
    margin-top: 24px;
    color: var(--color-text-dark);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.api-docs-section h2 + p,
.api-docs-section p {
    margin-top: 12px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.api-docs-section pre + h3 {
    margin-top: 28px;
}

.api-docs-section ul {
    margin-top: 16px;
    padding-left: 22px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.api-docs-section pre {
    margin-top: 16px;
    overflow-x: auto;
    background: #0f172a;
    border-radius: 16px;
    padding: 18px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.api-docs-endpoint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    min-height: 62px;
    padding: 10px 16px 10px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.api-docs-endpoint-method {
    flex: 0 0 auto;
    min-width: 62px;
    padding: 10px 12px;
    color: #ffffff;
    background: #334155;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
}

.api-docs-endpoint code {
    min-width: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.api-docs-section code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.api-docs-section pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    color: #e2e8f0;
    line-height: 1.65;
}

.api-docs-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.api-docs-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.api-docs-table-wrap th,
.api-docs-table-wrap td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.api-docs-table-wrap th {
    background: #f1f5f9;
    color: var(--color-text-dark);
    font-weight: 800;
}

.api-docs-table-wrap tr:last-child td {
    border-bottom: none;
}

.api-docs-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .api-docs-hero-grid,
    .api-docs-layout {
        grid-template-columns: 1fr;
    }

    .api-docs-sidebar {
        position: sticky;
        top: 8px;
        z-index: 20;
        flex-direction: row;
        overflow-x: auto;
        max-width: 100%;
        gap: 8px;
        padding: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .api-docs-sidebar a {
        flex: 0 0 auto;
        border: 1px solid transparent;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .api-docs-sidebar a.api-docs-sidebar-separate {
        margin-top: 0;
        padding: 12px 14px;
        border: 1px solid transparent;
    }

    .api-docs-sidebar a.is-active {
        border-color: rgba(0, 153, 102, 0.25);
    }
}

@media (max-width: 640px) {
    .api-docs-container {
        padding: 0 16px;
    }

    .api-docs-hero {
        padding: 32px 0 28px;
    }

    .api-docs-hero h1 {
        margin-top: 0;
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.08;
        letter-spacing: -0.6px;
    }

    .api-docs-section,
    .api-docs-endpoint-card {
        padding: 18px;
        border-radius: 16px;
    }

    .api-docs-sidebar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        overflow: visible;
        top: 4px;
        padding: 4px;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

    .api-docs-sidebar a,
    .api-docs-sidebar a.api-docs-sidebar-separate {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        margin-top: 0;
        padding: 5px 8px;
        border: 1px solid transparent;
        text-align: center;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.1;
        border-radius: 999px;
    }

    .api-docs-sidebar a.is-active {
        background: #d8f8ec;
        border-color: rgba(0, 153, 102, 0.35);
    }

    .api-docs-layout {
        gap: 20px;
        padding-bottom: 44px;
    }

    .api-docs-content {
        gap: 22px;
    }

    .api-docs-section h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .api-docs-section h3 {
        font-size: 17px;
    }

    .api-docs-section p,
    .api-docs-section li {
        font-size: 15px;
    }

    .api-docs-section ul {
        padding-left: 18px;
    }

    .api-docs-section pre {
        border-radius: 14px;
        padding: 14px;
    }

    .api-docs-section code {
        font-size: 12px;
    }

    .api-docs-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .api-docs-table-wrap table,
    .api-docs-table-wrap thead,
    .api-docs-table-wrap tbody,
    .api-docs-table-wrap tr,
    .api-docs-table-wrap th,
    .api-docs-table-wrap td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .api-docs-table-wrap thead {
        display: none;
    }

    .api-docs-table-wrap tr {
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid var(--color-border);
        border-radius: 14px;
        background: #ffffff;
    }

    .api-docs-table-wrap tr:last-child {
        margin-bottom: 0;
    }

    .api-docs-table-wrap td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #edf2f7;
        font-size: 14px;
    }

    .api-docs-table-wrap td:last-child {
        border-bottom: 0;
    }

    .api-docs-table-wrap td::before {
        color: var(--color-text-dark);
        font-weight: 800;
    }

    .api-docs-table-wrap td:nth-child(1)::before {
        content: "Alan";
    }

    .api-docs-table-wrap td:nth-child(2)::before {
        content: "Tip";
    }

    .api-docs-table-wrap td:nth-child(3)::before {
        content: "Açıklama";
    }
}
