/* ============================================================
   HarvestGPU — Dark Luxury Tech Aesthetic
   ============================================================ */

/* --- Tokens --- */
:root {
    --bg-deep: #0a0a0f;
    --bg-surface: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1a1a25;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 255, 136, 0.3);

    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #555566;
    --text-accent: #00ff88;

    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.15);
    --accent-glow: rgba(0, 255, 136, 0.4);
    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.12);
    --red: #ff4466;
    --red-dim: rgba(255, 68, 102, 0.15);
    --yellow: #ffcc00;
    --yellow-dim: rgba(255, 204, 0, 0.15);
    --blue: #4488ff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.08);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast);
}
a:hover { color: #33ffaa; }

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent);
}

pre {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
}
.btn-primary:hover {
    background: #33ffaa;
    color: var(--bg-deep);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-danger {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 68, 102, 0.2);
}
.btn-danger:hover {
    background: rgba(255, 68, 102, 0.25);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.landing-nav, .docs-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo, .sidebar-logo, .auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-btn-ghost {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
}

.nav-btn-primary {
    padding: 0.4rem 1rem !important;
    background: var(--accent) !important;
    color: var(--bg-deep) !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 1rem + 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

/* --- Terminal --- */
.hero-terminal {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    background: var(--bg-surface);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
}

.terminal-line {
    white-space: nowrap;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 4px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Terminal syntax colors */
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text-primary); }
.t-output { color: var(--text-secondary); }
.t-kw { color: #c678dd; }
.t-mod { color: var(--cyan); }
.t-cls { color: #e5c07b; }
.t-fn { color: #61afef; }
.t-var { color: var(--text-primary); }
.t-str { color: #98c379; }
.t-arg { color: #e06c75; }
.t-attr { color: var(--cyan); }
.t-num { color: #d19a66; }
.t-comment { color: var(--text-muted); font-style: italic; }

/* --- Live Ticker --- */
.live-ticker {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 0.75rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    flex-shrink: 0;
    padding: 0.25rem 1rem;
    margin-left: 1rem;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    border: 1px solid var(--border-accent);
}

.ticker-track {
    overflow: hidden;
    flex: 1;
    margin-left: 1rem;
}

.ticker-scroll {
    display: flex;
    gap: 2rem;
    animation: ticker-slide 30s linear infinite;
    width: max-content;
}

@keyframes ticker-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.ticker-gpu {
    color: var(--text-primary);
    font-weight: 600;
}

.ticker-price {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

.ticker-provider {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- Sections --- */
.section-title {
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 3rem;
}

.how-it-works, .providers-section, .code-examples, .pricing-section, .cta-section {
    padding: clamp(4rem, 3rem + 3vw, 8rem) 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.step-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-mono);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-card code {
    font-size: 0.8125rem;
}

/* Providers grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.provider-card.available {
    border-color: var(--border-accent);
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.provider-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.provider-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.provider-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.status-dot.offline {
    background: var(--text-muted);
}

/* Code examples tabs */
.code-tabs {
    max-width: 700px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--duration-fast);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: none;
}

/* Pricing cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-deep);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-period {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

/* Stats */
.stats-section {
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}

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

/* CTA */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(0, 255, 136, 0.04), transparent 60%),
        var(--bg-deep);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.auth-error {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 68, 102, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color var(--duration-fast);
}

.form-group input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-input::placeholder {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #fff;
    color: #3c4043;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--duration-fast), box-shadow var(--duration-fast);
}

.google-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
    background: #eef0f1;
}

.google-btn svg {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-medium);
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
}

.sidebar-logo {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.sidebar-icon {
    font-size: 0.875rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-email {
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logout-link {
    color: var(--text-muted) !important;
}

/* Main */
.dashboard-main {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

.dashboard-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dashboard-content {
    padding: 2rem;
}

/* Stat cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.stat-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card-value.accent {
    color: var(--accent);
}

.stat-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Chart card */
.chart-card, .jobs-card, .quick-start-card, .logs-card,
.detail-card, .pricing-matrix-card, .settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
}

.jobs-card {
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.jobs-card .card-header {
    flex-shrink: 0;
}

.jobs-card .jobs-table {
    overflow-y: auto;
    flex: 1;
    display: block;
}

.quick-start-card {
    max-height: 280px;
    overflow-y: auto;
}

.chart-card h3, .jobs-card h3, .quick-start-card h3,
.logs-card h3, .detail-card h3, .settings-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-header h3 {
    margin-bottom: 0 !important;
}

.card-link {
    font-size: 0.8125rem;
    color: var(--accent);
}

/* Tables */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.jobs-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.jobs-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.jobs-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.jobs-table td a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0 !important;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.running {
    background: var(--accent-dim);
    color: var(--accent);
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.completed {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.status-badge.failed {
    background: var(--red-dim);
    color: var(--red);
}

.status-badge.stopped {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.status-badge.queued, .status-badge.provisioning {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(0, 255, 136, 0.2); }
}

.gpu-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.image-cell {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-cell {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Quick start */
.api-key-display {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-input);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    user-select: all;
}

.quick-code pre {
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

/* Filters */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-select {
    padding: 0.4rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-family: var(--font-sans);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

.page-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Full width card */
.full-width {
    grid-column: 1 / -1;
}

/* Job detail */
.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.detail-value.accent {
    color: var(--accent);
    font-weight: 600;
}

/* Logs */
.logs-terminal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.logs-terminal pre {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

/* Pricing matrix */
.pricing-intro {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.pricing-matrix {
    width: 100%;
    border-collapse: collapse;
}

.pricing-matrix th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-matrix th:first-child {
    text-align: left;
}

.pricing-matrix td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.pricing-matrix td:first-child {
    text-align: left;
}

.price-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.your-price {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.base-price {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.price-cell.unavailable .your-price {
    color: var(--text-muted);
}

.not-available {
    color: var(--text-muted);
}

.provider-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 0.25rem;
    vertical-align: middle;
}

.pricing-note {
    margin-top: 2rem;
}

.pricing-note h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.note-item {
    text-align: center;
}

.note-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.note-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.note-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.settings-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.api-key-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.api-key-box code {
    flex: 1;
    background: none;
    padding: 0;
    user-select: all;
    font-size: 0.75rem;
}

.settings-action {
    margin-top: 0.5rem;
}

.webhook-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-row .form-input {
    flex: 1;
}

.webhooks-table {
    width: 100%;
    border-collapse: collapse;
}

.webhooks-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.5rem 0;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.webhooks-table td {
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border-subtle);
}

.inline-form {
    display: inline;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--border-accent);
}

.alert-error {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 68, 102, 0.2);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ============================================================
   Docs Page
   ============================================================ */
.docs-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.docs-sidebar {
    width: 220px;
    position: sticky;
    top: 80px;
    height: fit-content;
    padding: 1.5rem;
    flex-shrink: 0;
}

.docs-sidebar h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.5rem;
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-link {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.docs-link:hover {
    color: var(--accent);
}

.docs-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 800px;
}

.docs-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.docs-intro {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.docs-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.docs-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
}

.docs-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.docs-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem;
}

.docs-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.docs-content ul {
    margin: 0 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.docs-content li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.docs-content pre {
    margin-bottom: 1.5rem;
}

.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.endpoint-method {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.endpoint-method.get {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.endpoint-method.post {
    background: var(--accent-dim);
    color: var(--accent);
}

.endpoint-method.delete {
    background: var(--red-dim);
    color: var(--red);
}

.endpoint > code {
    font-size: 0.875rem;
}

.endpoint > p {
    margin-top: 0.75rem;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.docs-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.docs-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .job-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .terminal-line {
        white-space: pre-wrap;
        word-break: break-all;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 1.5rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .filter-form {
        flex-wrap: wrap;
    }

    .form-row {
        flex-wrap: wrap;
    }

    .jobs-table {
        font-size: 0.75rem;
    }

    .pricing-matrix {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

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

    .nav-links a:not(.nav-btn-primary) {
        display: none;
    }
}

/* --- Connected Providers (BYOK) --- */

.providers-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.provider-key-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    transition: border-color var(--duration-normal, 300ms) ease;
}

.provider-key-card.connected {
    border-color: rgba(0, 255, 136, 0.3);
}

.provider-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-badge.connected {
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.disconnected {
    color: #666;
    font-size: 0.75rem;
}

.provider-key-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.key-hint {
    font-family: monospace;
    font-size: 0.85rem;
    color: #999;
}

.key-label {
    font-size: 0.8rem;
    color: #777;
}

.provider-key-actions {
    display: flex;
    gap: 0.5rem;
}

.provider-key-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.form-input-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.provider-key-input-actions {
    display: flex;
    gap: 0.5rem;
}

.key-help-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: underline;
}

.key-help-link:hover {
    color: #00ff88;
}

/* --- Dashboard Provider Status Row --- */

.provider-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.provider-status-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #666;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.provider-status-chip.connected {
    color: #ccc;
}

.provider-manage-link {
    margin-left: auto;
    font-size: 0.8rem;
    color: #00ff88;
    text-decoration: none;
}

.provider-manage-link:hover {
    text-decoration: underline;
}

/* --- Connect CTA Card --- */

.connect-cta-card {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: rgba(0, 255, 136, 0.03);
    border: 1px dashed rgba(0, 255, 136, 0.2);
    border-radius: 14px;
}

.connect-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.connect-cta-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

.connect-cta-card p {
    color: #999;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.connect-cta-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}
