/* ===== Auth screen ===== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo { font-size: 34px; margin-bottom: 6px; }
.auth-brand h1 { font-size: 22px; margin-bottom: 6px; }
.auth-form.hidden { display: none; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13.5px; }
.link-accent { color: var(--amber-dark); font-weight: 600; }

/* ===== Topbar — dark console feel ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 62px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.topbar-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
}
.nav-link.active, .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.topbar-right { display: flex; align-items: center; gap: 14px; position: relative; }
.topbar-right .muted { color: rgba(255,255,255,0.6); }
.topbar-right .btn-outline { border-color: rgba(255,255,255,0.25); color: #fff; }
.topbar-right .btn-outline:hover { border-color: #fff; }

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  position: relative;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: inherit;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.notif-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}
.notif-dropdown {
  position: absolute;
  top: 44px; right: 90px;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.notif-item:last-child { border-bottom: none; }
.notif-item .notif-title { font-weight: 600; margin-bottom: 2px; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ===== Online/offline toggle ===== */
.online-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.online-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); }
.online-toggle input { display: none; }
.toggle-slider {
  width: 40px; height: 22px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  position: relative;
  transition: background .15s ease;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s ease;
}
.online-toggle input:checked + .toggle-slider { background: var(--green); }
.online-toggle input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ===== Verification banner ===== */
.verification-banner {
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.verification-banner.pending { background: #FEF3E2; color: var(--amber-dark); }
.verification-banner.rejected { background: var(--red-bg); color: var(--red); }

/* ===== Main layout ===== */
.main-content { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }
.main-content h2 { font-size: 21px; margin-bottom: 14px; }
.view.hidden { display: none; }
.sub-view.hidden { display: none; }

/* ===== Job cards ===== */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { padding: 16px 18px; }
.job-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.job-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.job-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.job-fare { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.job-actions { display: flex; gap: 8px; margin-top: 12px; }
.job-actions .btn { flex: 1; }
.quote-count-pill {
  background: var(--blue-bg); color: var(--blue);
  font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.my-quote-pill {
  background: var(--green-bg); color: var(--green);
  font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

/* ===== Modal (shared) ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,33,61,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal { width: 100%; max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 20px; overflow-y: auto; }
.history-item { display: flex; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.history-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 5px; flex-shrink: 0; }

@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 8px; }
  .nav-link { padding: 8px; font-size: 12px; }
  .online-label { display: none; }
  .notif-dropdown { right: 10px; width: 90vw; }
}
