:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --card: #16203400;
  --panel: #16233d;
  --line: #24324f;
  --fg: #e8edf6;
  --muted: #98a6c0;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --bg-soft: #eef2f9;
    --panel: #ffffff;
    --line: #e2e8f2;
    --fg: #16233d;
    --muted: #5a6b88;
    --shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Raleway", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.18), transparent),
    var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
}

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* --- top bar --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}

/* --- hero --- */
.hero { padding: 70px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.gradient { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; font-size: 1rem;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { text-decoration: none; box-shadow: 0 12px 34px rgba(37, 99, 235, .45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); }
.btn-google { background: #fff; color: #1f2937; }
.btn-google:hover { text-decoration: none; box-shadow: var(--shadow); }
.btn-google svg { width: 18px; height: 18px; }

/* --- feature cards --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0; }
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.feature h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature .ico { font-size: 1.6rem; }

/* --- dashboard --- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel h2 { margin: 0 0 4px; font-size: 1.15rem; }
.panel .sub { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }

.who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
input[type="text"], input[type="number"], textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--fg);
  font: inherit;
}
textarea { min-height: 62px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

.jobs { display: grid; gap: 12px; }
.job {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  background: var(--bg-soft);
}
.job h4 { margin: 0 0 6px; }
.job .meta { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); text-align: center; padding: 26px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--good); color: #06281c; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s;
}
.toast.show { opacity: 1; }
.toast.err { background: #f87171; color: #3b0a0a; }

.footer { color: var(--muted); font-size: .85rem; padding: 40px 0; text-align: center; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; border: 1px solid var(--line); color: var(--muted);
}
.spinner {
  width: 18px; height: 18px; border: 3px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
