* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body.member-body {
  margin: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
}
.member-top {
  border-bottom: 1px solid #292929;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.member-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.member-top a {
  color: #eee;
}
.member-main {
  max-width: 1180px;
  margin: auto;
  padding: 48px 24px 80px;
}
.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 28px;
}
.member-main h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 10px 0 16px;
}
.member-main h2 {
  font-size: 27px;
  margin: 8px 0 12px;
}
.member-main h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 10px 0;
}
.member-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f87171;
}
.member-muted,
.member-card > p {
  color: #b9b9bd;
}
.member-nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 8px 0 20px;
  margin-bottom: 16px;
}
.member-nav button {
  white-space: nowrap;
  color: #bbb;
  background: #141414;
  border: 1px solid #333;
  border-radius: 9px;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
}
.member-nav button[aria-current="page"] {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-card {
  background: #141414;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-card p {
  margin: 10px 0;
}
.member-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.member-amounts p {
  font-size: 12px;
  color: #aaa;
}
.member-amounts strong {
  display: block;
  font-size: 23px;
  color: #fff;
}
.member-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font:
    600 14px/1.4 Inter,
    system-ui,
    sans-serif;
}
.member-button.secondary {
  background: #1c1c1c;
  border-color: #3b3b3b;
}
.member-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.member-button:focus-visible,
.member-nav button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.member-badge {
  display: inline-block;
  border: 1px solid #454545;
  border-radius: 20px;
  font-size: 12px;
  padding: 4px 10px;
  color: #e5e5e5;
}
.member-empty {
  padding: 24px;
  border: 1px dashed #3b3b3b;
  border-radius: 12px;
  color: #aaa;
  grid-column: 1/-1;
}
.member-status {
  color: #fca5a5;
  min-height: 24px;
}
.member-preserve {
  white-space: pre-wrap;
}
.member-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.member-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.member-form input,
.member-form select,
.member-form textarea,
.member-search {
  width: 100%;
  border: 1px solid #444;
  background: #0d0d0d;
  color: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  font: inherit;
  min-width: 0;
}
.member-form textarea {
  min-height: 90px;
  resize: vertical;
}
.member-form input[readonly] {
  opacity: 0.65;
}
.member-form .check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-form .check input {
  width: auto;
}
.member-form button {
  justify-self: start;
}
.member-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.member-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.member-summary strong {
  display: block;
  font-size: 28px;
}
.member-summary a {
  color: #f87171;
}
.member-admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.member-list {
  max-height: 75vh;
  overflow: auto;
}
.member-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: #141414;
  border: 1px solid #333;
  padding: 14px;
  color: #eee;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.member-list button[aria-current="true"] {
  border-color: #dc2626;
}
.member-list small {
  display: block;
  color: #aaa;
}
.member-admin-main {
  max-width: 1500px;
}
.member-admin-main .member-grid {
  grid-template-columns: 1fr;
}
.member-admin-main details {
  margin: 20px 0;
}
.member-admin-main summary {
  cursor: pointer;
  font-weight: 700;
}
.member-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
@media (max-width: 760px) {
  .member-main {
    padding: 30px 18px;
  }
  .member-grid,
  .member-summary,
  .member-admin-layout {
    grid-template-columns: 1fr;
  }
  .member-top {
    padding: 16px 18px;
  }
  .member-hero {
    display: block;
  }
  .member-card {
    padding: 20px;
  }
  .member-list {
    max-height: 260px;
  }
  .member-summary {
    gap: 10px;
  }
  .member-main h2 {
    font-size: 24px;
  }
}
