:root {
    --bg: #0a0a0f;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-bright: rgba(255,255,255,0.15);
    --gradient: linear-gradient(135deg, #E43DFF, #A06EF5, #6FA4E8, #3CCFD3, #23E0BE);
    --gradient-text: linear-gradient(90deg, #E43DFF, #A06EF5, #6FA4E8, #3CCFD3);
    --accent: #A06EF5;
    --accent-dim: rgba(160, 110, 245, 0.15);
    --green: #23E0BE;
    --green-dim: rgba(35, 224, 190, 0.12);
    --danger: #ff4466;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.4);
    --nav-h: 60px;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* ── Scrolling ticker ── */
.ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-item .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

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

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--border-bright);
    background: var(--bg-card);
}

.nav-link.nav-signup-btn {
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 600;
}

.nav-link.nav-signup-btn:hover {
    opacity: 0.9;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: calc(32px + var(--nav-h) + 60px) 24px 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(160,110,245,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(35, 224, 190, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text);
}

.hero h1 .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
}

.hero-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

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

.hero-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ── Inputs & Buttons ── */
.input {
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

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

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

textarea.input {
    resize: vertical;
    min-height: 60px;
}

.btn-primary {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-bright);
}

/* ── Section ── */
.section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* ── Job Cards ── */
.jobs-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.2s;
}

.job-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
}

.job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.job-reward {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(35, 224, 190, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.job-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-completed {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}

.job-pending {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Job Form ── */
.job-form {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.job-apply-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(160, 110, 245, 0.25);
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.job-apply-btn:hover {
    background: rgba(160, 110, 245, 0.2);
    border-color: var(--accent);
}

.job-form-fields {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.job-form-fields.open {
    display: flex;
}

.job-form-msg {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
}

.job-form-msg.msg-ok { color: var(--green); background: var(--green-dim); }
.job-form-msg.msg-err { color: var(--danger); background: rgba(255,68,102,0.1); }

/* ── Upload ── */
.upload-mini {
    border: 1px dashed var(--border-bright);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-mini:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-mini input { display: none; }
.upload-mini-label { font-size: 12px; color: var(--text-muted); }
.upload-mini-preview { max-width: 100%; max-height: 100px; border-radius: 6px; margin-top: 8px; display: none; }

/* ── Submissions ── */
.submissions-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.submissions-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sub-item-info { flex: 1; min-width: 0; }
.sub-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.sub-item-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sub-item-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    border-radius: 6px;
}

.sub-item-status.s-pending { color: var(--text-muted); background: rgba(255,255,255,0.05); }
.sub-item-status.s-approved { color: var(--green); background: var(--green-dim); }
.sub-item-status.s-declined { color: var(--danger); background: rgba(255,68,102,0.1); }

.sub-item-tx { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.sub-item-tx a { color: var(--accent); text-decoration: none; }
.sub-item-tx a:hover { text-decoration: underline; }

.submissions-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 24px; }

/* ── Signup Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-card {
    background: #151520;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.modal-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

.modal-form { display: flex; flex-direction: column; gap: 12px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-msg { font-size: 12px; margin-top: 10px; padding: 8px 12px; border-radius: 6px; }
.modal-msg.msg-ok { color: var(--green); background: var(--green-dim); }
.modal-msg.msg-err { color: var(--danger); background: rgba(255,68,102,0.1); }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    margin-top: auto;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero-form { flex-direction: column; }
    .job-header { flex-direction: column; gap: 8px; }
    .sub-item { flex-direction: column; align-items: flex-start; }
    .ticker { display: none; }
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .navbar { top: 0; }
}
