:root {
  --bg: #f5f7fa;
  --ink: #263238;
  --muted: #6f7d86;
  --line: #dfe7ec;
  --panel: #ffffff;
  --accent: #2585c7;
  --accent-2: #25a55f;
  --accent-3: #f2a33a;
  --shadow: 0 10px 28px rgba(38, 50, 56, 0.08);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #465761;
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  padding: 10px 12px;
  border-radius: 4px;
}

nav a:hover { background: #eef5fa; color: var(--accent); }
.login-link { color: var(--accent); }

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-bottom: 1px solid var(--line);
  padding: 54px 22px 42px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #202d35;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.55;
}

.searchbar {
  max-width: 650px;
  height: 54px;
  margin: 28px auto 0;
  display: flex;
  background: var(--panel);
  border: 1px solid #cfdce5;
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(38, 50, 56, 0.08);
  overflow: hidden;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.searchbar input:focus { box-shadow: inset 0 0 0 2px rgba(37, 133, 199, 0.25); }

.searchbar button,
.button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.searchbar button {
  min-width: 112px;
  padding: 0 20px;
}

.stats-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-row strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 22px 46px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section h2,
.request-band h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 16px;
}

.bot-card {
  min-height: 214px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.bot-card header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.bot-card img,
#dialog-avatar {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #e7eef3;
}

.bot-card h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 800;
}

.bot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bot-card .count {
  font-size: 0.86rem;
  font-weight: 700;
}

.bot-card button {
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.bot-card button:hover { filter: brightness(0.96); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5fa;
  color: #526671;
  font-size: 0.76rem;
  font-weight: 800;
}

.request-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 28px 22px;
  background: #263238;
  color: #fff;
}

.request-band > div,
.request-band .button {
  max-width: 1120px;
}

.request-band p {
  max-width: 700px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 5px;
}

.full { width: 100%; }

dialog {
  width: min(460px, calc(100vw - 28px));
  border: 0;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 22px 70px rgba(20, 30, 36, 0.24);
}

dialog::backdrop { background: rgba(20, 30, 36, 0.48); }

.dialog-card {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.dialog-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dialog-card h3,
.dialog-card p { margin: 0; }

.dialog-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.icon-button.close {
  justify-self: end;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #eef3f6;
  color: var(--muted);
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: center;
  padding: 24px 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  border: 1px solid #cfdce5;
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff;
  color: #465761;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.14);
  cursor: pointer;
}

.admin-fab:hover {
  color: var(--accent);
  border-color: #b9d5e8;
}

.admin-login-card h3 {
  margin: 3px 0 0;
  font-size: 1.45rem;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 6px;
  text-align: center;
}

@media (max-width: 760px) {
  .nav-inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 40px;
  }

  .searchbar {
    height: auto;
    flex-direction: column;
  }

  .searchbar input {
    min-height: 50px;
  }

  .searchbar button {
    min-height: 46px;
  }

  .stats-row,
  .section-head,
  .request-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .bot-grid {
    grid-template-columns: 1fr;
  }
}
