:root {
  --bg: #080e15;
  --surface: #141d2b;
  --surface-2: #101824;
  --ink: #f3f7ff;
  --muted: #9aa7ba;
  --line: #253143;
  --brand: #f7bb38;
  --brand-dark: #2c2416;
  --green: #36c878;
  --green-dark: #153f35;
  --danger: #e35a5a;
  --soft: #1d2838;
  --shadow: 0 20px 54px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 88% 2%, rgba(247, 187, 56, .12), transparent 19rem),
    linear-gradient(180deg, #111927 0%, var(--bg) 30%, #070c12 100%);
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 70% 18%, rgba(247, 187, 56, .18), transparent 18rem),
    linear-gradient(180deg, #111927 0%, #080e15 56%, #05090e 100%);
  color: var(--ink);
  transition: opacity .28s ease, visibility .28s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.splash-logo {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--brand);
  border-radius: 22px;
  background: #0d1420;
  color: var(--brand);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(247, 187, 56, .07), 0 20px 60px rgba(247, 187, 56, .12);
}

.splash h1 {
  margin: 8px 0 0;
  font-size: 54px;
  line-height: 1;
}

.splash p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.28;
}

.splash-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.splash-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.splash-button {
  width: min(100%, 420px);
  min-height: 72px;
  border: 0;
  border-radius: 28px;
  background: var(--brand);
  color: #101010;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(247, 187, 56, .22);
}

.app-shell {
  max-width: 780px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 88px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #0d1420;
  color: var(--brand);
  border: 2px solid var(--brand);
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(247, 187, 56, .07), var(--shadow);
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 6px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
}

h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #0b0b0b;
  box-shadow: 0 18px 38px rgba(247, 187, 56, .22);
  cursor: pointer;
  padding: 0 12px;
}

.install-button span {
  display: block;
  font-size: 56px;
  line-height: 56px;
  font-weight: 900;
}

.install-button b {
  display: none;
}

.notice, .ad-strip, .panel, .job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: end;
  padding: 20px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 105, 85, .96), rgba(13, 49, 43, .98)),
    #0d312b;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  max-width: 680px;
  margin: 10px 0 8px;
  font-size: 27px;
  line-height: 1.12;
}

.hero-panel p {
  max-width: 690px;
  margin: 0;
  color: #d8e7e2;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe08a;
  font-size: 13px;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #3de29d;
  box-shadow: 0 0 0 5px rgba(61, 226, 157, .14);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-stats div {
  display: grid;
  gap: 4px;
  min-height: 100px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.hero-stats b {
  font-size: 26px;
}

.hero-stats span {
  color: #d8e7e2;
  font-size: 13px;
}

.notice {
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.notice span, .ad-strip span, .muted, .tiny {
  color: var(--muted);
}

.notice div {
  display: grid;
  gap: 3px;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
  backdrop-filter: blur(10px);
}

.role-tab, .bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 22px;
  padding: 18px 12px;
  cursor: pointer;
  font-weight: 700;
}

.role-tab.active, .bottom-nav button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.view { display: none; }
.view.active { display: block; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.quick-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  align-content: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 33, 29, .04);
}

.quick-card b {
  font-size: 16px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.danger-card {
  border-color: #ffd6d6;
  background: #fff4f4;
}

.danger-card b {
  color: var(--danger);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.hidden-filter {
  display: none;
}

.job-kind-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
}

.job-kind-tab {
  min-height: 58px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
}

.job-kind-tab.active {
  background: var(--brand);
  color: #101010;
}

.sos-inline {
  width: 100%;
  min-height: 58px;
  margin: 0 0 18px;
  border: 1px solid rgba(227, 90, 90, .36);
  border-radius: 24px;
  background: rgba(227, 90, 90, .12);
  color: #ff9b9b;
  font-weight: 800;
  cursor: pointer;
}

.search-box {
  width: 100%;
  min-height: 92px;
  margin-bottom: 24px;
  border-radius: 28px;
  font-size: 28px;
  background: var(--surface-2);
}

.city-chips {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 18px;
  scrollbar-width: none;
}

.city-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 28px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #101010;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(23, 33, 29, .02);
}

textarea { resize: vertical; }

.ad-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #211b12, var(--surface));
  border-color: #4b3e26;
  box-shadow: var(--shadow);
}

