/* PYQ Enhancements v3.0 - Best version */
:root {
	--enh-navy: #16233D;
	--enh-gold: #C6821F;
	--enh-gold2: #B4571C;
	--enh-muted: #64748b;
	--enh-line: #E7E0CE;
	--enh-paper: #F6F3EB;
	--enh-radius: 16px;
}

.pyq-enh-promo-rail { display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; }
.pyq-enh-promo { display: flex; align-items: stretch; gap: 0; border-radius: var(--enh-radius); overflow: hidden; background: var(--promo-bg, var(--enh-navy)); color: var(--promo-fg, #fff); box-shadow: 0 8px 28px rgba(22, 35, 61, 0.12); min-height: 120px; }
.pyq-enh-promo--coursera { flex-direction: row; }
.pyq-enh-promo__media { flex: 0 0 38%; min-height: 120px; background-size: cover; background-position: center; }
.pyq-enh-promo__body { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.pyq-enh-promo__title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.pyq-enh-promo__sub { margin: 0; opacity: 0.9; font-size: 0.95rem; line-height: 1.5; font-weight: 500; }
.pyq-enh-promo__cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; align-self: flex-start; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--enh-navy); font-weight: 800; text-decoration: none; font-size: 0.9rem; }
.pyq-enh-promo__cta:hover { filter: brightness(0.97); }
.pyq-enh-promo--banner .pyq-enh-promo__media { display: none; }
.pyq-enh-promo--minimal { min-height: 0; box-shadow: none; border: 1px solid var(--enh-line); }
.pyq-enh-promo--card { flex-direction: column; }
.pyq-enh-promo--card .pyq-enh-promo__media { flex: none; height: 140px; width: 100%; }
@media (max-width: 700px) {
	.pyq-enh-promo--coursera { flex-direction: column; }
	.pyq-enh-promo__media { flex: none; height: 140px; width: 100%; }
}

/* Overlays v3 */
.pyq-enh-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, 0.65); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.pyq-enh-overlay[hidden] { display: none !important; }
.pyq-enh-modal { position: relative; background: #fff; color: var(--enh-navy); border-radius: 20px; padding: 32px 28px 28px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); animation: pyqModalIn 0.3s ease; }
@keyframes pyqModalIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.pyq-enh-modal--celebrate { text-align: center; max-width: 480px; padding: 36px 28px 32px; }
.pyq-enh-modal--lead { max-width: 520px; max-height: 90vh; overflow-y: auto; }
.pyq-enh-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: none; border-radius: 50%; background: #f1f5f9; font-size: 1.25rem; cursor: pointer; color: #475569; line-height: 1; transition: 0.2s; }
.pyq-enh-x:hover { background: #e2e8f0; }
.pyq-enh-modal-title { margin: 0 0 12px; font-size: 1.35rem; font-weight: 800; padding-right: 28px; line-height: 1.3; }
.pyq-enh-modal-body { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.6; color: #334155; white-space: pre-line; }
.pyq-enh-modal-meta { font-size: 0.82rem; color: var(--enh-muted); font-weight: 600; margin: 0 0 16px; }
.pyq-enh-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pyq-enh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 12px; font-weight: 800; font-size: 0.92rem; border: none; cursor: pointer; text-decoration: none; font-family: inherit; min-height: 46px; transition: 0.2s; }
.pyq-enh-btn.primary { background: linear-gradient(135deg, var(--enh-gold), var(--enh-gold2)); color: #fff; box-shadow: 0 4px 12px rgba(198,130,31,0.3); }
.pyq-enh-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(198,130,31,0.4); }
.pyq-enh-btn.ghost { background: #f8fafc; color: var(--enh-navy); border: 1px solid var(--enh-line); }
.pyq-enh-btn.ghost:hover { background: #f1f5f9; }
.pyq-enh-btn.small { padding: 8px 14px; font-size: 0.82rem; min-height: 36px; }
.pyq-enh-btn.link { background: transparent; border: none; color: var(--enh-muted); text-decoration: underline; font-size: 0.8rem; }

/* Paywall v3 */
.pyq-enh-pw-icon { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }
.pyq-enh-pw-foot { font-size: 0.75rem; color: var(--enh-muted); text-align: center; margin: 16px 0 0; }

/* Milestone v3 progressive */
.pyq-enh-emoji { font-size: 3.5rem; margin-bottom: 12px; line-height: 1; animation: pyqBounce 0.6s ease; }
@keyframes pyqBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.pyq-enh-level-badge { display: inline-block; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 12px; }
.pyq-enh-modal--celebrate.pyq-enh-size-small .pyq-enh-emoji { font-size: 2.5rem; }
.pyq-enh-modal--celebrate.pyq-enh-size-medium .pyq-enh-emoji { font-size: 3.5rem; }
.pyq-enh-modal--celebrate.pyq-enh-size-large .pyq-enh-emoji { font-size: 4.5rem; animation: pyqPulse 1s ease infinite; }
.pyq-enh-modal--celebrate.pyq-enh-size-epic .pyq-enh-emoji { font-size: 5rem; animation: pyqPulse 0.8s ease infinite; }
@keyframes pyqPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.pyq-enh-modal--celebrate.pyq-enh-size-epic { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 2px solid #f59e0b; }
.pyq-enh-milestone-progress { font-size: 0.8rem; color: var(--enh-muted); margin: 12px 0; font-weight: 600; }

/* Leads v3 */
.pyq-enh-lead-form label { display: block; font-size: 0.8rem; font-weight: 700; color: #475569; margin-bottom: 12px; }
.pyq-enh-lead-form input[type="text"], .pyq-enh-lead-form input[type="tel"], .pyq-enh-lead-form input[type="email"] { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 0.95rem; box-sizing: border-box; transition: 0.2s; }
.pyq-enh-lead-form input:focus { outline: none; border-color: var(--enh-gold); box-shadow: 0 0 0 3px rgba(198,130,31,0.15); }
.pyq-enh-coaching-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pyq-enh-coaching-list label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--enh-navy); transition: 0.2s; }
.pyq-enh-coaching-list label:hover { border-color: var(--enh-gold); background: #fffbeb; }
.pyq-enh-otp-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.pyq-enh-otp-row input { flex: 1; min-width: 120px; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 0.9rem; }
.pyq-enh-otp-hint { font-size: 0.7rem; color: #16a34a; font-weight: 700; width: 100%; margin-top: 2px; }
.pyq-enh-lead-err { color: #b91c1c; font-weight: 700; font-size: 0.88rem; background: #fef2f2; padding: 8px 12px; border-radius: 8px; border: 1px solid #fecaca; }
.pyq-enh-lead-intro { color: var(--enh-muted); font-size: 0.92rem; margin: 0 0 14px; line-height: 1.5; }
.pyq-enh-test-hint { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 8px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }

/* Paid materials */
.pyq-enh-paid-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 56px; }
.pyq-enh-paid-banner { background: linear-gradient(135deg, #16233D, #1e3054); color: #fff; border-radius: 18px; padding: 28px 26px; margin-bottom: 28px; }
.pyq-enh-paid-banner h1 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; }
.pyq-enh-paid-banner p { margin: 0; opacity: 0.9; line-height: 1.6; font-size: 0.95rem; }
.pyq-enh-paid-h2 { font-size: 1.2rem; font-weight: 800; color: var(--enh-navy); margin: 24px 0 14px; }
.pyq-enh-paid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pyq-enh-paid-card { background: #fff; border: 1px solid var(--enh-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 10px rgba(22, 35, 61, 0.05); transition: 0.2s; }
.pyq-enh-paid-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,35,61,0.1); }
.pyq-enh-paid-card h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--enh-navy); line-height: 1.35; }
.pyq-enh-paid-card .meta { margin: 0; font-size: 0.85rem; color: var(--enh-muted); font-weight: 600; }
.pyq-enh-paid-card .price { margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; color: #6d28d9; }
.pyq-enh-paid-buy { margin-top: auto; width: 100%; padding: 12px; border: none; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 0.95rem; transition: 0.2s; }
.pyq-enh-paid-buy:hover { transform: translateY(-1px); }
.pyq-enh-paid-login { padding: 14px; background: #fff7ed; border-radius: 10px; font-weight: 600; }
.pyq-enh-paid-empty { color: var(--enh-muted); font-weight: 600; }
