/* ================================================================
   GROUP JOIN MODAL — group-join-modal.css
   ================================================================ */

/* ── Backdrop ── */
.gjm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  animation: gjm-fade-in 0.18s ease;
}

/* ── Modal ── */
.gjm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  animation: gjm-slide-up 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  padding: 28px 28px 24px;
}

@media (max-width: 480px) {
  .gjm-modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: gjm-slide-up-mobile 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-height: 92vh;
  }
}

@keyframes gjm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gjm-slide-up {
  from { opacity: 0; transform: translate(-50%, -44%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes gjm-slide-up-mobile {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.gjm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
}

.gjm-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.gjm-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.gjm-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f4f4f4;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.gjm-close:hover { background: #e8e8e8; }
.gjm-close svg { width: 16px; height: 16px; color: #555; }

/* ── Section label ── */
.gjm-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* ── Billing toggle ── */
.gjm-billing-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.gjm-billing-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fafafa;
  position: relative;
}

.gjm-billing-opt:hover { border-color: #ccc; background: #f5f5f5; }

.gjm-billing-opt-active {
  border-color: #1a1a1a;
  background: #fff;
}

.gjm-billing-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a1a1a;
  flex-shrink: 0;
  cursor: pointer;
}

.gjm-billing-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.gjm-billing-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gjm-billing-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.gjm-billing-note {
  font-size: 12px;
  color: #888;
}

.gjm-save-badge {
  font-size: 11px;
  font-weight: 700;
  background: #22c55e;
  color: #fff;
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
}

/* ── Payment methods ── */
.gjm-payment-methods {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gjm-payment-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fafafa;
}

.gjm-payment-opt:hover { border-color: #ccc; background: #f5f5f5; }

.gjm-payment-opt-active {
  border-color: #1a1a1a;
  background: #fff;
}

.gjm-payment-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a1a1a;
  flex-shrink: 0;
}

.gjm-payment-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gjm-payment-icon-bank {
  background: #f0f4ff;
  color: #3b6fd4;
}

.gjm-payment-icon svg { width: 20px; height: 20px; }

.gjm-payment-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.gjm-payment-default-tag {
  font-size: 11px;
  font-weight: 600;
  background: #f3f4f6;
  color: #555;
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Alert ── */
.gjm-alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.gjm-alert-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #fecaca;
}

.gjm-alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* ── Submit button ── */
.gjm-submit {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.gjm-submit:hover  { background: #d4a435; }
.gjm-submit:active { background: #c49328; }
.gjm-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gjm-back-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.15s;
}

.gjm-back-btn:hover { color: #333; }

/* ── Disclaimer ── */
.gjm-disclaimer {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.gjm-signup-link { color: #e6b541; font-weight: 600; text-decoration: none; }
.gjm-signup-link:hover { text-decoration: underline; }

/* ── Bank transfer details ── */
.gjm-bank-header {
  text-align: center;
  padding: 8px 0 16px;
}

.gjm-bank-icon {
  width: 44px;
  height: 44px;
  color: #3b6fd4;
  margin: 0 auto 12px;
  display: block;
}

.gjm-bank-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.gjm-bank-header p {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.gjm-bank-amount-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.gjm-bank-amount-label { font-size: 13px; color: #888; }
.gjm-bank-amount { font-size: 20px; font-weight: 800; color: #1a1a1a; }

.gjm-bank-details {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.gjm-bank-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.gjm-bank-row:last-child { border-bottom: none; }

.gjm-bank-key {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  min-width: 120px;
  flex-shrink: 0;
  padding-top: 1px;
}

.gjm-bank-val {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
  flex: 1;
}

.gjm-bank-copyable {
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

.gjm-bank-copyable:hover { color: #3b6fd4; }
.gjm-bank-copyable::after {
  content: 'Copy';
  font-size: 11px;
  font-weight: 600;
  color: #3b6fd4;
  margin-left: 8px;
  opacity: 0.6;
}

.gjm-bank-copyable.gjm-copied { color: #16a34a; }
.gjm-bank-copyable.gjm-copied::after { content: 'Copied!'; color: #16a34a; }

.gjm-bank-row-note .gjm-bank-val { color: #555; font-weight: 400; font-size: 13px; }

.gjm-bank-actions { display: flex; flex-direction: column; gap: 0; }

/* ================================================================
   SUBSCRIPTION PAYWALL  (gpw-*)
   ================================================================ */
.gpw-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  min-height: 300px;
}
.gpw-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.gpw-icon-wrap svg {
  width: 34px;
  height: 34px;
  color: #6366f1;
}
.gpw-text {
  font-size: 16px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.5;
}
.gpw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: #00c2cb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.gpw-btn:hover  { background: #00abb3; color: #fff; }
.gpw-btn:active { background: #009aa0; }
.gpw-btn svg    { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   PAYSTACK SUBSCRIPTION MODAL  (gsm-*)
   ================================================================ */
.gsm-wrap {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}
.gsm-wrap.is-open { display: flex; }
.gsm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.gsm-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  animation: gsm-in 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes gsm-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .gsm-wrap   { align-items: flex-end; }
  .gsm-dialog { border-radius: 20px 20px 0 0; max-width: 100%; max-height: 92vh; }
}
.gsm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.gsm-close:hover { background: #e8e8e8; }
.gsm-close svg   { width: 14px; height: 14px; color: #555; }
.gsm-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 1px solid #eee;
}
.gsm-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 22px;
}
.gsm-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.gsm-billing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.gsm-billing-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fafafa;
}
.gsm-billing-opt:hover              { border-color: #ccc; }
.gsm-billing-opt.is-active          { border-color: #1a1a1a; background: #fff; }
.gsm-billing-opt input[type="radio"]{ width: 16px; height: 16px; accent-color: #1a1a1a; flex-shrink: 0; cursor: pointer; }
.gsm-billing-body  { flex: 1; }
.gsm-billing-name  { font-size: 14px; font-weight: 600; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.gsm-billing-price { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-top: 3px; }
.gsm-billing-note  { font-size: 12px; color: #888; }
.gsm-save-badge {
  font-size: 10px;
  font-weight: 800;
  background: #22c55e;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
}
.gsm-payment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #fafafa;
}
.gsm-payment svg         { width: 20px; height: 20px; color: #888; flex-shrink: 0; margin-top: 1px; }
.gsm-payment-text        { font-size: 13px; color: #666; line-height: 1.45; }
.gsm-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 18px;
}
.gsm-summary-label { font-size: 13px; color: #555; }
.gsm-summary-price { font-size: 18px; font-weight: 800; color: #1a1a1a; }
.gsm-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.gsm-cta:hover    { background: #d4a435; }
.gsm-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.gsm-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
}

/* ── Success step ── */
.gjm-success {
  text-align: center;
  padding: 20px 0 8px;
}

.gjm-success-icon {
  width: 64px;
  height: 64px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.gjm-success-icon svg {
  width: 32px;
  height: 32px;
  color: #16a34a;
  stroke-width: 2.5;
}

.gjm-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.gjm-success p {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 20px;
}
