:root{
  --ink:#F3F4F6;
  --ink-2:#FFFFFF;
  --ink-3:#F1F2F4;
  --paper:#14171C;
  --orange:#EA580C;
  --orange-dark:#9A3412;
  --pink:#FF3D7A;
  --violet:#7B5CFF;
  --teal:#2DD4BF;
  --muted:#52585F;
  --muted-2:#7A828C;
  --line: rgba(0,0,0,0.1);
  --radius:18px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
body{
  background:var(--ink);
  color:var(--paper);
  font-family:'Inter', sans-serif;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
h1,h2,h3{ font-family:'Space Grotesk', sans-serif; letter-spacing:-0.01em; }
a{ color:var(--orange); text-decoration:none; }
a:hover{ text-decoration:underline; }

.auth-card{
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:24px;
  padding:44px;
  max-width:440px;
  width:100%;
  box-shadow:0 20px 50px rgba(0,0,0,0.08);
}
.auth-logo{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size:24px; color:var(--orange);
  margin-bottom:8px;
}
.auth-card h1{ font-size:24px; margin-bottom:8px; }
.auth-sub{ color:var(--muted); font-size:14.5px; margin-bottom:28px; }

.field{ margin-bottom:18px; display:flex; flex-direction:column; gap:8px; }
label{ font-size:13px; font-weight:600; color:var(--muted); }
input{
  background:var(--ink);
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 15px;
  font-size:15px;
  font-family:inherit;
  color:var(--paper);
}
input:focus{ outline:none; border-color:var(--orange); }

.password-wrap{ position:relative; }
.password-wrap input{ width:100%; padding-right:44px; }
.password-toggle{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; padding:6px;
  color:var(--muted-2); display:flex; align-items:center; justify-content:center;
}
.password-toggle:hover{ color:var(--muted); }
.password-toggle svg{ width:19px; height:19px; }

.role-picker{ display:flex; gap:8px; margin-bottom:22px; }
.role-option{
  flex:1;
  border:1.5px solid var(--line);
  border-radius:12px;
  padding:12px 8px;
  text-align:center;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  transition:all .15s ease;
}
.role-option.selected{
  border-color:var(--orange);
  background:rgba(234,88,12,0.06);
  color:var(--orange);
}
.role-option input{ display:none; }

.btn{
  display:flex; align-items:center; justify-content:center;
  width:100%;
  background:var(--orange);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:14px;
  font-size:15px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  box-shadow:0 6px 0 0 var(--orange-dark);
  transition:transform .1s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:disabled{ opacity:0.6; cursor:not-allowed; transform:none; }

.auth-footer{
  text-align:center; margin-top:22px; font-size:14px; color:var(--muted);
}

.msg{
  font-size:13.5px; font-weight:600; margin-bottom:16px;
  padding:12px 14px; border-radius:10px; display:none;
}
.msg.show{ display:block; }
.msg.err{ background:rgba(255,61,122,0.08); color:#C41C5B; display:block; }
.msg.ok{ background:rgba(45,212,191,0.1); color:#0F766E; display:block; }

/* Dashboard */
.dash-card{ max-width:560px; }
.dash-welcome{ font-size:15px; color:var(--muted); margin-bottom:4px; }
.dash-name{ font-size:28px; margin-bottom:6px; }
.role-badge{
  display:inline-block;
  background:rgba(234,88,12,0.1); color:var(--orange);
  font-family:'JetBrains Mono', monospace;
  font-size:12px; text-transform:uppercase; letter-spacing:0.05em;
  padding:5px 12px; border-radius:999px;
  margin-bottom:28px;
}
.dash-placeholder{
  background:var(--ink-3);
  border:1px dashed var(--line);
  border-radius:14px;
  padding:24px;
  font-size:14px; color:var(--muted-2);
  margin-bottom:24px;
  line-height:1.6;
}
.btn-secondary{
  background:transparent; color:var(--muted); border:1.5px solid var(--line);
  box-shadow:none;
}

/* Brand campaign form + list */
.dash-card.wide{ max-width:640px; }
.section-divider{ border:none; border-top:1px solid var(--line); margin:30px 0; }
.section-title{ font-size:16px; margin-bottom:16px; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
textarea{
  background:var(--ink);
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 15px;
  font-size:15px;
  font-family:inherit;
  color:var(--paper);
  resize:vertical;
  min-height:80px;
}
textarea:focus{ outline:none; border-color:var(--orange); }
.type-toggle{ display:flex; gap:8px; margin-bottom:4px; }
.type-option{
  flex:1; border:1.5px solid var(--line); border-radius:12px;
  padding:10px; text-align:center; cursor:pointer;
  font-size:13px; font-weight:600; color:var(--muted);
  transition:all .15s ease;
}
.type-option.selected{ border-color:var(--violet); background:rgba(123,92,255,0.06); color:var(--violet); }
.type-option input{ display:none; }
.checkbox-row{ display:flex; flex-wrap:wrap; gap:8px; }
.checkbox-pill{
  border:1.5px solid var(--line); border-radius:999px;
  padding:8px 14px; font-size:13px; font-weight:600; color:var(--muted);
  cursor:pointer;
}
.checkbox-pill input{ display:none; }
.checkbox-pill.selected{ border-color:var(--orange); background:rgba(234,88,12,0.06); color:var(--orange); }

.campaign-list{ margin-top:20px; display:flex; flex-direction:column; gap:12px; }
.campaign-item{ border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.campaign-item h4{ font-size:15.5px; margin-bottom:8px; }
.campaign-item .meta{
  font-size:12.5px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap;
}
.status-tag{
  font-family:'JetBrains Mono', monospace; font-size:10.5px; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; background:rgba(45,212,191,0.12); color:#0F766E;
}
.empty-note{ font-size:14px; color:var(--muted-2); padding:16px 0; }

/* Clipper: browse campaigns + submissions */
.browse-item{ border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:12px; }
.browse-item h4{ font-size:16px; margin-bottom:6px; }
.browse-item p{ font-size:13.5px; color:var(--muted); margin-bottom:10px; line-height:1.5; }
.browse-item .meta{ font-size:12.5px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.type-tag{
  font-family:'JetBrains Mono', monospace; font-size:10.5px; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; background:rgba(123,92,255,0.1); color:var(--violet);
}
.submit-inline{ display:none; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); gap:10px; flex-wrap:wrap; }
.submit-inline.show{ display:flex; }
.submit-inline input, .submit-inline select{
  background:var(--ink); border:1px solid var(--line); border-radius:10px;
  padding:10px 12px; font-size:13.5px; font-family:inherit; color:var(--paper);
}
.submit-inline input[type="url"]{ flex:1; min-width:180px; }
.btn-small{
  width:auto; padding:10px 18px; font-size:13.5px;
  box-shadow:0 4px 0 0 var(--orange-dark);
}
.status-tag.pending{ background:rgba(255,210,63,0.15); color:#92650A; }
.status-tag.approved{ background:rgba(45,212,191,0.15); color:#0F766E; }
.status-tag.rejected{ background:rgba(255,61,122,0.12); color:#C41C5B; }
