/*!
 * Balancer - AI Gateway
 * Copyright © 2026 Balancer. All Rights Reserved.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, via any medium, is strictly prohibited without prior
 * written permission from proxyify.dev
 */

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #080b0f;
    color: #e6edf3;
    font-family: 'Geist', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Sabit ızgara */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* @keyframes - ızgara aşağı kayma */
@keyframes gridDown {
    from { background-position: 0 0; }
    to   { background-position: 0 72px; }
}

/* Aşağı kayan ızgara */
.grid-moving {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    animation: gridDown 4s linear infinite;
}

/* Radyal solma maskesi */
.grid-fade {
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 0%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 85% at 50% 0%, black 30%, transparent 100%);
}

/* Marquee kenar fade */
.marquee-fade {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Gradient shimmer text */
.text-gradient {
    background: linear-gradient(90deg, #e6edf3 0%, #8b949e 30%, #e6edf3 60%, #8b949e 80%, #e6edf3 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible  { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Dashboard inner item reveal */
.dash-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.dash-item-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.dash-item.in,
.dash-item-right.in {
    opacity: 1;
    transform: translate(0, 0);
}

/* Scroll-Driven 3D card reveal */
.dash-perspective {
    perspective: 2500px;
}

.dash-3d-wrapper {
    transform-origin: center top;
    animation: straighten-card linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
}

@keyframes straighten-card {
    0%   { transform: rotateX(35deg) scale(0.85); opacity: 0.2; }
    100% { transform: rotateX(0deg)  scale(1);    opacity: 1;   }
}

.d-0 { transition-delay: 0s; }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* Kart hover */
.card {
    background: rgba(13,17,23,0.85);
    border: 1px solid #1c2333;
    border-radius: 16px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    border-color: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Canlı nokta */
.dot-live {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e6edf3;
    box-shadow: 0 0 6px rgba(230,237,243,0.5);
    animation: blink 2s ease-in-out infinite;
}

/* Butonlar */
.btn-primary {
    background: #e6edf3;
    color: #080b0f;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 24px rgba(230,237,243,0.15);
}

.btn-ghost {
    border: 1px solid #1c2333;
    color: #8b949e;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-ghost:hover { border-color: #3d4a5c; color: #e6edf3; }

/* Header blur */
.header-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8,11,15,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Mouse glow */
#mouse-glow {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: radial-gradient(380px circle at 50% 50%, rgba(255,255,255,0.03), transparent 70%);
}

/* Keyframe animasyonlar */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes shimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 300% 50%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Model chip */
.model-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.4rem 1rem 1.2rem;
    width: 108px;
    border-radius: 14px;
    border: 1px solid #1c2333;
    background: #0d1117;
    color: #6b7683;
    font-size: 0.72rem;
    font-family: 'Geist', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .2s, color .2s, background .2s;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.model-chip svg {
    width: 26px;
    height: 26px;
    color: #3d4a5c;
    flex-shrink: 0;
    transition: color .2s;
}
.model-chip:hover {
    border-color: rgba(255,255,255,0.12);
    color: #e6edf3;
}

.model-chip:hover svg {
    color: #e6edf3;
}

/* ── Dashboard Preview ── */
.dash-stat {
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 10px;
    padding: 0.875rem 1rem;
}
.dash-stat-lbl {
    font-size: 0.6rem;
    color: #3d4a5c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.dash-stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.dash-trend-up      { font-size: 0.62rem; margin-top: 0.28rem; color: #8b949e; }
.dash-trend-neutral { font-size: 0.62rem; margin-top: 0.28rem; color: #3d4a5c; }

.dash-card {
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 100%;
}
.bar-fill {
    width: 100%;
    height: 0;
    background: #1c2333;
    border-radius: 3px 3px 0 0;
    transition: height 0.85s cubic-bezier(0.4,0,0.2,1);
}
.bar-today .bar-fill { background: #e6edf3; }
.bar-lbl { font-size: 0.56rem; color: #3d4a5c; }

.model-row { display: flex; align-items: center; gap: 6px; }
.model-dot { width: 6px; height: 6px; border-radius: 1px; flex-shrink: 0; }
.model-nm  { font-size: 0.68rem; color: #8b949e; flex: 1; }
.model-pct { font-size: 0.68rem; color: #e6edf3; font-weight: 600; }

.log-thead {
    display: grid;
    grid-template-columns: 85px 1fr 80px 75px 75px 85px;
    padding: 0.32rem 1.1rem;
    border-bottom: 1px solid rgba(28,35,51,0.5);
}
.log-thead span { font-size: 0.58rem; color: #3d4a5c; text-transform: uppercase; letter-spacing: 0.08em; }

.log-row {
    display: grid;
    grid-template-columns: 85px 1fr 80px 75px 75px 85px;
    padding: 0.48rem 1.1rem;
    border-bottom: 1px solid rgba(28,35,51,0.3);
    animation: logIn 0.3s ease;
}
.log-row:last-child { border-bottom: none; }
.log-row span { font-size: 0.66rem; color: #8b949e; display: flex; align-items: center; }
.log-mono { font-family: 'Geist Mono', monospace !important; font-size: 0.6rem !important; color: #3d4a5c !important; }

@media (max-width: 768px) {
    .log-thead,
    .log-row { grid-template-columns: 75px 1fr 70px 75px; }
    .log-thead span:nth-child(3),
    .log-thead span:nth-child(4),
    .log-row   span:nth-child(3),
    .log-row   span:nth-child(4) { display: none; }
}

/* Section-level shine sweep */
.shine-sweep {
    position: relative;
    overflow: hidden;
}
.shine-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 18%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: section-shine 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}
@keyframes section-shine {
    0%   { left: -30%; }
    18%  { left: 110%; }
    100% { left: 110%; }
}

/* Dashboard card diagonal shine */
.shine-card {
    position: relative;
    overflow: hidden;
}
.shine-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 35%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.035), transparent);
    transform: skewX(-15deg);
    animation: card-shine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}
@keyframes card-shine {
    0%   { left: -60%; }
    18%  { left: 120%; }
    100% { left: 120%; }
}

@keyframes logIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.st-ok  { display:inline-flex;align-items:center;gap:3px;padding:0.14rem 0.42rem;border-radius:4px;font-size:0.6rem;font-weight:500;background:rgba(255,255,255,0.06);border:1px solid #2d333b;color:#e6edf3; }
.st-err { display:inline-flex;align-items:center;gap:3px;padding:0.14rem 0.42rem;border-radius:4px;font-size:0.6rem;font-weight:500;background:rgba(255,255,255,0.03);border:1px solid #1c2333;color:#3d4a5c; }

/* Cookie banner animations */
@keyframes cookieIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cookieOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

/* Legal pages */
.legal-page {
    padding: 8rem 0 6rem;
    min-height: 100vh;
}
.legal-container {
    width: 100%;
}
.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1c2333;
}
.legal-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3d4a5c;
    margin-bottom: 0.75rem;
}
.legal-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #e6edf3;
    margin-bottom: 0.6rem;
}
.legal-meta {
    font-size: 0.75rem;
    color: #3d4a5c;
    font-family: 'Geist Mono', monospace;
}
.legal-body { color: #8b949e; font-size: 0.9rem; line-height: 1.8; }
.legal-body p { margin-bottom: 1rem; }
.legal-body h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 2rem 0 0.6rem;
    letter-spacing: -0.01em;
}
.legal-body h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #8b949e;
    margin: 1.25rem 0 0.4rem;
}
.legal-body ul {
    list-style: none;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.legal-body ul li {
    padding-left: 1.1rem;
    position: relative;
}
.legal-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #3d4a5c;
}
.legal-body a {
    color: #8b949e;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #3d4a5c;
    transition: color .2s;
}
.legal-body a:hover { color: #e6edf3; }
.legal-body strong { color: #e6edf3; font-weight: 600; }
.legal-body code {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    color: #e6edf3;
    background: #1c2333;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.legal-table th {
    text-align: left;
    padding: 0.6rem 0.85rem;
    background: #0d1117;
    color: #3d4a5c;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #1c2333;
}
.legal-table td {
    padding: 0.75rem 0.85rem;
    color: #8b949e;
    border-bottom: 1px solid #1c2333;
    vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ── Features section - stacking cards ───── */
.feat-stack-section {
    padding: 120px 0 200px;
    position: relative;
}

@keyframes diamondDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 79px 0px, -79px 0px; }
}

.feat-stack-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 56px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 56px);
    background-attachment: fixed;
    animation: diamondDrift 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.feat-stack-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, #080b0f 0%, transparent 6%, transparent 94%, #080b0f 100%),
        linear-gradient(to right,  #080b0f 0%, transparent 8%, transparent 92%, #080b0f 100%);
    pointer-events: none;
    z-index: 1;
}

.feat-stack-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.feat-stack-card {
    position: sticky;
    top: 88px;
    width: 100%;
    max-width: 1100px;
    min-height: 440px;
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}

.feat-stack-card:nth-child(1) { z-index: 1; transform: scale(0.93); }
.feat-stack-card:nth-child(2) { z-index: 2; transform: scale(0.94); }
.feat-stack-card:nth-child(3) { z-index: 3; transform: scale(0.95); }
.feat-stack-card:nth-child(4) { z-index: 4; transform: scale(0.96); }
.feat-stack-card:nth-child(5) { z-index: 5; transform: scale(0.97); }
.feat-stack-card:nth-child(6) { z-index: 6; transform: scale(0.98); }
.feat-stack-card:nth-child(7) { z-index: 7; transform: scale(0.99); }
.feat-stack-card:nth-child(8) { z-index: 8; transform: scale(1.00); }

.feat-stack-visual {
    width: 44%;
    flex-shrink: 0;
    border-right: 1px solid #1c2333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(255,255,255,0.01);
}

.feat-stack-content {
    flex: 1;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feat-stack-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4a5c;
    margin-bottom: 18px;
}

.feat-stack-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #e6edf3;
    line-height: 1.15;
    margin-bottom: 16px;
}

.feat-stack-desc {
    font-size: 0.975rem;
    color: #8b949e;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 28px;
}

.feat-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feat-stack-pill {
    font-size: 0.7rem;
    font-family: 'Geist Mono', monospace;
    color: #8b949e;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1c2333;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
}

/* feat-stack SVG icon wrapper */
.fs-icon-wrap {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1c2333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.fs-icon-wrap::before,
.fs-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.1);
    animation: fsRipple 2.6s ease-out infinite;
    pointer-events: none;
}
.fs-icon-wrap::after {
    animation-delay: 1.3s;
}
@keyframes fsRipple {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.65); opacity: 0;   }
}

/* feat-stack scroll reveal */
.feat-stack-num,
.feat-stack-title,
.feat-stack-desc,
.feat-stack-pills {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.feat-stack-visual {
    opacity: 0;
    transition: opacity 0.7s ease;
}
.feat-stack-card.fs-in .feat-stack-visual { opacity: 1; transition-delay: 0.1s; }
.feat-stack-card.fs-in .feat-stack-num    { opacity: 1; transform: none; transition-delay: 0.35s; }
.feat-stack-card.fs-in .feat-stack-title  { opacity: 1; transform: none; transition-delay: 0.5s; }
.feat-stack-card.fs-in .feat-stack-desc   { opacity: 1; transform: none; transition-delay: 0.65s; }
.feat-stack-card.fs-in .feat-stack-pills  { opacity: 1; transform: none; transition-delay: 0.8s; }

@keyframes tagIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes barGrow {
    from { width: 0; }
}

@media (max-width: 768px) {
    .feat-stack-card {
        flex-direction: column;
        min-height: auto;
        position: relative;
        top: auto;
        transform: none !important;
    }
    .feat-stack-visual {
        width: 100%;
        height: auto;
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid #1c2333;
        padding: 32px 24px;
        align-items: center;
    }
    .feat-stack-content { padding: 36px 28px; }
    .feat-stack-title { font-size: 1.5rem; }
}

/* ── Pricing section - timeline ── */
.pricing-section {
    padding: 120px 0 100px;
    position: relative;
}

.pr-timeline-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.pr-line-bg {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: #1c2333;
    transform: translateX(-50%);
}

.pr-line-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #8b949e 15%, #e6edf3 50%, #8b949e 85%, transparent);
    transform: translateX(-50%);
    height: 0%;
    transition: height 0.12s linear;
    z-index: 1;
}

.pr-step {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}
.pr-step:last-child { margin-bottom: 0; }

.pr-step--rev { flex-direction: row-reverse; }

.pr-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    background: #0d1117;
    border: 1px solid #2d333b;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    flex-shrink: 0;
}
.pr-step.pr-active .pr-dot {
    background: #e6edf3;
    border-color: #e6edf3;
    box-shadow: 0 0 12px rgba(230,237,243,0.25);
}

.pr-card-side,
.pr-feats-side {
    width: calc(50% - 32px);
}

.pr-card-side {
    perspective: 1100px;
}

.pr-card {
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 16px;
    padding: 28px 32px 32px;
    position: relative;
    overflow: hidden;
    transform-origin: top center;
    transform: rotateX(-82deg) translateZ(-10px);
    opacity: 0;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.4s ease, border-color 0.25s;
}
.pr-step.pr-active .pr-card {
    transform: rotateX(0deg) translateZ(0);
    opacity: 1;
}
.pr-card:hover { border-color: #2d333b; }

.pr-card--highlight {
    border-color: #2d333b;
    background: rgba(255,255,255,0.015);
}

.pr-popular-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e6edf3;
    background: rgba(255,255,255,0.07);
    border: 1px solid #2d333b;
    border-radius: 20px;
    padding: 0.18rem 0.6rem;
    margin-bottom: 16px;
}

.pr-tier {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d4a5c;
    margin-bottom: 10px;
}

.pr-price {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #e6edf3;
    line-height: 1;
    margin-bottom: 6px;
}
.pr-per {
    font-size: 1rem;
    font-weight: 400;
    color: #8b949e;
    letter-spacing: 0;
}

.pr-credits {
    font-size: 0.78rem;
    color: #8b949e;
    font-family: 'Geist Mono', monospace;
    margin-bottom: 24px;
}

.pr-cta {
    display: inline-block;
    padding: 0.58rem 1.2rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2d333b;
    color: #e6edf3;
    transition: background 0.2s, border-color 0.2s;
}
.pr-cta:hover { background: rgba(255,255,255,0.09); border-color: #3d4a5c; }

.pr-cta--primary {
    background: #e6edf3;
    color: #080b0f;
    border-color: #e6edf3;
}
.pr-cta--primary:hover { background: rgba(230,237,243,0.88); border-color: transparent; }

.pr-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.pr-feat-list li {
    font-size: 0.88rem;
    color: #8b949e;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
    transition: color 0.3s;
}
.pr-step.pr-active .pr-feat-list li { color: #e6edf3; }

.pr-feat-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border: 1px solid #2d333b;
    transform: rotate(45deg);
    transition: background 0.3s, border-color 0.3s;
}
.pr-step.pr-active .pr-feat-list li::before {
    background: #3d4a5c;
    border-color: #3d4a5c;
}

@media (max-width: 768px) {
    .pr-timeline-wrap { padding: 0 20px; }
    .pr-line-bg, .pr-line-fill, .pr-dot { display: none; }
    .pr-step, .pr-step--rev {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 40px;
    }
    .pr-card-side, .pr-feats-side { width: 100%; }
    .pr-feat-list li { color: #8b949e; }
    .pr-step.pr-active .pr-feat-list li { color: #8b949e; }
}

/* ── Models / Marquee section background - cross grid ── */
@keyframes vertDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 0; }
}

.marquee-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0px, rgba(255,255,255,0.055) 1px, transparent 1px, transparent 48px);
    background-attachment: fixed;
    animation: vertDrift 5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.marquee-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,  #080b0f 0%, transparent 18%, transparent 82%, #080b0f 100%),
        linear-gradient(to right,   #080b0f 0%, transparent 12%, transparent 88%, #080b0f 100%);
    pointer-events: none;
    z-index: 0;
}

.marquee-section > * {
    position: relative;
    z-index: 1;
}

/* FAQ section background - dot grid */
@keyframes dotsMove {
    from { background-position: 0 0; }
    to   { background-position: 28px 28px; }
}
.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: dotsMove 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.faq-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 30%, #080b0f 90%);
    pointer-events: none;
    z-index: 1;
}
.faq-section > * { position: relative; z-index: 2; }

/* FAQ */
.faq-item {
    background: rgba(13,17,23,0.6);
    border: 1px solid #1c2333;
    border-radius: 10px;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(8px);
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #8b949e;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    transition: color .2s;
}
.faq-q:hover { color: #e6edf3; }
.faq-open .faq-q { color: #e6edf3; }
.faq-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #3d4a5c;
    transition: transform .3s, color .2s;
}
.faq-open .faq-icon {
    transform: rotate(45deg);
    color: #8b949e;
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .42s cubic-bezier(0.4,0,0.2,1), padding .42s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
}
.faq-open .faq-a {
    max-height: 320px;
    padding-bottom: 1.25rem;
}
.faq-a > * {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease .1s, transform .3s ease .1s;
}
.faq-open .faq-a > * {
    opacity: 1;
    transform: translateY(0);
}
.faq-a p {
    font-size: 0.875rem;
    color: #8b949e;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul {
    list-style: none;
    margin: 0.4rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.faq-a ul li {
    font-size: 0.875rem;
    color: #8b949e;
    padding-left: 1rem;
    position: relative;
}
.faq-a ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #3d4a5c;
}
.faq-a code {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    color: #e6edf3;
    background: #1c2333;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* ── Docs page ── */
.docs-wrap {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
    background: #080b0f;
}
.docs-sidebar {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid #1c2333;
    padding: 28px 0;
    scrollbar-width: thin;
    scrollbar-color: #1c2333 transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #1c2333; border-radius: 2px; }
.docs-nav-group { padding: 0 16px; margin-bottom: 28px; }
.docs-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4a5c;
    padding: 0 8px;
    margin-bottom: 6px;
    display: block;
}
.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.84rem;
    color: #8b949e;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 1px;
}
.docs-nav-item:hover { background: rgba(255,255,255,0.04); color: #e6edf3; }
.docs-nav-item.active { background: rgba(255,255,255,0.06); color: #e6edf3; font-weight: 500; }
.docs-nav-item.soon { opacity: 0.35; pointer-events: none; }
.docs-nav-item .nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-family: 'Geist Mono', monospace;
    color: #3d4a5c;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1c2333;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}
.docs-body {
    flex: 1;
    min-width: 0;
    display: flex;
    padding: 56px 48px 120px;
}
.docs-inner { width: 100%; display: flex; gap: 48px; }
.docs-article { flex: 1; min-width: 0; }
.docs-toc { width: 184px; flex-shrink: 0; }
.docs-toc-sticky { position: sticky; top: 96px; }
.docs-toc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4a5c;
    margin-bottom: 10px;
    display: block;
}
.docs-toc-link {
    display: block;
    font-size: 0.8rem;
    color: #3d4a5c;
    text-decoration: none;
    padding: 3px 0 3px 12px;
    border-left: 1px solid #1c2333;
    margin-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}
.docs-toc-link:hover, .docs-toc-link.toc-active { color: #8b949e; border-left-color: #3d4a5c; }
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #3d4a5c;
    margin-bottom: 32px;
    font-family: 'Geist Mono', monospace;
}
.docs-breadcrumb a { color: #3d4a5c; text-decoration: none; transition: color .15s; }
.docs-breadcrumb a:hover { color: #8b949e; }
.docs-breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }
.docs-h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #e6edf3;
    line-height: 1.15;
    margin-bottom: 16px;
}
.docs-lead {
    font-size: 1.05rem;
    color: #8b949e;
    line-height: 1.75;
    margin-bottom: 48px;
    border-bottom: 1px solid #1c2333;
    padding-bottom: 32px;
}
.docs-h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #e6edf3;
    margin-top: 48px;
    margin-bottom: 14px;
    scroll-margin-top: 88px;
}
.docs-h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
    margin-top: 28px;
    margin-bottom: 10px;
    scroll-margin-top: 88px;
}
.docs-p { font-size: 0.92rem; color: #8b949e; line-height: 1.8; margin-bottom: 16px; }
.docs-code {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid #1c2333;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    color: #e6edf3;
}
.docs-pre {
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    overflow-x: auto;
}
.docs-pre code { font-family: 'Geist Mono', monospace; font-size: 0.8rem; color: #e6edf3; line-height: 1.7; }
.docs-pre .cm { color: #3d4a5c; }
.docs-pre .kw { color: #8b949e; }
.docs-pre .st { color: #c9d1d9; }
.docs-pre .hl { color: #e6edf3; font-weight: 600; }
.docs-pre-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #1c2333;
    margin: -20px -24px 16px;
    border-radius: 12px 12px 0 0;
    background: rgba(255,255,255,0.02);
}
.docs-pre-lang {
    font-size: 0.68rem;
    font-family: 'Geist Mono', monospace;
    color: #3d4a5c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.docs-steps { margin: 24px 0; }
.docs-step { display: flex; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #1c2333; }
.docs-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.docs-step-num {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1c2333;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-family: 'Geist Mono', monospace;
    color: #8b949e;
    flex-shrink: 0;
}
.docs-step-title { font-size: 0.9rem; font-weight: 600; color: #e6edf3; margin-bottom: 6px; }
.docs-step-desc { font-size: 0.85rem; color: #8b949e; line-height: 1.7; }
.docs-callout {
    border: 1px solid #1c2333;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 24px 0;
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(255,255,255,0.015);
}
.docs-callout svg { flex-shrink: 0; margin-top: 2px; }
.docs-callout-text { font-size: 0.85rem; color: #8b949e; line-height: 1.7; }
.docs-callout-text strong { color: #e6edf3; font-weight: 600; }
.docs-link { color: #58a6ff; text-decoration: none; }
.docs-link:hover { text-decoration: underline; }
.docs-ul { color: #8b949e; font-size: 0.88rem; line-height: 1.85; padding-left: 1.4rem; margin: 0 0 20px; }
.docs-ul li { margin-bottom: 4px; }
.docs-ul li strong { color: #e6edf3; }
.docs-ul li code { font-size: 0.82rem; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin: 0 0 24px; }
.docs-table th { text-align: left; padding: 9px 14px; border-bottom: 1px solid #21262d; color: #8b949e; font-weight: 500; white-space: nowrap; }
.docs-table td { padding: 9px 14px; border-bottom: 1px solid #161b22; color: #8b949e; vertical-align: top; line-height: 1.6; }
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td:first-child { color: #e6edf3; white-space: nowrap; }
.docs-next-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.docs-next-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid #1c2333;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.docs-next-card:hover { border-color: #2d333b; background: rgba(255,255,255,0.04); }
.docs-next-card-title { font-size: 0.86rem; font-weight: 600; color: #e6edf3; }
.docs-next-card-desc { font-size: 0.78rem; color: #3d4a5c; line-height: 1.5; }
.docs-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0d1117;
    border-bottom: 1px solid #1c2333;
    border-left: none; border-right: none; border-top: none;
    font-size: 0.82rem;
    color: #8b949e;
    cursor: pointer;
    position: sticky;
    top: 64px;
    z-index: 10;
    width: 100%;
    text-align: left;
    font-family: 'Geist', sans-serif;
}
.docs-sidebar-toggle:hover { color: #e6edf3; }
.docs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0; top: 64px;
    background: rgba(0,0,0,0.6);
    z-index: 39;
    backdrop-filter: blur(4px);
}
.docs-sidebar-overlay.open { display: block; }
@media (max-width: 1024px) {
    .docs-toc { display: none; }
    .docs-inner { max-width: 100%; }
}
@media (max-width: 768px) {
    .docs-sidebar {
        position: fixed; top: 64px; left: 0; bottom: 0;
        z-index: 40; background: #080b0f;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        width: 260px;
    }
    .docs-sidebar.open { transform: translateX(0); }
    .docs-sidebar-toggle { display: flex; }
    .docs-body { padding: 28px 20px 80px; }
    .docs-h1 { font-size: 1.75rem; }
    .docs-next-grid { grid-template-columns: 1fr; }
}

/* ── Dashboard ── */
.dash-wrap {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
    background: #080b0f;
}

.dash-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid #1c2333;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: #1c2333 transparent;
}
.dash-sidebar::-webkit-scrollbar { width: 4px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: #1c2333; border-radius: 2px; }

.dash-nav-group { padding: 0 12px; margin-bottom: 24px; }
.dash-nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4a5c;
    padding: 0 8px;
    margin-bottom: 4px;
    display: block;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.83rem;
    color: #8b949e;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 1px;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.04); color: #e6edf3; }
.dash-nav-item.active { background: rgba(255,255,255,0.06); color: #e6edf3; font-weight: 500; }
.dash-nav-item.soon { opacity: 0.35; pointer-events: none; }
.dash-nav-item .nav-badge {
    margin-left: auto;
    font-size: 0.58rem;
    font-family: 'Geist Mono', monospace;
    color: #3d4a5c;
    background: rgba(255,255,255,0.04);
    border: 1px solid #1c2333;
    border-radius: 4px;
    padding: 0.1rem 0.32rem;
}

.dash-body {
    flex: 1;
    min-width: 0;
    padding: 40px 48px 100px;
}

.dash-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #e6edf3;
    margin-bottom: 4px;
}
.dash-page-sub {
    font-size: 0.85rem;
    color: #3d4a5c;
    margin-bottom: 36px;
}

.dash-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d4a5c;
    margin-bottom: 12px;
}

.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 56px 24px;
    border: 1px dashed #1c2333;
    border-radius: 12px;
    text-align: center;
}
.dash-empty-title { font-size: 0.9rem; font-weight: 600; color: #3d4a5c; }
.dash-empty-desc  { font-size: 0.8rem; color: #3d4a5c; line-height: 1.6; max-width: 320px; }

.dash-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #080b0f;
    border-bottom: 1px solid #1c2333;
    border-left: none; border-right: none; border-top: none;
    font-size: 0.82rem;
    color: #8b949e;
    cursor: pointer;
    position: sticky;
    top: 64px;
    z-index: 10;
    width: 100%;
    text-align: left;
    font-family: 'Geist', sans-serif;
}
.dash-sidebar-toggle:hover { color: #e6edf3; }

@media (max-width: 768px) {
    .dash-sidebar {
        position: fixed; top: 64px; left: 0; bottom: 0;
        z-index: 40; background: #080b0f;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        width: 240px;
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-sidebar-toggle { display: flex; }
    .dash-body { padding: 24px 20px 80px; }
    .dash-page-title { font-size: 1.2rem; }
}

/* ── Auth & Error pages ── */
.auth-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
    pointer-events: none;
}

.auth-bg-glow {
    position: fixed;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.025) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 40px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #0d1117;
    border: 1px solid #1c2333;
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.auth-logo-name {
    font-weight: 700;
    color: #e6edf3;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.auth-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.auth-sub {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #1c2333;
    background: rgba(255,255,255,0.04);
    color: #e6edf3;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
}
.auth-btn:hover { background: rgba(255,255,255,0.07); border-color: #3d4a5c; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}
.auth-divider-line { flex: 1; height: 1px; background: #1c2333; }
.auth-divider-text {
    font-size: 0.75rem;
    color: #3d4a5c;
    font-family: 'Geist Mono', monospace;
}

.auth-legal {
    font-size: 0.78rem;
    color: #3d4a5c;
    text-align: center;
    line-height: 1.7;
}
.auth-legal a {
    color: #8b949e;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #3d4a5c;
    transition: color 0.2s;
}
.auth-legal a:hover { color: #e6edf3; }

.auth-back {
    position: fixed;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #3d4a5c;
    text-decoration: none;
    transition: color 0.2s;
    z-index: 10;
    white-space: nowrap;
}
.auth-back:hover { color: #8b949e; }

/* Error page specific */
.error-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.error-code-badge.err-4xx {
    color: #8b949e;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2d333b;
}
.error-code-badge.err-5xx {
    color: #6b7683;
    background: rgba(255,255,255,0.02);
    border: 1px solid #1c2333;
}

.error-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.error-desc {
    font-size: 0.875rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.error-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid #2d333b;
    color: #e6edf3;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    font-family: 'Geist', sans-serif;
}
.error-btn-primary:hover { background: rgba(255,255,255,0.1); border-color: #3d4a5c; }

.error-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #1c2333;
    color: #3d4a5c;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: 'Geist', sans-serif;
}
.error-btn-ghost:hover { background: rgba(255,255,255,0.03); border-color: #2d333b; color: #8b949e; }
