/* ============================================================
   GOLDEN EFFORT — SHARED BUY-PAGE STYLES
   Used by both /buy/ (tiered books) and /buy-institutional/
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

/* ── TOP BANNER (iPhone / MoMo notice) ───────────────────────── */
.ge-banner {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #0C0B09;
  border-bottom: 1px solid rgba(191,148,70,0.25);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.ge-banner-icon { font-size: 16px; flex-shrink: 0; }
.ge-banner-text { font-size: 14px; color: rgba(255,255,255,0.70); font-weight: 400; line-height: 1.5; }
.ge-banner-text strong { color: #D4AE6A; font-weight: 600; }
.ge-banner-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #BF9446;
  background: rgba(191,148,70,0.12); border: 1px solid rgba(191,148,70,0.30);
  border-radius: 100px; padding: 6px 14px; text-decoration: none;
  white-space: nowrap; transition: all 0.2s ease; flex-shrink: 0;
}
.ge-banner-link:hover { background: rgba(191,148,70,0.20); color: #D4AE6A; text-decoration: none; }
.ge-banner-link-arrow { transition: transform 0.2s; }
.ge-banner-link:hover .ge-banner-link-arrow { transform: translateX(3px); }

/* ── RESET & TOKENS ───────────────────────────────────────── */
.ge-root *, .ge-root *::before, .ge-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ge-root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dim:    #8B6914;
  --ink:         #0F0E0C;
  --ink-soft:    #3A3830;
  --ink-muted:   #7A776E;
  --cream:       #FAF7F2;
  --cream-dark:  #F0EBE1;
  --white:       #FFFFFF;
  --success:     #1A6641;
  --success-bg:  #EDFAF3;
  --error:       #8B1A1A;
  --error-bg:    #FFF0F0;
  --purple:      #8B5CF6;
  --purple-dim:  #6D28D9;
  --purple-bg:   #F5F1FF;
  --border:      rgba(201,168,76,0.25);
  --shadow-sm:   0 2px 8px rgba(15,14,12,0.06);
  --shadow-md:   0 8px 32px rgba(15,14,12,0.10);
  --shadow-lg:   0 24px 64px rgba(15,14,12,0.14);
  --radius:      16px;
  --radius-sm:   10px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
}

.ge-root {
  background: var(--cream);
  min-height: 100vh;
  padding: 48px 16px 80px;
  position: relative;
  overflow: hidden;
}

.ge-root::before, .ge-root::after {
  content: ''; position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
}
.ge-root::before {
  width: 600px; height: 600px; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.ge-root::after {
  width: 400px; height: 400px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
}

/* ── CARD ────────────────────────────────────────────────── */
.ge-card {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  background: var(--white);
  border-radius: 24px; padding: 48px 40px 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* ── HEADER ──────────────────────────────────────────────── */
.ge-header { text-align: center; margin-bottom: 40px; transition: all 0.4s ease; }
.ge-wordmark {
  font-family: 'Playfair Display', serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ge-wordmark::before, .ge-wordmark::after {
  content: ''; display: block; height: 1px; width: 32px; background: var(--gold-light);
}
.ge-title {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  color: var(--ink); line-height: 1.2; margin-bottom: 10px; transition: all 0.4s ease;
}
.ge-subtitle {
  font-size: 14px; color: var(--ink-muted); font-weight: 400;
  line-height: 1.6; max-width: 340px; margin: 0 auto; transition: all 0.4s ease;
}

/* ── SECTION LABELS ──────────────────────────────────────── */
.ge-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px;
}
.ge-coupon-label-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.ge-coupon-label-row .ge-label { margin-bottom: 0; }
.ge-coupon-optional-hint {
  font-size: 12px; font-weight: 400; font-style: italic; color: var(--ink-muted);
  letter-spacing: 0; text-transform: none; opacity: 0.85;
}

/* ── BOOK COVERS ─────────────────────────────────────────── */
.ge-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.ge-book {
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 12px 10px 14px; text-align: center; cursor: pointer;
  background: var(--cream); transition: all 0.25s ease; position: relative; overflow: hidden;
}
.ge-book::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.ge-book:hover { border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.15); }
.ge-book:hover::before { opacity: 1; }
.ge-book.selected { border-color: var(--gold); background: #FFFBF0; box-shadow: 0 4px 20px rgba(201,168,76,0.20); }
.ge-book.selected::before { opacity: 1; }
.ge-book img { width: 100%; border-radius: 8px; display: block; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(15,14,12,0.15); transition: transform 0.25s ease; }
.ge-book:hover img, .ge-book.selected img { transform: scale(1.02); }
.ge-book-name { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; transition: color 0.2s; }
.ge-book.selected .ge-book-name { color: var(--gold-dim); }
.ge-book-check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 10px; color: white;
}
.ge-book.selected .ge-book-check { opacity: 1; transform: scale(1); }

/* Institutional badge on book cover — small purple pill, top-left */
.ge-book-inst-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--purple); color: white;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 20px;
  display: flex; align-items: center; gap: 3px;
}

