:root {
  --purple: #c98a00;
  --purple-dark: #4a3300;
  --pink: #ffc400;
  --rose: #ffd44d;
  --orange: #e0a80a;
  --burnt-orange: #c98a00;
  --yellow: #ffc400;
  --yellow-soft: #ffe9a3;
  --teal: #c98a00;
  --cream: #fff0c8;
  --cream-light: #fff8df;
  --paper: rgba(255, 244, 214, .86);
  --ink: #1a1408;
  --muted: rgba(26,20,8, .68);
  --line: rgba(26,20,8, .34);
  --soft-line: rgba(26,20,8, .14);
  --shadow: rgba(26,20,8, .16);
  --danger: #1a1408;
  --success: #c98a00;
  --radius: 24px;
  /* Type roles mirror the flyer: the groovy display face is spent only on
     the marquee moments (the way "ATLANTA" gets it), everything else is
     the heavy grotesque used for the date bars and artist names. */
  --font-display: "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Archivo", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 91% 2%, rgba(255,196,0, .72) 0 70px, rgba(224,168,10,.50) 71px 94px, transparent 96px),
    radial-gradient(circle at 9% 82%, rgba(255,196,0,.30), transparent 25%),
    radial-gradient(circle at 82% 82%, rgba(201,138,0,.24), transparent 30%),
    linear-gradient(180deg, #c98a00 0%, #e0a80a 34%, #ffc400 58%, #ffcc1f 78%, #ffd84d 100%);
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(26,20,8,.20) 1px, transparent 1.2px);
  background-size: 48px 48px, 48px 48px, 7px 7px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,248,223,.05), transparent 36%, rgba(26,20,8,.04));
  z-index: 0;
}

button,
input { font: inherit; }
a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 4px 0 22px;
}

.tool-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-badge {
  width: 52px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .03em;
  line-height: 1;
  padding-top: 1px;
  box-shadow: 2px 2px 0 rgba(26,20,8,.70);
  text-transform: uppercase;
}

.logo-text {
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,248,223,.92);
  text-shadow: 1px 1px 0 rgba(26,20,8,.48);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink);
}

.topbar-links span {
  border: 1px solid rgba(26,20,8,.35);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 248, 223, .46);
  backdrop-filter: blur(8px);
}

.topbar-links span:last-child { background: rgba(255,196,0,.78); }

.hero-card,
.panel {
  border: 1.5px solid rgba(26,20,8,.55);
  background: var(--paper);
  box-shadow: 0 22px 55px var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-card.short { min-height: 360px; }

.hero-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: 42px;
  width: 158px;
  height: 158px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,196,0,.88) 0 42%, rgba(224,168,10,.46) 43% 64%, transparent 65%);
  opacity: .58;
}

.hero-card::after {
  content: "↘ ↘";
  position: absolute;
  left: 24px;
  bottom: 32px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,196,0,.46);
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  border: 1px solid rgba(26,20,8,.38);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 248, 223, .52);
  color: var(--ink);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow.small {
  margin-bottom: 10px;
  padding: 8px 10px;
  font-size: 9.5px;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin: 0;
  max-width: 650px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.0;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
  text-shadow: 2px 2px 0 rgba(26,20,8,.12);
}

h1::after,
.panel::before {
  content: "";
  display: block;
  width: 116px;
  height: 6px;
  border-radius: 999px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--yellow));
}

h2 {
  margin: 0 0 8px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.005em;
  line-height: 1.08;
}

h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

.intro {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.68;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  max-width: 640px;
}

.pill {
  border: 1px solid rgba(26,20,8,.30);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,248,223,.54);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pill:nth-child(2) { background: rgba(255,196,0,.50); }
.pill:nth-child(3) { background: rgba(201,138,0,.13); }
.pill:nth-child(4) { background: rgba(224,168,10,.18); }

.panel {
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 244, 214, .88);
}

.panel::before {
  width: 100%;
  margin: 0 0 18px;
  opacity: .92;
}

.panel.slim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.login-panel {
  max-width: 560px;
  margin: 0 auto 18px;
}

.panel p,
.section-title p,
.toolbar p,
.meta {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 550;
  margin-bottom: 0;
}

.admin-form { margin-top: 4px; }

label {
  display: block;
  font-size: 10px;
  color: var(--ink);
  margin: 14px 0 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
}

input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(26,20,8,.30);
  border-radius: 15px;
  background: rgba(255, 248, 223, .78);
  color: var(--ink);
  padding: 13px 13px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

input::placeholder { color: rgba(26,20,8,.42); }
input:focus {
  background: var(--cream-light);
  border-color: rgba(26,20,8,.74);
  box-shadow: 0 0 0 4px rgba(255,196,0,.24);
}

.primary-button,
.secondary-button,
.vendor-row button {
  margin-top: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--cream-light);
  box-shadow: 0 10px 22px rgba(26,20,8,.18);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .09em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

