/* Reyvea Crew – partner area. Dark, like the client app. */
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo Black Italic'; src: url(/fonts/archivo-latin-900-italic.woff2) format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }

:root { --bg: #1F1F21; --s: #2B2B2D; --sh: #3A3A3D; --line: #3a3a3e; --mu: #B4B4B9; --g: #93D501; --gd: #7ab800; --gold: #F5C542; --red: #ff7b72; --blue: #9db8ff; --r: 18px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--mu); }
.small { font-size: .82rem; }
.center { text-align: center; }
.wm { font-family: 'Archivo Black Italic', Inter, sans-serif; font-weight: 900; font-style: italic; letter-spacing: .04em; }
.wm b { color: var(--g); font-weight: 900; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
input, select, textarea { width: 100%; background: var(--sh); color: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: .75rem .9rem; font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--g); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--g); flex: none; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--mu); font-weight: 500; }
textarea { resize: vertical; min-height: 90px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 12px; padding: .75rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; background: var(--sh); color: #fff; text-decoration: none; }
.btn.primary { background: var(--g); color: #1B1B1C; }
.btn.primary:hover { background: #86c300; }
.btn.small { padding: .45rem .8rem; font-size: .85rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; color: var(--g); font: inherit; cursor: pointer; padding: .2rem; text-decoration: underline; text-underline-offset: 3px; }
.error { color: var(--red); min-height: 1.2em; margin: 0; font-size: .9rem; }

/* loading + login */
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; }
.loading img { height: 54px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(90% 60% at 50% 0%, rgba(147,213,1,.16), transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--s); border-radius: 24px; padding: 2rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-bottom: .2rem; }
.login-brand img { height: 58px; }
.login-brand .wm { font-size: 1.3rem; }
.login-card p { margin: 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(31,31,33,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #2c2c2f; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 30px; }
.brand .wm { display: flex; flex-direction: column; font-size: 14px; line-height: 1.02; }
.brand .wm b { font-size: 9.5px; letter-spacing: .2em; }
.top-nav { display: flex; gap: .2rem; margin-left: auto; }
.top-nav a { padding: .5rem .85rem; border-radius: 999px; color: var(--mu); font-weight: 500; font-size: .92rem; }
.top-nav a.on { background: rgba(147,213,1,.16); color: var(--g); font-weight: 600; }
.me-chip { width: 36px; height: 36px; border-radius: 50%; background: #2f3a6b; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }

.main { max-width: 860px; margin: 0 auto; padding: 1.2rem 1.1rem 6rem; }
.hello { font-size: 1.7rem; font-weight: 700; margin: .4rem 0 .2rem; }
.sub { color: var(--mu); margin-bottom: 1.2rem; }
.sect { display: flex; align-items: baseline; justify-content: space-between; margin: 1.4rem 0 .6rem; }
.sect h2 { font-size: 1.05rem; }

/* cards */
.card { background: var(--s); border-radius: var(--r); padding: 1rem; }
.card + .card { margin-top: .7rem; }
.job { display: block; cursor: pointer; transition: transform .12s; }
.job:hover { transform: translateY(-1px); }
.job.offer { border: 1.5px solid var(--g); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.job h3 { font-size: 1.05rem; margin: .5rem 0 .25rem; }
.job .meta { color: var(--mu); font-size: .88rem; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; }
.pill.new { background: var(--g); color: #1B1B1C; }
.pill.ok { background: rgba(147,213,1,.16); color: var(--g); }
.pill.up { background: rgba(91,140,255,.2); color: var(--blue); }
.pill.wait { background: rgba(245,197,66,.16); color: var(--gold); }
.pill.off { background: #3a3a3d; color: var(--mu); }
.pill.bad { background: rgba(255,123,114,.16); color: var(--red); }
.bar { height: 7px; border-radius: 4px; background: #444; overflow: hidden; margin: .6rem 0 .3rem; }
.bar i { display: block; height: 100%; background: var(--g); border-radius: 4px; transition: width .3s; }
.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { text-align: center; color: var(--mu); padding: 2.2rem 1rem; background: var(--s); border-radius: var(--r); }

/* job page */
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--mu); margin-bottom: .8rem; font-weight: 500; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem .8rem; font-size: .95rem; margin: .8rem 0 .2rem; }
.facts dt { color: var(--mu); }
.facts dd { margin: 0; }
.brief { background: #232325; border-radius: 12px; padding: .8rem .9rem; white-space: pre-wrap; line-height: 1.5; margin-top: .8rem; }
.answer { display: flex; gap: .6rem; margin-top: 1rem; }
.answer .btn { flex: 1; }
.drop { border: 2px dashed #4a4a4e; border-radius: 16px; padding: 1.4rem 1rem; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--g); background: rgba(147,213,1,.06); }
.drop .big { font-size: 2rem; }
.drop b { display: block; margin: .3rem 0 .2rem; }
.drop .row { justify-content: center; margin-top: .8rem; }
.queue { margin-top: .9rem; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.qline { display: flex; justify-content: space-between; gap: .5rem; }
.qline .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-list { max-height: 280px; overflow: auto; margin-top: .6rem; border-top: 1px solid var(--line); }
.files-list div { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid #333336; font-size: .84rem; }
.files-list span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.linkrow input:first-child { flex: 2 1 260px; }
.linkrow input + input { flex: 1 1 150px; min-width: 0; }
.linkrow .btn { flex: none; }
.notice { background: rgba(147,213,1,.1); border: 1px solid rgba(147,213,1,.3); border-radius: 14px; padding: .8rem 1rem; color: #d9f5a0; font-size: .9rem; margin: .8rem 0; }

/* payments */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.stat { background: var(--s); border-radius: 16px; padding: .9rem; }
.stat span { color: var(--mu); font-size: .8rem; display: block; }
.stat b { font-size: 1.25rem; display: block; margin-top: .25rem; }
.inv { display: flex; gap: .8rem; align-items: center; }
.inv + .inv { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.pick, label.pick { display: flex; flex-direction: row; gap: .7rem; align-items: center; font-size: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick .spacer + b { white-space: nowrap; }
.form { display: flex; flex-direction: column; gap: .8rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.toast { pointer-events: none; position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #ececef; color: #1B1B1C; padding: .8rem 1.1rem; border-radius: 12px; font-weight: 500; z-index: 60; max-width: 92vw; box-shadow: 0 8px 28px rgba(0,0,0,.4); }

.bottom-nav { display: none; }
@media (max-width: 700px) {
  .top-nav { display: none; }
  .me-chip { margin-left: auto; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #262628; padding: .4rem .2rem calc(.45rem + env(safe-area-inset-bottom)); border-top: 1px solid #2f2f32; }
  html { scroll-padding-bottom: 5.5rem; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; color: var(--mu); padding: .2rem 0; }
  .bottom-nav .ic { font-size: 1.1rem; padding: .2rem 1rem; border-radius: 999px; }
  .bottom-nav a.on { color: #fff; font-weight: 600; }
  .bottom-nav a.on .ic { background: rgba(147,213,1,.22); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .hello { font-size: 1.45rem; }
}
