.pso-membership-page {
  background:
    linear-gradient(180deg, rgba(28, 16, 10, 0.14), rgba(28, 16, 10, 0.06)),
    linear-gradient(180deg, #dbc8ad 0%, #d5c0a3 100%);
  min-height: 100vh;
}

.pso-membership-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 24px 84px;
}

.pso-membership-hero {
  text-align: center;
  margin-bottom: 34px;
  padding: 34px 28px 30px;
  border-radius: 30px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(137, 101, 58, 0.14);
  box-shadow: 0 24px 60px rgba(52, 33, 16, 0.09);
  backdrop-filter: blur(4px);
}

.pso-membership-eyebrow {
  margin: 0 0 14px;
  font-family: "Jost", sans-serif;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a6e3d;
}

.pso-membership-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.06;
  color: #2b170e;
}

.pso-membership-subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #5b4b41;
}

.pso-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 26px;
}

.pso-membership-grid-main {
  align-items: start;
}

.pso-membership-card {
  background: rgba(255, 250, 245, 0.88);
  border: 1px solid rgba(137, 101, 58, 0.12);
  border-radius: 30px;
  padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(52, 33, 16, 0.09);
}

.pso-membership-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pso-membership-sidebar-section h2,
.pso-membership-form-card h2,
.pso-membership-card h2,
.pso-membership-card h3 {
  margin: 0 0 12px;
  color: #2d190f;
}

.pso-membership-mini-label {
  margin: 0 0 10px;
  font-family: "Jost", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a6e3d;
}

.pso-membership-steps {
  display: grid;
  gap: 14px;
}

.pso-membership-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(245, 238, 229, 0.9);
  border: 1px solid rgba(137, 101, 58, 0.1);
}

.pso-membership-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7864f, #8f6232);
  color: #fffaf4;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.pso-membership-step strong {
  display: block;
  margin-bottom: 6px;
  color: #322017;
  font-size: 1.03rem;
}

.pso-membership-step p {
  margin: 0;
  line-height: 1.65;
  color: #605148;
}

.pso-membership-status-box {
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250, 244, 236, 0.96), rgba(244, 235, 223, 0.96));
  border: 1px solid rgba(137, 101, 58, 0.12);
}

.pso-membership-status-box h3 {
  margin-bottom: 12px;
}

.pso-membership-status-box p {
  margin: 0 0 10px;
  color: #4f433c;
  line-height: 1.6;
}

.pso-membership-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(137, 101, 58, 0.12);
}

.pso-membership-card-copy,
.pso-membership-copy {
  color: #5c4e44;
  line-height: 1.72;
}

.pso-membership-card-copy {
  max-width: 390px;
  margin: 0;
  text-align: right;
}

.pso-membership-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.pso-field--full {
  grid-column: 1 / -1;
}

.pso-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pso-field label {
  font-size: 1rem;
  color: #39251a;
  font-weight: 600;
}

.pso-field input,
.pso-field select,
.pso-field textarea {
  width: 100%;
  border: 1px solid rgba(137, 101, 58, 0.2);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 0.98rem;
  font-family: "Source Serif 4", serif;
  color: #2c1c13;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-sizing: border-box;
}

.pso-field input:focus,
.pso-field select:focus,
.pso-field textarea:focus {
  border-color: rgba(155, 105, 56, 0.7);
  box-shadow: 0 0 0 4px rgba(184, 134, 79, 0.12);
}

.pso-field textarea {
  min-height: 150px;
  resize: vertical;
}

.pso-field small {
  color: #78675c;
  font-size: 0.9rem;
}

.pso-membership-form-actions,
.pso-admin-actions,
.pso-profile-member-card-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pso-membership-submit,
.pso-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: "Jost", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.pso-button:hover,
.pso-membership-submit:hover {
  transform: translateY(-1px);
}

.pso-button-primary,
.pso-membership-submit {
  background: linear-gradient(180deg, #b7864f 0%, #946433 100%);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(148, 100, 51, 0.18);
}

.pso-button-secondary {
  background: rgba(255, 248, 240, 0.94);
  color: #6e4d2e;
  border: 1px solid rgba(137, 101, 58, 0.16);
}

.pso-auth-message {
  min-height: 26px;
  margin-top: 14px;
  color: #6b4d2e;
}

.pso-chat-window {
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  padding: 18px;
  border-radius: 20px;
  background: rgba(246, 239, 231, 0.86);
  border: 1px solid rgba(137, 101, 58, 0.12);
  margin-bottom: 14px;
}

.pso-chat-message {
  max-width: 80%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.55;
  word-break: break-word;
}

.pso-chat-message strong {
  display: block;
  margin-bottom: 4px;
}

.pso-chat-message.user {
  margin-left: auto;
  background: #ead7c3;
}

.pso-chat-message.admin {
  margin-right: auto;
  background: #efe7dc;
}

.pso-chat-empty {
  color: #7a6b5f;
  font-style: italic;
}

.pso-chat-compose {
  display: grid;
  gap: 10px;
}

.pso-chat-compose textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid rgba(137, 101, 58, 0.2);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 0.98rem;
  font-family: "Source Serif 4", serif;
  color: #2c1c13;
  box-sizing: border-box;
}

.pso-admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.pso-admin-request-list {
  display: grid;
  gap: 12px;
}

.pso-admin-request-item {
  border: 1px solid rgba(137, 101, 58, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(250, 244, 236, 0.94);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pso-admin-request-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(40, 31, 24, 0.08);
}

.pso-admin-request-item.is-active {
  border-color: #8a6437;
  background: #f3e7d8;
}

.pso-admin-request-detail {
  min-height: 180px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(246, 239, 231, 0.86);
  border: 1px solid rgba(137, 101, 58, 0.12);
}

.pso-admin-request-meta {
  display: grid;
  gap: 8px;
}

.pso-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #eadfce;
  color: #3a2a1d;
}

.pso-status-pill.pending {
  background: #efe4d4;
}

.pso-status-pill.approved {
  background: #dcefd9;
}

.pso-status-pill.rejected {
  background: #f3dada;
}

@media (max-width: 980px) {
  .pso-membership-grid,
  .pso-admin-grid,
  .pso-membership-field-grid {
    grid-template-columns: 1fr;
  }

  .pso-membership-card-head {
    flex-direction: column;
    align-items: start;
  }

  .pso-membership-card-copy {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .pso-membership-shell {
    padding: 32px 16px 60px;
  }

  .pso-membership-card,
  .pso-membership-hero {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .pso-membership-hero h1 {
    font-size: 2.45rem;
  }
}

.pso-admin-email-link {
  color: var(--gold-light);
  text-decoration: underline;
}