/* ============================================================
   V2.0.63 Cloud Platform UI
   Unified visual layer for public site, tenant console and admin.
   Loaded after site.css / layout.css / tenant.css / admin.css.
   ============================================================ */

:root {
    --primary: #1668e3;
    --primary-dark: #0d4fbf;
    --primary-light: #edf4ff;
    --brand-navy: #071a2f;
    --brand-navy-soft: #0b2440;
    --brand-blue: #2f7df6;
    --brand-cyan: #22d3ee;
    --success: #0f9f6e;
    --warning: #d97706;
    --danger: #dc2626;
    --text-primary: #12243a;
    --text-secondary: #5b6d84;
    --text-muted: #8496ab;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7fb;
    --bg-tertiary: #e9eff7;
    --border-color: #dce5f0;
    --border-strong: #c9d6e6;
    --shadow-sm: 0 1px 2px rgba(16, 36, 62, 0.04), 0 10px 26px -20px rgba(16, 36, 62, 0.28);
    --shadow-md: 0 18px 44px -24px rgba(16, 36, 62, 0.34);
    --shadow-lg: 0 28px 70px -28px rgba(7, 26, 47, 0.4);
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --sidebar-width: 256px;
    --topbar-height: 64px;
    --cloud-font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    font-family: var(--cloud-font);
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(34, 211, 238, 0.25);
    color: #071a2f;
}

a {
    color: var(--primary);
}

a:hover {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2f7df6 0%, #1668e3 55%, #0d4fbf 100%);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(22, 104, 227, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b8bff 0%, #176fe8 55%, #0b47ad 100%);
    box-shadow: 0 14px 30px -12px rgba(22, 104, 227, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--primary);
    border: 1px solid #bcd2f2;
    background: #fff;
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: #9cc0ef;
    box-shadow: 0 8px 20px -16px rgba(22, 104, 227, 0.5);
}

.btn-outline-light {
    color: #eaf6ff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.btn-lg {
    min-height: 46px;
    padding: 11px 26px;
    font-size: 15px;
    border-radius: 11px;
}

.btn-sm {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-secondary {
    background: #eef3f9;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e2eaf4;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: #0f9f6e;
    color: #fff;
}

.btn-success:hover {
    background: #0b7f57;
}

.btn-info {
    background: #1668e3;
}

.btn-info:hover {
    background: #0d4fbf;
}

/* ------------------------------ Shared surfaces ------------------------------ */
.card,
.card-nopad,
.data-card,
.form-card,
.dashboard-panel,
.timeline-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card {
    padding: 22px;
}

.card-nopad,
.data-card,
.form-card {
    overflow: hidden;
}

.form-card-header,
.section-header {
    padding: 17px 22px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 650;
    color: var(--text-primary);
}

.form-card-body {
    padding: 22px;
}

.page-header {
    margin-bottom: 22px;
    align-items: flex-end;
}

.page-title {
    font-size: 25px;
    line-height: 1.25;
    font-weight: 720;
    letter-spacing: -0.03em;
    color: #0d1f35;
}

.page-subtitle {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.panel-title {
    font-size: 15.5px;
    font-weight: 680;
    letter-spacing: -0.01em;
}

/* ------------------------------ Forms ------------------------------ */
.form-group {
    margin-bottom: 17px;
}

.form-label,
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #34465d;
}

.form-input,
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #d5e0ed;
    border-radius: 9px;
    background: #fbfdff;
    color: var(--text-primary);
    font-size: 13.5px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input:hover,
.form-control:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #b9cbe1;
}

.form-input:focus,
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.12);
}

.form-input::placeholder,
.form-control::placeholder,
.form-textarea::placeholder {
    color: #9aabbf;
}

.form-grid-2,
.form-grid-3,
.form-grid-4,
.form-grid-5,
.form-grid-6 {
    gap: 16px;
}

/* ------------------------------ Tables ------------------------------ */
.data-table {
    font-size: 13px;
}

.data-table th {
    padding: 11px 14px;
    background: #f7fafd;
    color: #6b7f95;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f8;
    color: #263a51;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: #f5f9ff;
}

.table-scroll {
    border-radius: 10px;
}

