/* =========================================================================
   EastMojo Membership — Public Styles  v1.2
   Brand: #eb3032 (red) · #FFC83D (yellow/gold) · Mobile-first.
   ========================================================================= */

:root {
  /* Brand colours */
  --emm-red:        #eb3032;
  --emm-red-dk:     #c62828;
  --emm-yellow:     #FFC83D;
  --emm-yellow-dk:  #e5a800;
  --emm-border:     #e0e0e0;

  /* Semantic colours */
  --emm-surface:    #fff;
  --emm-bg:         #f8f8f8;
  --emm-text:       #111;
  --emm-text-muted: #555;
  --emm-text-faint: #999;

  /* Radius scale */
  --emm-r-sm:   4px;     /* inputs, small buttons, badges */
  --emm-r-md:   8px;     /* cards, modal boxes, pick-card corners */
  --emm-r-lg:   12px;    /* checkout-box, pick-card */
  --emm-r-xl:   16px;    /* toast top corners */
  --emm-r-pill: 100px;   /* chips, unlock badges */

  /* Shadow scale */
  --emm-shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --emm-shadow-md:  0 4px 24px rgba(0,0,0,.08);
  --emm-shadow-lg:  0 20px 60px rgba(0,0,0,.20);

  /* Z-index scale */
  --emm-z-toast: 9999;
  --emm-z-modal: 10000;

  /* Deprecated aliases kept for compatibility */
  --emm-grey:   #555;
  --emm-radius: 8px;
  --emm-font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================================
   Focus states — keyboard-only, no mouse-focus ring
   ========================================================================= */

.emm-chip:focus-visible,
.emm-main-cta:focus-visible,
.emm-final-cta:focus-visible,
.emm-btn:focus-visible,
.emm-checkout-pay-btn:focus-visible,
.emm-toast-pay-btn:focus-visible,
.emm-eoa-pay-btn:focus-visible,
.emm-eoa-member-btn:focus-visible,
.emm-signin-trigger:focus-visible,
.emm-checkout-tab:focus-visible,
.emm-signin-tab:focus-visible,
.emm-faq-item summary:focus-visible {
  outline: 2px solid var(--emm-red);
  outline-offset: 2px;
}
.emm-page input:focus-visible, .emm-page select:focus-visible, .emm-page textarea:focus-visible,
.emm-modal input:focus-visible, .emm-modal select:focus-visible, .emm-modal textarea:focus-visible,
.emm-toast input:focus-visible, .emm-toast select:focus-visible, .emm-toast textarea:focus-visible,
.emm-eoa input:focus-visible, .emm-eoa select:focus-visible, .emm-eoa textarea:focus-visible {
  outline: 2px solid var(--emm-red);
  outline-offset: 1px;
}

/* =========================================================================
   Shared utilities
   ========================================================================= */

.emm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--emm-r-sm); font-family: var(--emm-font);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 2px solid transparent; transition: all .2s; line-height: 1.3;
}
.emm-btn-red       { background: var(--emm-red); color: #fff !important; border-color: var(--emm-red); }
.emm-btn-red:hover { background: var(--emm-red-dk); border-color: var(--emm-red-dk); }
.emm-btn-outline   { background: transparent; color: var(--emm-red) !important; border-color: var(--emm-red); }
.emm-btn-outline:hover { background: var(--emm-red); color: #fff !important; }
.emm-btn-full { width: 100%; }
.emm-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Input group */
.emm-input-group {
  display: flex; align-items: center; border: 2px solid var(--emm-border);
  border-radius: var(--emm-r-sm); overflow: hidden; background: var(--emm-surface);
}
.emm-input-group:focus-within { border-color: var(--emm-red); }
.emm-currency-symbol {
  padding: 0 10px; font-size: 18px; font-weight: 600; color: var(--emm-text-muted);
  background: var(--emm-bg); border-right: 1px solid var(--emm-border); flex-shrink: 0;
}
.emm-input-group input {
  flex: 1; border: none; outline: none; padding: 10px 12px;
  font-size: 18px; font-weight: 600; min-width: 0;
}
.emm-input-group input::-webkit-inner-spin-button,
.emm-input-group input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Payment message */
.emm-payment-msg {
  padding: 10px 14px; border-radius: var(--emm-r-sm); margin-top: 12px;
  font-size: 14px; text-align: center;
}
.emm-payment-msg.emm-success { background: #e8f5e9; color: #1b5e20; }
.emm-payment-msg.emm-error   { background: #ffebee; color: #b71c1c; }

/* GST row */
.emm-gst-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--emm-text-muted); cursor: pointer;
  padding: 8px 10px; background: var(--emm-bg); border-radius: var(--emm-r-sm);
  border: 1px solid var(--emm-border);
}
.emm-gst-total { font-size: 12px; color: var(--emm-red); font-weight: 600; }

/* Support button (shortcode) */
.emm-support-btn {
  display: inline-block; background: var(--emm-red); color: #fff !important;
  padding: 10px 22px; border-radius: var(--emm-r-sm); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s;
}
.emm-support-btn:hover { background: var(--emm-red-dk); }

/* Ad-free body class */
.emm-adfree-active { display: none; }
body.emm-is-member .emm-adfree-active { display: block; }

/* Consolidated close button — modals + toast */
.emm-modal-close,
.emm-toast-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 4px 6px;
  border-radius: var(--emm-r-sm); transition: color .15s, background .15s;
}
.emm-modal-close { color: #bbb; }
.emm-modal-close:hover { color: var(--emm-text); background: var(--emm-bg); }
.emm-toast-close { color: #666; }
.emm-toast-close:hover { color: #fff; background: #333; }
.emm-modal-close:focus-visible,
.emm-toast-close:focus-visible { outline: 2px solid var(--emm-red); outline-offset: 2px; }

/* =========================================================================
   End-of-Article Support Block
   ========================================================================= */

.emm-eoa {
  margin-top: 48px;
  border-top: 4px solid var(--emm-red);
  border-radius: 10px;
  background: #1a1a1a;
  padding: 24px 24px 28px;
  font-family: var(--emm-font);
  box-shadow: var(--emm-shadow-sm);
}
.emm-eoa-inner { }

/* Eyebrow — red accent on dark background */
.emm-eoa-header { margin-bottom: 16px; }
.emm-eoa-brand  { display: inline-flex; align-items: center; gap: 7px; }
.emm-eoa-brand-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--emm-red); border-radius: 50%; flex-shrink: 0;
}
.emm-eoa-brand-label {
  font-size: 10px; font-weight: 800; color: var(--emm-red);
  text-transform: uppercase; letter-spacing: 1.5px;
}

/* Author row */
.emm-eoa-journalist { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.emm-eoa-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid #444;
}
.emm-eoa-journalist-info { display: flex; flex-direction: column; gap: 3px; }
.emm-eoa-journalist-info strong { font-size: 15px; font-weight: 700; color: #fff; }
.emm-eoa-journalist-info span   { font-size: 12px; color: #aaa; }

/* Copy — light for contrast on dark background */
.emm-eoa-copy {
  font-size: 15px; line-height: 1.75; color: #ccc;
  font-style: italic; margin: 0 0 18px;
}

/* Input + button row */
.emm-eoa-input-row {
  display: flex; gap: 10px; align-items: stretch;
}
.emm-eoa-input-row .emm-input-group { flex: 1; min-width: 0; }

/* Support button — filled red when enabled, legibly grey when disabled */
.emm-eoa-pay-btn {
  flex-shrink: 0; white-space: nowrap;
  padding: 0 22px; border: none; border-radius: var(--emm-r-md);
  font-family: var(--emm-font); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  background: var(--emm-red); color: #fff;
  box-shadow: 0 3px 10px rgba(235,48,50,.35);
}
.emm-eoa-pay-btn:disabled { background: #333; color: #666; cursor: default; opacity: 1; box-shadow: none; }
.emm-eoa-pay-btn:hover:not(:disabled) { background: var(--emm-red-dk); box-shadow: 0 4px 14px rgba(235,48,50,.45); transform: translateY(-1px); }
.emm-eoa-pay-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px rgba(235,48,50,.3); }

/* GST note */
.emm-gst-note { font-size: 11px; color: #888; margin-top: 2px; padding-left: 24px; }

/* Two-column layout: form left, QR right */
.emm-eoa-cols {
  display: flex; gap: 0; align-items: flex-start;
}
.emm-eoa-left {
  flex: 1; min-width: 0; padding-right: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.emm-eoa-right {
  flex: 0 0 180px;
  border-left: 1px solid #333; padding-left: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

/* "or" label at top of QR column */
.emm-eoa-or {
  font-size: 11px; color: #666;
  text-transform: uppercase; letter-spacing: 1px;
  width: 100%; text-align: center; margin-bottom: 4px;
}

/* QR image + label inside right column */
.emm-eoa-qr-img {
  width: 140px; height: 140px;
  border-radius: var(--emm-r-md); border: 2px solid #444; display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.emm-eoa-qr-label {
  font-size: 12px; color: #999; font-weight: 600; text-align: center;
}
.emm-eoa-right .emm-upi-id {
  font-size: 11px; color: #888; font-family: monospace;
  word-break: break-all; text-align: center;
}

/* Membership strip — primary CTA, shown above payment section */
.emm-eoa-membership-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  background: #222; border-radius: var(--emm-r-md);
}
.emm-eoa-membership-strip-text {
  font-size: 16px; color: #ccc; line-height: 1.5; flex: 1;
}

/* Divider text between membership CTA and payment section */
/* Big OR divider — EOA */
.emm-eoa-or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px; color: #888; font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
}
.emm-eoa-or-divider span:first-child,
.emm-eoa-or-divider span:last-child {
  flex: 1; height: 1px; background: #ddd; display: block;
}

/* One-time label */
.emm-eoa-onetime-label {
  font-size: 14px; color: #555; margin: 0 0 10px; font-weight: 600; text-align: center;
}

/* Membership sub-text */
.emm-eoa-membership-sub {
  font-size: 13px; color: #777; font-weight: 400;
}

/* "Become a Member" button — inside membership strip */
.emm-eoa-member-btn {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0; padding: 12px 28px;
  background: var(--emm-red); color: #fff !important;
  border-radius: var(--emm-r-sm); font-family: var(--emm-font);
  font-size: 15px; font-weight: 700; text-decoration: none !important;
  transition: background .2s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(235,48,50,.3);
}
.emm-eoa-member-btn:hover { background: var(--emm-red-dk); color: #fff !important; text-decoration: none !important; }

/* Input group — dark theme */
.emm-eoa .emm-input-group {
  background: #2a2a2a; border-color: #444;
  border-radius: var(--emm-r-md);
  box-shadow: none;
}
.emm-eoa .emm-input-group:focus-within { border-color: var(--emm-red); box-shadow: 0 0 0 2px rgba(235,48,50,.2); }
.emm-eoa .emm-input-group input { color: #fff; background: transparent; }
.emm-eoa .emm-input-group input::placeholder { color: #777; }
.emm-eoa .emm-currency-symbol { background: transparent; border-right-color: #444; color: #999; }

@media (max-width: 480px) {
  .emm-eoa { padding: 18px 16px 22px; }
  .emm-eoa-photo { width: 44px; height: 44px; }
  .emm-eoa-input-row { flex-direction: column; width: 100%; }
  .emm-eoa-input-row .emm-input-group { width: 100%; }
  .emm-eoa-pay-btn { width: 100%; padding: 12px 16px; }
  .emm-eoa-cols { flex-direction: column; }
  .emm-eoa-left { padding-right: 0; align-items: center; text-align: center; }
  .emm-gst-note { padding-left: 0; }
  .emm-eoa-right {
    flex: none; width: 100%; border-left: none;
    padding-left: 0; padding-top: 14px; margin-top: 10px;
    border-top: 1px solid #333;
  }
  .emm-eoa-membership-strip { flex-direction: column; text-align: center; }
  .emm-eoa-membership-strip .emm-eoa-member-btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   Toast — full-width bottom popup on all screen sizes
   ========================================================================= */

.emm-toast {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--emm-z-toast);
  background: #1a1a1a; font-family: var(--emm-font);
  border-top: 4px solid var(--emm-red);
  border-radius: var(--emm-r-xl) var(--emm-r-xl) 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,.5);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); opacity: 0;
  transition: transform .42s cubic-bezier(.34,1.3,.64,1), opacity .3s;
  pointer-events: none;
}
.emm-toast.emm-toast-visible {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}

/* Drag pill */
.emm-toast-pill {
  width: 40px; height: 4px; background: #444; border-radius: 2px;
  margin: 10px auto 0; display: block;
}

/* Constrain inner to readable width */
.emm-toast-inner { max-width: 700px; margin: 0 auto; padding: 0 24px 16px; }

/* Header: eyebrow + title + sub on dark */
.emm-toast-head { padding: 10px 0 12px; }
.emm-toast-eyebrow {
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
  font-size: 10px; font-weight: 800; color: var(--emm-red);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.emm-toast-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--emm-red); border-radius: 50%; flex-shrink: 0;
}
.emm-toast-title { font-weight: 700; font-size: 16px; margin: 0 0 3px; color: #fff; }
.emm-toast-sub   { font-size: 13px; color: #aaa; margin: 0; line-height: 1.5; }

/* Two-column layout: form left, QR right */
.emm-toast-cols {
  display: flex; gap: 0; align-items: flex-start;
  border-top: 1px solid #333; padding-top: 14px;
}
.emm-toast-cols-no-qr { display: block; }

/* Left: form */
.emm-toast-left {
  flex: 1; min-width: 0; padding-right: 20px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Amount input + Pay button in one row */
.emm-toast-pay-row {
  display: flex; gap: 10px; align-items: stretch;
}
.emm-toast-pay-row .emm-input-group { flex: 1; }

.emm-toast-pay-btn {
  flex-shrink: 0; white-space: nowrap;
  padding: 0 20px; border: none; border-radius: var(--emm-r-sm);
  font-family: var(--emm-font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  background: var(--emm-red); color: #fff;
}
.emm-toast-pay-btn:disabled { background: #333; color: #666; cursor: default; }
.emm-toast-pay-btn:hover:not(:disabled) { background: var(--emm-red-dk); }

/* GST note — toast dark theme */
.emm-toast .emm-gst-note { color: #777; }

/* Input group — dark theme override for toast */
.emm-toast .emm-input-group { background: #2a2a2a; border-color: #444; }
.emm-toast .emm-input-group:focus-within { border-color: var(--emm-red); box-shadow: 0 0 0 2px rgba(235,48,50,.2); }
.emm-toast .emm-input-group input { color: #fff; background: transparent; }
.emm-toast .emm-input-group input::placeholder { color: #777; }
.emm-toast .emm-currency-symbol { color: #999; border-right-color: #444; background: transparent; }

/* OR section divider — between payment form and membership CTA */
/* Big OR divider — toast */
.emm-toast-or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 10px; color: #888; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
}
.emm-toast-or-divider span:first-child,
.emm-toast-or-divider span:last-child {
  flex: 1; height: 1px; background: #555; display: block;
}

/* One-time label */
.emm-toast-onetime-label {
  font-size: 13px; color: #ccc; margin: 0 0 8px; font-weight: 600;
}

/* Member hint text */
.emm-toast-member-hint {
  font-size: 14px; color: #eee; margin: 0; line-height: 1.45; font-weight: 600;
}
.emm-toast-member-sub {
  font-size: 12px; color: #999; margin: 2px 0 0; line-height: 1.45; font-weight: 400;
}

/* "Become a Member" — secondary outlined button in toast */
.emm-toast-member-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; margin-top: 2px;
  background: var(--emm-red); color: #fff !important;
  border: 2px solid var(--emm-red); border-radius: var(--emm-r-sm);
  font-family: var(--emm-font); font-size: 14px; font-weight: 700;
  text-decoration: none !important; transition: background .2s, border-color .2s; letter-spacing: .2px;
}
.emm-toast-member-btn:hover { background: var(--emm-red-dk); border-color: var(--emm-red-dk); color: #fff !important; }

/* Mobile-only QR trigger in toast */
.emm-toast-qr-trigger { display: none; }

/* Right: QR panel */
.emm-toast-right {
  flex: 0 0 160px;
  border-left: 1px solid #333; padding-left: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

/* OR — small label on desktop, horizontal divider on mobile */
.emm-toast-or {
  font-size: 11px; color: #666;
  text-transform: uppercase; letter-spacing: 1px;
  width: 100%; text-align: center; margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.emm-toast-or-line { display: none; } /* hidden on desktop */

/* QR image */
.emm-toast-qr-img {
  width: 140px; height: 140px;
  border-radius: var(--emm-r-md);
  border: 2px solid #444;
  display: block;
}
.emm-toast-qr-label {
  font-size: 11px; color: #999; font-weight: 500;
  text-align: center;
}
.emm-upi-id {
  font-size: 11px; color: #888; font-family: monospace;
  word-break: break-all; text-align: center;
}

/* Mobile: hide QR panel, show trigger button instead */
@media (max-width: 600px) {
  .emm-toast-inner { padding: 0 20px 14px; }
  .emm-toast-left  { padding-right: 0; }
  .emm-toast-right { display: none; }
  .emm-toast-qr-trigger {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 9px 14px;
    background: none; border: 1px dashed #444; border-radius: var(--emm-r-sm);
    font-family: var(--emm-font); font-size: 13px; color: #999; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s;
  }
  .emm-toast-qr-trigger:hover { border-color: var(--emm-red); color: var(--emm-red); }
  .emm-toast-member-btn { text-align: center; }
}

/* =========================================================================
   QR Popup — shared overlay (opened by .emm-qr-trigger)
   ========================================================================= */

.emm-qr-popup {
  position: fixed; inset: 0; z-index: calc(var(--emm-z-modal) + 10);
  display: flex; align-items: center; justify-content: center;
}
.emm-qr-popup[hidden] { display: none; }
.emm-qr-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.emm-qr-popup-box {
  position: relative; z-index: 1; background: var(--emm-surface);
  border-radius: var(--emm-r-lg); padding: 32px 36px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--emm-shadow-lg); min-width: 260px; text-align: center;
}
.emm-qr-popup-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 22px; color: #bbb;
  cursor: pointer; line-height: 1; padding: 2px 6px;
  border-radius: var(--emm-r-sm); transition: color .15s, background .15s;
}
.emm-qr-popup-close:hover { color: var(--emm-text); background: var(--emm-bg); }
.emm-qr-popup-title {
  font-size: 15px; font-weight: 700; color: var(--emm-text); margin: 0;
}
.emm-qr-popup-img {
  width: 220px; height: 220px;
  border-radius: var(--emm-r-md); border: 2px solid var(--emm-border); display: block;
}
@media (max-width: 400px) {
  .emm-qr-popup-img { width: 180px; height: 180px; }
  .emm-qr-popup-box { padding: 28px 24px 22px; }
}

/* =========================================================================
   Payment Modal (story tips)
   ========================================================================= */

.emm-modal {
  position: fixed; inset: 0; z-index: var(--emm-z-modal);
  display: flex; align-items: center; justify-content: center;
}
.emm-modal[hidden] { display: none; }
.emm-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }

.emm-modal-box {
  position: relative; background: var(--emm-surface); border-radius: var(--emm-r-md);
  padding: 28px 28px 24px; max-width: 440px; width: calc(100vw - 32px);
  box-shadow: var(--emm-shadow-lg); z-index: 1;
  max-height: 92vh; overflow-y: auto;
}
.emm-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--emm-text); }
.emm-modal-sub   { font-size: 13px; color: var(--emm-text-muted); margin: 0 0 20px; line-height: 1.6; }
.emm-modal-form  { display: flex; flex-direction: column; gap: 14px; }
.emm-optional-fields { display: flex; flex-direction: column; gap: 10px; }
.emm-optional-fields input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--emm-border);
  border-radius: var(--emm-r-sm); font-size: 14px; box-sizing: border-box;
  font-family: var(--emm-font);
}
.emm-optional-fields input[type="text"]:focus { outline: none; border-color: var(--emm-red); }

/* =========================================================================
   Membership Landing Page
   ========================================================================= */

.emm-page {
  font-family: var(--emm-font); color: #222;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  box-sizing: border-box;
}
.emm-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* -- Hero -- */
.emm-hero {
  background: linear-gradient(135deg, var(--emm-red-dk) 0%, var(--emm-red) 100%);
  color: #fff; padding: 72px 20px 88px; position: relative; overflow: hidden;
}
.emm-hero-bg { background-size: cover; background-position: center; }
.emm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(198,40,40,.93) 0%, rgba(235,48,50,.82) 100%);
}
.emm-hero-inner { position: relative; z-index: 1; }
.emm-hero-content { max-width: 680px; }
.emm-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9;
}
.emm-hero-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--emm-yellow); border-radius: 50%;
}
.emm-hero h1 {
  font-size: clamp(26px, 5vw, 44px); font-weight: 800; margin: 0 0 16px;
  line-height: 1.15; letter-spacing: -.5px;
}
.emm-hero p {
  font-size: clamp(15px, 2.5vw, 19px); opacity: .9; margin: 0 0 28px;
  max-width: 580px; line-height: 1.65;
}
.emm-hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; opacity: .85; margin-top: 8px;
}

/* Page header — white bar above hero */
.emm-page-header {
  background: #fff;
  border-bottom: 1px solid var(--emm-border);
  padding: 12px 20px;
}
/* Logo centered */
.emm-page-header-inner {
  display: flex; align-items: center; justify-content: center;
  max-width: 1200px; margin: 0 auto;
}
.emm-page-header-logo { display: flex; align-items: center; }
.emm-page-header-logo a { display: flex; align-items: center; line-height: 0; }
.emm-page-header-logo img { max-height: 44px !important; width: auto !important; display: block !important; }
.emm-page-header-site-name { font-size: 22px; font-weight: 800; color: var(--emm-text); }

/* Floating Sign In tab */
.emm-signin-float {
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%) translateX(100%);
  background: #fff; border: 1px solid var(--emm-border);
  border-right: none; border-radius: 8px 0 0 8px;
  box-shadow: -2px 4px 16px rgba(0,0,0,.14);
  padding: 14px 10px; cursor: pointer; z-index: 9990;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .3s ease; user-select: none;
}
.emm-signin-float.emm-float-visible { transform: translateY(-50%) translateX(0); }
.emm-signin-float:hover { background: #fafafa; }
.emm-signin-float-icon { font-size: 18px; line-height: 1; }
.emm-signin-float-label {
  font-size: 10px; font-weight: 700; color: var(--emm-red);
  writing-mode: vertical-rl; text-orientation: mixed;
  letter-spacing: 1.2px; text-transform: uppercase;
}

/* Mobile hero reduction */
@media (max-width: 720px) {
  .emm-hero { padding: 52px 20px 72px; }
  .emm-page-header-logo img { max-height: 36px !important; }
  .emm-page-header-signin { padding: 7px 16px !important; font-size: 13px !important; }
}

/* -- Section shell -- */
.emm-section     { padding: 56px 0; }
.emm-section-alt { background: var(--emm-bg); }
.emm-section-title {
  text-align: center; font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; margin: 0 0 40px; color: var(--emm-text); letter-spacing: -.3px;
}

/* Mobile section padding reduction */
@media (max-width: 720px) {
  .emm-section { padding: 36px 0; }
}

/* =========================================================================
   SUPPORT + FEATURE BLOCK (formerly "pick an amount")
   ========================================================================= */

.emm-section-pick { padding: 0; margin-top: -52px; position: relative; z-index: 1; }

/* Outer card */
.emm-pick-card {
  border: 2px solid var(--emm-border);
  border-top: 4px solid var(--emm-red);
  border-radius: var(--emm-r-lg);
  background: var(--emm-surface);
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.1);
}

/* Top bar */
.emm-pick-topbar {
  background: var(--emm-red);
  color: #fff;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.emm-pick-topbar-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; opacity: .85;
}
.emm-pick-topbar-title  { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.emm-pick-topbar-sub    { font-size: 13px; opacity: .85; margin-top: 2px; }

@media (max-width: 480px) {
  .emm-pick-topbar       { padding: 14px 20px; }
  .emm-pick-topbar-title { font-size: 17px; }
  .emm-pick-topbar-sub   { font-size: 12px; }
}

/* Two-column inner */
.emm-pick-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .emm-pick-layout { grid-template-columns: 1fr; }
}

/* Left col */
.emm-pick-left {
  padding: 24px 28px;
  border-right: 1px solid var(--emm-border);
}
@media (max-width: 720px) {
  .emm-pick-left { border-right: none; border-bottom: 1px solid var(--emm-border); padding: 20px; }
}

/* Chips */
.emm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.emm-chip {
  padding: 9px 16px; border-radius: var(--emm-r-pill);
  border: 2px solid var(--emm-border); background: var(--emm-surface);
  font-family: var(--emm-font); font-size: 15px; font-weight: 600;
  color: #333; cursor: pointer; transition: all .15s;
}
.emm-chip:hover  { border-color: var(--emm-red); color: var(--emm-red); }
.emm-chip:active { transform: scale(.97); }
.emm-chip.emm-chip-active {
  background: var(--emm-red); border-color: var(--emm-red); color: #fff;
}

/* Current plan badge (shown to existing members) */
.emm-chip-current { position: relative; }
.emm-chip-badge {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--emm-gold, #FFC83D); color: #1a1a1a;
  padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
.emm-chip:disabled { pointer-events: none; }
.emm-chip:disabled:hover { border-color: var(--emm-border); color: inherit; }
.emm-max-plan-msg { color: #155724; }

/* Custom amount */
.emm-custom-chip-input { margin-bottom: 10px; }
.emm-custom-chip-input .emm-input-group { max-width: 200px; }

/* Billing note */
.emm-pick-note { font-size: 12px; color: var(--emm-text-faint); margin: 4px 0 16px; line-height: 1.5; }

/* CTA button */
.emm-main-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 24px;
  background: var(--emm-red); color: #fff;
  border: none; border-radius: var(--emm-r-md);
  font-family: var(--emm-font); font-size: 16px; font-weight: 800;
  cursor: pointer; letter-spacing: .2px; margin-bottom: 12px;
  transition: background .2s;
}
.emm-main-cta:hover:not(:disabled) { background: var(--emm-red-dk); }
.emm-main-cta:disabled { background: #ddd; color: #aaa; cursor: default; }

/* Sign-in link */
.emm-signin-trigger {
  display: block; background: none; border: none; padding: 0;
  font-family: var(--emm-font); font-size: 13px; color: var(--emm-text-muted);
  cursor: pointer; width: 100%; text-align: center; margin-top: 6px;
}
.emm-signin-trigger:hover { color: var(--emm-red); text-decoration: underline; }

/* Right col — feature list */
.emm-pick-right {
  padding: 20px 24px;
  background: var(--emm-bg);
  position: relative; overflow: hidden;
}
@media (max-width: 720px) {
  .emm-pick-right { padding: 16px 20px; }
}

/* Features heading — with bottom border divider */
.emm-features-heading {
  font-size: 11px; font-weight: 800; color: var(--emm-text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--emm-border);
}

/* Feature list: grows with content */
.emm-features-list {
  display: flex; flex-direction: column; gap: 2px;
}

/* Individual feature item */
.emm-fi {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--emm-r-sm);
  font-size: 13px; line-height: 1.4;
}
.emm-fi-unlocked { background: var(--emm-surface); }
.emm-fi-locked {
  background: #f5f5f5;
  filter: blur(0.8px);
  opacity: .85;
  pointer-events: none;
  user-select: none;
}

.emm-fi-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.emm-fi-unlocked .emm-fi-icon { background: var(--emm-red); }
.emm-fi-locked .emm-fi-icon   { background: var(--emm-border); color: #aaa; }

.emm-fi-label { flex: 1; color: #222; font-weight: 500; }
.emm-fi-locked .emm-fi-label { color: #aaa; }

/* Unlock badge — yellow pill */
.emm-fi-unlock-at {
  font-size: 10px; font-weight: 700;
  background: var(--emm-yellow); color: #7a5200;
  padding: 2px 8px; border-radius: var(--emm-r-pill); white-space: nowrap;
  flex-shrink: 0;
}

/* Gradient fade — removed so all features are visible */
.emm-features-list::after { display: none; }

/* Nudge bar — yellow */
.emm-features-nudge {
  margin-top: 10px; padding: 9px 12px;
  background: var(--emm-yellow); border-radius: var(--emm-r-sm);
  font-size: 13px; color: #7a5200; font-weight: 600; line-height: 1.4;
}

/* =========================================================================
   Other landing page sections
   ========================================================================= */

.emm-why-body {
  font-size: 16px; line-height: 1.8; color: #333;
  max-width: 680px; margin: 0 auto 24px;
}
.emm-why-quote {
  font-size: 15px; font-style: italic; color: var(--emm-text-muted);
  border-left: 3px solid var(--emm-red); padding-left: 16px;
  max-width: 640px; margin: 0 auto 24px; line-height: 1.7;
}

/* Impact grid */
.emm-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.emm-impact-card {
  text-align: center; padding: 28px 20px; background: var(--emm-surface);
  border: 1px solid var(--emm-border); border-radius: var(--emm-r-md);
  border-top: 3px solid var(--emm-red);
}
.emm-impact-amount { font-size: 30px; font-weight: 800; color: var(--emm-red); }
.emm-impact-desc   { font-size: 14px; color: var(--emm-text-muted); margin-top: 8px; line-height: 1.55; }

@media (max-width: 640px) {
  .emm-impact-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* FAQ */
.emm-faq-wrap { max-width: 680px; margin: 0 auto; }
.emm-faq-item { border: 1px solid var(--emm-border); border-radius: var(--emm-r-sm); margin-bottom: 8px; }
.emm-faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--emm-text);
}
.emm-faq-item summary::-webkit-details-marker { display: none; }
.emm-faq-item summary::after { content: '+'; font-size: 22px; color: var(--emm-red); font-weight: 400; }
.emm-faq-item[open] summary::after { content: '−'; }
.emm-faq-item p { padding: 0 20px 18px; margin: 0; font-size: 14px; color: var(--emm-text-muted); line-height: 1.7; }

/* "Pick Your Amount" heading */
.emm-final-pick-heading {
  font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 14px;
}

/* Final chips layout */
.emm-final-chips {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Chip override — white outline on dark section background */
.emm-section-final .emm-chip {
  border-color: rgba(255,255,255,.4); background: transparent;
  color: rgba(255,255,255,.85);
}
.emm-section-final .emm-chip:hover {
  border-color: #fff; color: #fff; background: rgba(255,255,255,.12);
}
.emm-section-final .emm-chip.emm-chip-active {
  background: #fff; border-color: #fff; color: var(--emm-text);
}

.emm-final-billing-note {
  font-size: 13px; color: rgba(255,255,255,.55);
  margin: 0 0 24px; text-align: center;
}

/* Final CTA section */
.emm-section-final { background: var(--emm-text); color: #fff; text-align: center; }
.emm-final-title {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; margin: 0 0 14px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.2;
}
.emm-final-sub {
  font-size: 15px; opacity: .75; margin: 0 auto 32px; max-width: 520px; line-height: 1.65;
}
.emm-final-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--emm-red); color: #fff;
  border: none; border-radius: var(--emm-r-md);
  font-family: var(--emm-font); font-size: 16px; font-weight: 800;
  cursor: pointer; transition: background .2s;
}
.emm-final-cta:hover { background: var(--emm-red-dk); }

/* =========================================================================
   Checkout Modal
   ========================================================================= */

.emm-checkout-box { padding: 0; border-radius: var(--emm-r-lg); overflow: hidden; max-width: 420px; }

.emm-checkout-brand {
  padding: 18px 24px 0; font-size: 14px; color: var(--emm-text-muted);
}
.emm-checkout-brand strong { color: var(--emm-text); font-weight: 800; font-size: 15px; }

/* Tabs — no -1px hack */
.emm-checkout-tabs,
.emm-signin-tabs {
  display: flex; padding: 14px 24px 0; gap: 0;
  border-bottom: 1px solid var(--emm-border);
  overflow: hidden;
}
.emm-signin-tabs { padding: 0; margin: 0 0 20px; }

.emm-checkout-tab,
.emm-signin-tab {
  padding: 8px 14px 10px; border: none; background: none;
  font-family: var(--emm-font); font-size: 14px; font-weight: 600;
  color: var(--emm-text-muted); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.emm-signin-tab { flex: 1; text-align: center; }

.emm-checkout-tab:hover,
.emm-signin-tab:hover { color: var(--emm-text); background: var(--emm-bg); }

.emm-checkout-tab.emm-checkout-tab-active { color: var(--emm-red); border-bottom-color: var(--emm-red); }
.emm-signin-tab.emm-signin-tab-active     { color: var(--emm-red); border-bottom-color: var(--emm-red); }

/* Amount display — prominent */
.emm-checkout-amount-display {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 24px 8px;
  background: var(--emm-bg);
}
.emm-checkout-amount-label { font-size: 13px; color: var(--emm-text-muted); }
.emm-checkout-amount-value { font-size: 28px; font-weight: 800; color: var(--emm-text); }

.emm-checkout-divider { margin: 8px 24px 4px; border: none; border-top: 1px solid var(--emm-border); }

.emm-checkout-form { display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 24px; }

/* Standardised 1px form fields */
.emm-checkout-field input[type="text"],
.emm-checkout-field input[type="email"],
.emm-checkout-field input[type="tel"] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--emm-border);
  border-radius: var(--emm-r-sm); font-family: var(--emm-font); font-size: 14px; box-sizing: border-box;
  transition: border-color .15s;
}
.emm-checkout-field input:focus { outline: none; border-color: var(--emm-red); }

.emm-checkout-pay-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px 20px; margin-top: 4px;
  background: var(--emm-red); color: #fff;
  border: none; border-radius: var(--emm-r-md);
  font-family: var(--emm-font); font-size: 16px; font-weight: 800;
  cursor: pointer; transition: background .2s;
}
.emm-checkout-pay-btn:hover:not(:disabled) { background: var(--emm-red-dk); }
.emm-checkout-pay-btn:disabled { background: #ccc; cursor: default; }

/* =========================================================================
   Sign-in Modal
   ========================================================================= */

.emm-signin-box { max-width: 380px; }

/* Tab content */
.emm-signin-tab-content {
  display: flex; flex-direction: column; gap: 12px;
  animation: emmFadeIn .15s ease;
}
.emm-signin-tab-content[hidden] { display: none; }
.emm-signin-hint { font-size: 13px; color: var(--emm-text-muted); margin: 0; line-height: 1.6; }

/* Google sign-in wrapper — moved from inline style */
.emm-google-signin-btn-wrap {
  display: flex; justify-content: center; margin-top: 10px;
}

/* Fade-in animation for tab switching */
@keyframes emmFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================================
   Subscriber-aware: hide non-member CTAs for authenticated members
   ========================================================================= */

body.emm-is-member .emm-toast,
body.emm-is-member .emm-eoa { display: none !important; }

/* Theme Mobile CTA (Customizer header button with #emm-membership URL): hide for all members */
body.emm-is-member a[href="#emm-membership"],
body.emm-is-member a[href*="#emm-membership"] { display: none !important; }

/* Sign-in modal: ensure it sits above theme hamburger menus */
#emm-signin-modal { z-index: 10000 !important; }

/* =========================================================================
   Patron Wall — full page shortcode + landing page preview
   ========================================================================= */

.emm-patron-wall { font-family: var(--emm-font); }
.emm-patron-wall-header { text-align: center; margin-bottom: 32px; }
.emm-patron-wall-header h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  color: var(--emm-text); margin: 0 0 8px;
}
.emm-patron-count { font-size: 14px; color: var(--emm-text-muted); margin: 0; }

.emm-patron-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.emm-patron-card {
  padding: 14px 16px;
  background: var(--emm-surface);
  border: 1px solid var(--emm-border);
  border-left: 3px solid var(--emm-red);
  border-radius: var(--emm-r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--emm-text);
}

/* Landing page preview — compact grid */
.emm-patron-preview .emm-patron-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.emm-patron-see-all {
  text-align: center; margin-top: 16px;
  font-size: 14px; font-weight: 600;
}
.emm-patron-see-all a { color: var(--emm-red); text-decoration: none; }
.emm-patron-see-all a:hover { text-decoration: underline; }

/* Empty state — full page shortcode only */
.emm-patron-empty {
  text-align: center; padding: 48px 20px;
  font-size: 15px; color: var(--emm-text-muted); line-height: 1.6;
}

@media (max-width: 480px) {
  .emm-patron-grid { grid-template-columns: repeat(2, 1fr); }
}
