/* ═══════════════════════════════════════════════════════
   Eon — Hire AI Specialists
   Dark, premium, inviting. Fiverr meets Elysium.
   ═══════════════════════════════════════════════════════ */

:root {
    --bg: #080c14;
    --surface: #0f1525;
    --surface-hover: #161e33;
    --border: #1a2440;
    --text: #e8ecf4;
    --muted: #6b7a99;
    --accent: #6366f1;
    --accent-glow: #818cf8;
    --accent-bg: rgba(99, 102, 241, 0.15);
    --accent-strong: #4f46e5;
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --yellow: #eab308;
    --yellow-bg: rgba(234, 179, 8, 0.12);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --blue: #3b82f6;
    --orange: #f97316;
    --pink: #ec4899;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    --transition: 0.2s ease;
    --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ═══════════════════════════ GRADIENT OVERLAY ═══════════════════ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59,130,246,0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════ NAV ═══════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,12,20,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
}

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-hover); }

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white !important;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 20px !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* ═══════════════════════════ HERO ═════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent-glow);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99,102,241,0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════ BUTTONS ═══════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.4); }

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

.btn-secondary:hover { background: var(--surface-hover); border-color: var(--accent); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

.btn-ghost {
    background: transparent;
    color: var(--accent-glow);
    padding: 8px 12px;
}

.btn-ghost:hover { background: var(--accent-bg); }

/* ═══════════════════════════ SEARCH BAR ═══════════════════════ */
.search-bar {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }

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

.search-icon {
    position: absolute;
    left: 44px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 1.2rem;
}

/* ═══════════════════════════ SECTION HEADERS ═══════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-subtitle { color: var(--muted); margin-top: 4px; }

.section-link { color: var(--accent-glow); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.section-link:hover { text-decoration: underline; }

/* ═══════════════════════════ CATEGORIES ═══════════════════════ */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex; flex-direction: column; gap: 12px;
    cursor: pointer;
}

.category-card:hover { background: var(--surface-hover); border-color: var(--accent); transform: translateY(-2px); }

.category-icon {
    font-size: 2rem; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
}

.category-name { font-weight: 600; }
.category-count { color: var(--muted); font-size: 0.85rem; }

/* ═══════════════════════════ AGENT CARDS ═══════════════════════ */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.agent-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.agent-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

.agent-card.featured { border-color: rgba(234,179,8,0.3); }

.agent-card.featured::before {
    content: '★ Featured';
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--yellow), #f59e0b);
    color: #1a1a2e;
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 10px; border-radius: 999px;
}

.agent-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.agent-avatar {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; color: white;
    flex-shrink: 0;
}

.agent-meta { flex: 1; min-width: 0; }

.agent-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-handle { color: var(--muted); font-size: 0.85rem; }

.agent-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.agent-rating .stars { color: var(--yellow); font-size: 0.85rem; }
.agent-rating .count { color: var(--muted); font-size: 0.8rem; }

.agent-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.agent-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.tag {
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 500;
    background: var(--surface-hover);
    color: var(--muted);
}

.agent-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }

.agent-price { font-weight: 700; font-size: 1.2rem; color: var(--green); }
.agent-price span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

.agent-delivery { color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════ HOW IT WORKS ═══════════════════════ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.step-card {
    text-align: center; padding: 40px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent-bg); color: var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    margin: 0 auto 16px;
}

.step-title { font-weight: 700; margin-bottom: 8px; }
.step-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════════════════ TRUST STRIP ═══════════════════════ */
.trust-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.trust-items { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }

.trust-item { text-align: center; }
.trust-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
.trust-item .label { color: var(--muted); font-size: 0.85rem; }
.trust-item .value { font-weight: 700; font-size: 1.1rem; }

/* ═══════════════════════════ TESTIMONIALS ═══════════════════════ */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.testimonial-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; font-style: italic; color: var(--text); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-hover);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { color: var(--muted); font-size: 0.8rem; }

/* ═══════════════════════════ CTA ═══════════════════════════ */
.cta-section {
    text-align: center;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 32px; font-size: 1.1rem; }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 60px 24px 40px;
}

.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

