:root {
    --bg: #0b1020;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.7);
    --muted-2: rgba(255, 255, 255, 0.58);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --radius: 18px;
    --radius-sm: 14px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Text transition animation for language switching */
[data-i18n] {
    transition: opacity 0.2s ease-in-out;
    display: inline-block;
}

[data-i18n].changing {
    opacity: 0;
}

[data-i18n].changed {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(800px 500px at 10% 10%, rgba(124, 92, 255, 0.35), transparent 60%),
        radial-gradient(800px 500px at 90% 20%, rgba(0, 212, 255, 0.28), transparent 55%),
        radial-gradient(900px 700px at 40% 100%, rgba(124, 92, 255, 0.18), transparent 60%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px; /* Explicit value */
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img,
.brand picture {
    height: 56px;
    width: auto;
}

.nav {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.nav a {
    padding: 8px 10px;
    border-radius: 12px;
}

.nav a:hover {
    background: var(--surface);
    text-decoration: none;
}

/* Language and theme selector wrapper */
.selectors-wrapper {
    display: inline-flex;
    align-items: stretch;
    margin-left: 14px;
}

/* Language switcher styles */
.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.language-button:hover {
    background: var(--surface-strong) !important;
}

.language-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.language-button .language-icon {
    width: 20px;
    height: 20px;
}

.language-button .dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.language-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 12px 12px;
}

.language-option:hover {
    background: var(--surface);
}

.language-option:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.theme-selector {
    display: inline-flex;
    align-items: stretch;
    position: relative;
}

.theme-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.language-selector .language-button {
    border-radius: 12px 0 0 12px;
}

.theme-button:hover {
    background: var(--surface-strong);
}

.theme-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-button svg {
    width: 18px;
    height: 18px;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.theme-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.theme-option:hover {
    background: var(--surface);
}

.theme-option:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.theme-option .option-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.theme-option .check-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s;
    stroke: var(--accent);
}

.theme-option.active {
    background: var(--surface);
}

.theme-option.active .check-icon {
    opacity: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 46px 44px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.6px;
}

.hero p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    background: var(--surface-strong);
}

.btn.primary {
    border-color: rgba(124, 92, 255, 0.6);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 212, 255, 0.65));
}

.btn.primary:hover {
    filter: brightness(1.03);
}

.hero-art {
    position: relative;
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.08);
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-art img:hover {
    transform: scale(1.05);
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.badge {
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.08);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
}

/* User comment style */
.user-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 500px;
}

.user-comment.zh-only,
.user-comment.en-only {
    display: none;
}

body[data-lang="zh-CN"] .user-comment.zh-only {
    display: flex;
}

body[data-lang="en-US"] .user-comment.en-only {
    display: flex;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--surface-strong);
    display: block;
}

.comment-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.comment-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.comment-author {
    color: var(--muted-2);
    font-size: 12px;
}

.section {
    padding: 36px 0;
}

.notice {
    border: 1px solid rgba(255, 205, 75, 0.35);
    background: rgba(255, 205, 75, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    margin: 14px 0 0;
    font-size: 13px;
}

.section h2 {
    margin: 0 0 14px;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.section p.lead {
    margin: 0 0 20px;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.card {
    grid-column: span 6;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-blocks {
    display: grid;
    gap: 14px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
}

.feature-row.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.feature-text h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.feature-text p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.icon-tile {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.08);
    display: grid;
    place-items: center;
}

.icon-tile img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
}

@media (max-width: 920px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
    }
}

footer {
    padding: 26px 24px 40px;
    color: var(--muted-2);
    font-size: 13px;
    max-width: var(--max);
    margin: 0 auto;
}

.oauth-footer {
    padding: 20px 24px;
    color: var(--muted-2);
    font-size: 13px;
}

.oauth-footer .container {
    max-width: none;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
}

.footer-disclaimer {
    margin-top: 10px;
    color: var(--muted-2);
}

.cta-row-margin {
    margin-top: 14px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.footer-links {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
}

@media (max-width: 920px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 32px 22px;
    }

    .card {
        grid-column: span 12;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }
}

/* Responsive design for topbar */
@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand {
        flex: 1;
        min-width: 200px;
    }

    .nav {
        display: none;
    }

    .selectors-wrapper {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .topbar {
        padding: 12px 0;
    }

    .brand img,
    .brand picture {
        height: 44px;
    }

    .language-button {
        padding: 6px 12px;
        font-size: 13px;
        height: 36px;
    }

    .language-button .language-icon {
        width: 16px;
        height: 16px;
    }

    .language-button .current-lang {
        display: none;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Build guide page styles */
.build-guide {
    padding: 40px 0;
    max-width: 800px;
}

/* Page TOC Navigation */
.page-toc {
    position: fixed;
    right: calc(50% - 620px);
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    z-index: 100;
}

@media (max-width: 1400px) {
    .page-toc {
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .page-toc {
        display: none;
    }
}

.toc-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--muted-2);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.toc-item:hover {
    color: var(--text);
}

.toc-item.active {
    color: var(--accent);
}

.toc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toc-item:hover .toc-dot {
    background: var(--muted);
}

.toc-item.active .toc-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transform: scale(1.2);
}

.toc-text {
    flex: 1;
}

/* TOC Group (for nested items) */
.toc-group {
    display: flex;
    flex-direction: column;
}

.toc-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    position: relative;
    transition: transform 0.3s ease;
}

.toc-arrow::before,
.toc-arrow::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.toc-arrow::before {
    width: 8px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toc-arrow::after {
    width: 2px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toc-group.expanded .toc-arrow {
    transform: rotate(90deg);
}

.toc-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-left: 24px;
}

.toc-group.expanded .toc-submenu {
    max-height: 300px;
    opacity: 1;
}

.toc-subitem {
    font-size: 12px;
    padding: 6px 0;
}

.toc-subitem .toc-dot {
    width: 6px;
    height: 6px;
}

/* Progress indicator */
.toc-progress {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    overflow: hidden;
}

.toc-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transition: top 0.3s ease;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.build-guide h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.build-guide .lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 40px;
}

.build-section {
    margin-bottom: 40px;
}

.build-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.build-section h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.build-section h4 {
    font-size: 16px;
    margin: 16px 0 8px;
}

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

.build-list li {
    padding: 10px 0 10px 24px;
    position: relative;
    line-height: 1.6;
}

.build-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent);
}

