/* Membership - Kemenangan Jaya */
.membership-page {
  background: #f4f6f9;
  font-family: 'Poppins', sans-serif;
}

/* ===== HERO ===== */
.member-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
  color: #fff;
  background: linear-gradient(125deg, #1e1b4b 0%, #4c1d95 38%, #7c3aed 68%, #a855f7 100%);
}

.member-hero::before,
.member-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.member-hero::before {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
}

.member-hero::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -70px;
}

.member-hero-inner {
  position: relative;
  z-index: 1;
}

.member-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.member-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 640px;
}

.member-hero h1 span {
  color: #fde68a;
}

.member-hero-lead {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 0 24px;
}

.member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.member-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-btn-primary {
  background: #fff;
  color: #6d28d9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-btn-primary:hover {
  color: #5b21b6;
  transform: translateY(-2px);
}

.member-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.member-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.member-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-stat-chip {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 16px;
}

.member-stat-chip strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.member-stat-chip span {
  font-size: 11px;
  opacity: 0.88;
}

/* ===== TRUST ===== */
.member-trust {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: 16px 0;
  margin-bottom: 36px;
}

.member-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.member-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.member-trust-item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f3ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.member-trust-item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 2px;
}

/* ===== SECTION HEAD ===== */
.member-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.member-section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.member-section-head p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TIER GRID ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  align-items: stretch;
}

.tier-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.tier-card.popular {
  border-color: #f59e0b;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.tier-header {
  padding: 24px 18px 18px;
  text-align: center;
}

.tier-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.tier-nama {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.tier-harga {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}

.tier-min {
  font-size: 11px;
  opacity: 0.75;
  margin: 0;
}

.tier-body {
  padding: 0 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tier-fitur {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

.tier-fitur li {
  font-size: 12px;
  color: #475569;
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.45;
}

.tier-fitur li:last-child {
  border-bottom: none;
}

.tier-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-daftar-tier {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-daftar-tier:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ===== BENEFITS ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.benefit-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
}

.benefit-card i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f3ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.benefit-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.benefit-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ===== MEMBER CARD PREVIEW ===== */
.member-card-section {
  margin-bottom: 48px;
}

.member-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.member-card-preview {
  background: linear-gradient(135deg, #1e1b4b, #5b21b6, #9333ea);
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-card-preview::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.member-card-brand {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

.member-card-tier {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.member-card-num {
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 600;
  margin: 16px 0;
}

.member-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.75;
}

.member-card-spec {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.member-card-spec h5 {
  font-size: 15px;
  font-weight: 800;
  color: #5b21b6;
  margin: 0 0 16px;
}

.member-spec-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.member-spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.member-spec-item i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5f3ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-spec-item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 2px;
}

.member-spec-item span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* ===== COMPARE TABLE ===== */
.member-table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 48px;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
}

.member-table thead th {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  color: #fff;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.member-table tbody td {
  padding: 14px 20px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.member-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.member-table tbody tr:last-child td {
  border-bottom: none;
}

.member-table .benefit-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
}

.member-table .benefit-name i {
  color: #7c3aed;
}

/* ===== STEPS ===== */
.member-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.member-step {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e8ecf1;
}

.member-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.member-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.member-step p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.member-faq {
  margin-bottom: 48px;
}

.member-faq-item {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.member-faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-faq-item summary::-webkit-details-marker {
  display: none;
}

.member-faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: #7c3aed;
  font-weight: 800;
}

.member-faq-item[open] summary::after {
  content: '−';
}

.member-faq-item p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ===== FORM ===== */
.form-section {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  margin-bottom: 48px;
}

.form-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.form-section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.form-section-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.form-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.form-trust-badge i {
  color: #16a34a;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-privacy {
  font-size: 12px;
  color: #64748b;
  margin: 16px 0 20px;
  line-height: 1.5;
}

.form-privacy i {
  color: #7c3aed;
  margin-right: 4px;
}

.btn-submit-member {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-member:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.alert-member {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  border: none;
}

.alert-member.success {
  background: #f0fdf4;
  color: #166534;
}

.alert-member.error {
  background: #fef2f2;
  color: #b91c1c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-card-grid {
    grid-template-columns: 1fr;
  }

  .member-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .member-hero {
    padding: 40px 0 36px;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .tier-card.popular {
    transform: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 24px 20px;
  }

  .member-trust-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .member-table-wrap {
    overflow-x: auto;
  }

  .member-table {
    min-width: 480px;
  }
}
