/* Membership Card / Slip — classic professional credentials desk */

.ec-mc-page {
  --ec-mc-ink: rgba(255, 255, 255, 0.92);
  --ec-mc-muted: rgba(255, 255, 255, 0.55);
  --ec-mc-faint: rgba(255, 255, 255, 0.12);
  --ec-mc-line: rgba(255, 255, 255, 0.1);
  --ec-mc-surface: rgba(0, 0, 0, 0.28);
  --ec-mc-surface-2: rgba(0, 0, 0, 0.18);
  --ec-mc-green: #2fa84f;
  --ec-mc-gold: #d4a017;
  --ec-mc-blue: #6ec6e8;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

html.light .ec-mc-page {
  --ec-mc-ink: #0f172a;
  --ec-mc-muted: #64748b;
  --ec-mc-faint: rgba(15, 23, 42, 0.08);
  --ec-mc-line: rgba(15, 23, 42, 0.1);
  --ec-mc-surface: #ffffff;
  --ec-mc-surface-2: #f8fafc;
}

.ec-mc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  border: 1px solid var(--ec-mc-line);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(47, 168, 79, 0.12), transparent 42%),
    linear-gradient(225deg, rgba(212, 160, 23, 0.08), transparent 40%),
    var(--ec-mc-surface);
  padding: 1.35rem 1.5rem;
}

html.light .ec-mc-hero {
  background:
    linear-gradient(135deg, rgba(47, 168, 79, 0.08), transparent 45%),
    linear-gradient(225deg, rgba(110, 198, 232, 0.1), transparent 40%),
    #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ec-mc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ec-mc-gold);
}

.ec-mc-title {
  margin: 0;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ec-mc-ink);
}

.ec-mc-subtitle {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ec-mc-muted);
}

.ec-mc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ec-mc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .ec-mc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ec-mc-stat {
  border: 1px solid var(--ec-mc-line);
  border-radius: 0.85rem;
  background: var(--ec-mc-surface);
  padding: 0.9rem 1rem;
}

html.light .ec-mc-stat {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ec-mc-stat__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-stat__value {
  margin: 0.4rem 0 0;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
  line-height: 1.25;
  word-break: break-word;
}

.ec-mc-stat[data-tone="approved"] .ec-mc-stat__value {
  color: var(--ec-mc-green);
}

.ec-mc-stat[data-tone="pending"] .ec-mc-stat__value {
  color: #f59e0b;
}

.ec-mc-stat[data-tone="gold"] .ec-mc-stat__value {
  color: var(--ec-mc-gold);
}

.ec-mc-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--ec-mc-line);
  border-radius: 1rem;
  background: var(--ec-mc-surface);
  overflow: hidden;
  min-height: min(62vh, 640px);
}

html.light .ec-mc-workspace {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

@media (max-width: 960px) {
  .ec-mc-workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.ec-mc-preview {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ec-mc-line);
  background: var(--ec-mc-surface-2);
  padding: 1.25rem;
}

html.light .ec-mc-preview {
  background: #f8fafc;
}

@media (max-width: 960px) {
  .ec-mc-preview {
    border-right: none;
    border-bottom: 1px solid var(--ec-mc-line);
  }
}

.ec-mc-preview__label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-id-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ec-mc-line);
  border-radius: 0.9rem;
  background:
    linear-gradient(160deg, rgba(47, 168, 79, 0.14), transparent 45%),
    linear-gradient(210deg, rgba(212, 160, 23, 0.1), transparent 50%),
    var(--ec-mc-surface);
  padding: 1.15rem;
  min-height: 420px;
}

html.light .ec-mc-id-card {
  background:
    linear-gradient(160deg, rgba(47, 168, 79, 0.08), transparent 45%),
    linear-gradient(210deg, rgba(110, 198, 232, 0.08), transparent 50%),
    #fff;
}

.ec-mc-id-card__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ec-mc-line);
  margin-bottom: 1rem;
}

.ec-mc-id-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(47, 168, 79, 0.4);
  background: rgba(47, 168, 79, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ec-mc-gold);
}

.ec-mc-id-card__brand-text {
  min-width: 0;
}

.ec-mc-id-card__brand-text p {
  margin: 0;
}

.ec-mc-id-card__brand-text .ec-mc-brand-name {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
}

