/* Membership Status & Renewal Styles — AICPA & CIMA
   Supports both 'You are already qualified for membership' and 'Activate your membership' states. */

.mem-page {
  background: #f7f7f9;
  min-height: calc(100vh - 350px);
  padding: 2rem 1.25rem 4rem;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: #282937;
}

.mem-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Breadcrumb */
.mem-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c6c76;
  margin-bottom: 1.5rem;
}

.mem-breadcrumb a {
  color: #72246c;
  text-decoration: none;
}

.mem-breadcrumb a:hover {
  text-decoration: underline;
}

.mem-breadcrumb__sep {
  color: #bbbcbc;
}

/* Banner / Status Hero */
.mem-hero {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e5e6;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mem-hero--qualified {
  border-left: 6px solid #0d8a58;
}

.mem-hero--inactive {
  border-left: 6px solid #72246c;
}

.mem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mem-badge--qualified {
  background: #e6f7ef;
  color: #0d8a58;
  border: 1px solid #b7ebd3;
}

.mem-badge--inactive {
  background: #fdf3e7;
  color: #b25e00;
  border: 1px solid #fae1c3;
}

.mem-badge svg {
  width: 14px;
  height: 14px;
}

.mem-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.mem-hero__text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #505160;
  max-width: 860px;
  margin: 0;
}

/* Grid Layout */
.mem-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .mem-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.mem-card {
  background: #ffffff;
  border: 1px solid #e5e5e6;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mem-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e6;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.mem-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #282937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mem-card__title svg {
  width: 22px;
  height: 22px;
  color: #72246c;
}

/* Member Details List */
.mem-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

@media (max-width: 600px) {
  .mem-details {
    grid-template-columns: 1fr;
  }
}

.mem-detail__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c6c76;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.mem-detail__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #282937;
}

.mem-detail__value--green {
  color: #0d8a58;
  font-weight: 700;
}

.mem-detail__value--purple {
  color: #72246c;
  font-weight: 700;
}

/* Progress Section for CPE */
.mem-compliance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.mem-compliance__item {
  background: #faf9f7;
  border: 1px solid #ebe9e5;
  border-radius: 6px;
  padding: 1rem;
}

.mem-compliance__status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0d8a58;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mem-compliance__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #282937;
  margin-bottom: 0.25rem;
}

.mem-compliance__desc {
  font-size: 0.8125rem;
  color: #6c6c76;
  margin: 0;
}

.mem-progress {
  width: 100%;
  height: 6px;
  background: #e5e5e6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.mem-progress__bar {
  height: 100%;
  background: #0d8a58;
  border-radius: 999px;
}

/* Buttons and Actions */
.mem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e6;
}

.mem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mem-btn--primary {
  background: #72246c;
  color: #ffffff;
}

.mem-btn--primary:hover {
  background: #9a205f;
  color: #ffffff;
}

.mem-btn--outline {
  background: #ffffff;
  color: #72246c;
  border-color: #72246c;
}

.mem-btn--outline:hover {
  background: #fbf5fa;
  color: #9a205f;
  border-color: #9a205f;
}

.mem-btn--secondary {
  background: #282937;
  color: #ffffff;
}

.mem-btn--secondary:hover {
  background: #3c3e50;
  color: #ffffff;
}

/* Privileges Grid */
.mem-privileges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .mem-privileges {
    grid-template-columns: 1fr;
  }
}

.mem-privilege {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #faf9f7;
  border-radius: 6px;
}

.mem-privilege svg {
  width: 20px;
  height: 20px;
  color: #0d8a58;
  flex-shrink: 0;
  margin-top: 2px;
}

.mem-privilege__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 0.2rem;
}

.mem-privilege__desc {
  font-size: 0.8125rem;
  color: #6c6c76;
  margin: 0;
}

/* Sidebar Quick Nav / Support */
.mem-sidecard {
  background: #ffffff;
  border: 1px solid #e5e5e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mem-sidecard__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 1rem;
  border-bottom: 1px solid #e5e5e6;
  padding-bottom: 0.5rem;
}

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

.mem-links li {
  margin-bottom: 0.6rem;
}

.mem-links a {
  color: #72246c;
  text-decoration: none;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mem-links a:hover {
  color: #9a205f;
  text-decoration: underline;
}

.mem-support-box {
  background: #f2edf4;
  border: 1px solid #dfd3e3;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.mem-support-box h4 {
  font-size: 0.9375rem;
  color: #72246c;
  margin: 0 0 0.4rem;
}

.mem-support-box p {
  font-size: 0.8125rem;
  color: #505160;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

/* Tiers on Inactive / Activate Page */
.mem-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 800px) {
  .mem-tiers {
    grid-template-columns: 1fr;
  }
}

.mem-tier {
  background: #ffffff;
  border: 1px solid #e5e5e6;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mem-tier:hover {
  border-color: #72246c;
  box-shadow: 0 4px 12px rgba(114, 36, 108, 0.08);
}

.mem-tier__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #72246c;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mem-tier__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 0.5rem;
}

.mem-tier__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #72246c;
  margin-bottom: 1rem;
}

.mem-tier__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6c6c76;
}

.mem-tier__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #505160;
}

.mem-tier__features li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.mem-tier__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #72246c;
  font-weight: bold;
}

/* Toast alert for inert clicks */
.mem-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #282937;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mem-toast.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* User Switcher Bar for Review / Demonstration */
.mem-switch-bar {
  background: #f0edf2;
  border-bottom: 1px solid #d9d4dd;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mem-switch-bar span {
  color: #4a4a55;
  font-weight: 500;
}

.mem-switch-btns {
  display: flex;
  gap: 0.4rem;
}

.mem-switch-btn {
  background: #ffffff;
  border: 1px solid #bbbcbc;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #72246c;
  cursor: pointer;
}

.mem-switch-btn:hover {
  background: #72246c;
  color: #ffffff;
  border-color: #72246c;
}
