@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root{
  --bg:#0a0f1e;--surface:#111827;--surface2:#1a2235;--border:#2a3347;
  --text:#f0f4ff;--muted:#8892aa;--accent:#a78bfa;--accent2:#7c3aed;
  --green:#34d399;--red:#f87171;--yellow:#fbbf24;--blue:#60a5fa;
  --radius:12px;--font:'Inter',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;font-size:15px;line-height:1.6}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
input,select,textarea{font-family:var(--font);font-size:14px;background:var(--surface2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:.6rem .9rem;width:100%;outline:none;transition:border-color .2s}
input:focus,select:focus,textarea:focus{border-color:var(--accent)}
input::placeholder,textarea::placeholder{color:var(--muted)}
select option{background:var(--surface)}
button,.btn{font-family:var(--font);font-size:14px;font-weight:600;cursor:pointer;border:none;border-radius:8px;padding:.65rem 1.4rem;transition:opacity .2s,transform .1s;display:inline-flex;align-items:center;gap:.4rem}
button:active,.btn:active{transform:scale(.98)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{opacity:.9;text-decoration:none}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text)}
.btn-outline:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.btn-ghost{background:transparent;color:var(--muted);padding:.5rem .8rem}
.btn-ghost:hover{color:var(--text);background:var(--surface2)}
.btn-danger{background:var(--red);color:#fff}
.btn-sm{padding:.4rem .9rem;font-size:13px}
.btn-green{background:var(--green);color:#0a0f1e}

/* Platform shell */
.platform-wrap{display:flex;min-height:100vh}
.sidebar{width:220px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:100;transition:transform .3s}
.sidebar-logo{padding:1.2rem 1.4rem;border-bottom:1px solid var(--border)}
.sidebar-logo a{color:var(--text);font-weight:700;font-size:13px;line-height:1.3;display:block}
.sidebar-logo a:hover{text-decoration:none;color:var(--accent)}
.sidebar-nav{flex:1;padding:.8rem 0;overflow-y:auto}
.nav-item{display:flex;align-items:center;gap:.65rem;padding:.65rem 1.4rem;color:var(--muted);font-size:14px;font-weight:500;transition:color .15s,background .15s;border-left:3px solid transparent}
.nav-item:hover{color:var(--text);background:var(--surface2);text-decoration:none}
.nav-item.active{color:var(--accent);border-left-color:var(--accent);background:var(--surface2)}
.nav-icon{font-size:16px;width:18px;text-align:center;flex-shrink:0}
.nav-badge{margin-left:auto;background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:.1rem .45rem;border-radius:20px}
.sidebar-bottom{padding:.8rem 1rem;border-top:1px solid var(--border)}
.sidebar-user{display:flex;align-items:center;gap:.6rem;padding:.5rem .4rem;border-radius:8px;cursor:pointer}
.sidebar-user:hover{background:var(--surface2)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--accent2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff;flex-shrink:0}
.avatar.lg{width:64px;height:64px;font-size:22px}
.avatar.xl{width:96px;height:96px;font-size:32px}
.sidebar-user-info{flex:1;min-width:0}
.sidebar-user-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-type{font-size:11px;color:var(--muted)}

.main-content{margin-left:220px;flex:1;min-height:100vh;padding:2rem}
.top-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}
.page-title{font-size:22px;font-weight:700}
.page-subtitle{color:var(--muted);font-size:14px;margin-top:.2rem}

/* Cards */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem}
.card-sm{padding:1rem}
.card:hover{border-color:var(--border)}

/* Grid layouts */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.jobs-grid-layout{display:grid;grid-template-columns:1fr;gap:1rem}

/* Job cards */
.job-card-p{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem;transition:border-color .2s,box-shadow .2s;cursor:pointer}
.job-card-p:hover{border-color:var(--accent);box-shadow:0 4px 20px rgba(167,139,250,.1);text-decoration:none}
.job-card-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.6rem}
.job-title-p{font-size:16px;font-weight:700;color:var(--text);margin-bottom:.25rem}
.job-org-p{font-size:13px;color:var(--muted)}
.job-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0}
.tag{font-size:12px;padding:.2rem .6rem;border-radius:6px;font-weight:500;background:var(--surface2);color:var(--muted);border:1px solid var(--border)}
.tag.remote{background:rgba(52,211,153,.1);color:var(--green);border-color:rgba(52,211,153,.2)}
.tag.deaf{background:rgba(167,139,250,.1);color:var(--accent);border-color:rgba(167,139,250,.2)}
.tag.federal{background:rgba(96,165,250,.1);color:var(--blue);border-color:rgba(96,165,250,.2)}
.job-budget{font-size:13px;font-weight:600;color:var(--green)}
.job-meta-row{display:flex;align-items:center;justify-content:space-between;margin-top:.8rem}

