/*
 * MarkShot - Unified Stylesheet
 * 
 * This single CSS file covers all public and private pages.
 * 
 * External dependencies:
 * - Google Fonts: JetBrains Mono (400, 500, 700) & Space Grotesk (400, 500, 600, 700)
 *   <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
 *
 * Structure:
 * 1. CSS Variables
 * 2. Reset & Base
 * 3. Background Effects (Grid & Scanlines)
 * 4. Typography
 * 5. Navigation (Public & Dashboard variants)
 * 6. Buttons
 * 7. Forms
 * 8. Cards & Sections
 * 9. Tables
 * 10. Alerts & Callouts
 * 11. Code Blocks
 * 12. Page-specific: Landing
 * 13. Page-specific: Auth (Login/Register)
 * 14. Page-specific: Dashboard
 * 15. Page-specific: Settings
 * 16. Page-specific: Docs
 * 17. Page-specific: Static Pages
 * 18. Responsive Breakpoints
 */


/* =============================================================================
   1. CSS VARIABLES
   ============================================================================= */

:root {
    /* Backgrounds */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #0d0d14;

    /* Text */
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #5a5a70;

    /* Accent Colors */
    --accent-blue: #00d4ff;
    --accent-pink: #ff2d95;
    --accent-green: #00ff88;
    --accent-yellow: #ffbd2e;
    --accent-orange: #ff9500;

    /* Borders */
    --border-color: #2a2a3a;
    --border-focus: #00d4ff;

    /* Glows */
    --glow-blue: rgba(0, 212, 255, 0.3);
    --glow-pink: rgba(255, 45, 149, 0.3);

    /* Status */
    --error: #ff4757;
    --error-bg: rgba(255, 71, 87, 0.1);
    --success: #00ff88;
    --success-bg: rgba(0, 255, 136, 0.1);
    --warning: #ffbd2e;
    --warning-bg: rgba(255, 189, 46, 0.1);

    /* Spacing */
    --nav-height: 64px;
    --sidebar-width: 280px;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Flex column layout for pages with footer */
body.has-footer {
    display: flex;
    flex-direction: column;
}

body.has-footer main {
    flex: 1;
}


/* =============================================================================
   3. BACKGROUND EFFECTS (Grid & Scanlines)
   ============================================================================= */

/* Scanline overlay - add to body::before */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    z-index: 1000;
    opacity: 0.3;
}

/* Grid background - requires <div class="grid-bg"></div> as first child of body */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}


/* =============================================================================
   4. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Inline code */
code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    background: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-blue);
}

/* Lists */
ul, ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}


/* =============================================================================
   5. NAVIGATION
   ============================================================================= */

/* Base nav styles (shared) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

/* Logo */
.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(255, 45, 149, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Nav layout containers */
.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-links li {
    margin-bottom: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* Profile dropdown (dashboard nav) */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    padding-right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-trigger:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-dark);
}

.profile-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.profile-dropdown.open .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.profile-dropdown.open .profile-menu {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.profile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.profile-menu a.logout {
    color: var(--accent-pink);
}

/* Simple header link (auth pages) */
.header-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--accent-blue);
    text-decoration: none;
}


/* =============================================================================
   6. BUTTONS
   ============================================================================= */

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    text-decoration: none;
}

/* Button sizes */
.btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* Button variants */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    color: var(--bg-dark);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--glow-blue), 0 0 60px var(--glow-pink);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-warning {
    background: var(--accent-orange);
    color: var(--bg-dark);
}