.ad-strip div {
  display: grid;
  gap: 3px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px;
}

.section-head h2 { margin: 0; }

#jobCount {
  min-width: 34px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 700;
}

.job-list {
  display: grid;
  gap: 24px;
}

.job-card {
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.job-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .34);
}

.job-top, .job-meta, .job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.job-top {
  justify-content: space-between;
  margin-bottom: 8px;
}

.job-card h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.18;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--green-dark);
  color: #9df3bd;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.warn { background: #3d331f; color: #ffd37b; }
.badge.closed { background: #232d3a; color: var(--muted); }
.badge.danger { background: #ffe5e5; color: var(--danger); }
.badge.urgent { background: #4f2719; color: #ffb28a; }
.badge.verified { background: #183f33; color: #a7f5c4; }

.job-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 24px;
  margin: 22px 0;
}

.job-meta span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  padding: 8px 20px;
}

.job-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.primary, .secondary, .danger {
  border: 0;
  border-radius: 28px;
  padding: 24px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 26px;
}

.primary { background: var(--green); color: #08100c; box-shadow: 0 12px 28px rgba(54, 200, 120, .17); }
.secondary { background: var(--soft); color: var(--muted); }
.danger { background: var(--danger); color: #fff; }
.full { width: 100%; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.panel {
  padding: 28px;
  box-shadow: var(--shadow);
}

.compact {
  align-self: start;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel form, form.panel {
  display: grid;
  gap: 12px;
}

.fee-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.fee-box b { color: var(--brand); }

.guard-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #5a4524;
  border-radius: 20px;
  background: #2a2115;
  color: #ffd37b;
}

.guard-box b {
  color: var(--brand);
}

.guard-box span {
  color: #d8c49a;
}

.hidden {
  display: none !important;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--ink);
}

.check-row input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.backup-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}

.backup-row span {
  color: var(--muted);
}

.mine-empty {
  display: grid;
  gap: 8px;
  text-align: center;
}

.contact-row {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.metrics div {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics b { font-size: 24px; }
.metrics span { color: var(--muted); }

.pending-list {
  display: grid;
  gap: 10px;
}

.payment-card {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #fff;
}

.payment-card span, .payment-card small {
  color: #cbd8d2;
}

dialog {
  width: min(94vw, 520px);
  border: 0;
  border-radius: 30px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(10, 15, 13, .48);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 32px;
  background: var(--surface);
  color: var(--ink);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  font-size: 24px;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(100vw, 780px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(10, 16, 24, .96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.tiny {
  font-size: 12px;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .app-shell { padding: 24px 32px 126px; }
  h1 { font-size: 38px; }
  .tagline { font-size: 22px; }
  .hero-panel, .toolbar, .split, .grid-two, .metrics, .quick-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 17px; }
  .hero-panel h2 { font-size: 23px; }
  .ad-strip { align-items: stretch; flex-direction: column; }
  .job-top { align-items: flex-start; flex-direction: column; }
  .job-actions { justify-content: stretch; }
  .job-actions button { width: 100%; }
  .install-button {
    min-width: 96px;
    padding: 0;
  }
}

@media (max-width: 520px) {
  .app-shell { padding: 18px 18px 112px; }
  .brand-mark { width: 72px; height: 72px; font-size: 22px; }
  h1 { font-size: 30px; }
  .tagline { font-size: 18px; }
  .install-button { min-width: 78px; height: 78px; }
  .install-button span { font-size: 46px; }
  .notice { display: none; }
  .role-tab { padding: 16px 8px; font-size: 18px; }
  .job-kind-tab { min-height: 54px; font-size: 16px; }
  .search-box { min-height: 74px; font-size: 20px; }
  .chip { min-height: 56px; padding: 0 20px; font-size: 18px; }
  .toolbar { display: none; }
  .job-card { padding: 22px; border-radius: 24px; }
  .job-card h3 { font-size: 28px; }
  .job-meta { font-size: 18px; }
  .badge { font-size: 17px; }
  .primary, .secondary, .danger { font-size: 22px; padding: 20px; }
  .bottom-nav button { font-size: 18px; }
  .splash h1 { font-size: 44px; }
  .splash p { font-size: 20px; }
  .splash-logo { width: 84px; height: 84px; }
}
