/*!
 * Citera - GEO Optimization Platform
 * Copyright © 2026 CITERA. All Rights Reserved.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, via any medium, is strictly prohibited without prior
 * written permission from citera.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.92); }
.feat-stack-card:nth-child(2) { z-index: 2; transform: scale(0.93); }
.feat-stack-card:nth-child(3) { z-index: 3; transform: scale(0.94); }
.feat-stack-card:nth-child(4) { z-index: 4; transform: scale(0.95); }
.feat-stack-card:nth-child(5) { z-index: 5; transform: scale(0.96); }
.feat-stack-card:nth-child(6) { z-index: 6; transform: scale(0.97); }
.feat-stack-card:nth-child(7) { z-index: 7; transform: scale(0.98); }
.feat-stack-card:nth-child(8) { z-index: 8; transform: scale(0.99); }
.feat-stack-card:nth-child(9) { z-index: 9; 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; white-space: pre; display: block; }
.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;
    justify-content: space-between;
    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-copy-btn {
    background: transparent;
    border: 1px solid #21262d;
    border-radius: 4px;
    color: #3d4a5c;
    font-size: 0.65rem;
    font-family: 'Geist Mono', monospace;
    padding: 2px 9px;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.docs-copy-btn:hover { border-color: #30363d; color: #8b949e; }
.docs-copy-btn.copied { color: #3fb950; border-color: #3fb950; }
.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-weight { font-size: 0.7rem; font-weight: 600; color: #58a6ff; font-family: ui-monospace, monospace; margin-left: 6px; vertical-align: middle; }
.docs-badge { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b949e; background: #161b22; border: 1px solid #30363d; border-radius: 5px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
.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; }

@media (max-width: 768px) {
    .docs-inner { max-width: 100%; flex-direction: column; gap: 0; }
    .docs-toc { display: none; }
    .docs-article { width: 100%; }
    .docs-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .docs-table td, .docs-table th { padding: 7px 10px; font-size: 0.78rem; }
    .docs-table td:last-child { white-space: normal; min-width: 160px; }
}
@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; }
}

/* ── Custom Tooltip ── */
#g-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #161b22;
    border: 1px solid #e6edf3;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 0.72rem;
    color: #e6edf3;
    line-height: 1.65;
    white-space: normal;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
    font-family: 'Geist Mono', monospace;
    word-break: break-word;
}

/* ── 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;
}

/* Public shared report — no sidebar, center the body like a report sheet */
.dash-wrap-public .dash-body {
    max-width: 940px;
    margin: 0 auto;
}

.dash-body {
    flex: 1;
    min-width: 0;
    padding: 32px 40px 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; }

.nav-desktop-btn { display: none !important; }
@media (min-width: 768px) { .nav-desktop-btn { display: inline-flex !important; } }

@media (max-width: 768px) {
    .legal-page { padding: 5rem 0 3rem; }
}

@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; }

/* ═══════════════════════════════════════════════
   Playground
   ═══════════════════════════════════════════════ */