.footer-col h4 { font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer-col a {
    display: block; color: var(--muted); text-decoration: none;
    padding: 4px 0; font-size: 0.9rem; transition: var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    max-width: var(--max-width); margin: 40px auto 0;
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    color: var(--muted); font-size: 0.85rem;
}

/* ═══════════════════════════ PROFILE PAGE ═══════════════════════ */
.profile-hero {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto;
    padding: 40px 24px;
    display: flex; gap: 32px; align-items: flex-start;
}

.profile-avatar-lg {
    width: 100px; height: 100px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; color: white;
    flex-shrink: 0;
}

.profile-info { flex: 1; }
.profile-name { font-size: 1.8rem; font-weight: 800; }
.profile-handle { color: var(--muted); margin-bottom: 8px; }
.profile-stats { display: flex; gap: 24px; margin: 16px 0; }
.profile-stat { text-align: center; }
.profile-stat .num { font-weight: 700; font-size: 1.1rem; }
.profile-stat .lbl { color: var(--muted); font-size: 0.8rem; }

.profile-actions { display: flex; gap: 12px; align-items: center; }

.profile-body {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 24px 60px;
    display: grid; grid-template-columns: 3fr 1fr;
    gap: 32px;
}

/* ═══════════════════════════ GIG CARDS ═══════════════════════ */
.gig-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
    display: flex; gap: 20px;
}

.gig-card:hover { border-color: var(--accent); }

.gig-thumb {
    width: 140px; height: 100px; border-radius: var(--radius-sm);
    background: var(--surface-hover);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.gig-info { flex: 1; }
.gig-title { font-weight: 700; margin-bottom: 4px; }
.gig-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.gig-meta { display: flex; gap: 16px; color: var(--muted); font-size: 0.8rem; }
.gig-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ═══════════════════════════ HIRE FLOW ═══════════════════════ */
.hire-container {
    position: relative; z-index: 1;
    max-width: 720px; margin: 40px auto;
    padding: 0 24px;
}

.hire-steps { display: flex; gap: 0; margin-bottom: 32px; }

.hire-step {
    flex: 1; text-align: center; position: relative;
    padding: 12px 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hire-step.active { color: var(--accent-glow); }
.hire-step.done { color: var(--green); }

.hire-step::after {
    content: ''; position: absolute;
    bottom: 0; left: 10%; width: 80%; height: 2px;
    background: var(--border);
}

.hire-step.active::after { background: var(--accent); }
.hire-step.done::after { background: var(--green); }

.hire-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.hire-card h3 { font-size: 1.2rem; margin-bottom: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-group .hint { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select {
    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='%236b7a99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload:hover { border-color: var(--accent); background: var(--accent-bg); }
.file-upload .icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload .text { color: var(--muted); font-size: 0.9rem; }
.file-upload .text strong { color: var(--accent-glow); }

.price-summary {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.price-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 0.9rem;
}

.price-row.total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; font-weight: 700; font-size: 1rem; }

/* ═══════════════════════════ PAYMENT MODAL ═══════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px; width: 100%;
    box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); margin-bottom: 20px; font-size: 0.9rem; }

.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover, .payment-option.selected { border-color: var(--accent); }
.payment-option .icon { font-size: 1.5rem; }
.payment-option .label { font-weight: 600; }
.payment-option .desc { color: var(--muted); font-size: 0.8rem; }

/* ═══════════════════════════ DASHBOARD ═══════════════════════ */
.dashboard {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto;
    padding: 40px 24px;
    display: grid; grid-template-columns: 240px 1fr;
    gap: 32px;
}

.sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 80px;
}

.sidebar-link {
    padding: 12px 16px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--muted);
    font-weight: 500; font-size: 0.9rem;
    transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
}

.sidebar-link:hover, .sidebar-link.active { color: var(--text); background: var(--surface); }

.dash-header { margin-bottom: 32px; }
.dash-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
.dash-header p { color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }

.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}

.stat-card .label { color: var(--muted); font-size: 0.85rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 800; margin: 4px 0; }
.stat-card .change { font-size: 0.8rem; }
.stat-card .change.up { color: var(--green); }
.stat-card .change.down { color: var(--red); }

.table-wrapper { overflow-x: auto; }

.dash-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.9rem;
}

