:root {
  --navy: #020714;
  --navy-soft: #10182b;
  --accent: #2e6bff;
  --accent-soft: #eaf0ff;
  --text: #12141a;
  --text-muted: #6b7280;
  --border: #e6e8ec;
  --bg: #f7f8fa;
  --white: #ffffff;
  --radius: 14px;
  --success: #1f9d55;
  --warn: #b7791f;
  --danger: #c53030;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-header .logo {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.site-header nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.site-header nav a { color: #cbd3e6; }
.site-header nav a.active, .site-header nav a:hover { color: #fff; }
.lang-select {
  background: transparent;
  color: #cbd3e6;
  border: 1px solid #3a4258;
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 6px;
}

/* ---------- Landing ---------- */
.landing-hero {
  background: radial-gradient(circle at 30% 20%, #10182b 0%, #020714 60%);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}
.landing-hero h1 {
  font-size: 26px;
  margin: 0 0 12px;
  font-weight: 700;
}
.landing-hero p {
  color: #b7c0d8;
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 14px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.lang-grid a {
  display: block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 13px;
}
.lang-grid a:hover { background: rgba(255,255,255,0.14); }

/* ---------- Cards / job list ---------- */
.page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 14px;
}
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 32px;
}
@media (min-width: 600px) {
  .job-grid { grid-template-columns: 1fr 1fr; }
}
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
  color: var(--text);
  position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.job-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.job-card .badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.job-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  padding-right: 50px;
}
.job-card p.summary {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.job-meta span {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 14px;
}

/* ---------- Job detail ---------- */
.job-detail-head {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.job-detail-head h1 { font-size: 20px; margin: 0 0 8px; }
.job-detail-head p.summary { color: var(--text-muted); font-size: 14px; margin: 0; }
.section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.section h2 { font-size: 15px; margin: 0 0 12px; }
.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.material-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.material-list .tag { color: var(--text-muted); font-size: 11px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.form-card h1 { font-size: 18px; margin: 0 0 6px; }
.form-card .hint { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field .field-note { color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--navy-soft); }
.btn.secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin: 16px 0; }
.alert.success { background: #eafaf0; color: var(--success); border: 1px solid #cdeedb; }
.alert.error { background: #fdecec; color: var(--danger); border: 1px solid #f6cfcf; }

.status-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-pill.submitted, .status-pill.pending { background: #fff6e5; color: var(--warn); }
.status-pill.approved, .status-pill.confirmed { background: #eafaf0; color: var(--success); }
.status-pill.rejected { background: #fdecec; color: var(--danger); }
.status-pill.paid { background: #eaf0ff; color: var(--accent); }
.status-pill.draft { background: #f0f1f3; color: var(--text-muted); }
.status-pill.published { background: #eafaf0; color: var(--success); }
.status-pill.closed { background: #f0f1f3; color: var(--text-muted); }

table.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.admin-table th, table.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; }

.share-box {
  background: var(--accent-soft);
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  word-break: break-all;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  padding: 24px 16px 40px;
}

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 200px;
  background: var(--navy);
  color: #cbd3e6;
  padding: 20px 0;
  flex-shrink: 0;
}
.admin-sidebar .logo { color: #fff; font-weight: 700; font-size: 14px; padding: 0 20px 20px; }
.admin-sidebar a {
  display: block;
  color: #cbd3e6;
  padding: 10px 20px;
  font-size: 13px;
}
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 24px; max-width: 1000px; }
.admin-main h1 { font-size: 20px; margin: 0 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.stat-card .num { font-size: 22px; font-weight: 700; }
.stat-card .label { font-size: 12px; color: var(--text-muted); }

@media (max-width: 680px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px 0; }
  .admin-sidebar .logo { display: none; }
  .admin-sidebar a { padding: 8px 14px; white-space: nowrap; }
}