/* Stat cards */
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem 1.4rem}
.stat-val{font-size:28px;font-weight:700;color:var(--text)}
.stat-label{font-size:13px;color:var(--muted);margin-top:.2rem}

/* Forms */
.form-group{margin-bottom:1.2rem}
.form-label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:.45rem;letter-spacing:.03em;text-transform:uppercase}
.form-hint{font-size:12px;color:var(--muted);margin-top:.35rem}
.form-error{font-size:12px;color:var(--red);margin-top:.35rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}

/* Auth pages */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--bg)}
.auth-box{width:100%;max-width:440px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.4rem}
.auth-logo{font-size:13px;font-weight:700;color:var(--text);margin-bottom:2rem;line-height:1.3}
.auth-title{font-size:24px;font-weight:700;margin-bottom:.4rem}
.auth-sub{color:var(--muted);font-size:14px;margin-bottom:1.8rem}
.type-toggle{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:1.6rem;background:var(--surface2);padding:.3rem;border-radius:10px}
.type-btn{padding:.6rem;font-size:14px;font-weight:600;border-radius:7px;text-align:center;cursor:pointer;border:none;background:transparent;color:var(--muted);transition:all .2s}
.type-btn.active{background:var(--accent);color:#fff}
.divider{text-align:center;color:var(--muted);font-size:13px;margin:1.2rem 0;position:relative}
.divider::before{content:'';position:absolute;top:50%;left:0;right:0;height:1px;background:var(--border)}
.divider span{position:relative;background:var(--surface);padding:0 .8rem}

/* Alerts */
.alert{padding:.85rem 1rem;border-radius:8px;font-size:14px;margin-bottom:1rem}
.alert-error{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.3);color:var(--red)}
.alert-success{background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.3);color:var(--green)}
.alert-info{background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.3);color:var(--accent)}

/* Badges */
.badge{font-size:11px;font-weight:700;padding:.2rem .55rem;border-radius:20px;display:inline-flex;align-items:center;gap:.3rem}
.badge-verified{background:rgba(52,211,153,.15);color:var(--green);border:1px solid rgba(52,211,153,.3)}
.badge-pending{background:rgba(251,191,36,.15);color:var(--yellow);border:1px solid rgba(251,191,36,.3)}
.badge-active{background:rgba(96,165,250,.15);color:var(--blue);border:1px solid rgba(96,165,250,.3)}
.badge-closed{background:var(--surface2);color:var(--muted);border:1px solid var(--border)}

/* Stars */
.stars{display:inline-flex;gap:2px;color:var(--yellow)}

/* Messages */
.thread-list{display:flex;flex-direction:column;gap:0}
.thread-item{display:flex;gap:.9rem;padding:1rem 1.2rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}
.thread-item:hover{background:var(--surface2)}
.thread-item.unread .thread-name{font-weight:700;color:var(--text)}
.thread-item.unread .thread-preview{color:var(--text)}
.thread-name{font-size:14px;font-weight:500}
.thread-preview{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread-time{font-size:12px;color:var(--muted);white-space:nowrap}
.msg-bubble{max-width:72%;padding:.75rem 1rem;border-radius:14px;font-size:14px;line-height:1.5}
.msg-mine{background:var(--accent2);color:#fff;border-radius:14px 14px 4px 14px;margin-left:auto}
.msg-theirs{background:var(--surface2);color:var(--text);border-radius:14px 14px 14px 4px}
.msg-translation{font-size:12px;margin-top:.3rem;opacity:.75;font-style:italic}
.msg-lang-tag{font-size:11px;font-weight:600;opacity:.6;margin-bottom:.25rem;text-transform:uppercase;letter-spacing:.04em}

/* Milestones */
.milestone-row{display:flex;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:10px;margin-bottom:.7rem}
.milestone-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot-pending{background:var(--muted)}
.dot-submitted{background:var(--yellow)}
.dot-approved{background:var(--blue)}
.dot-paid{background:var(--green)}

/* Rating stars interactive */
.rating-input{display:flex;gap:.3rem;font-size:24px}
.rating-input span{cursor:pointer;color:var(--border);transition:color .15s}
.rating-input span.on{color:var(--yellow)}

/* Mobile */
.hamburger{display:none;background:none;border:none;color:var(--text);font-size:22px;cursor:pointer;padding:.4rem}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99}

@media(max-width:768px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.open{display:block}
  .main-content{margin-left:0;padding:1.2rem}
  .hamburger{display:block}
  .grid-2,.grid-3,.form-row{grid-template-columns:1fr}
  .top-bar{flex-wrap:wrap;gap:.8rem}
}


/* Auth footer */
.auth-footer{text-align:center;margin-top:1.4rem;font-size:13px;color:var(--muted)}
.auth-footer a{color:var(--accent)}

/* Page header wrapper */
.page-header{margin-bottom:1.8rem}

/* Full-width button modifier */
.btn-block{width:100%;justify-content:center}