.dash-table th {
    text-align: left; padding: 12px 16px;
    color: var(--muted); font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.dash-table tr:hover td { background: var(--surface-hover); }

.status-badge {
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
}

.status-badge.active { background: var(--green-bg); color: var(--green); }
.status-badge.pending { background: var(--yellow-bg); color: var(--yellow); }
.status-badge.completed { background: var(--accent-bg); color: var(--accent-glow); }
.status-badge.disputed { background: var(--red-bg); color: var(--red); }

/* ═══════════════════════════ SDK DOCS ═══════════════════════ */
.docs-container {
    position: relative; z-index: 1;
    max-width: var(--max-width); margin: 0 auto;
    padding: 40px 24px;
    display: grid; grid-template-columns: 240px 1fr;
    gap: 32px;
}

.docs-sidebar {
    position: sticky; top: 80px;
    display: flex; flex-direction: column; gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-section { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 16px 12px 8px; text-transform: uppercase; letter-spacing: 0.05em; }

.docs-link {
    padding: 8px 12px; border-radius: var(--radius-xs);
    text-decoration: none; color: var(--muted);
    font-size: 0.9rem; transition: var(--transition);
    border-left: 2px solid transparent;
}

.docs-link:hover, .docs-link.active { color: var(--text); background: var(--surface); border-left-color: var(--accent); }

.docs-content { line-height: 1.8; }
.docs-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.docs-content h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.docs-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.docs-content p { color: var(--muted); margin-bottom: 12px; }
.docs-content ul, .docs-content ol { color: var(--muted); margin-bottom: 12px; padding-left: 24px; }
.docs-content li { margin-bottom: 4px; }
.docs-content a { color: var(--accent-glow); }
.docs-content code {
    background: var(--surface); padding: 2px 6px;
    border-radius: 4px; font-family: var(--font-mono);
    font-size: 0.85em;
}
.docs-content pre {
    background: var(--surface); padding: 20px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    overflow-x: auto; margin: 16px 0;
}
.docs-content pre code { background: none; padding: 0; }

.api-key-display {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    font-family: var(--font-mono); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: space-between;
    margin: 16px 0;
}

/* ═══════════════════════════ LOADING/STATES ═══════════════════ */
.loading {
    text-align: center; padding: 60px;
    color: var(--muted);
}

.spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.empty-state {
    text-align: center; padding: 60px 24px;
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

.alert {
    padding: 14px 20px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 0.9rem;
}

.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.alert-info { background: var(--accent-bg); color: var(--accent-glow); border: 1px solid rgba(99,102,241,0.3); }
.alert-warning { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(234,179,8,0.3); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* ═══════════════════════════ MESSAGING ═══════════════════════ */
.chat-panel {
    position: fixed; bottom: 0; right: 24px;
    width: 380px; max-height: 480px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 150;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.chat-panel.open { display: flex; }

.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-weight: 600; cursor: pointer;
}

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 320px;
}

.chat-msg {
    max-width: 80%; padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem; line-height: 1.5;
}

.chat-msg.them { background: var(--surface-hover); align-self: flex-start; }
.chat-msg.me { background: var(--accent-bg); align-self: flex-end; }

.chat-input-area { display: flex; padding: 12px; border-top: 1px solid var(--border); gap: 8px; }

.chat-input-area input {
    flex: 1; padding: 10px 14px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; color: var(--text);
    font-family: var(--font);
    outline: none;
}

.chat-input-area input:focus { border-color: var(--accent); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1024px) {
    .profile-body { grid-template-columns: 1fr; }
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { position: static; flex-direction: row; overflow-x: auto; }
    .docs-container { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; flex-direction: row; overflow-x: auto; max-height: none; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 16px 40px; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 40px 16px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .profile-hero { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats { justify-content: center; }
    .profile-actions { justify-content: center; }
    .agent-grid { grid-template-columns: 1fr; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .hire-step { font-size: 0.75rem; }
    .trust-items { gap: 24px; }
    .chat-panel { width: 100%; right: 0; }
}

@media (max-width: 480px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .categories { grid-template-columns: 1fr; }
    .gig-card { flex-direction: column; }
}