.ec-mc-id-card__brand-text .ec-mc-brand-sub {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-id-card__person {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.ec-mc-photo {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid var(--ec-mc-line);
  background: var(--ec-mc-surface-2);
}

.ec-mc-photo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
  background: rgba(47, 168, 79, 0.18);
}

.ec-mc-person-meta {
  min-width: 0;
  flex: 1;
}

.ec-mc-person-name {
  margin: 0;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
  line-height: 1.25;
}

.ec-mc-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ec-mc-pill--executive {
  background: rgba(212, 160, 23, 0.18);
  color: #fde68a;
}

html.light .ec-mc-pill--executive {
  color: #92400e;
}

.ec-mc-pill--volunteer {
  background: rgba(110, 198, 232, 0.18);
  color: #bae6fd;
}

html.light .ec-mc-pill--volunteer {
  color: #075985;
}

.ec-mc-pill--member {
  background: rgba(47, 168, 79, 0.18);
  color: #bbf7d0;
}

html.light .ec-mc-pill--member {
  color: #166534;
}

.ec-mc-membership-no {
  margin: 0.55rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ec-mc-gold);
  letter-spacing: 0.02em;
}

.ec-mc-id-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.ec-mc-id-field {
  border: 1px solid var(--ec-mc-line);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.12);
  padding: 0.55rem 0.65rem;
}

html.light .ec-mc-id-field {
  background: #f8fafc;
}

.ec-mc-id-field__label {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-id-field__value {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ec-mc-ink);
}

.ec-mc-qr-wrap {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.ec-mc-qr {
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.45rem;
  border: 1px solid var(--ec-mc-line);
  object-fit: contain;
}

.ec-mc-qr-caption {
  margin: 0;
  font-size: 0.68rem;
  color: var(--ec-mc-muted);
  text-align: center;
}

.ec-mc-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.ec-mc-panel__head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--ec-mc-line);
}

.ec-mc-panel__title {
  margin: 0;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
}

.ec-mc-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ec-mc-muted);
  line-height: 1.45;
}

.ec-mc-panel__body {
  flex: 1;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ec-mc-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .ec-mc-detail-list {
    grid-template-columns: 1fr;
  }
}

.ec-mc-detail {
  border: 1px solid var(--ec-mc-line);
  border-radius: 0.75rem;
  background: var(--ec-mc-surface-2);
  padding: 0.75rem 0.85rem;
}

html.light .ec-mc-detail {
  background: #f8fafc;
}

.ec-mc-detail__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-mc-muted);
}

.ec-mc-detail__value {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ec-mc-ink);
  word-break: break-word;
}

.ec-mc-note {
  margin: 0;
  border: 1px solid var(--ec-mc-line);
  border-radius: 0.75rem;
  background: rgba(212, 160, 23, 0.08);
  padding: 0.85rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ec-mc-muted);
}

.ec-mc-panel__footer {
  margin-top: auto;
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--ec-mc-line);
  background: var(--ec-mc-surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

html.light .ec-mc-panel__footer {
  background: #f8fafc;
}

.ec-mc-footer-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ec-mc-muted);
}

.ec-mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ec-mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid var(--ec-mc-line);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ec-mc-ink);
  background: var(--ec-mc-surface);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.ec-mc-btn:hover:not(:disabled) {
  border-color: rgba(47, 168, 79, 0.4);
  background: rgba(47, 168, 79, 0.1);
}

.ec-mc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ec-mc-btn--primary {
  border-color: rgba(47, 168, 79, 0.45);
  background: rgba(47, 168, 79, 0.22);
  color: #bbf7d0;
}

html.light .ec-mc-btn--primary {
  color: #14532d;
  background: rgba(47, 168, 79, 0.14);
}

.ec-mc-btn--gold {
  border-color: rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.14);
  color: #fde68a;
}

html.light .ec-mc-btn--gold {
  color: #92400e;
}

.ec-mc-btn--ghost {
  background: transparent;
}

.ec-mc-loading,
.ec-mc-empty {
  border: 1px solid var(--ec-mc-line);
  border-radius: 1rem;
  background: var(--ec-mc-surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.ec-mc-empty__title {
  margin: 0;
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ec-mc-ink);
}

.ec-mc-empty__text {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ec-mc-muted);
}

.ec-mc-loading {
  color: var(--ec-mc-muted);
  font-size: 0.9rem;
}