.primary-button {
  width: 100%;
}

.secondary-button {
  margin-top: 0;
  background: rgba(255,248,223,.64);
  color: var(--ink);
  border-color: rgba(26,20,8,.32);
}

.primary-button:hover,
.secondary-button:hover,
.vendor-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(26,20,8,.22);
}

button:disabled,
.vendor-row button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.hidden { display: none !important; }

.message {
  min-height: 22px;
  margin: 13px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.toolbar,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid rgba(26,20,8,.24);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 244, 214, .84);
  box-shadow: 0 16px 36px rgba(26,20,8,.10);
  backdrop-filter: blur(8px);
}

.stat span {
  display: block;
  color: rgba(26,20,8,.60);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}

.stat:nth-child(1) { background: linear-gradient(135deg, rgba(255,248,223,.94), rgba(255,233,163,.74)); }
.stat:nth-child(2) { background: linear-gradient(135deg, rgba(255,248,223,.94), rgba(201,138,0,.12)); }
.stat:nth-child(3) { background: linear-gradient(135deg, rgba(255,248,223,.94), rgba(224,168,10,.18)); }
.stat:nth-child(4) { background: linear-gradient(135deg, rgba(255,248,223,.94), rgba(255,196,0,.12)); }

.vendor-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.vendor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(130px, .7fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(26,20,8,.20);
  border-radius: 20px;
  background: rgba(255, 248, 223, .48);
}

.vendor-row .amount {
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
}

.vendor-row button {
  margin-top: 0;
  white-space: nowrap;
  padding: 12px 15px;
}

.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 850;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,248,223,.60);
  border: 1px solid rgba(26,20,8,.20);
}

.status.ready {
  color: var(--success);
  border-color: rgba(201,138,0,.35);
  background: rgba(201,138,0,.10);
}

.status.not-ready {
  color: var(--danger);
  border-color: rgba(26,20,8,.32);
  background: rgba(26,20,8,.08);
}

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(26,20,8,.12);
  font-size: 12px;
}

th {
  color: rgba(26,20,8,.64);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 850;
}

td {
  color: var(--ink);
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,244,214,.96);
  border: 1px solid rgba(26,20,8,.24);
  box-shadow: 0 22px 55px var(--shadow);
  font-size: 12.5px;
  font-weight: 650;
  z-index: 9;
}

.footer {
  margin-top: 30px;
  padding: 14px 0 0;
  color: rgba(26,20,8,.72);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  text-shadow: 1px 1px 0 rgba(255,248,223,.45);
}

@media (max-width: 980px) {
  .shell { width: min(100% - 26px, 760px); padding-bottom: 34px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-links { justify-content: flex-start; }
  .panel.slim,
  .toolbar,
  .section-title { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vendor-row { grid-template-columns: 1fr; }
  .vendor-row button { width: 100%; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 14px; }
  .logo-text { font-size: 11px; }
  .logo-badge { width: 48px; height: 29px; font-size: 14px; }
  .topbar-links span { font-size: 9.5px; padding: 7px 9px; }
  .hero-card, .panel { border-radius: 23px; }
  .hero-card { padding: 23px 18px; min-height: 330px; }
  h1 { font-size: clamp(32px, 10.8vw, 46px); letter-spacing: .005em; }
  .intro { font-size: 14px; line-height: 1.58; }
  .hero-card::before { width: 124px; height: 124px; right: -62px; top: 46px; }
  .hero-card::after { font-size: 32px; bottom: 30px; }
  .panel { padding: 17px; }
  h2 { font-size: 18px; }
  .summary-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 26px; }
  .toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid rgba(26,20,8,.25);
  border-radius: 999px;
  background: rgba(255,248,223,.50);
}

.role-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  cursor: pointer;
}

.role-btn.active {
  background: var(--yellow);
  border-color: rgba(26,20,8,.55);
  box-shadow: 2px 2px 0 rgba(26,20,8,.50);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.secondary-button.ghost {
  background: rgba(255,248,223,.40);
}

.vendor-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-card {
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: rgba(255,248,223,.48);
  padding: 14px;
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.detail-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.payout-note {
  margin-top: 14px;
  border: 1px solid rgba(26,20,8,.22);
  border-radius: 18px;
  background: rgba(255,196,0,.28);
  padding: 14px;
  color: var(--ink);
  font-weight: 700;
}

.amount.negative { color: var(--danger); }

.status.paid,
.status.sent,
.status.complete,
.status.completed {
  color: var(--success);
  border-color: rgba(201,138,0,.35);
  background: rgba(201,138,0,.10);
}

.status.unpaid,
.status.pending,
.status.processing,
.status.created {
  color: var(--burnt-orange);
  border-color: rgba(201,138,0,.35);
  background: rgba(255,196,0,.18);
}

@media (max-width: 780px) {
  .vendor-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .vendor-detail-grid {
    grid-template-columns: 1fr;
  }

  .role-toggle {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }
}