.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--surface-strong);
}

.copy-btn.copied {
    background: var(--accent);
    color: white;
}

.code-block pre {
    margin: 0;
    font-family: 'Ubuntu Mono', 'Noto Sans SC', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    position: relative;
    padding-left: 0;
}

/* Code line numbers */
.code-line {
    display: block;
    position: relative;
    padding-left: 40px;
    /* preserve per-line spacing while parent collapses inter-line whitespace */
    white-space: pre;
}

.code-line::before {
    content: attr(data-line);
    position: absolute;
    left: 0;
    width: 30px;
    text-align: right;
    color: var(--muted-2);
    font-size: 11px;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0.6;
}

.code-block code,
.code-block span {
    font-family: inherit;
}

.code-block code {
    background: none;
    padding: 0;
    /* collapse whitespace between code-line spans to avoid blank lines from newlines in HTML */
    white-space: normal;
    display: block;
}

/* Inline code styling */
.build-list li code,
.note code,
p code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Ubuntu Mono', 'Noto Sans SC', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text);
}

.code-comment {
    color: var(--muted-2);
    font-family: 'Ubuntu Mono', 'Noto Sans SC', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.note {
    color: var(--muted);
    font-size: 14px;
    margin: 8px 0;
}

/* Build steps ordered list */
.build-steps {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    counter-reset: build-step-counter;
}

.build-steps li {
    padding: 10px 0 10px 36px;
    position: relative;
    counter-increment: build-step-counter;
    line-height: 1.6;
}

.build-steps li::before {
    content: counter(build-step-counter);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.build-steps li code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Build divider */
.build-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

@media (max-width: 600px) {
    .build-guide {
        padding: 24px 0;
    }

    .build-guide h1 {
        font-size: 24px;
    }

    .build-guide .lead {
        font-size: 16px;
    }

    .code-block {
        padding: 12px;
    }

    .code-block pre {
        font-size: 12px;
    }
}

/* Image preview clickability hint */
img[alt]:not(.brand img, .comment-avatar) {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

img[alt]:not(.brand img, .comment-avatar):hover {
    filter: brightness(1.1);
}

/* GLightbox custom theme to match website */
.glightbox-clean .gslide-description {
    background: var(--bg) !important;
    color: var(--text) !important;
}

.glightbox-clean .gslide-desc {
    color: var(--text) !important;
}

.glightbox-clean .goverlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* GitHub stats component */
.repo-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.repo-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    transition: all 0.2s;
    text-decoration: none;
}

.repo-stat:hover {
    background: var(--surface-strong);
    text-decoration: none;
}

.repo-stat svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.repo-stat.loading {
    opacity: 0.5;
}

.repo-stat.loading .stat-value {
    animation: pulse 1.5s ease-in-out infinite;
}

.repo-stat.error {
    opacity: 0.4;
}

.repo-stat.empty {
    opacity: 0.4;
    border-style: dashed;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.stat-label {
    color: var(--muted-2);
}

.stat-value {
    font-family: 'Ubuntu Mono', monospace;
    color: var(--muted-2);
}

.repo-stat.loading .stat-label,
.repo-stat.loading .stat-value {
    opacity: 0.5;
}

/* Version stat with accent color */
#stat-version {
    border-color: rgba(124, 92, 255, 0.3);
}

#stat-version .stat-label {
    color: rgba(124, 92, 255, 0.7);
}

#stat-version .stat-value {
    color: rgba(124, 92, 255, 0.9);
}

#stat-version.empty .stat-label,
#stat-version.empty .stat-value {
    color: var(--muted-2);
}

/* Commit stat with accent-2 color */
#stat-commit {
    border-color: rgba(0, 212, 255, 0.3);
}

#stat-commit .stat-label {
    color: rgba(0, 212, 255, 0.7);
}

#stat-commit .stat-value {
    color: rgba(0, 212, 255, 0.9);
}

#stat-commit .stat-value .commit-sha {
    color: rgba(0, 212, 255, 0.6);
    font-family: 'Ubuntu Mono', monospace;
    cursor: help;
    transition: color 0.2s;
}

#stat-commit .stat-value .commit-sha:hover {
    color: rgba(0, 212, 255, 1);
}

/* Microsoft Auth Success Page */
.auth-success-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-success-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    text-align: center;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(124, 92, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon svg {
    width: 40px;
    height: 40px;
    color: #10b981;
    stroke-width: 2.5;
}

.auth-success-card h1 {
    font-size: 28px;
    margin: 0 0 12px;
    letter-spacing: -0.4px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 32px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--muted);
}

.user-details {
    text-align: left;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: var(--muted-2);
}

.auth-features {
    text-align: left;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.auth-features h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-feature-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    font-size: 13px;
    color: var(--muted-2);
    margin: 0;
}

@media (max-width: 600px) {
    .auth-success-card {
        padding: 32px 24px;
    }

    .auth-success-card h1 {
        font-size: 24px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .user-details {
        text-align: center;
    }

    .auth-features {
        text-align: left;
    }
}
