@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f2f6fb;
  --bg-card: #ffffff;
  --ink: #13243a;
  --ink-muted: #5d6e86;
  --line: #d8e2ee;
  --brand-a: #d43474;
  --brand-b: #ff5e93;
  --brand-c: #8b2f70;
  --danger: #9f2d2d;
  --shadow: 0 14px 34px rgba(18, 41, 67, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #ffe2ef 0, transparent 37%),
    radial-gradient(circle at 20% 20%, #f7d9f8 0, transparent 40%),
    radial-gradient(circle at bottom left, #ffe6f1 0, transparent 39%),
    var(--bg);
}

.wrap {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid #9dc2ef;
  background:
    radial-gradient(1200px 300px at 0% -20%, rgba(255, 122, 170, 0.24), transparent),
    linear-gradient(90deg, #4d0f3b 0%, #8c2156 38%, #d43474 100%);
  color: #f6fbff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease;
}

.topbar--hidden {
  transform: translateY(-100%);
}

.topbar-inner {
  min-height: 90px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 0;
}

.brand-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand {
  font-size: 1.42rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #ecffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 216, 232, 0.3);
}

.top-meta {
  font-size: 0.84rem;
  color: #ffd7e8;
}

.sep {
  opacity: 0.45;
  padding: 0 6px;
}

.search {
  display: flex;
  width: 100%;
  grid-column: 1 / -1;
  gap: 10px;
}

.search input {
  flex: 1;
  border: 1px solid #f0a6c5;
  border-radius: 12px;
  padding: 12px 13px;
  color: #4d1841;
  background: rgba(255, 246, 251, 0.98);
  font-family: "Sora", sans-serif;
}

.search button {
  border: none;
  border-radius: 12px;
  padding: 12px 17px;
  background: linear-gradient(120deg, #ffd1e1, #ff6ea0);
  color: #4a1036;
  font-weight: 800;
  cursor: pointer;
  font-family: "Sora", sans-serif;
}

.header-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.menu-group {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #ffd8e8;
  opacity: 0.9;
  margin-right: 2px;
}

.nav a {
  color: #ffe4f0;
  border: 1px solid rgba(255, 194, 222, 0.45);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  text-decoration: none;
}

.nav-utility a {
  border-style: dashed;
  color: #ffe9f2;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.endpoint-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: #ffe8f2;
  border: 1px solid rgba(255, 180, 210, 0.45);
  background: rgba(64, 8, 43, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
}

main {
  padding: 22px 0 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2eaed;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #7a2553;
  font-weight: 700;
  background: #fff0f6;
}

a {
  color: #c12e69;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.muted {
  color: var(--ink-muted);
}

.details {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 8px 12px;
}

.details dt {
  color: #3a4d67;
  font-weight: 600;
}

.details dd {
  margin: 0;
  word-break: break-word;
}

.stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stats div {
  border: 1px solid #f2d4e2;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fff4f8, #ffffff);
}

.stats span {
  display: block;
  color: #48656d;
  font-size: 0.85rem;
}

.stats strong {
  font-size: 1rem;
}

.error {
  border-color: #e4bbbb;
  background: #fff6f6;
  color: var(--danger);
}

.section-actions {
  margin-top: 12px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9b6cc;
  border-radius: 10px;
  padding: 8px 14px;
  background: #fff2f7;
  color: #7e1f52;
  font-weight: 600;
  text-decoration: none;
}

.btn-link:hover {
  background: #ffe8f1;
  text-decoration: none;
}

.btn-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pager {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.footer {
  border-top: 1px solid #ccddf2;
  padding: 16px 0;
  color: #4f6581;
  font-size: 0.9rem;
}

@media (min-width: 980px) {
  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .search {
    grid-column: auto;
    justify-self: end;
    width: min(690px, 100%);
  }

  .header-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    will-change: transform;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }
}
