:root {
  --bg: #F4F5F1;
  --surface: #FFFFFF;
  --surface-soft: #F8F9F6;
  --text: #111111;
  --text-2: #6B7280;
  --muted: #9CA3AF;
  --border: #E5E7EB;
  --active: #111111;
  --accent: #86EF2F;
  --deep-green: #047857;
  --soft-green: #ECFDF5;
  --warning: #F59E0B;
  --error: #DC2626;
  --info: #2563EB;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(17,17,17,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Plus Jakarta Sans", Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(134,239,47,.08), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(4,120,87,.06), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
.app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 36px auto;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(17,17,17,.08), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: calc(100vh - 72px);
}
.topbar {
  height: 78px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  min-width: max-content;
}
.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  flex: 0 0 auto;
}
.brand-wordmark {
  color: var(--text);
  margin-left: 4px;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.pill-nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(17,17,17,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pill-nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pill-nav a.active, .pill-nav a:hover { background: var(--active); color: white; transform: translateY(-1px); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17,17,17,.16);
}
.mobile-nav-panel { display: contents; }
.icon-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn {
  min-height: 42px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover, .icon-btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #111; box-shadow: 0 12px 26px rgba(134,239,47,.24); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(134,239,47,.34); }
.btn-dark { background: #111; color: #fff; box-shadow: 0 12px 26px rgba(17,17,17,.16); }
.btn-apply-header {
  background: #111;
  color: var(--accent);
  border: 1px solid rgba(134,239,47,.34);
  box-shadow: 0 12px 28px rgba(17,17,17,.16);
}
.btn-apply-header:hover {
  box-shadow: 0 16px 34px rgba(17,17,17,.22);
}
.btn-soft { background: var(--surface-soft); color: var(--text); border: 1px solid var(--border); }
.page {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding: 0 28px 28px;
}
.rail {
  background: #111;
  border-radius: 30px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 620px;
  position: relative;
  z-index: 5;
  overflow: visible;
}
.rail a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  font-size: 17px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.rail a.active, .rail a:hover {
  background: var(--accent);
  color: #111;
  transform: translateX(2px);
}
.rail a::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  pointer-events: none;
  background: #111;
  color: var(--accent);
  border: 1px solid rgba(134,239,47,.35);
  box-shadow: 0 12px 28px rgba(17,17,17,.2);
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  z-index: 50;
  transition: opacity .18s ease, transform .18s ease;
}
.rail a:hover::after,
.rail a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.content {
  background: rgba(248,249,246,.72);
  border-radius: 30px;
  padding: 28px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; }
.hero-card, .card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(17,17,17,.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-card { padding: clamp(28px, 5vw, 56px); }
.eyebrow { color: var(--deep-green); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.4vw, 4.7rem); max-width: 860px; }
h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
h3 { font-size: 1.05rem; }
.lead { color: var(--text-2); font-size: 17px; max-width: 660px; }
.dashboard-preview { padding: 20px; display: grid; gap: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 22px; border-radius: 22px; background: var(--surface-soft); }
.metric.green { background: linear-gradient(160deg, #9DFF45, #034D3C); color: #fff; }
.metric small { display:block; margin-top:6px; color:var(--text-2); font-weight:700; }
.metric-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.metric-link:hover,
.metric-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(4, 120, 87, .18);
}
.metric-link:focus-visible {
  outline: 3px solid rgba(134, 239, 47, .7);
  outline-offset: 4px;
}
.metric-value { font-size: 34px; font-weight: 850; letter-spacing: -.04em; }
.section { padding: 54px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; }
.table-card { padding: 0; overflow: hidden; }
.settings-section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.settings-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.settings-section h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 8px;
}
.settings-section p {
  color: var(--text-2);
  margin: 0 0 18px;
}
.brand-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}
.brand-preview-row img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
  padding: 8px;
}
.brand-preview-row strong,
.brand-preview-row small {
  display: block;
}
.brand-preview-row small,
.settings-preview {
  color: var(--text-2);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wide-admin-table {
  min-width: 1420px;
}
.wide-admin-table th,
.wide-admin-table td {
  vertical-align: top;
  white-space: nowrap;
}
.wide-admin-table td:nth-child(6),
.wide-admin-table td:nth-child(10) {
  min-width: 240px;
  white-space: normal;
}
.leads-admin-table {
  width: 100%;
  table-layout: fixed;
}
.leads-admin-table th,
.leads-admin-table td {
  vertical-align: middle;
}
.leads-admin-table th:nth-child(1),
.leads-admin-table td:nth-child(1) { width: 24%; }
.leads-admin-table th:nth-child(2),
.leads-admin-table td:nth-child(2) { width: 27%; }
.leads-admin-table th:nth-child(3),
.leads-admin-table td:nth-child(3) { width: 18%; }
.leads-admin-table th:nth-child(4),
.leads-admin-table td:nth-child(4) { width: 13%; }
.leads-admin-table th:nth-child(5),
.leads-admin-table td:nth-child(5) { width: 18%; }
.leads-admin-table td {
  overflow-wrap: anywhere;
}
.lead-delivery-stack {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.lead-delivery-stack > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}
.lead-action-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.lead-action-form input {
  flex: 1 1 280px;
  min-width: min(100%, 220px);
}
.lead-action-form .btn {
  min-height: 38px;
  padding: 9px 14px;
}
.users-admin-table {
  width: 100%;
  table-layout: fixed;
}
.users-admin-table th,
.users-admin-table td {
  vertical-align: middle;
}
.users-admin-table th:nth-child(1),
.users-admin-table td:nth-child(1) { width: 15%; }
.users-admin-table th:nth-child(2),
.users-admin-table td:nth-child(2) { width: 11%; }
.users-admin-table th:nth-child(3),
.users-admin-table td:nth-child(3) { width: 24%; }
.users-admin-table th:nth-child(4),
.users-admin-table td:nth-child(4) { width: 13%; }
.users-admin-table th:nth-child(5),
.users-admin-table td:nth-child(5) { width: 10%; }
.users-admin-table th:nth-child(6),
.users-admin-table td:nth-child(6) { width: 27%; }
.users-admin-table td {
  overflow-wrap: anywhere;
}
.users-admin-table .badge {
  white-space: nowrap;
}
.user-details-row[hidden] {
  display: none;
}
.user-details-row td {
  padding: 0;
  background: rgba(248,249,246,.76);
}
.user-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--border);
}
.user-detail-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.user-detail-block span,
.user-detail-block small {
  display: block;
  color: var(--text-2);
}
.user-detail-block span {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.user-detail-block strong {
  display: block;
  overflow-wrap: anywhere;
}
.user-detail-actions {
  grid-column: 1 / -1;
}
.user-detail-actions .admin-row-actions {
  margin-top: 4px;
}
.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-row-actions .btn {
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}
.assignment-brief-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
  margin: 28px 0 34px;
}
.assignment-brief-amounts span,
.assignment-salary-card span {
  display: block;
  color: var(--text-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.assignment-brief-amounts strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.05em;
}
.assignment-salary-card {
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(140deg, #86EF2F, #047857);
  color: #fff;
  box-shadow: 0 20px 44px rgba(4,120,87,.2);
}
.assignment-salary-card span { color: rgba(255,255,255,.82); }
.assignment-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr);
  gap: 24px;
  align-items: start;
}
.assignment-brief-main,
.assignment-brief-side {
  display: grid;
  gap: 20px;
}
.content-list {
  margin: 14px 0 0 20px;
  color: var(--text-2);
  line-height: 1.75;
}
.content-list li { margin: 6px 0; }
.content-list.ordered { list-style: decimal; }
.notice-panel,
.report-detail-list,
.report-email-panel {
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 16px 0;
}
.notice-panel strong { color: var(--error); }
.store-chip-grid,
.gift-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.store-chip-grid span,
.gift-card-grid span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
}
.payment-summary-card p {
  border-radius: 18px;
  background: var(--soft-green);
  color: var(--deep-green);
  padding: 16px;
  line-height: 1.65;
}
.payment-summary-card h4 {
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.payment-summary-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.payment-summary-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.report-instructions-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.report-letter-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 22px;
}
.report-step-block { margin-top: 24px; }
.report-email-panel {
  border-left-color: var(--info);
  text-align: center;
}
.report-email-panel small {
  display: block;
  margin-top: 14px;
  color: var(--text-2);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: var(--surface-soft); }
