:root {
  --bg: #0a0a0b;
  --bg-card: #151517;
  --amber: #ff6a1a;
  --amber-dark: #e5570a;
  --text: #f5f5f4;
  --muted: #9a9a9e;
  --border: #262629;
  --green: #33c17a;
  --red: #e6584f;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--red); }

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(10,10,11,0.95); backdrop-filter: blur(6px);
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.logo { font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo span { color: var(--amber); }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, var(--amber), var(--amber-dark));
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.marketing-nav { display: flex; gap: 30px; }
.marketing-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.marketing-nav a:hover { color: var(--text); }
.marketing-nav a.soon { opacity: 0.5; cursor: default; }
.marketing-nav a.soon:hover { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.login-link { background: none; border: none; color: var(--amber); font-weight: 700; font-size: 0.92rem; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.user-email { color: var(--muted); font-size: 0.85rem; margin-right: 4px; }

.subnav { border-bottom: 1px solid var(--border); background: #0d0d0f; }
.subnav .nav { display: flex; gap: 22px; padding: 12px 0; overflow-x: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--amber); }
.notif-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 5px; vertical-align: middle; }

/* ---- Static content / SEO pages ---- */
.content-page { max-width: 720px; padding-bottom: 60px; }
.content-page h1 { font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 16px; }
.content-page .lede-content { color: var(--muted); font-size: 1.05rem; margin-bottom: 8px; }
.content-section { margin-top: 42px; }
.content-section h2 { font-size: 1.4rem; margin: 0 0 14px; letter-spacing: -0.01em; }
.content-section h3 { font-size: 1.05rem; margin: 0 0 6px; }
.content-section p { color: #cfcfcd; margin: 0 0 12px; }
.steps-list, .role-list { color: #cfcfcd; padding-left: 22px; }
.steps-list li, .role-list li { margin-bottom: 10px; line-height: 1.5; }
.faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.cta-section { text-align: center; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-section h2 { text-align: center; }
.cta-section .hero-cta-row { justify-content: center; }
.content-page a { color: var(--amber); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }

.btn { border: none; border-radius: var(--radius); padding: 10px 18px; font-weight: 600; cursor: pointer; font-size: 0.9rem; font-family: inherit; }
.btn-primary { background: var(--amber); color: #1a0d00; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-outline-dark { background: #17171a; color: var(--text); border: 1px solid #2c2c30; }
.btn-outline-dark:hover { border-color: var(--amber); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 10px; }

/* ---- Marketing hero ---- */
.hero-marketing {
  position: relative; padding: 90px 0 60px; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(255,106,26,0.10), transparent 55%),
    linear-gradient(180deg, #0a0a0b, #0a0a0b);
}
.hero-marketing::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 60px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,106,26,0.12);
  border: 1px solid rgba(255,106,26,0.4); color: var(--amber); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero-marketing h1 {
  font-size: 3.4rem; line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px;
}
.hero-marketing h1 .line-orange { color: var(--amber); display: block; }
.hero-marketing .lede { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 0 34px; }
.hero-marketing .lede br { display: block; content: ""; margin-top: 4px; }
.hero-cta-row { display: flex; gap: 14px; margin-bottom: 46px; flex-wrap: wrap; }
.stats-row { display: flex; gap: 46px; flex-wrap: wrap; }
.stat-item .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--amber); letter-spacing: -0.02em; }
.stat-item .stat-label { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; margin-top: 2px; }

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 2rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); max-width: 620px; }

.filters { display: flex; gap: 12px; margin-bottom: 20px; }
select, input, textarea {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: var(--radius); font-family: inherit; font-size: 0.92rem; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card > * + * { margin-top: 12px; }
.card h3 { margin: 0 0 6px; }

.job-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.job-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.job-card .job-main h4 { margin: 0 0 4px; }
.job-card .job-meta { color: var(--muted); font-size: 0.88rem; margin: 2px 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-cat-bar { background: rgba(255,106,26,0.15); color: var(--amber); }
.badge-cat-security { background: rgba(51,193,122,0.15); color: var(--green); }
.badge-cat-kitchen { background: rgba(79,168,255,0.15); color: #4fa8ff; }
.badge-status-pending { background: rgba(154,160,170,0.15); color: var(--muted); }
.badge-status-accepted { background: rgba(51,193,122,0.15); color: var(--green); }
.badge-status-rejected { background: rgba(230,88,79,0.15); color: var(--red); }
.job-pay { font-weight: 700; font-size: 1.1rem; color: var(--amber); }

.banner { background: rgba(245,165,36,0.1); border: 1px solid var(--amber); border-radius: var(--radius); padding: 12px 16px; }

#mapView { height: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-card); color: var(--text); }
.map-pin {
  background: var(--amber); color: #1a1200; font-weight: 800; font-size: 0.75rem;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; border: 2px solid #1a1200;
}
.map-pin span { transform: rotate(45deg); }
.map-pin.cat-security { background: var(--green); }
.map-pin.cat-kitchen { background: #4fa8ff; }

.btn-shortlist { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.btn-shortlist.active { border-color: var(--amber); color: var(--amber); }
.job-actions { display: flex; gap: 8px; align-items: center; }

.job-detail-header h3 { margin: 0 0 4px; }
.job-detail-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.job-detail-row:last-of-type { border-bottom: none; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 5000; padding: 20px; }
.modal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 380px; position: relative; }
.modal-card > * + * { margin-top: 12px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }

.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 640px) {
  .nav { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
}
