/* === Theme Variables === */
:root,
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-sidebar: #1e293b;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-sidebar: #cbd5e1;
    --text-sidebar-active: #ffffff;
    --border-color: #dee2e6;
    --navbar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --teal: #14b8a6;
    --pink: #ec4899;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #0f172a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #ffffff;
    --border-color: #334155;
    --navbar-bg: #1e293b;
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --sidebar-hover: #1e293b;
    --sidebar-active: #3b82f6;
    --input-bg: #0f172a;
    --input-border: #334155;
}

/* === Global === */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding-top: 60px;
    flex: 1;
}

/* === Navbar === */
.navbar {
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1040;
}

.navbar .nav-link {
    color: var(--text-primary);
}

.navbar .nav-link:hover {
    color: var(--sidebar-active);
}

.navbar .nav-link.active {
    color: var(--sidebar-active);
    font-weight: 600;
}

.navbar-brand {
    color: var(--sidebar-active) !important;
}

.theme-toggle {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

[data-theme="light"] .theme-dark-icon { display: none; }
[data-theme="dark"] .theme-light-icon { display: none; }

.lang-menu {
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.lang-menu .dropdown-item {
    color: var(--text-primary);
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active {
    background-color: var(--sidebar-active);
    color: #fff;
}

.dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dropdown-menu .dropdown-item {
    color: var(--text-primary);
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--sidebar-active);
    color: #fff;
}

/* === Flash Messages === */
.flash-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1060;
    max-width: 400px;
}

.flash-alert {
    box-shadow: var(--card-shadow);
    margin-bottom: 8px;
}

/* === Auth Pages === */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
}

.auth-card .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

/* === Landing === */
.landing-page {
    overflow: hidden;
}

/* Hero */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 30%, #ecfdf5 70%, #fefce8 100%);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #0c1929 30%, #0a1a1a 70%, #1a1a0a 100%);
}

