/* ===== MEMBER / AKUN OVERLAY ===== */
    .member-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 10001;
  background: var(--bg, #F0F2F5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.member-overlay.show { display: block; }

.member-panel {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  padding: 16px 16px 90px;
}

.member-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.member-topbar h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1B2A4A);
}
.member-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--gray-200, #E9ECEF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gray-700, #495057);
  cursor: pointer;
}

.member-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
  margin-bottom: 14px;
  border: 1px solid var(--gray-200, #E9ECEF);
}
.member-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #1B2A4A);
  margin-bottom: 8px;
}
.member-card p.sub {
  font-size: 12px;
  color: var(--gray-500, #ADB5BD);
  margin-bottom: 14px;
}

.member-form {
  display: grid;
  gap: 12px;
}
.member-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700, #495057);
}
.member-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300, #DEE2E6);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.member-form input:focus {
  outline: 2px solid rgba(27, 42, 74, 0.15);
  border-color: var(--navy-light, #2A3F6A);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 8px;
}
.password-toggle:hover {
  color: #1B2A4A;
  background: #f2f4f7;
}

.member-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  background: var(--navy, #1B2A4A);
  color: white;
}
.member-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.member-btn.secondary {
  background: white;
  color: var(--navy, #1B2A4A);
  border: 1px solid var(--gray-300, #DEE2E6);
}
.member-btn.green { background: #25D366; }
.member-btn.red { background: var(--red, #E63946); }

.member-alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.member-alert.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.member-alert.success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.member-alert.info { background: #eef4ff; color: #3538cd; border: 1px solid #c7d7fe; }

.member-profile {
  background: linear-gradient(135deg, #3538cd 0%, #2d31a6 100%);
  color: white;
  display: flex;
  overflow: hidden;
  padding: 0;
  border: none;
}
.member-profile-badge {
  width: 100px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
}
.member-crown {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f4e5a1, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #7c5e00;
}
.member-profile-body {
  flex: 1;
  padding: 16px;
}
.member-profile-body .name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.member-profile-body .line { font-size: 13px; opacity: 0.92; margin-bottom: 2px; }

.member-requirements {
  background: #fff7ed;
  border: 2px solid #fb923c;
}
.member-requirements h3 { color: #ea580c; }

.member-voucher-list { display: grid; gap: 12px; }

.mv-item {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background: white;
}
.mv-ticket { display: flex; min-height: 96px; }
.mv-stub {
  width: 72px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(160deg, #fb923c, #f97316, #ef4444);
}
.mv-stub.pending { background: linear-gradient(160deg, #fdba74, #ea580c); }
.mv-stub.used { background: linear-gradient(160deg, #94a3b8, #64748b); }
.mv-stub.expired { background: linear-gradient(160deg, #fca5a5, #dc2626); }
.mv-stub i { font-size: 20px; }
.mv-body {
  flex: 1;
  padding: 12px;
  background: rgba(249, 115, 22, 0.08);
  display: flex;
  gap: 8px;
  align-items: center;
}
.mv-body.used-bg { background: rgba(100,116,139,0.08); }
.mv-content { flex: 1; min-width: 0; }
.mv-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.mv-sub { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.mv-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 4px;
}
.mv-pill.available { background: #ecfdf3; color: #067647; }
.mv-pill.pending { background: #fff7ed; color: #b54708; }
.mv-pill.used { background: #f2f4f7; color: #344054; }
.mv-pill.rejected { background: #fef3f2; color: #b42318; }

.mv-req-block {
  padding: 10px 12px 0;
  background: #fffbeb;
  border-top: 1px dashed #fcd34d;
}
.mv-req-title {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.mv-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}
.mv-req-item:last-of-type { border-bottom: none; }
.mv-req-item.done .mv-req-label { color: #047857; }
.mv-req-label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}
.mv-req-open {
  border: 1px solid #f97316;
  background: white;
  color: #ea580c;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.mv-req-done {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
}
.mv-req-confirm {
  padding: 0 0 10px;
}
.mv-req-confirm p {
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--gray-600);
}
.mv-req-confirm-btn {
  width: auto !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
}
.mv-claim-wrap {
  padding: 10px 12px 12px;
}

.member-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.member-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--gray-700);
}
.member-tab.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.member-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.member-purchase-list {
  display: grid;
  gap: 12px;
}

.member-purchase-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.mp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

.mp-row span {
  color: var(--gray-500);
  flex-shrink: 0;
}

.mp-row strong {
  text-align: right;
  color: var(--gray-900);
  font-weight: 600;
}

.mp-row-address {
  align-items: flex-start;
}

.mp-gallery-label {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 4px 0 8px;
}

.mp-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mp-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  border: none;
  padding: 0;
  cursor: pointer;
}

.mp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-gallery-detail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.mp-gallery-empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 18px;
  font-weight: 600;
  background: #f3f4f6;
  border: 1px dashed var(--gray-300);
  cursor: default;
}

.mp-gallery-empty {
  font-size: 12px;
  color: var(--gray-500);
  padding: 8px 0 2px;
}

.mp-referral-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-referral-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--gray-600);
}

.mp-referral-note p {
  margin: 0 0 8px;
}

.mp-referral-note p:last-child {
  margin-bottom: 0;
}

.mp-referral-salam {
  color: var(--navy);
  font-weight: 600;
}

.mp-referral-highlight {
  color: #15803d;
  font-weight: 600;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
}

.mp-referral-highlight strong {
  color: #166534;
}

.mp-referral-note strong {
  color: var(--navy);
}

.mp-referral-info {
  margin-top: 4px;
  font-weight: 600;
  color: var(--navy);
}

.mp-hub-admin {
  width: 100%;
  background: #fff !important;
  color: var(--navy) !important;
  border: 1px solid var(--gray-200) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 12px !important;
}

.mp-hub-admin i {
  font-size: 18px;
  color: #25d366;
}

.mp-referral-code {
  font-size: 11px;
  color: var(--gray-600);
}

.mp-referral-code strong {
  color: var(--navy);
}

.mp-share-wa {
  width: 100%;
  background: #25d366 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 12px !important;
}

.mp-share-wa i {
  font-size: 18px;
}

.member-referral-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.member-ref-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.member-ref-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.member-ref-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--gray-600);
}

.member-ref-meta {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.6;
}

.member-ref-meta strong {
  color: var(--navy);
}

.member-ref-link {
  font-size: 10px;
  color: var(--gray-500);
  word-break: break-all;
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px dashed var(--gray-200);
}

.member-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-lightbox.hidden {
  display: none !important;
}

.member-photo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.member-photo-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.member-photo-panel img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

.member-photo-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.member-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.member-photo-nav.prev { left: -12px; }
.member-photo-nav.next { right: -12px; }
.member-photo-nav.hidden { display: none; }

.member-photo-counter {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.member-link {
  font-size: 12px;
  color: var(--navy-light);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
  width: 100%;
  margin-top: 8px;
}

.hidden { display: none !important; }

/* ===== HOME: sapaan + voucher aktif ===== */
.home-member-wrap {
  margin-top: 10px;
}
.home-member-strip {
  margin-top: 0;
  padding: 12px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2A3F6A 100%);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.18);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.home-member-greeting {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.home-member-greeting small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}
.home-voucher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.home-voucher-head i { margin-right: 4px; }
.home-voucher-all {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.home-voucher-list {
  display: grid;
  gap: 8px;
  max-width: 100%;
}
.home-voucher-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  color: #212529;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.home-voucher-card .hv-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #fb923c, #ef4444);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.home-voucher-card .hv-body {
  min-width: 0;
  overflow: hidden;
}
.home-voucher-card .hv-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.home-voucher-card .hv-sub {
  font-size: 10px;
  color: #6c757d;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-voucher-card .hv-claim {
  flex-shrink: 0;
  background: #E63946;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  max-width: 100%;
}
.home-voucher-empty {
  font-size: 12px;
  opacity: 0.9;
  padding: 6px 0 2px;
}