/* ------------------------------ Badges & tags ------------------------------ */
.badge,
.status-badge,
.state-badge,
.tag,
.model-cap-tag,
.package-purchased {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-success,
.status-badge.active,
.tag-success {
    background: #e8f8f1;
    color: #0b7a55;
}

.badge-warning,
.status-badge.pending,
.tag-warning {
    background: #fff6e8;
    color: #a55a04;
}

.badge-danger,
.status-badge.inactive,
.tag-danger {
    background: #fdeeee;
    color: #b42323;
}

.badge-info,
.badge-primary,
.tag-primary {
    background: #edf4ff;
    color: #145bcc;
}

.badge-muted {
    background: #eef3f8;
    color: #61758c;
}

.tag {
    border-radius: 7px;
    background: #f0f5fb;
    color: #58708a;
}

/* ============================================================
   PUBLIC SITE
   ============================================================ */

.site-header {
    background: rgba(249, 252, 255, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(203, 218, 235, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-container {
    max-width: 1180px;
    height: 72px;
    padding: 0 28px;
    gap: 28px;
}

.logo {
    gap: 11px;
    flex-shrink: 0;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, #2f7df6 0%, #1668e3 52%, #0b3f9e 100%);
    color: #fff;
    box-shadow: 0 9px 20px -10px rgba(22, 104, 227, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.logo-mark svg {
    width: 21px;
    height: 21px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #0c1f35;
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.logo-sub {
    margin-top: 2px;
    color: #8395aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.header-nav .nav-link {
    position: relative;
    padding: 8px 13px;
    border-radius: 8px;
    color: #465b72;
    font-size: 13.5px;
    font-weight: 550;
    transition: color 0.16s ease, background 0.16s ease;
}

.header-nav .nav-link:hover {
    color: #0d4fbf;
    background: #eef5ff;
}

.header-nav .nav-link.active {
    color: #0d4fbf;
    background: #eef5ff;
    font-weight: 650;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.header-actions .nav-console {
    padding: 7px 10px;
    color: #496079;
    font-size: 13px;
    font-weight: 600;
}

.header-actions .nav-console:hover {
    color: #0d4fbf;
}

.header-actions .btn {
    min-height: 36px;
    padding: 7px 16px;
    font-size: 13px;
}

.nav-mobile-actions {
    display: none;
}

.nav-scrim {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: #fff;
    color: #344b63;
    cursor: pointer;
}

.mobile-nav-toggle svg {
    width: 18px;
    height: 18px;
}

/* ------------------------------ Hero ------------------------------ */
.cloud-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 0;
    background:
        radial-gradient(900px 520px at 78% -8%, rgba(34, 211, 238, 0.16), transparent 62%),
        radial-gradient(760px 480px at 8% 4%, rgba(47, 125, 246, 0.13), transparent 66%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 78%);
}

.cloud-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 95, 165, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 95, 165, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 82%);
}

.cloud-hero::after {
    content: "";
    position: absolute;
    top: -260px;
    right: -180px;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 125, 246, 0.12), transparent 66%);
    filter: blur(10px);
    pointer-events: none;
}

.cloud-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 54px;
    padding-bottom: 76px;
}

.cloud-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 9px;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #31527a;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 20px -18px rgba(16, 61, 120, 0.5);
    backdrop-filter: blur(8px);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.eyebrow-version {
    margin-left: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1668e3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.cloud-hero-title {
    margin: 22px 0 18px;
    color: #0b1f35;
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 1.08;
    font-weight: 780;
    letter-spacing: -0.045em;
}

.cloud-hero-title .gradient-text {
    background: linear-gradient(105deg, #1668e3 8%, #2f7df6 46%, #0ea5b7 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cloud-hero-lead {
    max-width: 580px;
    margin-bottom: 30px;
    color: #526a83;
    font-size: 17px;
    line-height: 1.75;
}

.cloud-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cloud-hero-actions .btn-lg {
    min-height: 48px;
    padding: 12px 28px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.hero-proof li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5b7188;
    font-size: 12.5px;
    font-weight: 550;
}

.hero-proof svg {
    width: 16px;
    height: 16px;
    padding: 3px;
    border-radius: 50%;
    background: #e7f8f2;
    color: #0b8a61;
}

/* Hero console mockup */
.cloud-hero-visual {
    position: relative;
    min-width: 0;
}

.console-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid #d3e0ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 90px -36px rgba(10, 42, 82, 0.5), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 15px;
    border-bottom: 1px solid #e8eff7;
    background: #fbfdff;
}

.console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8e3ef;
}

.console-dot:nth-child(1) { background: #ff8b82; }
.console-dot:nth-child(2) { background: #ffd166; }
.console-dot:nth-child(3) { background: #5cd6a9; }

.console-bar-title {
    margin-left: 8px;
    color: #7a8ea4;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.console-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e9f9f2;
    color: #0b7a55;
    font-size: 9.5px;
    font-weight: 700;
}

.console-live::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.console-body {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 352px;
}

.console-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-right: 1px solid #edf2f8;
    background: #f9fbfe;
}

.rail-item {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #9aabbe;
}

.rail-item svg {
    width: 15px;
    height: 15px;
}

.rail-item.active {
    background: #eaf3ff;
    color: #1668e3;
    box-shadow: inset 0 0 0 1px #d9e8fd;
}

.console-screen {
    min-width: 0;
    padding: 18px 20px 20px;
}

.console-screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.console-screen-head strong {
    color: #1b324b;
    font-size: 13px;
    font-weight: 720;
}

.console-screen-head span {
    color: #97a8ba;
    font-size: 9.5px;
}

.console-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 13px;
}

.console-metric {
    padding: 10px 11px;
    border: 1px solid #e6eef7;
    border-radius: 9px;
    background: #fcfdff;
}

.console-metric small {
    display: block;
    color: #8b9db1;
    font-size: 9px;
}

.console-metric b {
    display: block;
    margin-top: 4px;
    color: #102941;
    font-size: 15px;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
}

.console-metric em {
    display: block;
    margin-top: 2px;
    color: #0b8a61;
    font-size: 8px;
    font-style: normal;
    font-weight: 650;
}

.console-chart {
    position: relative;
    overflow: hidden;
    padding: 11px 12px 8px;
    border: 1px solid #e6eef7;
    border-radius: 10px;
    background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.console-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.console-chart-head span {
    color: #7f92a6;
    font-size: 9px;
    font-weight: 600;
}

.console-chart-head i {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #e7eef8;
}

.console-chart svg {
    display: block;
    width: 100%;
    height: 88px;
}

.console-code {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding: 10px 11px;
    border-radius: 9px;
    background: #0b2440;
    color: #bcd2e8;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 8.5px;
}

.console-code .code-prompt {
    color: #38e8d1;
}

.console-code .code-copy {
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    color: #7f9bb8;
}

.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(211, 224, 239, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px -22px rgba(10, 42, 82, 0.45);
    backdrop-filter: blur(12px);
    animation: cloudFloat 7s ease-in-out infinite;
}

.hero-float-key {
    top: 46px;
    right: -26px;
}

.hero-float-latency {
    bottom: -18px;
    left: -24px;
    animation-delay: -3.5s;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eaf3ff;
    color: #1668e3;
}

.float-icon.green {
    background: #e9f9f2;
    color: #0b8a61;
}

.float-icon svg {
    width: 16px;
    height: 16px;
}

.hero-float small {
    display: block;
    color: #8b9db1;
    font-size: 9px;
}

.hero-float b {
    display: block;
    margin-top: 1px;
    color: #17324e;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-float b.green {
    color: #0b7a55;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Trust strip */
.cloud-trust {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(216, 228, 241, 0.8);
    background: rgba(255, 255, 255, 0.6);
}

.cloud-trust-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 66px;
    padding: 12px 16px;
    border-left: 1px solid rgba(216, 228, 241, 0.7);
    color: #5d7289;
    font-size: 12px;
    font-weight: 550;
}

.trust-item:first-child {
    border-left: 0;
}

.trust-item strong {
    color: #17324e;
    font-size: 13px;
    font-weight: 700;
}

.trust-item svg {
    width: 17px;
    height: 17px;
    color: #2f7df6;
}

/* Stats band */
.cloud-stats-band {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    padding: 36px 0 0;
    background: linear-gradient(180deg, #fff, #f6f9fd);
}

.cloud-stats-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 50px -34px rgba(20, 51, 88, 0.35);
}

.cloud-stat {
    position: relative;
    padding: 22px 26px;
    border-left: 1px solid #e8eff7;
}

.cloud-stat:first-child {
    border-left: 0;
}

.cloud-stat-value {
    color: #0d2440;
    font-size: 30px;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.cloud-stat-value small {
    margin-left: 3px;
    color: #6f849a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.cloud-stat-label {
    margin-top: 6px;
    color: #75889d;
    font-size: 12px;
    font-weight: 550;
}

/* ------------------------------ Marketing sections ------------------------------ */
.cloud-section {
    padding: 92px 0;
    background: #fff;
}

.cloud-section-alt {
    background: #f6f9fd;
}

.cloud-section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.cloud-section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #1668e3;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cloud-section-title {
    color: #0c2036;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.cloud-section-lead {
    margin-top: 13px;
    color: #5d7289;
    font-size: 15px;
    line-height: 1.75;
}

/* Capabilities */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.capability-card {
    position: relative;
    overflow: hidden;
    padding: 27px 26px 25px;
    border: 1px solid #e0e9f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fcfdff);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.capability-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 125, 246, 0.09), transparent 70%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.capability-card:hover {
    transform: translateY(-3px);
    border-color: #c9dcf3;
    box-shadow: 0 24px 46px -32px rgba(20, 51, 88, 0.4);
}

.capability-card:hover::after {
    opacity: 1;
}

.capability-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 19px;
    border-radius: 13px;
    background: linear-gradient(145deg, #edf5ff, #e0efff);
    color: #1668e3;
    box-shadow: inset 0 0 0 1px rgba(47, 125, 246, 0.12);
}

.capability-icon.teal {
    background: linear-gradient(145deg, #eafaf6, #dcf7ef);
    color: #0c8a66;
    box-shadow: inset 0 0 0 1px rgba(12, 138, 102, 0.12);
}

.capability-icon.violet {
    background: linear-gradient(145deg, #f2f0ff, #e9e5ff);
    color: #6554d9;
    box-shadow: inset 0 0 0 1px rgba(101, 84, 217, 0.12);
}

.capability-icon.amber {
    background: linear-gradient(145deg, #fff8eb, #fff1d6);
    color: #b86508;
    box-shadow: inset 0 0 0 1px rgba(184, 101, 8, 0.12);
}

.capability-icon.rose {
    background: linear-gradient(145deg, #fff2f4, #ffe7eb);
    color: #c02c50;
    box-shadow: inset 0 0 0 1px rgba(192, 44, 80, 0.12);
}

.capability-icon.slate {
    background: linear-gradient(145deg, #f2f6fa, #e8eff6);
    color: #405c78;
    box-shadow: inset 0 0 0 1px rgba(64, 92, 120, 0.12);
}

.capability-icon svg {
    width: 22px;
    height: 22px;
}

.capability-card h3 {
    margin-bottom: 9px;
    color: #142b45;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.capability-card p {
    margin: 0;
    color: #60758c;
    font-size: 13px;
    line-height: 1.72;
}

.capability-index {
    position: absolute;
    top: 23px;
    right: 24px;
    color: #c3d2e3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

/* Lifecycle */
.lifecycle-section {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background:
        radial-gradient(700px 420px at 88% 0%, rgba(34, 211, 238, 0.14), transparent 65%),
        radial-gradient(600px 380px at 0% 100%, rgba(47, 125, 246, 0.16), transparent 62%),
        linear-gradient(135deg, #071a2f 0%, #0a2440 54%, #0b2d4e 100%);
}

.lifecycle-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 184, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 184, 220, 0.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}

.lifecycle-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 58px;
    align-items: center;
}

.lifecycle-copy .cloud-section-tag {
    color: #5eead4;
}

.lifecycle-copy h2 {
    margin-bottom: 16px;
    color: #f4f9ff;
    font-size: 37px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.lifecycle-copy p {
    max-width: 460px;
    margin-bottom: 26px;
    color: #a9c0d8;
    font-size: 14.5px;
    line-height: 1.8;
}

.lifecycle-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 650;
}

.lifecycle-link:hover {
    color: #bae6fd;
}

.lifecycle-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.lifecycle-card {
    padding: 21px 20px;
    border: 1px solid rgba(148, 184, 220, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.lifecycle-stage {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.lifecycle-stage span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(34, 211, 238, 0.12);
    color: #5eead4;
    font-size: 9px;
    letter-spacing: 0;
}

.lifecycle-card h3 {
    margin-bottom: 7px;
    color: #f1f8ff;
    font-size: 15px;
    font-weight: 680;
}

.lifecycle-card p {
    margin: 0;
    color: #91aac3;
    font-size: 12px;
    line-height: 1.7;
}

/* Steps */
.flow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.flow-grid::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cfe0f3 12%, #cfe0f3 88%, transparent);
}

.flow-card {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    text-align: center;
}

.flow-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border: 1px solid #d6e4f4;
    border-radius: 16px;
    background: #fff;
    color: #1668e3;
    font-size: 15px;
    font-weight: 760;
    box-shadow: 0 10px 24px -14px rgba(22, 104, 227, 0.32);
}

.flow-card h3 {
    margin-bottom: 7px;
    color: #142b45;
    font-size: 15px;
    font-weight: 680;
}

.flow-card p {
    margin: 0;
    color: #667b92;
    font-size: 12.5px;
    line-height: 1.7;
}

/* Model showcase */
.model-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.showcase-card:hover {
    transform: translateY(-3px);
    border-color: #c7dcf5;
    box-shadow: 0 26px 50px -34px rgba(20, 51, 88, 0.42);
}

.showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 7px;
    background: #f0f6fd;
    color: #3e6084;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.provider-chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2f7df6;
}

.showcase-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf9f4;
    color: #0b7a55;
    font-size: 10px;
    font-weight: 650;
}

.showcase-card h3 {
    margin-bottom: 7px;
    color: #112943;
    font-size: 19px;
    font-weight: 730;
    letter-spacing: -0.02em;
}

.showcase-desc {
    min-height: 42px;
    margin: 0 0 17px;
    color: #6a7f95;
    font-size: 12.5px;
    line-height: 1.65;
}

.showcase-specs {
    display: flex;
    gap: 8px;
    margin-bottom: 17px;
}

.showcase-spec {
    padding: 5px 9px;
    border-radius: 6px;
    background: #f5f8fc;
    color: #6b8096;
    font-size: 10.5px;
    font-weight: 550;
}

.showcase-price {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding: 13px 14px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px solid #edf3fa;
}

.showcase-price div small {
    display: block;
    color: #8a9caf;
    font-size: 9.5px;
}

.showcase-price div b {
    display: block;
    margin-top: 3px;
    color: #17324e;
    font-size: 14px;
    font-weight: 740;
    font-variant-numeric: tabular-nums;
}

.showcase-price div b span {
    color: #93a4b6;
    font-size: 9px;
    font-weight: 500;
}

.showcase-actions {
    margin-top: 16px;
}

.showcase-actions .btn {
    width: 100%;
}

.model-more {
    margin-top: 30px;
    text-align: center;
}

/* Value grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.value-card {
    padding: 24px 22px;
    border: 1px solid #e1e9f3;
    border-radius: 15px;
    background: #fff;
}

.value-line {
    width: 34px;
    height: 3px;
    margin-bottom: 17px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7df6, #22d3ee);
}

.value-card h3 {
    margin-bottom: 8px;
    color: #142b45;
    font-size: 15px;
    font-weight: 680;
}

.value-card p {
    margin: 0;
    color: #63788f;
    font-size: 12.5px;
    line-height: 1.72;
}

/* CTA */
.cloud-cta {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    background:
        radial-gradient(680px 360px at 78% 15%, rgba(34, 211, 238, 0.16), transparent 65%),
        radial-gradient(520px 300px at 12% 100%, rgba(47, 125, 246, 0.18), transparent 62%),
        linear-gradient(120deg, #071a2f, #0a2948 58%, #0b3457);
}

.cloud-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 184, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 184, 220, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 76%);
}

.cloud-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.cloud-cta h2 {
    margin-bottom: 9px;
    color: #f6fbff;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.cloud-cta p {
    margin: 0;
    color: #a8bfd7;
    font-size: 14px;
    line-height: 1.7;
}

.cloud-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    padding: 0;
    border-top: 0;
    background: #061729;
    color: #93a9c0;
}

.cloud-footer .footer-container {
    display: block;
    max-width: 1180px;
    padding: 58px 28px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(0, 0.7fr));
    gap: 40px;
    padding-bottom: 42px;
}

.footer-brand .logo {
    margin-bottom: 14px;
}

.footer-brand .logo-text {
    color: #f3f8ff;
}

.footer-brand .logo-sub {
    color: #6b87a3;
}

.footer-brand p {
    max-width: 320px;
    color: #8ba2ba;
    font-size: 12.5px;
    line-height: 1.8;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: #9fb7ce;
    font-size: 11.5px;
}

.footer-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.footer-col h4 {
    margin-bottom: 14px;
    color: #e7f0f9;
    font-size: 12px;
    font-weight: 680;
    letter-spacing: 0.06em;
}

.footer-col a {
    display: block;
    margin-bottom: 9px;
    color: #8ea6be;
    font-size: 12.5px;
}

.footer-col a:hover {
    color: #d3e8fa;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(148, 184, 220, 0.14);
    color: #6f8aa4;
    font-size: 11.5px;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a {
    color: #8ea6be;
}

/* Public secondary page hero */
.models-marketplace-hero,
.models-page-hero,
.api-doc-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 56px;
    text-align: center;
    background:
        radial-gradient(680px 360px at 80% 0%, rgba(34, 211, 238, 0.16), transparent 64%),
        radial-gradient(560px 320px at 10% 100%, rgba(47, 125, 246, 0.18), transparent 62%),
        linear-gradient(135deg, #071a2f, #0a2440 55%, #0b2e4f);
}

.models-marketplace-hero::before,
.models-page-hero::before,
.api-doc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 184, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 184, 220, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 74%);
}

.models-marketplace-hero > .container,
.models-page-hero > .container,
.api-doc-hero > .container {
    position: relative;
    z-index: 2;
}

.public-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid rgba(94, 234, 212, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.09);
    color: #7dd3fc;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.models-marketplace-title,
.models-page-title,
.api-doc-title {
    color: #f6fbff;
    font-size: 40px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.models-marketplace-subtitle,
.models-page-subtitle,
.api-doc-subtitle {
    color: #a5bdd5;
    font-size: 14.5px;
}

.models-marketplace-search {
    max-width: 720px;
    margin-top: 30px;
}

.model-search-input {
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 13.5px;
    box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.6);
}

.model-search-input::placeholder {
    color: #8fa8c1;
}

.model-search-input:focus {
    border-color: rgba(94, 234, 212, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.provider-filter-btn {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #b4c9dd;
    font-size: 12px;
    font-weight: 550;
}

.provider-filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.provider-filter-btn.active {
    background: #ecf6ff;
    border-color: #ecf6ff;
    color: #0d4fbf;
}

.models-marketplace-section,
.models-page-section {
    padding: 56px 0 76px;
    background: #f6f9fd;
}

.model-marketplace-card {
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.model-marketplace-card:hover {
    transform: translateY(-3px);
    border-color: #c7dcf5;
    box-shadow: 0 26px 50px -34px rgba(20, 51, 88, 0.4);
}

.model-provider-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #eef5ff;
    color: #1668e3;
    font-size: 11px;
    font-weight: 780;
    box-shadow: inset 0 0 0 1px rgba(47, 125, 246, 0.12);
}

.model-card-provider {
    color: #1668e3;
    letter-spacing: 0.08em;
}

.model-card-name {
    color: #112943;
    font-size: 19px;
    font-weight: 730;
}

.model-cap-tag {
    background: #edf4ff;
    color: #145bcc;
}

.model-card-meta,
.model-card-pricing {
    background: #f7faff;
    border: 1px solid #edf3fa;
}

.model-card-actions .btn-outline {
    flex: 1;
}

.model-card-actions .btn-primary {
    flex: 1;
}

.api-doc-hero-actions .btn-outline {
    color: #eaf6ff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.api-doc-hero-actions .btn-outline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.api-doc-section {
    padding: 54px 0 78px;
    background: #f8fbfe;
}

.api-doc-sidebar {
    padding: 18px 14px;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.api-doc-grid {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 30px;
}

.api-nav-group-title {
    background: #f5f8fc;
    color: #3c5269;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.api-nav-item {
    border-radius: 7px;
    font-size: 13px;
}

.api-nav-item.active {
    background: #edf4ff;
    border-left-color: #1668e3;
    color: #145bcc;
}

.api-block-title {
    border-bottom: 1px solid #dfe8f3;
    color: #10263f;
    font-size: 21px;
}

.code-block {
    border: 1px solid #17324e;
    border-radius: 12px;
    box-shadow: 0 18px 38px -28px rgba(7, 26, 47, 0.55);
}

.code-header {
    background: #102a45;
}

.api-doc-cta {
    background: #eef4fa;
}

/* Status page */
.models-page-section .stat-card {
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.models-page-section .dashboard-panel {
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* Status page */
.status-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(94, 234, 212, 0.28);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 650;
}

.status-hero-badge.warn {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
    animation: statusPulse 2.2s ease-in-out infinite;
}

.status-hero-badge.warn .status-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.86); }
}

.status-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.status-overview-card {
    padding: 20px 22px;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.status-overview-card .label {
    color: #75889d;
    font-size: 12px;
    font-weight: 550;
}

.status-overview-card .value {
    margin-top: 7px;
    color: #12243a;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.status-overview-card .value.green { color: #0f9f6e; }
.status-overview-card .value.red { color: #dc2626; }

.status-overview-card .hint {
    margin-top: 5px;
    color: #92a4b7;
    font-size: 11px;
}

.status-panel {
    overflow: hidden;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.status-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 22px;
    border-bottom: 1px solid #e8eff7;
}

.status-panel-head h2 {
    color: #12243a;
    font-size: 16px;
    font-weight: 700;
}

.status-panel-head span {
    color: #8496ab;
    font-size: 11.5px;
}

.status-service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-top: 1px solid #eef3f9;
}

.status-service-row:first-child {
    border-top: 0;
}

.status-service-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eef6ff;
    color: #1668e3;
}

.status-service-icon.green {
    background: #eafaf3;
    color: #0f9f6e;
}

.status-service-icon svg {
    width: 18px;
    height: 18px;
}

.status-service-copy {
    min-width: 0;
}

.status-service-copy strong {
    display: block;
    color: #1b324b;
    font-size: 13.5px;
    font-weight: 650;
}

.status-service-copy small {
    display: block;
    margin-top: 3px;
    color: #8496ab;
    font-size: 11.5px;
}

.status-service-state {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eafaf3;
    color: #0b7a55;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.status-service-state::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.status-service-state.down {
    background: #fdeeee;
    color: #b42323;
}

.status-service-state.down::before {
    background: #ef4444;
}

.status-day-panel {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   CONSOLES
   ============================================================ */

.tenant-body,
.admin-body {
    background: #f4f7fb;
}

.tenant-sidebar,
.admin-sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid rgba(148, 184, 220, 0.12);
    background:
        radial-gradient(420px 280px at 0% 0%, rgba(34, 211, 238, 0.1), transparent 65%),
        linear-gradient(180deg, #071a2f 0%, #09223c 55%, #0a2948 100%);
    color: #a8bfd5;
    box-shadow: 10px 0 32px -30px rgba(7, 26, 47, 0.7);
}

.tenant-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.tenant-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 184, 220, 0.22);
    border-radius: 99px;
}

.tenant-sidebar .sidebar-header,
.admin-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(148, 184, 220, 0.13);
}

.tenant-sidebar .sidebar-logo,
.admin-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 14px;
    font-weight: 680;
}

.console-logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #2f7df6, #1668e3 56%, #0b3f9e);
    box-shadow: 0 10px 22px -12px rgba(47, 125, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff;
}

.console-logo-mark svg {
    width: 19px;
    height: 19px;
}

.console-logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.console-logo-copy strong {
    overflow: hidden;
    color: #f2f8ff;
    font-size: 13.5px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.console-logo-copy small {
    margin-top: 2px;
    color: #708ba7;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.tenant-sidebar .sidebar-nav,
.admin-sidebar .sidebar-nav {
    padding: 14px 12px 24px;
}

.tenant-sidebar .nav-group,
.admin-sidebar .nav-group {
    margin-bottom: 5px;
}

.tenant-sidebar .nav-group-title,
.admin-sidebar .nav-group-title {
    padding: 8px 10px;
    border-radius: 7px;
    color: #748ea9;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tenant-sidebar .nav-group-title:hover,
.admin-sidebar .nav-group-title:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #a9c2d9;
}

.tenant-sidebar .nav-arrow,
.admin-sidebar .nav-arrow {
    color: #5d7994;
    font-size: 8px;
}

.tenant-sidebar .nav-item,
.admin-sidebar .nav-item {
    position: relative;
    display: block;
    margin: 2px 0;
    padding: 8px 11px 8px 15px;
    border-left: 0;
    border-radius: 8px;
    color: #a9bed3;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    transition: background 0.15s ease, color 0.15s ease;
}

.tenant-sidebar .nav-item:hover,
.admin-sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #edf7ff;
}

.tenant-sidebar .nav-item.active,
.admin-sidebar .nav-item.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(47, 125, 246, 0.1) 58%, transparent);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.tenant-sidebar .nav-item.active::before,
.admin-sidebar .nav-item.active::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 2px;
    border-radius: 99px;
    background: #2dd4bf;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.55);
}

.nav-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: #ef4444;
    font-size: 9.5px;
    line-height: 15px;
    vertical-align: 1px;
}