/* ── TIER LOADING SHIMMER ────────────────────────────────── */
.ge-tier-shimmer {
  background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: ge-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
  height: 90px;
}
@keyframes ge-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.ge-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 28px 0; }

/* ── TIER CARDS (ordinary books only) ────────────────────── */
.ge-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 32px; }
.ge-tier {
  border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  padding: 16px 10px; text-align: center; cursor: pointer;
  background: var(--cream); transition: all 0.25s ease; position: relative;
}
.ge-tier:hover { border-color: var(--gold-light); background: #FFFBF0; }
.ge-tier.selected { border-color: var(--gold); background: #FFFBF0; box-shadow: 0 4px 16px rgba(201,168,76,0.18); }
.ge-tier-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.ge-tier-name { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.ge-tier-dur { font-size: 10px; color: var(--ink-muted); margin-bottom: 8px; }
.ge-tier-price { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--gold-dim); min-height: 26px; }
.ge-tier-price-original {
  font-size: 11px; font-weight: 400; color: var(--ink-muted);
  text-decoration: line-through; min-height: 16px; margin-bottom: 2px;
}
.ge-tier.selected .ge-tier-name { color: var(--ink); }
.ge-tier-savings {
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--success); background: var(--success-bg);
  padding: 2px 7px; border-radius: 20px; margin-top: 6px;
  display: inline-block;
}

/* ── EMAIL FIELD ─────────────────────────────────────────── */
.ge-input-wrap { position: relative; margin-bottom: 6px; }
.ge-input-wrap input {
  width: 100%; padding: 14px 16px 14px 44px;
  border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-size: 15px; font-family: 'DM Sans', sans-serif; font-weight: 400;
  color: var(--ink); background: var(--cream); transition: all 0.2s ease; outline: none;
}
.ge-input-wrap input::placeholder { color: var(--ink-muted); }
.ge-input-wrap input:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,168,76,0.10); }
.ge-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); font-size: 16px; pointer-events: none; transition: color 0.2s;
}
.ge-input-wrap input:focus ~ .ge-input-icon { color: var(--gold); }
.ge-email-status {
  font-size: 12px; font-weight: 500; margin-top: 7px; min-height: 18px; padding-left: 4px;
  display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.ge-email-status.valid   { color: var(--success); }
.ge-email-status.invalid { color: var(--error); }
.ge-email-status.checking { color: var(--ink-muted); }

/* ── COUPON SECTION (ordinary books only) ────────────────── */
.ge-coupon-wrap { margin-bottom: 4px; }
.ge-coupon-row { display: flex; gap: 8px; align-items: stretch; }
.ge-coupon-input-wrap { position: relative; flex: 1; }
.ge-coupon-input-wrap input {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--ink); background: var(--cream); transition: all 0.2s ease; outline: none;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ge-coupon-input-wrap input::placeholder {
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-muted);
}
.ge-coupon-input-wrap input:focus {
  border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,168,76,0.10);
}
.ge-coupon-input-wrap input:disabled {
  background: var(--success-bg); border-color: rgba(26,102,65,0.25); color: var(--success);
}
.ge-coupon-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; pointer-events: none; color: var(--ink-muted);
}
.ge-coupon-btn {
  padding: 0 18px; white-space: nowrap; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s ease;
}
.ge-coupon-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.30); }
.ge-coupon-btn:disabled { background: var(--cream-dark); color: var(--ink-muted); cursor: not-allowed; }
.ge-coupon-status {
  font-size: 12px; font-weight: 500; margin-top: 7px; min-height: 18px; padding-left: 4px;
  display: flex; align-items: center; gap: 5px;
}
.ge-coupon-status.valid   { color: var(--success); }
.ge-coupon-status.invalid { color: var(--error); }
.ge-coupon-status.checking { color: var(--ink-muted); }
.ge-coupon-applied-badge {
  display: none; align-items: center; gap: 8px;
  background: var(--success-bg); border: 1px solid rgba(26,102,65,0.20);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 10px;
  font-size: 13px; color: var(--success); font-weight: 600;
}
.ge-coupon-applied-badge.visible { display: flex; }
.ge-coupon-remove-btn {
  margin-left: auto; background: none; border: none; font-size: 12px; cursor: pointer;
  color: var(--ink-muted); text-decoration: underline; font-family: 'DM Sans', sans-serif;
  padding: 0; transition: color 0.15s;
}
.ge-coupon-remove-btn:hover { color: var(--error); }

