* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: "Segoe UI", system-ui, sans-serif; background: #0f1115; color: #e8eaf0; }
header { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #171a21; border-bottom: 1px solid #262b36; position: sticky; top: 0; z-index: 10; }
h1 { font-size: 20px; }
.header-actions { display: flex; gap: 8px; }
.btn { background: #262b36; color: #e8eaf0; border: 1px solid #353b48; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #333a48; }
.btn.primary { background: #3b6ef6; border-color: #3b6ef6; }
.btn.primary:hover { background: #2f5cd8; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.danger { color: #ff7b72; }

#filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; align-items: center; }
#filters input, #filters select { background: #171a21; border: 1px solid #353b48; color: #e8eaf0; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
#filters input[type=search] { flex: 1; min-width: 220px; }
.chk { display: flex; gap: 6px; align-items: center; font-size: 14px; color: #b9c0cf; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 10px; }
.chip { background: #1d2330; border: 1px solid #2c3547; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; color: #cfd6e4; }
.chip.active { background: #3b6ef6; border-color: #3b6ef6; color: #fff; }
.chip .cnt { opacity: .7; margin-left: 4px; }

#jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; padding: 6px 22px 40px; }
.job { background: #171a21; border: 1px solid #262b36; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.job:hover { border-color: #3b6ef6; }
.job-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.job-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { color: #7ea2ff; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge.ejobs { background: #123c2b; color: #4ade80; }
.badge.bestjobs { background: #3a2b12; color: #fbbf24; }
.badge.linkedin { background: #12304a; color: #60a5fa; }
.badge.olx { background: #2b1216; color: #f472b6; }
.badge.undelucram { background: #0f2b3a; color: #22d3ee; }
.badge.hipo { background: #2b1b4a; color: #c4b5fd; }
.badge.romjob { background: #1f2b12; color: #a3e635; }
.badge.jobzz { background: #3a2b12; color: #fbbf24; }
.badge.posturi { background: #122b1a; color: #86efac; }
.badge.indeed { background: #1a2a12; color: #bef264; }
.badge.remote { background: #2b1b4a; color: #c4b5fd; }
.badge.nodate { background: #2a2f3a; color: #9aa3b5; }
.job-company { color: #aab3c5; font-size: 14px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8b93a7; }
.job-salary { color: #4ade80; font-weight: 600; font-size: 14px; }
.job-date { margin-top: auto; font-size: 12px; color: #8b93a7; }
.empty { padding: 60px 22px; text-align: center; color: #8b93a7; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }

.muted { color: #8b93a7; font-size: 13px; }

/* ---------- autentificare ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.overlay.hidden { display: none; }
#auth-box {
  background: linear-gradient(160deg, #1c2030, #12141d);
  border: 1px solid #2c3242; border-radius: 20px;
  padding: 34px 32px 26px; width: 400px; max-width: 92vw;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: auth-in .3s ease-out;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-logo-icon {
  font-size: 32px; width: 56px; height: 56px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b6ef6, #7c3aed);
  border-radius: 15px; box-shadow: 0 8px 24px rgba(59,110,246,.4);
}
.auth-logo-title { font-size: 20px; font-weight: 800; }
.auth-logo-sub { font-size: 12.5px; color: #8b93a7; margin-top: 2px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 5px; background: #0f1115; border-radius: 11px; }
.auth-tabs .chip { flex: 1; padding: 9px; border: none; background: transparent; color: #8b93a7; font-weight: 600; font-size: 14px; border-radius: 9px; cursor: pointer; }
.auth-tabs .chip.active { background: #3b6ef6; color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form.hidden { display: none; }
.field { position: relative; display: flex; align-items: center; background: #0f1115; border: 1px solid #353b48; border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: #3b6ef6; box-shadow: 0 0 0 3px rgba(59,110,246,.18); }
.field-icon { position: absolute; left: 13px; font-size: 14px; opacity: .65; pointer-events: none; }
.field input { width: 100%; background: none; border: none; outline: none; color: #e8eaf0; font-size: 15px; padding: 12px 14px 12px 40px; }
.field input::placeholder { color: #8b93a7; opacity: .8; }
.auth-submit {
  background: linear-gradient(135deg, #3b6ef6, #7c3aed); border: none; border-radius: 11px;
  color: #fff; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px;
  box-shadow: 0 8px 24px rgba(59,110,246,.35); transition: filter .15s, transform .12s;
}
.auth-submit:hover { filter: brightness(1.12); transform: translateY(-1px); }
.link-btn { background: none; border: none; color: #7ea2ff; cursor: pointer; font-size: 13px; padding: 4px 0; text-align: center; }
.link-btn:hover { color: #a5bcff; }
.auth-hint { font-size: 12.5px; text-align: center; margin-top: -4px; }
#auth-msg { margin-top: 14px; text-align: center; font-size: 13px; min-height: 18px; font-weight: 500; }
#auth-msg.ok { color: #4ade80; }
#auth-msg.err { color: #f87171; }
.modal-box { background: #171a21; border: 1px solid #353b48; border-radius: 14px; width: min(560px, 92vw); max-height: 80vh; overflow: auto; padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.search-add { display: flex; gap: 8px; margin-bottom: 14px; }
.search-add input { flex: 1; background: #0f1115; border: 1px solid #353b48; color: #e8eaf0; border-radius: 8px; padding: 9px 12px; }
#search-list { list-style: none; }
#search-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #262b36; }
#search-list .kw { flex: 1; font-weight: 600; }
#search-list .meta { font-size: 12px; color: #8b93a7; }
#search-list label { display: flex; gap: 5px; align-items: center; font-size: 13px; color: #b9c0cf; }