.pg-models    { width:260px; flex-shrink:0; border-right:1px solid #161b22; display:flex; flex-direction:column; overflow:hidden; min-height:0; }
.pg-main      { flex:1; display:flex; flex-direction:column; overflow:hidden; min-width:0; min-height:0; }

.pg-models-head   { padding:14px 14px 10px; border-bottom:1px solid #161b22; flex-shrink:0; }
.pg-models-search { width:100%; background:#0d1117; border:1px solid #21262d; border-radius:6px; padding:7px 10px; color:#e6edf3; font-size:0.8rem; outline:none; }
.pg-models-search::placeholder { color:#3d4a5c; }
.pg-models-tabs   { display:flex; gap:3px; padding:8px 10px; border-bottom:1px solid #161b22; flex-shrink:0; flex-wrap:nowrap; overflow:hidden; }
.pg-models-tab    { padding:3px 7px; border-radius:20px; font-size:0.72rem; cursor:pointer; border:1px solid #21262d; color:#8b949e; background:transparent; transition:all .15s; white-space:nowrap; }
.pg-models-tab.active { background:#1f6feb22; border-color:#1f6feb; color:#58a6ff; }
.pg-models-list   { flex:1; overflow-y:auto; padding:8px 0 80px; }
.pg-model-item    { padding:8px 14px; cursor:pointer; transition:background .12s; display:flex; flex-direction:column; gap:2px; border-left:2px solid transparent; }
.pg-model-item:hover  { background:rgba(255,255,255,.03); }
.pg-model-item.active { background:rgba(31,111,235,.08); border-left-color:#1f6feb; }
.pg-model-name    { font-size:0.78rem; color:#e6edf3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pg-model-meta    { font-size:0.68rem; color:#3d4a5c; }
.pg-model-badge   { display:inline-block; font-size:0.62rem; padding:1px 5px; border-radius:3px; margin-right:4px; }
.badge-text  { background:#1f6feb22; color:#58a6ff; }
.badge-image { background:#238636aa; color:#3fb950; }
.badge-video { background:#8957e522; color:#bc8cff; }
.badge-stt   { background:#e3b34122; color:#d29922; }
.badge-tts   { background:#f7853522; color:#f0883e; }

.pg-body      { flex:1; display:flex; flex-direction:column; overflow:hidden; padding:0; }
.pg-topbar    { padding:10px 18px; border-bottom:1px solid #161b22; display:flex; align-items:center; gap:12px; flex-shrink:0; }
.pg-selected-model { font-size:0.82rem; font-weight:600; color:#e6edf3; }
.pg-selected-badge { font-size:0.7rem; padding:2px 8px; border-radius:4px; }
.pg-credit-pill { margin-left:auto; font-size:0.75rem; color:#8b949e; background:#161b22; border:1px solid #21262d; padding:4px 10px; border-radius:20px; }
.pg-credit-pill span { color:#e6edf3; font-weight:600; }

.pg-chat      { flex:1; overflow-y:auto; padding:20px 24px 64px; display:flex; flex-direction:column; gap:14px; }
.pg-msg       { display:flex; gap:10px; max-width:760px; }
.pg-msg.user  { align-self:flex-end; flex-direction:row-reverse; }
.pg-msg-avatar { width:28px; height:28px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:600; }
.pg-msg.user  .pg-msg-avatar { background:#1f6feb; color:#fff; }
.pg-msg.bot   .pg-msg-avatar { background:#21262d; color:#8b949e; }
.pg-msg-bubble { background:#161b22; border:1px solid #21262d; border-radius:12px; padding:10px 14px; font-size:0.83rem; color:#e6edf3; line-height:1.7; max-width:680px; white-space:pre-wrap; word-break:break-word; }
.pg-msg.user .pg-msg-bubble  { background:#1f2d3d; border-color:#1f6feb44; }
.pg-msg-bubble.streaming::after { content:'▌'; animation:blink .7s infinite; }

.pg-input-area   { padding:14px 20px 44px; flex-shrink:0; background:linear-gradient(to top,#080b0f 70%,transparent); position:relative; }
.pg-sys-row      { margin-bottom:10px; display:none; }
.pg-sys-label    { font-size:0.72rem; color:#3d4a5c; margin-bottom:4px; display:block; }
.pg-sys-input    { width:100%; background:#0d1117; border:1px solid #21262d; border-radius:8px; padding:8px 12px; color:#e6edf3; font-size:0.8rem; resize:none; outline:none; height:56px; font-family:inherit; }
.pg-text-row     { display:flex; gap:0; align-items:flex-end; background:#0d1117; border:1px solid #30363d; border-radius:14px; padding:6px 6px 6px 16px; transition:border-color .2s,box-shadow .2s; }
.pg-text-row:focus-within { border-color:#3d4a5c; box-shadow:0 0 0 3px rgba(61,74,92,.18); }
.pg-textarea     { flex:1; background:transparent; border:none; padding:10px 10px 10px 0; color:#e6edf3; font-size:0.85rem; resize:none; outline:none; min-height:52px; max-height:160px; font-family:inherit; line-height:1.6; }
.pg-textarea::placeholder { color:#3d4a5c; }
.pg-send-btn     { background:#21262d; border:none; border-radius:10px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; transition:background .15s; align-self:center; }
.pg-send-btn:hover { background:#30363d; }
.pg-send-btn:hover svg stroke { stroke:#e6edf3; }
.pg-send-btn:disabled { background:#161b22; cursor:not-allowed; opacity:.4; }
.pg-params-row   { display:flex; gap:14px; align-items:center; margin-top:10px; flex-wrap:wrap; padding:0 4px; }
.pg-param        { display:flex; align-items:center; gap:6px; font-size:0.75rem; color:#8b949e; }
.pg-param label  { white-space:nowrap; }
.pg-param input[type=range] { width:80px; accent-color:#3d4a5c; }
.pg-param-val    { color:#e6edf3; min-width:28px; }
.pg-stream-toggle { display:flex; align-items:center; gap:6px; cursor:pointer; }
.pg-toggle       { width:28px; height:16px; background:#21262d; border-radius:8px; position:relative; transition:background .2s; }
.pg-toggle.on    { background:#3d4a5c; }
.pg-toggle::after { content:''; position:absolute; top:2px; left:2px; width:12px; height:12px; background:#fff; border-radius:50%; transition:left .2s; }
.pg-toggle.on::after { left:14px; }
.pg-sys-toggle   { font-size:0.72rem; color:#3d4a5c; cursor:pointer; margin-left:auto; }
.pg-sys-toggle:hover { color:#8b949e; }

.pg-gen-area   { flex:1; padding:20px 20px 46px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; }
.pg-prompt-label { font-size:0.72rem; color:#8b949e; margin-bottom:6px; letter-spacing:.02em; text-transform:uppercase; }
.pg-prompt-ta    { width:100%; background:#0d1117; border:1px solid #21262d; border-radius:10px; padding:12px 14px; color:#e6edf3; font-size:0.85rem; resize:none; outline:none; min-height:80px; font-family:inherit; line-height:1.6; box-sizing:border-box; transition:border-color .15s; }
.pg-prompt-ta:focus { border-color:#3d4a5c; }
.pg-prompt-fill { flex:1; min-height:0; }

.pg-gen-two-col  { display:flex; gap:14px; align-items:stretch; flex-shrink:0; min-height:180px; }
.pg-gen-left     { flex:3; display:flex; flex-direction:column; gap:10px; min-width:0; }
.pg-gen-right    { flex:2; min-width:200px; }
.pg-options-card { background:#0d1117; border:1px solid #21262d; border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:16px; height:100%; box-sizing:border-box; }

.pg-options-row  { display:flex; gap:20px; flex-wrap:wrap; }
.pg-option-group { display:flex; flex-direction:column; gap:8px; }
.pg-option-label { font-size:0.7rem; color:#3d4a5c; text-transform:uppercase; letter-spacing:.04em; }
.pg-btn-group    { display:flex; gap:5px; flex-wrap:wrap; }
.pg-opt-btn      { padding:5px 12px; border:1px solid #21262d; border-radius:6px; background:transparent; color:#8b949e; font-size:0.75rem; cursor:pointer; transition:all .15s; }
.pg-opt-btn:hover   { border-color:#30363d; color:#e6edf3; }
.pg-opt-btn.active  { border-color:#3d4a5c; background:#161b22; color:#e6edf3; }
.pg-gen-action-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pg-action-meta    { display:flex; align-items:center; gap:8px; }
.pg-action-credit  { font-size:0.72rem; color:#3d4a5c; }
.pg-dl-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; background:#161b22; color:#8b949e; border:1px solid #30363d; border-radius:6px; font-size:0.78rem; text-decoration:none; transition:all .15s; }
.pg-dl-btn:hover { background:#21262d; border-color:#3d4a5c; color:#e6edf3; }
.pg-gen-btn      { align-self:flex-start; background:#161b22; color:#8b949e; border:1px solid #30363d; padding:9px 22px; border-radius:8px; font-size:0.83rem; font-weight:500; cursor:pointer; transition:all .15s; position:relative; overflow:hidden; }
.pg-gen-btn:hover    { background:#21262d; border-color:#3d4a5c; color:#e6edf3; }
.pg-gen-btn:disabled { background:#0d1117; border-color:#1c2333; color:#3d4a5c; cursor:not-allowed; }
.pg-gen-btn.generating {
    background: linear-gradient(90deg, #0d1117 0%, #21262d 30%, #30363d 50%, #21262d 70%, #0d1117 100%);
    background-size: 250% 100%;
    animation: btnWave 1.8s linear infinite;
    color: #8b949e;
    border-color: #30363d;
}
@keyframes btnWave {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.pg-drop-fill { flex:1; min-height:120px; }
.pg-output-box {
    flex:1;
    border:1px solid #21262d; border-radius:12px; padding:16px; min-height:200px;
    display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
    background-color: #0d1117;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridDown 4s linear infinite;
}
.pg-output-img   { max-width:100%; max-height:520px; border-radius:8px; }
.pg-output-text  { color:#8b949e; font-size:0.82rem; }
.pg-cost-tag     { font-size:0.72rem; color:#3d4a5c; margin-top:6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

.pg-dl-pdf { margin-top: 4px; }
.pg-audio-player  { width:100%; border-radius:8px; outline:none; }

.pg-drop-zone    { border:2px dashed #21262d; border-radius:12px; padding:32px; text-align:center; cursor:pointer; transition:border-color .2s; }
.pg-drop-zone:hover, .pg-drop-zone.drag { border-color:#3d4a5c; }
.pg-drop-icon    { color:#3d4a5c; margin-bottom:8px; }
.pg-drop-text    { font-size:0.82rem; color:#8b949e; }
.pg-drop-text b  { color:#e6edf3; }
.pg-file-info    { font-size:0.78rem; color:#3fb950; margin-top:8px; }

.pg-voice-select { width:100%; background:#0d1117; border:1px solid #21262d; border-radius:8px; padding:7px 10px; color:#e6edf3; font-size:0.8rem; outline:none; transition:border-color .15s; }
.pg-voice-select:focus { border-color:#3d4a5c; }
.pg-audio-player { width:100%; margin-top:4px; border-radius:8px; }

.pg-progress     { height:4px; background:#21262d; border-radius:2px; overflow:hidden; margin-top:8px; }
.pg-progress-bar { height:100%; background:#3d4a5c; border-radius:2px; transition:width .3s; }
.pg-status-text  { font-size:0.75rem; color:#8b949e; margin-top:6px; }

.pg-empty {
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:#3d4a5c;
    position:relative;
    background-color: #080b0f;
    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: 48px 48px;
    animation: gridDown 4s linear infinite;
}
.pg-empty::before {
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, #080b0f 100%);
    pointer-events:none;
}
.pg-empty-icon {
    position:relative; z-index:1;
    width:56px; height:56px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(61,74,92,0.1);
    border:1px solid rgba(61,74,92,0.2);
}
.pg-empty svg    { opacity:.35; }
.pg-empty p      { font-size:0.83rem; position:relative; z-index:1; letter-spacing:.01em; }

.img-shimmer {
    width:100%; min-height:420px; border-radius:12px;
    background: #0d1117;
    display:flex; align-items:center; justify-content:center;
}
.img-shimmer-inner {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px;
}
.img-shimmer-text { font-size:0.72rem; color:#3d4a5c; letter-spacing:.12em; }

.pg-wave-loader {
    position:relative; width:64px; height:64px;
    display:flex; align-items:center; justify-content:center;
}
.pg-wave-dot {
    width:8px; height:8px; border-radius:50%;
    background:#3d4a5c; position:relative; z-index:1;
}
.pg-wave-ring {
    position:absolute; top:50%; left:50%;
    width:64px; height:64px; border-radius:50%;
    border:1px solid #3d4a5c;
    transform:translate(-50%,-50%) scale(0);
    opacity:0;
    animation: waveRipple 2.4s ease-out infinite;
}
.pg-wave-ring:nth-child(1) { animation-delay:0s; }
.pg-wave-ring:nth-child(2) { animation-delay:0.8s; }
.pg-wave-ring:nth-child(3) { animation-delay:1.6s; }
@keyframes waveRipple {
    0%   { transform:translate(-50%,-50%) scale(0.1); opacity:0.7; }
    100% { transform:translate(-50%,-50%) scale(4);   opacity:0;   }
}

/* ═══════════════════════════════════════════════
   Models page
   ═══════════════════════════════════════════════ */
.models-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.models-table thead tr { border-bottom: 1px solid #1c2333; background: #080b0f; }
.models-table th {
    padding: 12px 14px;
    text-align: left;
    color: #3d4a5c;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.models-table th:first-child { min-width: 260px; }
.models-table td.model-cell .name { white-space: normal; word-break: break-word; }
.models-table th.num    { text-align: right; }
.models-table th.center { text-align: center; }
.models-table tbody tr { border-bottom: 1px solid #161b22; transition: background 0.12s; }
.models-table tbody tr:last-child { border-bottom: none; }
.models-table tbody tr:hover { background: #161b22; }
.models-table td {
    padding: 10px 14px;
    color: #e6edf3;
    vertical-align: middle;
    white-space: nowrap;
}
.models-table td.num    { text-align: right; }
.models-table td.center { text-align: center; }
.models-table td.mono   { font-family: 'Geist Mono', monospace; font-size: 0.78rem; color: #8b949e; }
.models-table td.small  { font-size: 0.72rem; }
.models-table td.model-cell .name { font-size: 0.84rem; font-weight: 500; color: #e6edf3; }
.models-table td.model-cell .slug { font-family: 'Geist Mono', monospace; font-size: 0.7rem; color: #3d4a5c; margin-top: 2px; }
.models-table td.inputs { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.models-table td.inputs .chip {
    display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px;
    font-size: 0.66rem; background: #161b22; color: #8b949e; border: 1px solid #21262d;
    font-family: 'Geist Mono', monospace;
}
.models-table .check    { color: #3fb950; font-weight: 700; }
.models-table .dim      { color: #3d4a5c; }
.models-table .free     { color: #c9d1d9; }
.models-table .dynamic  { color: #8b949e; font-size: 0.72rem; font-style: italic; }
.models-table .video-price { color: #c9d1d9; }
.copy-slug { cursor: pointer; position: relative; transition: color .15s; }
.copy-slug:hover { color: #58a6ff; }
.copy-slug::after {
    content: attr(data-copied); display: none;
    position: absolute; left: 0; top: -24px;
    background: #1f6feb; color: #fff; font-size: 0.65rem;
    padding: 2px 7px; border-radius: 4px; white-space: nowrap; pointer-events: none;
}
.copy-slug.copied::after { display: block; }
.audio-badge {
    display: inline-block; margin-left: 4px; font-size: 0.65rem;
    padding: 1px 4px; border-radius: 3px;
    background: rgba(139,148,158,0.15); color: #8b949e; vertical-align: middle;
}
.models-table td.empty { text-align: center; padding: 48px; color: #3d4a5c; font-size: 0.85rem; }
.models-table td.empty code { background: #161b22; padding: 2px 6px; border-radius: 4px; color: #8b949e; font-size: 0.78rem; }
.models-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }
.search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 320px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-wrap input {
    width: 100%; padding: 8px 12px 8px 34px;
    background: #0d1117; border: 1px solid #1c2333; border-radius: 8px;
    color: #e6edf3; font-size: 0.82rem; outline: none;
}
.tabs     { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn  {
    padding: 8px 14px; background: transparent; border: 1px solid #1c2333;
    border-radius: 999px; color: #8b949e; font-size: 0.76rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tab-btn .count { font-size: 0.68rem; font-weight: 500; margin-left: 6px; opacity: 0.6; }
.tab-btn.active { border-color: #e6edf3; color: #e6edf3; background: #101623; }
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.68rem; font-weight: 500; border: 1px solid;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.badge-text  { color: #8b949e; border-color: #21262d; background: #161b22; }
.badge.badge-image { color: #8b949e; border-color: #21262d; background: #161b22; }
.badge.badge-video { color: #8b949e; border-color: #21262d; background: #161b22; }
.badge.badge-stt   { color: #8b949e; border-color: #21262d; background: #161b22; }
.badge.badge-tts   { color: #8b949e; border-color: #21262d; background: #161b22; }

/* ═══════════════════════════════════════════════
   Playground — Mobile Responsive
   ═══════════════════════════════════════════════ */
.pg-mob-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 6px;
    color: #8b949e;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}
.pg-mob-toggle:hover { color: #e6edf3; border-color: #30363d; }

.pg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0,0,0,.55);
}
.pg-overlay.show { display: block; }

@media (max-width: 768px) {
    /* Model panel → overlay drawer */
    .pg-models {
        position: fixed;
        left: 0; top: 64px; bottom: 0;
        z-index: 50;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        background: #080b0f;
        border-right: 1px solid #21262d;
    }
    .pg-models.open { transform: translateX(0); }

    /* Toggle button visible on mobile */
    .pg-mob-toggle { display: flex; }

    /* Topbar model name — no overflow */
    .pg-selected-model {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
        font-size: 0.78rem;
    }
    .pg-topbar { padding: 8px 12px; gap: 8px; }
    .pg-credit-pill { display: none !important; }

    /* Image/Video/STT/TTS — 2-col → 1-col */
    .pg-gen-two-col { flex-direction: column; }
    .pg-gen-right { max-width: 100%; min-width: 0; }
    .pg-options-card { flex-direction: row; flex-wrap: wrap; gap: 10px; height: auto; }
    .pg-option-group { flex: 1; min-width: 110px; }

    /* Output box height */
    .pg-output-box { min-height: 220px; }

    /* Gen area padding */
    .pg-gen-area { padding: 12px; }

    /* Chat */
    .pg-chat { padding: 14px 12px 60px; }
    .pg-msg { max-width: 100%; }
    .pg-msg-bubble { max-width: calc(100vw - 100px); }
    .pg-input-area { padding: 10px 12px 30px; }
    .pg-params-row { gap: 8px; }
    .pg-param input[type=range] { width: 60px; }
}

/* ── How it works section ── */
@keyframes diagDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}
.howto-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.022) 0px,
        rgba(255,255,255,0.022) 1px,
        transparent 1px,
        transparent 24px
    );
    animation: diagDrift 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.howto-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 10%, transparent 90%, #080b0f 100%);
    pointer-events: none;
    z-index: 0;
}
.howto-section > * { position: relative; z-index: 1; }

.ht-step {
    background: rgba(255,255,255,0.02);
    border: 1px solid #1c2333;
    border-radius: 16px;
    padding: 2rem;
    transition: border-color .25s;
}
.ht-step:hover { border-color: rgba(255,255,255,0.1); }

.ht-step-num {
    font-family: 'Geist Mono', monospace;
    font-size: 0.67rem;
    color: #3d4a5c;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ht-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(255,255,255,0.035);
    border: 1px solid #1c2333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.ht-step-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
}
.ht-step-desc {
    font-size: 0.875rem;
    color: #8b949e;
    line-height: 1.72;
}

/* Trust / Research section */
.trust-quote {
    background: rgba(255,255,255,0.02);
    border: 1px solid #1c2333;
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color .25s;
}
.trust-quote:hover { border-color: rgba(255,255,255,0.08); }

.trust-source-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.825rem 1rem;
    background: rgba(255,255,255,0.015);
    border: 1px solid #1c2333;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #8b949e;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    line-height: 1.4;
}
.trust-source-link:hover {
    border-color: rgba(255,255,255,0.1);
    color: #e6edf3;
}
.trust-source-link svg { flex-shrink: 0; }