/* ── INSTITUTIONAL OFFER CARD (buy-institutional page only) ── */
.ge-inst-offer {
  display: none;
  background: linear-gradient(135deg, #FBF9FF, #F5F1FF);
  border: 1px solid rgba(139,92,246,0.25); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 20px 0; animation: ge-fade-in 0.3s ease;
}
.ge-inst-offer.visible { display: block; }
.ge-inst-offer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: white; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.ge-inst-offer-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.ge-inst-offer-school { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ge-inst-offer-price {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--purple-dim); white-space: nowrap;
}
.ge-inst-offer-window {
  font-size: 12.5px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px;
  padding-top: 10px; border-top: 1px solid rgba(139,92,246,0.15);
}

/* ── INELIGIBILITY MESSAGE (buy-institutional page only) ─── */
.ge-inst-blocked {
  display: none;
  background: var(--cream); border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0;
  animation: ge-fade-in 0.3s ease;
}
.ge-inst-blocked.visible { display: block; }
.ge-inst-blocked-title {
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.ge-inst-blocked-message { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.ge-inst-blocked-message a { color: var(--gold-dim); font-weight: 600; }

/* ── ORDER SUMMARY (ordinary books only) ─────────────────── */
.ge-summary {
  display: none;
  background: linear-gradient(135deg, #FFFBF0, #FFF8E6);
  border: 1px solid rgba(201,168,76,0.30); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 20px 0; animation: ge-fade-in 0.3s ease;
}
.ge-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-soft); padding: 3px 0;
}
.ge-summary-row:last-child {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(201,168,76,0.20);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.ge-summary-row span:last-child { font-weight: 600; color: var(--gold-dim); }
.ge-summary-row:last-child span:last-child {
  font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold-dim);
}
.ge-summary-discount { color: var(--success) !important; }
.ge-summary-discount span:last-child { color: var(--success) !important; }

/* ── PAY BUTTON ──────────────────────────────────────────── */
.ge-btn {
  width: 100%; padding: 17px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em; cursor: pointer; margin-top: 4px;
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.ge-btn.ge-btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
}
.ge-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.ge-btn:hover:not(:disabled)::after { opacity: 1; }
.ge-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.ge-btn.ge-btn-purple:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(139,92,246,0.35); }
.ge-btn:active:not(:disabled) { transform: translateY(0); }
.ge-btn:disabled { background: var(--cream-dark); color: var(--ink-muted); cursor: not-allowed; box-shadow: none; }

/* ── TRUST BAR ───────────────────────────────────────────── */
.ge-trust { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.ge-trust-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }

/* ── LOADING STATE (shared) ──────────────────────────────── */
.ge-loading { display: none; text-align: center; padding: 32px 0 16px; animation: ge-fade-in 0.3s ease; }
.ge-spinner-ring {
  width: 56px; height: 56px; border: 3px solid var(--cream-dark);
  border-top-color: var(--gold); border-radius: 50%;
  animation: ge-spin 0.85s linear infinite; margin: 0 auto 20px;
}
@keyframes ge-spin { to { transform: rotate(360deg); } }
.ge-loading-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.ge-loading-sub { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* ── SUCCESS STATE (shared) ──────────────────────────────── */
.ge-success { display: none; text-align: center; padding: 24px 0 8px; animation: ge-fade-in 0.5s ease; }
.ge-success-icon { font-size: 64px; display: block; margin-bottom: 20px; animation: ge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes ge-pop { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ge-success-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--success); margin-bottom: 12px; }
.ge-success-body { font-size: 15px; color: var(--ink-soft); line-height: 1.7; max-width: 320px; margin: 0 auto 28px; }
.ge-success-steps {
  background: var(--success-bg); border: 1px solid rgba(26,102,65,0.15);
  border-radius: var(--radius-sm); padding: 18px 20px; text-align: left; margin-bottom: 8px;
}
.ge-success-step { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--success); font-weight: 500; line-height: 1.5; padding: 5px 0; }
.ge-step-num {
  width: 22px; height: 22px; min-width: 22px; background: var(--success);
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}

/* ── FAILURE STATE (shared) ───────────────────────────────── */
.ge-failure { display: none; text-align: center; padding: 24px 0 8px; animation: ge-fade-in 0.5s ease; }
.ge-failure-icon { font-size: 56px; display: block; margin-bottom: 16px; animation: ge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ge-failure-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--error); margin-bottom: 10px; }
.ge-failure-body { font-size: 14px; color: var(--ink-soft); line-height: 1.7; max-width: 340px; margin: 0 auto 20px; }
.ge-failure-ref-box {
  background: #FFF8F0; border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; text-align: left;
}
.ge-failure-ref-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.ge-failure-ref-value {
  font-family: 'DM Sans', monospace; font-size: 13px; font-weight: 600;
  color: var(--gold-dim); word-break: break-all; line-height: 1.5;
}
.ge-failure-note { font-size: 12px; color: var(--ink-muted); margin-top: 8px; line-height: 1.5; }
.ge-failure-actions { display: flex; flex-direction: column; gap: 10px; }
.ge-btn-retry {
  width: 100%; padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.25s ease;
}
.ge-btn-retry:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.ge-btn-secondary {
  width: 100%; padding: 13px 24px;
  background: transparent; color: var(--ink-muted);
  border: 1px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s ease;
}
.ge-btn-secondary:hover { border-color: var(--gold-light); color: var(--ink); background: #FFFBF0; }

/* ── CARD STATE TRANSITIONS (shared) ─────────────────────── */
.ge-card.is-loading { background: var(--cream); }
.ge-card.is-success {
  background: linear-gradient(160deg, #FFFFFF 0%, #F0FAF5 100%);
  border-color: rgba(26,102,65,0.20); box-shadow: 0 24px 64px rgba(26,102,65,0.10);
}
.ge-card.is-success .ge-wordmark { color: var(--success); }
.ge-card.is-success .ge-wordmark::before, .ge-card.is-success .ge-wordmark::after { background: rgba(26,102,65,0.30); }
.ge-card.is-failure {
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF5F5 100%);
  border-color: rgba(139,26,26,0.15); box-shadow: 0 24px 64px rgba(139,26,26,0.06);
}

/* ── ANIMATIONS (shared) ─────────────────────────────────── */
@keyframes ge-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ge-pulse-text {
  0%, 100% { opacity: 1; } 50% { opacity: 0.45; }
}
.ge-title.is-pulsing { animation: ge-pulse-text 1.6s ease-in-out infinite; }

/* ── "ALREADY PAID?" LINK (shared) ───────────────────────── */
.ge-already-paid-wrap { text-align: center; margin-bottom: 10px; }
.ge-already-paid-link {
  font-size: 12.5px; color: var(--ink-muted); font-weight: 500;
  cursor: pointer; text-decoration: none;
  border-bottom: 1px dashed rgba(122,119,110,0.40); padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ge-already-paid-link:hover { color: var(--gold-dim); border-bottom-color: var(--gold-light); text-decoration: none; }
.ge-already-paid-link.has-pending { color: var(--gold-dim); border-bottom-color: var(--gold-light); }

/* ── RECOVERY WIDGET (shared) ────────────────────────────── */
.ge-recovery-panel {
  display: none;
  position: relative; z-index: 1;
  max-width: 560px; margin: 12px auto 0;
  background: var(--white); border-radius: 20px;
  padding: 32px 36px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: ge-fade-in 0.35s ease;
}
.ge-recovery-panel.is-open { display: block; }
.ge-recovery-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.ge-recovery-sub { font-size: 13px; color: var(--ink-muted); line-height: 1.65; margin-bottom: 20px; }
.ge-recovery-sub strong { color: var(--ink-soft); font-weight: 600; }
.ge-recovery-input-wrap { position: relative; margin-bottom: 8px; }
.ge-recovery-input-wrap input {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'DM Sans', monospace; font-weight: 500;
  color: var(--ink); background: var(--cream); transition: all 0.2s ease; outline: none;
  letter-spacing: 0.03em;
}
.ge-recovery-input-wrap input::placeholder { color: var(--ink-muted); font-weight: 400; letter-spacing: 0; font-family: 'DM Sans', sans-serif; }
.ge-recovery-input-wrap input:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,168,76,0.10); }
.ge-recovery-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 15px; pointer-events: none; }
.ge-autofill-badge { display: none; align-items: center; gap: 6px; font-size: 11px; color: var(--success); font-weight: 600; margin-bottom: 14px; padding-left: 2px; }
.ge-autofill-badge.visible { display: flex; }
.ge-autofill-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; flex-shrink: 0; }
.ge-recovery-email-wrap { margin-bottom: 16px; }
.ge-recovery-email-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px;
}
.ge-recovery-status {
  min-height: 20px; font-size: 13px; font-weight: 500; margin-bottom: 14px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  display: none; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.ge-recovery-status.checking { display: flex; background: var(--cream); color: var(--ink-muted); }
.ge-recovery-status.success  { display: flex; background: var(--success-bg); color: var(--success); border: 1px solid rgba(26,102,65,0.15); }
.ge-recovery-status.error    { display: flex; background: var(--error-bg); color: var(--error); border: 1px solid rgba(139,26,26,0.12); }
.ge-recovery-spinner {
  width: 16px; height: 16px; min-width: 16px;
  border: 2px solid rgba(201,168,76,0.30); border-top-color: var(--gold);
  border-radius: 50%; animation: ge-spin 0.8s linear infinite; margin-top: 1px;
}
.ge-btn-recover {
  width: 100%; padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.ge-btn-recover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.ge-btn-recover:hover:not(:disabled)::after { opacity: 1; }
.ge-btn-recover:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.ge-btn-recover:disabled { background: var(--cream-dark); color: var(--ink-muted); cursor: not-allowed; }
.ge-recovery-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 20px 0; }
.ge-recovery-help { font-size: 12px; color: var(--ink-muted); text-align: center; line-height: 1.6; }
.ge-recovery-help strong { color: var(--ink-soft); }

/* ── RESPONSIVE (shared) ─────────────────────────────────── */
@media (max-width: 500px) {
  .ge-card { padding: 32px 20px 28px; }
  .ge-recovery-panel { padding: 24px 20px; }
  .ge-title { font-size: 26px; }
  .ge-tier-price { font-size: 14px; }
  .ge-books { gap: 8px; }
  .ge-book { padding: 8px 6px 10px; }
  .ge-coupon-row { flex-direction: column; }
  .ge-coupon-btn { padding: 13px; }
  .ge-inst-offer-row { flex-direction: column; }
}