.hero-bg-shape {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-bg-shape {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.badge-pill {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .badge-pill {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.2s;
}

.hero-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.hero-btn-outline {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.hero-btn-outline:hover {
    transform: translateY(-1px);
}

/* Section headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Capabilities */
.capabilities-section {
    padding: 80px 0 60px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.capability-card {
    padding: 2rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--sidebar-active);
}

[data-theme="dark"] .capability-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.capability-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.capability-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.capability-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Models Section */
.models-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.model-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.provider-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50px;
}

.pricing {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-unit {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* CTA Free */
.cta-free-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}

[data-theme="dark"] .cta-free-section {
    background: linear-gradient(135deg, #0f1a2e 0%, #0a1a1a 100%);
}

.cta-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 1.25rem;
}

.cta-card-free {
    background: var(--card-bg);
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .cta-card-free {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
}

.cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 18px;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.cta-btn {
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.cta-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

/* CTA Enterprise */
.cta-enterprise-section {
    padding: 60px 0 80px;
    background-color: var(--bg-secondary);
}

.cta-card-enterprise {
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.cta-card-enterprise .cta-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cta-card-enterprise .cta-desc {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* === Console Layout === */
.console-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.console-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    padding-top: 1rem;
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1030;
}

.console-main {
    margin-left: 260px;
    padding: 2rem;
    flex: 1;
    min-height: calc(100vh - 60px);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-sidebar-active);
}

.sidebar-link.active {
    background-color: var(--sidebar-active);
    color: var(--text-sidebar-active);
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* === Cards === */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

.card-header {
    background-color: transparent;
    border-bottom-color: var(--border-color);
}

/* === Tables === */
.table {
    color: var(--text-primary);
}

.table > thead {
    border-bottom-color: var(--border-color);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--border-color);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(59, 130, 246, 0.05);
}

/* === Forms === */
.form-control, .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--sidebar-active);
    color: var(--text-primary);
}

/* === Footer === */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* === Utilities === */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sidebar-active);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* === Badge overrides === */
.badge.bg-info {
    background-color: #0ea5e9 !important;
}

/* Custom colors for dashboard cards */
.text-teal { color: var(--teal); }
.text-pink { color: var(--pink); }
.bg-teal { background-color: var(--teal); }
.bg-pink { background-color: var(--pink); }
.bg-teal-opacity-10 { background-color: rgba(20, 184, 166, 0.1); }
.bg-pink-opacity-10 { background-color: rgba(236, 72, 153, 0.1); }

/* === Docs === */
.docs-section {
    scroll-margin-top: 80px;
}

#client-config h4[id] {
    scroll-margin-top: 80px;
}

.docs-nav .nav-link {
    color: var(--text-secondary);
    padding: 0.4rem 0;
}

.docs-nav .nav-link:hover {
    color: var(--sidebar-active);
}

.docs-subnav .nav-link {
    padding: 0.2rem 0;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
}

.docs-subnav .nav-link:hover {
    color: var(--sidebar-active);
    border-left-color: var(--sidebar-active);
}

.docs-subnav .nav-link.active {
    color: var(--sidebar-active);
    border-left-color: var(--sidebar-active);
}

/* === Subscription / Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.pricing-card.current-plan {
    border-color: var(--sidebar-active);
}

.pricing-card.featured {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.pricing-card .current-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--sidebar-active);
    color: #fff;
    padding: 0.2rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.plan-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-savings {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.15rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.plan-features li {
    padding: 0.45rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li .feat-check {
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.plan-features li .feat-x {
    color: var(--text-secondary);
    opacity: 0.35;
    font-size: 1rem;
}

.plan-cta {
    text-align: center;
    padding-top: 0.5rem;
}

.plan-cta .btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Checkout page */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-order-info {
    font-size: 0.9rem;
}

.checkout-order-info td:first-child {
    color: var(--text-secondary);
    width: 140px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .console-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }
    .console-layout {
        flex-direction: column;
    }
    .console-main {
        margin-left: 0;
    }
    .hero-section {
        padding: 60px 0 40px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .capability-card {
        padding: 1.5rem 1.25rem;
    }
    .cta-card {
        padding: 2rem 1.25rem;
    }
    .cta-title {
        font-size: 1.35rem;
    }
    .pricing {
        flex-direction: column;
        gap: 0.5rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* === Model Plaza Detail Panel === */
.model-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.model-detail-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.model-detail-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: var(--card-bg);
    z-index: 1060;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.model-detail-panel.open {
    right: 0;
}

.model-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.model-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.detail-section {
    margin-bottom: 1.25rem;
}
.detail-section:last-child {
    margin-bottom: 0;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    word-break: break-all;
}

.price-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}
.price-box-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.price-box-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sidebar-active);
}
.price-box-unit {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}
.price-box-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* Config Tabs */
.config-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.config-tab {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s;
}
.config-tab i {
    margin-right: 0.25rem;
}
.config-tab:hover {
    border-color: var(--sidebar-active);
    color: var(--sidebar-active);
}
.config-tab.active {
    background: var(--sidebar-active);
    color: #fff;
    border-color: var(--sidebar-active);
}

.config-content {
    display: none;
}
.config-content.active {
    display: block;
}

.config-filename {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    display: inline-block;
}
.config-filename i {
    margin-right: 0.35rem;
}

.config-code-block {
    margin: 0;
    border-radius: 6px;
    max-height: 360px;
    overflow-y: auto;
    background: #1e1e2e !important;
    border: 1px solid var(--border-color);
}
.config-code-block code {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #cdd6f4;
    white-space: pre;
    font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
}

/* JSON syntax highlight colors */
.json-key { color: #89b4fa; }
.json-string { color: #a6e3a1; }
.json-number { color: #fab387; }
.json-bool { color: #cba6f7; }

/* Copy buttons */
.copy-btn {
    transition: all 0.15s;
}
.copy-btn i {
    margin-right: 0.35rem;
}

/* Model card cursor */
.plaza-model-card {
    cursor: pointer;
}

/* Text truncate 2 lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 厂商图标样式 */
.provider-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1;
    overflow: hidden;
}

.provider-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 576px) {
    .model-detail-panel {
        width: 100vw;
        right: -100vw;
    }
    .model-detail-panel.open {
        right: 0;
    }
}

/* === Docs Page === */
.docs-nav {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.docs-nav .nav-link {
    color: var(--text-secondary);
    padding: 0.35rem 0;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding-left: 1rem;
}
.docs-nav .nav-link:hover,
.docs-nav .nav-link.active {
    color: var(--sidebar-active);
    border-left-color: var(--sidebar-active);
    background: transparent;
}
.docs-section {
    scroll-margin-top: 80px;
}
.docs-section h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}
.docs-section h4 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Code Tabs */
.code-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}
.code-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.code-tab:hover {
    color: var(--text-primary);
}
.code-tab.active {
    color: var(--sidebar-active);
    border-bottom-color: var(--sidebar-active);
}
.code-panel {
    display: none;
}
.code-panel.active {
    display: block;
}
.code-panel pre {
    margin: 0;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Docs code blocks */
.docs-section pre code {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Table styles for docs */
.docs-table {
    width: 100%;
    margin-bottom: 1rem;
}
.docs-table th,
.docs-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
}
.docs-table th {
    background: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.docs-table td {
    font-size: 0.875rem;
}
.docs-table code {
    font-size: 0.8rem;
}
