:root {
  --ink: #07120e;
  --ink2: #0c1c15;
  --panel: #12261c;
  --panel2: #183228;
  --line: rgba(180, 210, 190, 0.14);
  --line2: rgba(180, 210, 190, 0.22);
  --text: #eef7f1;
  --muted: #8eaa9b;
  --gold: #e2bd62;
  --gold2: #f3d68a;
  --em: #3dcf9a;
  --em2: #1fa97a;
  --bad: #ff7a86;
  --warn: #f0c15a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--ink); color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(61, 207, 154, 0.14), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(226, 189, 98, 0.1), transparent 50%),
    var(--ink);
  padding-top: var(--safe-t);
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden, [hidden] { display: none !important; }

/* ——— Auth (login / signup) ——— */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(160deg, rgba(7,18,14,.55), rgba(7,18,14,.82)),
    radial-gradient(700px 400px at 20% 20%, rgba(61,207,154,.22), transparent 55%),
    radial-gradient(600px 360px at 90% 80%, rgba(226,189,98,.16), transparent 50%),
    linear-gradient(165deg, #0a1a13 0%, #123024 45%, #07120e 100%);
  border-right: 1px solid var(--line);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(circle at 40% 40%, rgba(226,189,98,.12), transparent 60%);
  pointer-events: none;
}
.logo-row {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.logo-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--gold), #9a7428);
  color: #1a1205; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(226,189,98,.25);
}
.logo-row strong {
  display: block; font-size: 1.05rem; letter-spacing: .02em;
}
.logo-row span { color: var(--muted); font-size: .82rem; }
.auth-copy { position: relative; z-index: 1; max-width: 34rem; margin: 48px 0; }
.auth-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.03);
  border-radius: 999px; padding: 7px 12px; font-size: .78rem;
  color: var(--gold2); font-weight: 700; margin-bottom: 18px;
}
.auth-copy h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08; font-weight: 700;
  max-width: 12ch;
}
.auth-copy p {
  margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55;
  max-width: 38ch;
}
.feature-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 10px;
}
.feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text); font-size: .92rem; line-height: 1.4;
}
.feature-list i {
  width: 22px; height: 22px; border-radius: 8px; flex: 0 0 auto;
  background: rgba(61,207,154,.15); color: var(--em);
  display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 800;
  margin-top: 1px;
}
.auth-foot {
  position: relative; z-index: 1;
  color: var(--muted); font-size: .8rem;
}
.auth-foot a { color: var(--gold2); }

.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(18,38,28,.35), transparent 40%);
}
.auth-box {
  width: min(440px, 100%);
  background: rgba(18, 38, 28, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.auth-box h2 {
  margin: 0 0 6px; font-family: var(--display); font-size: 1.55rem;
}
.auth-box .sub { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 5px; border-radius: 14px; background: var(--ink2);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.auth-switch button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 10px; padding: 11px 10px; font-weight: 700; cursor: pointer;
}
.auth-switch button.on {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1205;
}

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: .78rem; color: var(--muted);
  margin-bottom: 6px; font-weight: 650; letter-spacing: .01em;
}
.field input, .field select, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink2); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: rgba(226,189,98,.55);
  box-shadow: 0 0 0 3px rgba(226,189,98,.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, border-color .15s, filter .15s;
}
.btn:hover { border-color: rgba(226,189,98,.4); }
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1205; border: 0; width: 100%;
}
.btn-gold:hover { filter: brightness(1.05); border: 0; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 12px; font-size: .85rem; width: auto; }
.btn-block { width: 100%; }
.auth-note {
  margin-top: 14px; text-align: center; color: var(--muted); font-size: .8rem;
}
.demo-creds {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(226,189,98,.4);
  background: rgba(226,189,98,.07);
}
.demo-title {
  font-weight: 800; font-size: .86rem; margin-bottom: 10px; color: var(--gold2);
}
.demo-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px; font-size: .88rem;
}
.demo-k {
  min-width: 72px; color: var(--muted); font-weight: 650;
}
.demo-creds code {
  flex: 1; min-width: 140px;
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; color: var(--text);
  user-select: all; word-break: break-all;
}

@media (max-width: 920px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: auto; border-right: 0; border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
  }
  .auth-copy { margin: 28px 0 12px; }
  .auth-copy h1 { max-width: none; font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .feature-list { display: none; }
  .auth-foot { display: none; }
}

