:root {
  --yellow: #ffd400;
  --black: #0a0a0a;
  --panel: #171717;
  --line: #363636;
  --text: #f7f7f7;
  --muted: #aaa;
  --green: #5ed48b;
  --red: #ff6b6b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.brand {
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .08em;
}

.area {
  margin-left: 14px;
  color: var(--muted);
  font-size: .9rem;
}

main {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h1 { margin: 3px 0 0; font-size: clamp(2rem, 6vw, 3.7rem); }
h2 { margin: 3px 0 0; font-size: clamp(1.4rem, 4vw, 2rem); }
p { line-height: 1.55; }
.eyebrow { margin: 0; color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.muted, .admin-email { color: var(--muted); }
.admin-email { margin: 0 0 8px; }

.card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

.compact { width: min(480px, 100%); margin: 8vh auto 0; }

.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 12px; }
.nav-card {
  display: block;
  width: 100%;
  min-height: auto;
  padding: clamp(22px, 5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.nav-card:hover, .nav-card:focus-visible { border-color: var(--yellow); transform: translateY(-2px); }
.nav-card h2 { margin-top: 8px; }
.nav-card .muted { margin: 10px 0 0; }
.nav-card-count { margin: 18px 0 0; color: var(--yellow); font-weight: 800; }
.hidden { display: none !important; }
.editor-card { margin-bottom: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
#active-count { color: var(--yellow); }

form { margin-top: 26px; }
label { display: block; margin: 0 0 8px; font-size: .85rem; font-weight: 700; }

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #4b4b4b;
  border-radius: 9px;
  background: #0e0e0e;
  color: var(--text);
  font: inherit;
}

input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }

button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--yellow);
  border-radius: 9px;
  background: var(--yellow);
  color: #000;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled { cursor: wait; opacity: .55; }
.secondary { background: transparent; color: var(--yellow); }
.small { min-height: 38px; padding: 7px 13px; font-size: .85rem; }
.danger { border-color: #743939; background: transparent; color: var(--red); }
.link-button { min-height: auto; padding: 7px 0; border: 0; background: transparent; color: var(--muted); }

.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 24px; }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.field-hint { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 22px; }
.stat-tile {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.stat-value { margin: 6px 0 0; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 850; }
.stat-detail { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 650px) {
  .stat-tiles { grid-template-columns: 1fr; }
}

.status-box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
}

.status-box.active { border-color: #2f6b45; color: var(--green); }
.status-box.inactive { border-color: #704141; color: var(--red); }
.status-box.empty { color: var(--muted); }
.status-title { display: block; margin-bottom: 5px; font-weight: 850; }
.status-detail { color: var(--muted); font-size: .9rem; }
.message { min-height: 24px; margin: 18px 0 0; color: var(--muted); }
.message.error { color: var(--red); }
.message.success { color: var(--green); }

.table-wrap { margin-top: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: .92rem; }
td:last-child, th:last-child { text-align: right; }
.source-pill { display: inline-block; padding: 4px 7px; border-radius: 999px; background: #2b2b2b; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.club-row { cursor: pointer; }
.club-row:hover td { background: rgba(255, 255, 255, .03); }
.club-row td:first-child { display: flex; align-items: center; gap: 8px; }
.club-team-row td { color: var(--muted); }
.club-team-row td:first-child { padding-left: 26px; }
.edit-customer { min-height: 34px; padding: 5px 10px; }
.legacy-id { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 650px) {
  main { padding-top: 34px; }
  .intro { display: block; }
  .admin-email { margin-top: 12px; }
  .grid { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-direction: column; }
  .search-row { grid-template-columns: 1fr; }
  .area { display: none; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .nav-cards { grid-template-columns: 1fr; }
}

/* outreach.hellofans.de-specific: logo colors + template mockup gallery. */

textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #4b4b4b;
  border-radius: 9px;
  background: #0e0e0e;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }

input[type="file"] { padding: 10px 13px; min-height: auto; }

.logo-dropzone {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.logo-dropzone:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.logo-dropzone.active {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, .06);
}

.color-swatches { display: flex; gap: 8px; margin-top: 12px; }
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-block;
}

.color-palette { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.color-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease;
}
.color-tile:hover { border-color: var(--yellow); }
.color-tile.selected { border-color: var(--yellow); border-width: 2px; padding: 5px; }
.color-tile-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  display: block;
}
.color-tile-rank {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.color-tile.selected .color-tile-rank { background: var(--yellow); color: #111; }

.logo-preview {
  display: block;
  max-width: 120px;
  max-height: 120px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #0e0e0e;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.gallery-item {
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #0e0e0e;
  cursor: pointer;
  min-height: auto;
}
.gallery-item img { display: block; width: 100%; border-radius: 8px; }
.gallery-item.selected { border-color: var(--yellow); }
.gallery-item:hover { border-color: #6b6b6b; }
.gallery-item.selected:hover { border-color: var(--yellow); }

td label.inline-checkbox,
td label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}
td input[type="checkbox"] { width: auto; min-height: auto; }