.btn-warning:hover {
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Button loading state */
.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-spinner {
    display: block;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =============================================================================
   7. FORMS
   ============================================================================= */

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

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-label .required {
    color: var(--accent-pink);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:hover {
    border-color: #3a3a4a;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.form-input.error {
    border-color: var(--error);
    background: var(--error-bg);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-input.success {
    border-color: var(--accent-green);
}

/* Select inputs */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Form hints and errors */
.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.5rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* Form rows (side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* Form sections */
.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input {
    display: none;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox:hover .checkbox-box {
    border-color: var(--accent-blue);
}

.form-checkbox input:checked + .checkbox-box {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-box.error {
    border-color: var(--error);
}

.checkbox-box::after {
    content: '✓';
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-checkbox input:checked + .checkbox-box::after {
    opacity: 1;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-label strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Password visibility toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.75rem;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: var(--border-color);
    border-radius: 2px;
    transition: background 0.2s;
}

.strength-bar.active.weak { background: var(--error); }
.strength-bar.active.medium { background: var(--accent-yellow); }
.strength-bar.active.strong { background: var(--accent-green); }

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

.strength-text.weak { color: var(--error); }
.strength-text.medium { color: var(--accent-yellow); }
.strength-text.strong { color: var(--accent-green); }

/* Password requirements */
.requirements {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-darker);
    border-radius: 8px;
    display: none;
}

.requirements.show {
    display: block;
}

.requirements-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement .check {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: all 0.2s;
}

.requirement.met {
    color: var(--accent-green);
}

.requirement.met .check {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-dark);
}


/* =============================================================================
   8. CARDS & SECTIONS
   ============================================================================= */

/* Generic card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

/* Section container */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title .icon {
    opacity: 0.6;
}

.section-badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Form card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.form-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-card-header .icon {
    opacity: 0.6;
}

.form-card-body {
    padding: 1.5rem;
}

.form-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Info box */
.info-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-box .icon {
    color: var(--accent-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.info-box.warning {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.3);
}

.info-box.warning .icon {
    color: var(--accent-orange);
}

/* API Keys styles */
.key-name {
    font-weight: 500;
    color: var(--text-primary);
}

.key-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: var(--bg-darker);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.key-copy-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.key-copy-box code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
    word-break: break-all;
}

.key-copy-box.copied {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
}

.btn-success {
    background: var(--accent-green) !important;
    color: var(--bg-dark) !important;
    border-color: var(--accent-green) !important;
}

.key-created-content {
    padding: 1.5rem;
}

.actions-cell {
    text-align: right;
}

/* Settings page styles */
.settings-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-list {
    padding: 0;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.settings-row-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.settings-stats {
    display: flex;
    gap: 3rem;
    padding: 1.5rem;
}

.settings-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.settings-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-form {
    padding: 0;
}

.settings-form .settings-row {
    border-bottom: 1px solid var(--border-color);
}

.settings-form-fields {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-form-fields .form-group {
    max-width: 300px;
}

.settings-form-fields .btn {
    align-self: flex-start;
}

.section-danger {
    border-color: rgba(255, 45, 149, 0.3);
}

.section-danger .section-header {
    border-bottom-color: rgba(255, 45, 149, 0.3);
}

.section-danger .section-title {
    color: var(--accent-pink);
}

@media (max-width: 768px) {
    .settings-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}


/* =============================================================================
   9. TABLES
   ============================================================================= */

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

.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

.table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Parameters table (docs) */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.params-table th,
.params-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.params-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-card);
}

.params-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.params-table code {
    color: var(--accent-pink);
}

.param-required {
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
}

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


/* =============================================================================
   10. ALERTS & CALLOUTS
   ============================================================================= */

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert.hidden {
    display: none;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Alert variants */
.alert-warning {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.alert-warning .alert-title {
    color: var(--accent-orange);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.alert-error .alert-title,
.alert-error .alert-icon {
    color: var(--error);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.alert-success .alert-title,
.alert-success .alert-icon {
    color: var(--accent-green);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.alert-info .alert-title,
.alert-info .alert-icon {
    color: var(--accent-blue);
}

/* Callout (docs) */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.callout-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.callout-content p {
    margin-bottom: 0;
}

.callout-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.callout-info .callout-icon {
    color: var(--accent-blue);
}

.callout-warning {
    background: rgba(255, 189, 46, 0.1);
    border: 1px solid rgba(255, 189, 46, 0.2);
}

.callout-warning .callout-icon {
    color: var(--accent-yellow);
}

.callout-tip {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.callout-tip .callout-icon {
    color: var(--accent-green);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast .icon {
    color: var(--accent-green);
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--text-primary);
}


/* =============================================================================
   11. CODE BLOCKS
   ============================================================================= */

/* Code block container */
.code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.code-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.code-copy:hover {
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

.code-body {
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.code-body pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

/* Code tabs */
.code-tabs {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.code-tabs-header {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.code-tab {
    padding: 0.75rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.code-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.code-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
}

.code-tab-content {
    display: none;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

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

.code-tab-content pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

/* Syntax highlighting */
.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--accent-pink); }
.code-string { color: var(--accent-green); }
.code-function { color: var(--accent-blue); }
.code-variable { color: #f8c555; }
.code-operator { color: var(--text-secondary); }

/* Terminal (landing page) */
.terminal {
    background: var(--bg-darker);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.terminal-tab {
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.terminal-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    min-height: 300px;
}

.terminal-content {
    display: none;
}

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

.code-line {
    margin-bottom: 0.5rem;
}


/* =============================================================================
   12. PAGE-SPECIFIC: LANDING
   ============================================================================= */

/* Hero section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.hero-cta .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-cta .credits-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-note::before {
    content: '→';
    color: var(--accent-green);
}

/* Landing sections */
.landing-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.landing-section > .section-header {
    display: block !important;
    text-align: center;
    margin-bottom: 4rem;
    padding: 0;
    border-bottom: none;
    justify-content: initial;
    align-items: initial;
}

.landing-section > .section-header .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.landing-section > .section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: block;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 45, 149, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    opacity: 0.3;
}

.step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Pricing */
.pricing-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--accent-pink);
    position: relative;
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    color: var(--bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-credits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.pricing-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Guarantees */
.guarantees {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guarantee-icon {
    color: var(--accent-green);
    font-size: 1.25rem;
}

.enterprise-cta {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.enterprise-cta a {
    color: var(--accent-blue);
    text-decoration: none;
}

.enterprise-cta a:hover {
    text-decoration: underline;
}


/* =============================================================================
   13. PAGE-SPECIFIC: AUTH (Login/Register)
   ============================================================================= */

/* Auth page layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-page main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Auth page header - NOT fixed, simple flex layout */
.auth-page-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    background: transparent;
    border-bottom: none;
    height: auto;
}

/* Auth page footer - simple centered text */
.auth-page-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: transparent;
    border-top: none;
}

.auth-page-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-page-footer a:hover {
    color: var(--accent-blue);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.free-credits {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.free-credits .icon {
    font-size: 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =============================================================================
   14. PAGE-SPECIFIC: DASHBOARD
   ============================================================================= */

.dashboard {
    padding: calc(var(--nav-height) + 32px) 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-value.highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

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

.jobs-table th,
.jobs-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.jobs-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.jobs-table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

.jobs-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-status.processing {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
}

.job-status.queued {
    background: rgba(255, 189, 46, 0.15);
    color: var(--accent-yellow);
}

.job-status.completed {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.job-status.failed {
    background: var(--error-bg);
    color: var(--error);
}

.job-status .spinner {
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.job-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Empty state */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.pagination .page-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
    text-decoration: none;
}

.quick-action .icon {
    font-size: 1.5rem;
}

.quick-action-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.quick-action-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* =============================================================================
   15. PAGE-SPECIFIC: SETTINGS (styles defined earlier in dashboard section)
   ============================================================================= */


/* =============================================================================
   16. PAGE-SPECIFIC: DOCS
   ============================================================================= */

.docs-layout {
    min-height: 100vh;
    padding-top: var(--nav-height);
}

/* Docs sidebar */
.docs-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--nav-height));
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 1.5rem 0;
}

.docs-sidebar .sidebar-section {
    margin-bottom: 1.5rem;
}

.docs-sidebar .sidebar-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-sidebar .sidebar-nav {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.docs-sidebar .sidebar-nav a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

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

.docs-sidebar .sidebar-nav a.active {
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
}

.docs-sidebar .sidebar-nav .sub-item {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

/* Docs content */
.docs-content {
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    max-width: calc(var(--sidebar-width) + 900px);
}

.docs-content h1 {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.docs-content h2:first-of-type {
    margin-top: 2rem;
}

.docs-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    line-height: 1.75;
}

/* Intro box (docs) */
.intro-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 45, 149, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.intro-box p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Endpoint box */
.endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.endpoint-method {
    background: var(--accent-green);
    color: var(--bg-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Response codes */
.response-code {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.response-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.response-badge.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.response-badge.error {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.response-badge.warning {
    background: rgba(255, 189, 46, 0.15);
    color: var(--accent-yellow);
}

.response-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.response-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Steps (docs) */
.steps {
    counter-reset: step;
    margin-bottom: 1.5rem;
}

.steps .step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.steps .step::before {
    counter-increment: step;
    content: counter(step);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.steps .step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.steps .step-content p {
    margin-bottom: 0;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
}


/* =============================================================================
   17. PAGE-SPECIFIC: STATIC PAGES
   ============================================================================= */

.static-page {
    padding: calc(var(--nav-height) + 32px) 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.static-page .page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.static-page .page-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.static-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.static-page .content {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.static-page .content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.static-page .content h2:first-child {
    margin-top: 0;
}

.static-page .content p {
    margin-bottom: 1.25rem;
}

.static-page .content ul,
.static-page .content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.static-page .content li {
    margin-bottom: 0.5rem;
}

/* Company card (about page) */
.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.company-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-details {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.company-details .label {
    color: var(--text-muted);
}

/* Contact page - centered like auth but with nav */
.contact-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
}

.contact-page .contact-container {
    width: 100%;
    max-width: 480px;
}

.contact-page .contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-page .contact-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.contact-page .contact-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-page .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.contact-page .contact-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-page .contact-footer .response-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}


/* =============================================================================
   18. FOOTER
   ============================================================================= */

footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.company-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Simple footer (auth pages) */
.footer-simple {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: transparent;
    border-top: none;
}

.footer-simple a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-simple a:hover {
    color: var(--accent-blue);
}


/* =============================================================================
   19. RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 1024px) {
    /* Landing */
    .hero {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 4rem;
    }

    .features-grid,
    .steps-container,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps-container::before {
        display: none;
    }

    .guarantees {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Dashboard */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

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

    /* Docs */
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 99;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .sidebar-toggle {
        display: flex;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    nav {
        padding: 0 1rem;
    }

    /* Landing */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .landing-section {
        padding: 4rem 1.5rem;
    }

    /* Dashboard */
    .dashboard {
        padding: calc(var(--nav-height) + 16px) 1rem 1rem;
    }

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

    .jobs-table th:nth-child(3),
    .jobs-table td:nth-child(3) {
        display: none;
    }

    /* Settings */
    .settings-layout {
        padding: calc(var(--nav-height) + 16px) 1rem 1rem;
    }

    /* Docs */
    .docs-content {
        padding: 1.5rem 1rem;
    }

    /* Static pages */
    .static-page {
        padding: calc(var(--nav-height) + 16px) 1rem 3rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Auth */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }
}


/* =============================================================================
   20. UTILITY CLASSES
   ============================================================================= */

.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--accent-blue); }
.text-pink { color: var(--accent-pink); }
.text-green { color: var(--accent-green); }
.text-orange { color: var(--accent-orange); }
.text-error { color: var(--error); }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
