/* Membership portal pages (login, plans, dashboard) */

.mem-page {
  min-height: 100vh;
  padding: calc(var(--nav-offset, 100px) + 2rem) 1rem 4rem;
  background: var(--bg);
}

.mem-page--centered {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mem-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.mem-nav-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mem-nav-simple a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.mem-nav-simple a:hover {
  color: var(--brand);
}

.mem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(6, 40, 53, 0.06);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.mem-card--wide {
  max-width: 100%;
}

.mem-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.mem-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.mem-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.mem-form input,
.mem-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.mem-form input:focus,
.mem-form select:focus {
  outline: 2px solid rgba(220, 1, 75, 0.25);
  border-color: var(--brand);
}

.mem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.mem-btn:hover {
  background: var(--brand-dark);
}

.mem-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mem-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--brand);
  font-size: 0.9rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}

.mem-error {
  color: #b0013d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mem-status {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.mem-status--info {
  background: var(--teal-soft);
  color: var(--primary);
}

.mem-status--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.mem-status--error {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.mem-member-type {
  max-width: 280px;
  margin: 0 auto 2rem;
}

.mem-plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.5;
}

.mem-dash-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mem-dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mem-dash-stat {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.mem-dash-stat span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mem-dash-stat strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.mem-entitlements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mem-entitlements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.mem-entitlement--off {
  color: var(--muted);
  opacity: 0.7;
}

.mem-entitlement--on {
  color: var(--primary);
}

.mem-entitlement--on .bi-check-circle-fill {
  color: var(--brand);
}

.mem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mem-actions .tier-btn {
  width: auto;
  padding-inline: 1.5rem;
}

.mem-actions .mem-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
}