/* ——— App shell (logged in) ——— */
.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1c15, #0a1611);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100dvh;
}
.side .logo-row { margin-bottom: 4px; }
.side-nav { display: grid; gap: 4px; flex: 1; }
.side-nav button {
  text-align: left; border: 0; background: transparent; color: var(--muted);
  border-radius: 12px; padding: 11px 12px; cursor: pointer; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
}
.side-nav button .ico {
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(255,255,255,.04); display: grid; place-items: center;
  font-size: .85rem;
}
.side-nav button.active {
  background: rgba(226,189,98,.12); color: var(--text);
}
.side-nav button.active .ico { background: rgba(226,189,98,.22); }
.side-foot { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.main { padding: 22px clamp(16px, 2.5vw, 32px) 48px; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
.topbar h1 {
  margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 8px 12px; font-size: .82rem; color: var(--muted);
}
.chip b { color: var(--text); }

.welcome {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18,38,28,.95), rgba(10,22,16,.88)),
    radial-gradient(500px 220px at 90% 0%, rgba(226,189,98,.14), transparent 55%);
  padding: 26px 24px; margin-bottom: 18px;
}
.welcome h2 {
  margin: 0 0 8px; font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.welcome p { margin: 0; color: var(--muted); max-width: 58ch; line-height: 1.5; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side {
    position: relative; height: auto; border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav {
    display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button { white-space: nowrap; flex: 0 0 auto; }
  .side-foot { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px;
}
.card h3 {
  margin: 0 0 6px; font-family: var(--display); font-size: 1.12rem;
}
.card .sub { color: var(--muted); font-size: .88rem; margin: 0 0 14px; line-height: 1.45; }

.stat {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}
.stat b {
  display: block; font-size: 1.55rem; font-family: var(--display); line-height: 1.1;
}
.stat span { color: var(--muted); font-size: .8rem; }

.steps { counter-reset: step; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  color: var(--muted); font-size: .92rem; line-height: 1.45;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(61,207,154,.14); color: var(--em);
  display: grid; place-items: center; font-weight: 800; font-size: .78rem;
}

.badge {
  display: inline-block; border-radius: 999px; padding: 4px 10px;
  font-size: .72rem; font-weight: 750; text-transform: capitalize;
  background: rgba(61,207,154,.16); color: #9fe0c0;
}
.badge.pending, .badge.reviewing, .badge.contacted,
.badge.marked_paid { background: rgba(240,193,90,.16); color: #f0d08a; }
.badge.rejected { background: rgba(255,122,134,.16); color: #ffb0b8; }
.badge.approved, .badge.completed, .badge.verified { background: rgba(61,207,154,.18); color: #9fe0c0; }
.badge.unpaid { background: rgba(255,255,255,.07); color: var(--muted); }

.list { display: grid; gap: 12px; }
.item {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px;
  background: var(--ink2);
}
.item-head {
  display: flex; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; align-items: center;
}
.item h4 { margin: 0; font-size: 1rem; }
.item .meta { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.item p { margin: 10px 0 0; line-height: 1.45; white-space: pre-wrap; }

.pay-box {
  border: 1px solid rgba(226,189,98,.28); border-radius: 16px; padding: 16px;
  background: rgba(226,189,98,.06); margin-top: 8px;
}
.pay-box strong { display: block; margin-bottom: 8px; }
.pay-box dl {
  display: grid; grid-template-columns: 132px 1fr; gap: 7px 12px;
  margin: 0; font-size: .9rem;
}
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; word-break: break-word; }
.qr {
  max-width: 168px; border-radius: 12px; margin-top: 12px;
  background: #fff; padding: 8px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b));
  transform: translateX(-50%);
  background: #163226; color: var(--text); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 999px; z-index: 50; max-width: 92vw;
  box-shadow: var(--shadow); font-weight: 650; font-size: .92rem;
}
.toast.err { border-color: rgba(255,122,134,.5); background: #2a1518; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.video-link { display: inline-block; margin-top: 8px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.empty {
  text-align: center; padding: 28px 16px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 14px;
}
.empty strong { display: block; color: var(--text); margin-bottom: 6px; }

/* Campaign dates */
.dates-box {
  margin: 4px 0 16px;
  padding: 14px 14px 6px;
  border: 1px solid rgba(226,189,98,.28);
  border-radius: 14px;
  background: rgba(226,189,98,.06);
}
.dates-head {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 10px;
}
.dates-head strong { font-size: .95rem; }
.date-presets {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.date-presets .preset {
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  cursor: pointer;
}
.date-presets .preset:hover { border-color: var(--gold); color: var(--gold2); }
.date-presets .preset.on {
  background: rgba(226,189,98,.18);
  border-color: var(--gold);
  color: var(--gold2);
}
.check-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .86rem; color: var(--muted); cursor: pointer;
  line-height: 1.35;
}
.check-row input { margin-top: 3px; accent-color: var(--gold); }
.date-line {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(61,207,154,.08);
  border: 1px solid rgba(61,207,154,.22);
  color: #b8e6cf;
  font-size: .88rem;
}

.opt { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: lowercase; }
.extras-box { border-color: rgba(61,207,154,.28); background: rgba(61,207,154,.05); }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .check-grid { grid-template-columns: 1fr; }
}

/* Request form cleanup */
.form-card { max-width: 720px; }
.req-form .form-section {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}
.form-sec-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}
.form-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}
.short-area { min-height: 72px !important; }
.nice-select,
.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--ink2, #0c1c15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238eaa9b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 14px center / 12px;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 40px 11px 12px;
  font: inherit;
  cursor: pointer;
}
.nice-select:focus,
.field select:focus {
  outline: 1px solid rgba(226,189,98,.45);
  border-color: rgba(226,189,98,.45);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-check {
  cursor: pointer;
  user-select: none;
  position: relative;
  display: inline-flex;
}
.chip-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}
.chip-check span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line2, var(--line));
  background: rgba(0,0,0,.22);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
  transition: .12s ease;
}
.chip-check input:checked + span {
  background: rgba(226,189,98,.16);
  border-color: var(--gold);
  color: var(--gold2);
}
.chip-check:hover span { border-color: rgba(226,189,98,.4); color: var(--text); }
.check-solo {
  margin: 4px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.form-submit {
  padding-top: 8px;
  position: relative;
  z-index: 2;
}
.form-submit .btn {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  padding: 14px 20px;
  pointer-events: auto;
  cursor: pointer;
}
.form-submit .btn:disabled {
  opacity: .65;
  cursor: wait;
}
.field input[type="file"] {
  padding: 10px;
  font-size: .85rem;
}