.badge { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:750; }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge.pending { color:#b45309; background:#FFFBEB; }
.badge.active, .badge.approved, .badge.sent, .badge.completed { color:var(--deep-green); background:var(--soft-green); }
.badge.rejected, .badge.suspended, .badge.failed { color:var(--error); background:#FEF2F2; }
.badge.skipped { color:var(--text-2); background:var(--surface-soft); }
.form-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:16px; }
.field { display:flex; flex-direction:column; gap:7px; }
label { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--text-2); }
input, textarea, select {
  width:100%;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
  padding:13px 15px;
  font:inherit;
  outline:none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--deep-green); box-shadow: 0 0 0 4px rgba(134,239,47,.18); }
.alert { border-radius:18px; padding:14px 16px; margin-bottom:18px; background:var(--soft-green); color:var(--deep-green); }
.search-results {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(17,17,17,.08);
}
.search-result-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.search-result-item:hover,
.search-result-item:focus {
  background: var(--soft-green);
  outline: none;
}
.search-result-item strong,
.search-result-item span {
  display: block;
}
.search-result-item span {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 13px;
}
.auth-card {
  position: relative;
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    radial-gradient(circle at 86% 16%, rgba(134,239,47,.18), transparent 30%),
    rgba(17,17,17,.94);
  border: 1px solid rgba(134,239,47,.22);
  box-shadow: 0 30px 80px rgba(17,17,17,.22), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: auth-rise .72s cubic-bezier(.22,1,.36,1) both;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.13) 40%, transparent 58%);
  transform: translateX(-135%);
  animation: auth-sheen 7s ease-in-out 1s infinite;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -68px;
  top: -68px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(134,239,47,.25), rgba(134,239,47,0) 66%);
  filter: blur(3px);
  animation: auth-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.auth-card > * {
  position: relative;
  z-index: 1;
}
.auth-card-wide { max-width: 1040px; }
.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
}
.auth-card .eyebrow { color: var(--accent); }
.auth-card .lead,
.auth-link {
  color: rgba(255,255,255,.72);
}
.auth-link { margin-bottom: 0; }
.auth-link a {
  color: var(--accent);
  font-weight: 800;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form .field,
.auth-form .btn,
.auth-link {
  animation: auth-field-in .58s cubic-bezier(.22,1,.36,1) both;
}
.auth-form .field:nth-of-type(1) { animation-delay: .1s; }
.auth-form .field:nth-of-type(2) { animation-delay: .16s; }
.auth-form .field:nth-of-type(3) { animation-delay: .22s; }
.auth-form .field:nth-of-type(4) { animation-delay: .28s; }
.auth-form .field:nth-of-type(5) { animation-delay: .34s; }
.auth-form .field:nth-of-type(6) { animation-delay: .4s; }
.auth-form .btn { animation-delay: .46s; }
.auth-link { animation-delay: .52s; }
.auth-card label {
  color: rgba(255,255,255,.72);
}
.auth-card input,
.auth-card textarea,
.auth-card select {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color: rgba(255,255,255,.42);
}
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(134,239,47,.18);
}
.auth-card .btn-primary {
  min-height: 48px;
  box-shadow: 0 16px 34px rgba(134,239,47,.24);
}
.activation-submitted-card {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.activation-submitted-card h1 {
  max-width: 760px;
  margin-inline: auto;
}
.staff-id-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  margin: 12px auto 18px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(134,239,47,.14);
  border: 1px solid rgba(134,239,47,.35);
  color: var(--accent);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: .02em;
}
.activation-close-btn {
  display: inline-flex;
  width: auto;
  min-width: 150px;
  color: #111 !important;
  background: var(--accent) !important;
}
.activation-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.activation-stepper span {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 850;
  padding: 9px 10px;
  text-align: center;
}
.activation-stepper span.active,
.activation-stepper span.complete {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.wizard-step {
  display: none;
  animation: auth-field-in .42s cubic-bezier(.22,1,.36,1) both;
}
.wizard-step.is-active {
  display: grid;
  gap: 18px;
}
.activation-panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 22px;
  color: rgba(255,255,255,.78);
}
.activation-panel h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.activation-panel p {
  margin: 8px 0 0;
}
.verified-panel {
  background: rgba(134,239,47,.12);
  border-color: rgba(134,239,47,.28);
}
.activation-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.activation-check input {
  width: auto;
  margin-top: 4px;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
#wizard-submit[hidden],
#wizard-next[hidden] {
  display: none !important;
}
.activation-wizard:not(.is-final-step) #wizard-submit {
  display: none !important;
}
.activation-wizard.is-final-step #wizard-next {
  display: none !important;
}
.activation-error {
  margin: 0;
  color: #fecaca;
  font-weight: 750;
}
.activation-bank-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.68);
}
.activation-bank-modal[hidden] {
  display: none;
}
.activation-bank-dialog {
  width: min(100%, 520px);
  border-radius: 26px;
  border: 1px solid rgba(134,239,47,.25);
  background: linear-gradient(145deg, rgba(17,17,17,.98), rgba(8,38,29,.94));
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  color: #fff;
  padding: 28px;
}
.activation-bank-dialog h3 {
  font-size: 1.35rem;
  margin: 8px 0 10px;
}
.activation-bank-dialog p {
  color: rgba(255,255,255,.72);
}
.activation-bank-dialog strong {
  color: #fff;
}
.auth-card input[readonly] {
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.045);
}
.premium-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1);
}
.premium-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.about-hero {
  position: relative;
  overflow: hidden;
}
.about-hero::after,
.glass-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: 24px;
  top: 24px;
  border-radius: 999px;
  background: rgba(134,239,47,.16);
  filter: blur(22px);
  pointer-events: none;
}
.about-story .card {
  max-width: 980px;
}
.dark-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17,17,17,.96), rgba(8,38,29,.92));
  color: #fff;
  border-color: rgba(134,239,47,.22);
  box-shadow: 0 24px 60px rgba(17,17,17,.14);
}
.dark-card h2,
.dark-card h3 {
  color: #fff;
}
.dark-card p {
  color: rgba(255,255,255,.72);
}
.dark-card .eyebrow {
  color: var(--accent);
}
.glass-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.about-grid .card {
  min-height: 100%;
}
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.send-console {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.send-controls,
.send-log-card,
.send-job-card {
  background: linear-gradient(145deg, rgba(17,17,17,.97), rgba(9,42,31,.93));
  color: #fff;
  border-color: rgba(134,239,47,.22);
}
.send-controls h3,
.send-log-card h3,
.send-job-card h3 { color: #fff; }
.send-controls label,
.send-controls p,
.send-log-card p,
.send-job-card p { color: rgba(255,255,255,.68); }
.send-controls input,
.send-controls textarea,
.send-controls select,
.send-log-actions input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.send-run-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.send-run-controls h3 {
  margin: 0;
}
.send-active-job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.send-active-job span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.send-active-job-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}
.send-active-job-meta strong {
  color: #fff;
  font-size: 18px;
}
.send-active-job-meta small {
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.send-delay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}
.send-delay-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.send-delay-range label {
  display: grid;
  gap: 8px;
}
.send-delay-range label > span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.send-delay-row > span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.send-delay-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.send-delay-input input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
}
.send-delay-input small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.send-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.send-control-form {
  margin: 0;
}
.send-control-form-centered {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}
.send-control-grid .send-control-form-centered .btn {
  display: inline-flex;
  width: auto;
  min-width: 150px;
  max-width: 100%;
  padding-inline: 18px;
  white-space: nowrap;
}
.send-control-grid .btn,
.send-control-form .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
}
.send-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  margin-top: 8px;
}
.send-stat span { color: rgba(255,255,255,.66); font-size: 13px; }
.send-stat strong { color: var(--accent); font-size: 22px; }
.send-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.send-log-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.send-log-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}
.send-log-actions input { width: 74px; padding: 8px 10px; border-radius: 999px; }
.send-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  margin: 14px 0;
}
.send-progress > div,
#send-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--deep-green));
  transition: width .28s ease;
}
.send-terminal {
  min-height: 380px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(134,239,47,.16);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.terminal-empty { color: rgba(255,255,255,.52); text-align: center; padding: 70px 10px; }
.log-entry {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  line-height: 1.55;
  border: 1px solid rgba(255,255,255,.08);
}
.log-entry span { color: rgba(255,255,255,.46); margin-right: 10px; }
.log-entry.success { color: #bbf7d0; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.22); }
.log-entry.error { color: #fecaca; background: rgba(220,38,38,.14); border-color: rgba(220,38,38,.24); }
.log-entry.info { color: #dbeafe; background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.2); }
.send-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.send-job-actions form { margin: 0; }
.template-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.template-list {
  display: grid;
  gap: 8px;
}
.template-tab {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}
.template-tab small {
  display: block;
  color: var(--text-2);
  font-weight: 600;
  margin-top: 4px;
}
.template-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.template-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 16px;
}
.template-preview-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes auth-field-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-sheen {
  0%, 62% { transform: translateX(-135%); opacity: 0; }
  72% { opacity: .9; }
  100% { transform: translateX(135%); opacity: 0; }
}
@keyframes auth-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
  50% { transform: translate(-22px, 28px) scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .premium-reveal {
    opacity: 1;
    transform: none;
  }
}
.footer { padding: 22px 28px 30px; color: var(--text-2); font-size: 13px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(134,239,47,.2), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(4,120,87,.18), transparent 28%),
    #0d0f0e;
  color: #fff;
}
.auth-standalone {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.auth-standalone::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(134,239,47,.12);
  border-radius: 42px;
  filter: blur(.2px);
  animation: auth-glow 8s ease-in-out infinite;
}
.auth-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  z-index: 2;
}
.auth-brand img { width: 44px; height: 44px; border-radius: 14px; background:#111; }
.auth-stage {
  width: min(100%, 860px);
  display: grid;
  gap: 18px;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.auth-stage .auth-card {
  width: min(100%, 520px);
}
.auth-stage .auth-card-wide {
  width: min(100%, 860px);
}
.admin-shell {
  width: min(1500px, calc(100% - 48px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}
.admin-sidebar {
  background: #111;
  color: #fff;
  border-radius: 28px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 24px 54px rgba(17,17,17,.16);
}
.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.admin-side-brand img { width: 42px; height: 42px; border-radius: 14px; background:#111; }
.admin-nav-group { display: grid; gap: 6px; }
.admin-nav-label {
  color: rgba(255,255,255,.42);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  padding: 0 12px 8px;
}
.admin-nav-group a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  font-weight: 800;
}
.admin-nav-group a.active,
.admin-nav-group a:hover {
  background: var(--accent);
  color: #111;
}
.admin-main { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.admin-topbar {
  min-height: 78px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 42px rgba(17,17,17,.06);
}
.admin-search {
  min-width: 280px;
  max-width: 440px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 14px;
  min-height: 48px;
}
.admin-search-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--text-2);
  flex: 0 0 18px;
}
.admin-search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.admin-search input { border: 0; box-shadow: none; padding: 0; background: transparent; }
.admin-top-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-bell {
  width: 46px; height: 46px;
  display:grid; place-items:center;
  position:relative;
  border-radius: 999px;
  background:#fff;
  border:1px solid var(--border);
  text-decoration:none;
  color:#111;
  font-weight:900;
}
.admin-bell span {
  position:absolute; top:-4px; right:-4px;
  min-width:18px; height:18px;
  display:grid; place-items:center;
  border-radius:999px;
  background:var(--accent);
  color:#111;
  font-size:11px;
}
.admin-person { display:flex; align-items:center; gap:10px; }
.admin-person small { display:block; color:var(--text-2); font-size:12px; }
.admin-avatar {
  width: 46px; height: 46px; border-radius: 999px;
  display:grid; place-items:center;
  background: var(--accent);
  color:#111;
  font-weight:900;
}
.admin-content {
  background: rgba(248,249,246,.72);
  border-radius: 30px;
  padding: 24px;
  min-width: 0;
}
.dashboard-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-bottom:18px; }
.dashboard-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-head p { color:var(--text-2); margin:8px 0 0; }
.admin-stat-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:14px; }
.admin-stat-card {
  display:grid; gap:8px;
  text-decoration:none;
  color:#111;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.admin-stat-card.hero { background:#063f31; color:#fff; }
.admin-stat-card span { font-weight:900; }
.admin-stat-card strong { font-size: clamp(2.2rem,4vw,3.4rem); line-height:1; letter-spacing:-.05em; }
.admin-stat-card.hero strong { color: var(--accent); }
.admin-stat-card small { color: var(--text-2); }
.admin-stat-card.hero small { color: rgba(255,255,255,.72); }
.admin-mid-grid { display:grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap:16px; margin-top:16px; }
.admin-bottom-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:16px; margin-top:16px; }
.admin-widget {
  background:#fff;
  border:1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.widget-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.widget-head h2 { font-size: 20px; }
.widget-head a { color:#111; font-weight:900; text-decoration:none; }
.activity-list, .assignment-glance { display:grid; gap:10px; }
.activity-item, .assignment-line {
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  background:var(--surface-soft);
}
.assignment-line { grid-template-columns: 1fr auto auto; }
.activity-avatar {
  width:42px; height:42px; border-radius:999px;
  background:#111; color:var(--accent);
  display:grid; place-items:center;
  font-weight:900;
}
.activity-item small, .assignment-line small { display:block; color:var(--text-2); margin-top:3px; }
.send-dashboard-number { font-size: 54px; line-height:1; font-weight:900; letter-spacing:-.06em; }
.breakdown-row { display:grid; grid-template-columns: 88px 1fr auto; gap:10px; align-items:center; margin:12px 0; }
.breakdown-row div { height:10px; background:var(--surface-soft); border-radius:999px; overflow:hidden; }
.breakdown-row i { display:block; height:100%; background:var(--accent); border-radius:999px; }
.quick-actions { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
.quick-actions a {
  min-height:72px;
  display:flex;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:var(--surface-soft);
  color:#111;
  text-decoration:none;
  font-weight:900;
}
.smtp-card-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:16px; margin-top:18px; }
.smtp-provider-card { display:grid; gap:14px; }
.smtp-provider-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.smtp-provider-head strong { font-size:20px; }
.smtp-provider-card p { color:var(--text-2); margin:0; }
.smtp-provider-card small { color:var(--text-2); }
.smtp-actions { display:grid; gap:8px; }
.smtp-actions form { display:flex; gap:8px; flex-wrap:wrap; margin:0; }
.smtp-actions input { min-width:0; flex:1; }
@media (max-width: 920px) {
  .app-shell { width: min(100% - 20px, 1440px); margin: 10px auto; border-radius: 24px; }
  .topbar { height:auto; padding:18px; flex-wrap:wrap; align-items:center; position:relative; }
  .brand img { width: 52px; height: 52px; }
  .brand-wordmark { font-size: 1.1rem; }
  .mobile-menu-btn { display:inline-flex; margin-left:auto; }
  .mobile-nav-panel {
    display:none;
    order:3;
    width:100%;
    padding:12px;
    border-radius:22px;
    background:rgba(17,17,17,.97);
    border:1px solid rgba(134,239,47,.22);
    box-shadow:0 22px 44px rgba(17,17,17,.18);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  .mobile-nav-panel.open { display:grid; gap:10px; }
  .mobile-nav-panel .pill-nav {
    width:100%;
    overflow:visible;
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    padding:0;
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .mobile-nav-panel .pill-nav a {
    color:rgba(255,255,255,.78);
    padding:12px 14px;
    min-height:44px;
    display:flex;
    align-items:center;
  }
  .mobile-nav-panel .pill-nav a.active,
  .mobile-nav-panel .pill-nav a:hover {
    background:var(--accent);
    color:#111;
    transform:none;
  }
  .mobile-nav-panel .top-actions {
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:8px;
  }
  .mobile-nav-panel .top-actions .btn,
  .mobile-nav-panel .top-actions .icon-btn {
    width:100%;
    min-height:44px;
  }
  .mobile-nav-panel .top-actions .icon-btn { border-radius:999px; }
  .page { grid-template-columns:1fr; padding:0 14px 18px; }
  .rail { display:none; }
  .hero-grid, .grid-3, .form-grid, .send-console, .template-workspace, .template-editor-grid { grid-template-columns:1fr; }
  .assignment-brief-amounts,
  .assignment-brief-layout {
    grid-template-columns: 1fr;
  }
  .send-active-job,
  .send-delay-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .send-delay-range {
    grid-template-columns: 1fr;
  }
  .send-active-job-meta {
    justify-content: flex-start;
  }
  .admin-shell { width:min(100% - 20px, 1500px); grid-template-columns:1fr; margin:10px auto; }
  .admin-sidebar { position:static; border-radius:24px; gap:14px; }
  .admin-topbar, .admin-top-actions { align-items:stretch; flex-direction:column; }
  .admin-search { min-width:0; max-width:none; width:100%; }
  .admin-stat-grid, .admin-mid-grid, .admin-bottom-grid, .smtp-card-grid { grid-template-columns:1fr; }
  .users-admin-table { min-width: 760px; }
  .user-details-grid { grid-template-columns: 1fr; }
  .about-cta { align-items:flex-start; flex-direction:column; }
  .activation-stepper { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column; }
  .wizard-actions .btn { width: 100%; }
  .auth-card h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .content { padding:18px; }
}

/* Admin-configurable agency colors. */
.btn-primary:hover{background:var(--primary-hover,#65D91F)}

.admin-sidebar{background:var(--sidebar-bg,#111111);color:var(--sidebar-text,#D1D5DB);border-color:var(--sidebar-border,#374151)}
.admin-sidebar .admin-brand{color:var(--sidebar-heading,#FFFFFF)}