.tenant-main,
.admin-main {
    margin-left: var(--sidebar-width);
}

.tenant-topbar,
.admin-topbar {
    height: var(--topbar-height);
    padding: 0 28px;
    border-bottom: 1px solid rgba(211, 224, 239, 0.8);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px) saturate(150%);
}

.tenant-topbar .topbar-left,
.admin-topbar .topbar-left {
    gap: 14px;
}

.tenant-topbar .breadcrumb,
.admin-topbar .breadcrumb {
    color: #1b324b;
    font-size: 15px;
    font-weight: 680;
    letter-spacing: -0.015em;
}

.sidebar-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dbe6f2;
    border-radius: 9px;
    background: #fff;
    color: #5a7188;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle:hover {
    background: #f2f7fd;
    border-color: #c8d9ec;
}

.tenant-topbar .topbar-right,
.admin-topbar .topbar-right {
    gap: 10px;
}

.balance-display {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #dce9f8;
    border-radius: 999px;
    background: #f4f9ff;
    color: #17324e;
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.balance-display::before {
    content: "可用余额";
    color: #8093a7;
    font-size: 9.5px;
    font-weight: 550;
}

.admin-topbar .admin-user {
    padding-left: 11px;
    border-left: 1px solid #e2ebf5;
    color: #52687f;
    font-size: 12px;
    font-weight: 550;
}

.notification-bell {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe6f2;
    border-radius: 9px;
    background: #fff;
    color: #5f758b;
}

.notification-bell:hover {
    border-color: #c6d8ed;
    background: #f3f8fe;
    color: #1668e3;
}

.notification-badge {
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 9px;
    line-height: 12px;
}

.btn-login {
    padding: 7px 15px;
    border-radius: 8px;
    background: #1668e3;
    font-size: 12px;
    font-weight: 600;
}

.btn-logout {
    padding: 6px 12px;
    border: 1px solid #f0d4d8;
    border-radius: 8px;
    background: #fff8f8;
    color: #b42338;
    font-size: 11.5px;
    font-weight: 600;
}

.btn-logout:hover {
    border-color: #e7bcc2;
    background: #fff1f2;
}

.tenant-content,
.admin-content {
    padding: 26px 28px 34px;
    background:
        radial-gradient(800px 320px at 95% -10%, rgba(47, 125, 246, 0.045), transparent 70%),
        #f4f7fb;
}

.dashboard {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Console stat cards */
.stats-row {
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    padding: 19px 20px;
    border: 1px solid #dfe8f3;
    border-left: 1px solid #dfe8f3;
    border-radius: 15px;
    background: linear-gradient(180deg, #fff, #fcfdff);
    box-shadow: 0 1px 2px rgba(16, 36, 62, 0.03), 0 14px 30px -28px rgba(16, 36, 62, 0.38);
    text-align: left;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #d0e0f1;
    box-shadow: 0 20px 40px -30px rgba(16, 36, 62, 0.42);
}

.stat-card.stat-cash,
.stat-card.stat-gift,
.stat-card.stat-today,
.stat-card.stat-calls,
.stat-card.stat-recharge,
.stat-card.stat-rate,
.stat-card.stat-latency,
.stat-card.stat-model,
.stat-card.stat-blue,
.stat-card.stat-green,
.stat-card.stat-purple,
.stat-card.stat-orange,
.stat-card.stat-yellow,
.stat-card.stat-cyan,
.stat-card.stat-red,
.stat-card.stat-indigo {
    border-left-color: #dfe8f3;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 0 13px;
    border-radius: 11px;
    background: #f1f6fd;
    font-size: 18px;
    line-height: 1;
}

.stat-cash .stat-icon { background: #eaf9f3; color: #0f9f6e; }
.stat-gift .stat-icon { background: #fff8e9; color: #b86508; }
.stat-today .stat-icon { background: #edf4ff; color: #1668e3; }
.stat-calls .stat-icon { background: #fff1f2; color: #c02c50; }
.stat-recharge .stat-icon { background: #f3f0ff; color: #6554d9; }
.stat-rate .stat-icon { background: #eaf9f8; color: #0e7490; }
.stat-latency .stat-icon { background: #fff6e8; color: #b86508; }
.stat-model .stat-icon { background: #ecfaf4; color: #0b8a61; }

.stat-icon svg {
    width: 19px;
    height: 19px;
}

.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.stat-info {
    text-align: left;
}

.stat-label {
    margin-bottom: 5px;
    color: #778ba0;
    font-size: 11.5px;
    font-weight: 580;
}

.stat-value {
    color: #112943;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 740;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    margin-left: 4px;
    color: #7d90a4;
    font-size: 11.5px;
    font-weight: 550;
}

.stat-sub {
    margin-top: 6px;
    color: #8b9db0;
    font-size: 11px;
    line-height: 1.5;
}

/* Admin stat icons stay tinted by variant */
.stat-blue .stat-icon-wrap { background: #edf4ff; color: #1668e3; }
.stat-green .stat-icon-wrap { background: #e9f9f2; color: #0b8a61; }
.stat-purple .stat-icon-wrap { background: #f2f0ff; color: #6554d9; }
.stat-orange .stat-icon-wrap { background: #fff6e8; color: #b86508; }
.stat-yellow .stat-icon-wrap { background: #fff9e6; color: #a16207; }
.stat-cyan .stat-icon-wrap { background: #eaf9f8; color: #0e7490; }
.stat-red .stat-icon-wrap { background: #fff1f2; color: #c02c50; }
.stat-indigo .stat-icon-wrap { background: #f0f2ff; color: #4f5fd3; }

/* Panels */
.dashboard-panel {
    padding: 22px;
    border-radius: 16px;
}

.panel-header {
    margin-bottom: 17px;
}

.panel-hint {
    color: #93a4b6;
    font-size: 11px;
}

.panel-link {
    color: #1668e3;
    font-size: 12px;
    font-weight: 600;
}

.panel-link:hover {
    color: #0d4fbf;
}

.metric-item {
    padding: 13px 14px;
    border: 1px solid #e7eef7;
    border-radius: 10px;
    background: #f9fbfe;
}

.metric-label {
    color: #76899d;
    font-size: 11px;
}

.metric-value {
    margin-top: 4px;
    color: #17324e;
    font-size: 17px;
    font-weight: 720;
}

.metric-sub {
    color: #95a5b6;
    font-size: 10.5px;
}

.todo-card {
    padding: 12px 13px;
    border: 1px solid #e4ecf5;
    border-radius: 10px;
    background: #fff;
}

.todo-card:hover {
    border-color: #bcd4ef;
    background: #fbfdff;
    box-shadow: 0 10px 24px -20px rgba(16, 36, 62, 0.4);
}

.todo-count {
    color: #1668e3;
    font-size: 19px;
    font-weight: 750;
}

.todo-count.warn { color: #c2740b; }
.todo-count.danger { color: #c02c50; }

.todo-label {
    color: #6a7f95;
    font-size: 11.5px;
    font-weight: 520;
}

.help-panel {
    padding: 16px 18px;
    border: 1px solid #dbe8f7;
    border-left: 3px solid #2f7df6;
    border-radius: 12px;
    background: #f7fbff;
    box-shadow: none;
}

.help-panel-title {
    color: #1c4f8a;
    font-size: 13px;
}

.help-panel-content {
    color: #58728c;
    font-size: 12.5px;
}

.alert {
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 13px;
}

.alert-success {
    border-color: #bfeedc;
    background: #ecfbf4;
    color: #0b7a55;
}

.alert-danger {
    border-color: #f4cdd2;
    background: #fff2f3;
    color: #b42338;
}

.alert-warning {
    border-color: #f4dfb8;
    background: #fff9ee;
    color: #9a5b05;
}

.alert-info {
    border-color: #cfe1f8;
    background: #eff6ff;
    color: #145bcc;
}

.balance-alert-bar {
    border: 1px solid #f0dfb9;
    border-radius: 11px;
    background: #fffaf0;
    color: #8a5a0b;
    font-size: 12.5px;
}

/* Tables in consoles */
.tenant-content .data-table,
.admin-content .data-table {
    font-size: 12.5px;
}

.tenant-content .data-table th,
.admin-content .data-table th {
    padding: 11px 13px;
    background: #f8fafd;
    font-size: 11px;
}

.tenant-content .data-table td,
.admin-content .data-table td {
    padding: 12px 13px;
}

/* Filter bars */
.filter-bar {
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f8;
}

.filter-bar .form-input,
.filter-bar .form-control,
.filter-bar .form-select {
    min-height: 36px;
    font-size: 12.5px;
}

/* Tabs */
.tab-nav {
    gap: 2px;
    border-bottom: 1px solid #dfe8f3;
}

.tab-btn {
    padding: 10px 16px;
    border-bottom-color: transparent;
    color: #6c8197;
    font-size: 13px;
}

.tab-btn.active {
    color: #145bcc;
    border-bottom-color: #1668e3;
}

.config-tabs .tab-btn.active {
    border-bottom-color: #1668e3;
}

/* Modals */
.modal-overlay {
    background: rgba(7, 26, 47, 0.56);
    backdrop-filter: blur(4px);
}

.modal-box {
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    box-shadow: 0 40px 90px -32px rgba(7, 26, 47, 0.55);
}

/* Sidebar scrim */
.sidebar-scrim {
    display: none;
}

.sidebar-close {
    display: none;
}

/* ------------------------------ Console empty / chart polish ------------------------------ */
.chart-tip {
    border: 1px solid rgba(148, 184, 220, 0.18);
    border-radius: 8px;
    background: rgba(7, 26, 47, 0.95);
    box-shadow: 0 18px 36px -22px rgba(7, 26, 47, 0.65);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1120px) {
    .cloud-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 46px;
        padding-bottom: 64px;
    }

    .cloud-hero-copy {
        max-width: 720px;
        text-align: center;
        margin: 0 auto;
    }

    .cloud-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .cloud-hero-actions,
    .hero-proof {
        justify-content: center;
    }

    .cloud-hero-visual {
        width: min(620px, 100%);
        margin: 0 auto;
    }

    .hero-float-key {
        right: -10px;
    }

    .hero-float-latency {
        left: -10px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
        gap: 28px;
    }
}

@media (max-width: 1024px) {
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifecycle-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .lifecycle-copy {
        max-width: 640px;
    }

    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .flow-grid::before {
        display: none;
    }

    .model-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .api-doc-grid {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 960px) {
    .header-container {
        height: 64px;
        padding: 0 20px;
    }

    .mobile-nav-toggle {
        display: grid;
        place-items: center;
    }

    .header-nav {
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid #dbe6f2;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 24px 50px -22px rgba(7, 26, 47, 0.35);
        z-index: 2;
    }

    .site-header.nav-open .header-nav {
        display: flex;
    }

    body.nav-open .nav-scrim {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 26, 47, 0.28);
        backdrop-filter: blur(2px);
        z-index: 90;
    }

    .header-nav .nav-link {
        padding: 11px 12px;
        font-size: 14px;
    }

    .header-nav .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid #e8eff7;
    }

    .header-nav .nav-mobile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .header-actions .nav-console {
        display: none;
    }

    .cloud-hero {
        padding-top: 66px;
    }

    .cloud-stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cloud-stat:nth-child(3) {
        border-left: 0;
    }

    .cloud-stat:nth-child(n+3) {
        border-top: 1px solid #e8eff7;
    }

    .cloud-trust-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 20px;
    }

    .trust-item:nth-child(3) {
        border-left: 0;
    }

    .trust-item:nth-child(n+3) {
        border-top: 1px solid rgba(216, 228, 241, 0.7);
    }

    .cloud-section,
    .lifecycle-section {
        padding: 72px 0;
    }

    .cloud-section-title {
        font-size: 32px;
    }

    .cloud-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tenant-sidebar,
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 24px 0 60px -30px rgba(7, 26, 47, 0.55);
    }

    .tenant-main,
    .admin-main {
        margin-left: 0;
    }

    .tenant-sidebar.collapsed,
    .admin-sidebar.collapsed {
        transform: translateX(-100%);
    }

    body.tenant-body.sidebar-open .tenant-sidebar,
    body.admin-body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 190;
        border: 0;
        background: rgba(7, 26, 47, 0.45);
        backdrop-filter: blur(2px);
    }

    .tenant-sidebar .sidebar-header,
    .admin-sidebar .sidebar-header {
        position: relative;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        border: 1px solid rgba(148, 184, 220, 0.22);
        border-radius: 9px;
        background: rgba(148, 184, 220, 0.08);
        color: #9fb8d0;
        cursor: pointer;
    }

    .sidebar-close:hover {
        color: #fff;
        background: rgba(148, 184, 220, 0.18);
    }

    .sidebar-close svg {
        width: 15px;
        height: 15px;
    }

    .tenant-topbar,
    .admin-topbar {
        padding: 0 18px;
    }

    .tenant-content,
    .admin-content {
        padding: 20px 18px 28px;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .logo-text {
        font-size: 15px;
    }

    .logo-sub {
        display: none;
    }

    .header-actions .btn {
        min-height: 34px;
        padding: 6px 12px;
    }

    .cloud-hero {
        padding-top: 48px;
    }

    .cloud-hero-inner {
        padding-bottom: 48px;
    }

    .cloud-hero-title {
        font-size: 38px;
        letter-spacing: -0.035em;
    }

    .cloud-hero-lead {
        font-size: 15px;
    }

    .cloud-hero-actions .btn {
        width: 100%;
    }

    .hero-proof {
        gap: 12px 18px;
    }

    .console-body {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 312px;
    }

    .console-rail {
        padding: 13px 0;
    }

    .console-screen {
        padding: 14px;
    }

    .console-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .console-metric:nth-child(3) {
        display: none;
    }

    .hero-float {
        display: none;
    }

    .cloud-trust-inner {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .trust-item {
        justify-content: flex-start;
        border-left: 0;
        border-top: 1px solid rgba(216, 228, 241, 0.7);
    }

    .trust-item:first-child {
        border-top: 0;
    }

    .cloud-stats-band {
        padding-top: 24px;
    }

    .cloud-stat {
        padding: 17px 18px;
    }

    .cloud-stat-value {
        font-size: 25px;
    }

    .cloud-section {
        padding: 58px 0;
    }

    .cloud-section-head {
        margin-bottom: 32px;
    }

    .cloud-section-title {
        font-size: 27px;
    }

    .cloud-section-lead {
        font-size: 13.5px;
    }

    .capability-grid,
    .model-showcase-grid,
    .value-grid,
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        padding: 23px 21px;
    }

    .flow-card {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
        padding: 0;
        text-align: left;
    }

    .flow-num {
        margin: 0;
    }

    .flow-card h3 {
        margin-top: 6px;
    }

    .lifecycle-section {
        padding: 58px 0;
    }

    .lifecycle-copy h2 {
        font-size: 28px;
    }

    .lifecycle-grid-cards {
        grid-template-columns: 1fr;
    }

    .cloud-cta {
        padding: 58px 0;
    }

    .cloud-cta h2 {
        font-size: 27px;
    }

    .cloud-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cloud-cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .models-marketplace-hero,
    .models-page-hero,
    .api-doc-hero {
        padding: 56px 0 42px;
    }

    .models-marketplace-title,
    .models-page-title,
    .api-doc-title {
        font-size: 31px;
    }

    .models-marketplace-section,
    .models-page-section {
        padding: 38px 0 56px;
    }

    .balance-display::before {
        display: none;
    }

    .balance-display {
        padding: 6px 9px;
        font-size: 11.5px;
    }

    .admin-topbar .admin-user {
        display: none;
    }

    .tenant-topbar .breadcrumb,
    .admin-topbar .breadcrumb {
        font-size: 13.5px;
    }

    .tenant-topbar .topbar-right,
    .admin-topbar .topbar-right {
        gap: 7px;
    }

    .btn-logout {
        padding: 6px 9px;
        font-size: 11px;
    }

    .tenant-content,
    .admin-content {
        padding: 16px 14px 24px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 15px 16px;
    }

    .stat-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .stat-value {
        font-size: 23px;
    }

    .dashboard-panel {
        padding: 17px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-header {
        align-items: flex-start;
        gap: 12px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .header-actions .btn {
        display: none;
    }

    .header-actions::after {
        content: "";
    }

    .cloud-hero-title {
        font-size: 32px;
    }

    .cloud-hero-title br {
        display: none;
    }

    .cloud-stats-card {
        grid-template-columns: 1fr;
    }

    .cloud-stat {
        border-left: 0;
        border-top: 1px solid #e8eff7;
    }

    .cloud-stat:first-child {
        border-top: 0;
    }

    .console-frame {
        border-radius: 14px;
    }

    .console-code {
        display: none;
    }

    .console-chart svg {
        height: 70px;
    }

    .tenant-topbar .balance-display,
    .admin-topbar .notification-bell {
        display: none;
    }

    .metric-grid,
    .todo-grid,
    .metric-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .capability-card:hover,
    .showcase-card:hover,
    .model-marketplace-card:hover,
    .stat-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* === V2.0.65 全站品牌 Logo 与后台版本标识 === */
.brand-logo-img {
    display: block;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 9px;
    object-fit: contain;
}

.sidebar-logo .brand-logo-img {
    width: 36px;
    height: 36px;
}

.auth-brand .brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.tenant-sidebar .sidebar-version,
.admin-sidebar .sidebar-version {
    margin: 4px 18px 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 184, 220, 0.14);
    color: #5f7793;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
