/**
 * Athenaeum Platform Pro — Front-end Stylesheet
 *
 * Styles every public-facing surface shipped by the plugin:
 * authentication, checkout, thank-you, paywall, dashboard, test
 * runner summary, leaderboard, study planner, bookmarks, orders,
 * PDF downloads, cookie consent, search, pricing, FAQ, testimonials,
 * newsletter, modals, toasts, and notifications.
 *
 * Colors come from the Athenaeum design tokens. Motion respects
 * prefers-reduced-motion. Layout supports LTR and RTL.
 *
 * @package PYQ\PlatformPro
 */

/* =============================================================
   1. Design Tokens & Resets
   ============================================================= */

:root {
    --pyq-front-radius: 10px;
    --pyq-front-radius-sm: 6px;
    --pyq-front-radius-lg: 18px;
    --pyq-front-shadow-sm: 0 1px 2px rgba(22, 22, 31, 0.05);
    --pyq-front-shadow: 0 6px 22px rgba(22, 22, 31, 0.08);
    --pyq-front-shadow-lg: 0 24px 60px rgba(22, 22, 31, 0.18);
    --pyq-front-gap: 16px;
    --pyq-front-gap-lg: 28px;
    --pyq-front-font: var(--font-sans);
    --pyq-front-display: var(--font-display);
    --pyq-front-mono: var(--font-mono);
    --pyq-front-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --pyq-front-dur: 200ms;
}

.pyq-front *,
.pyq-front *::before,
.pyq-front *::after { box-sizing: border-box; }

.pyq-front {
    font-family: var(--pyq-front-font);
    color: var(--ink-800);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.pyq-front h1,
.pyq-front h2,
.pyq-front h3,
.pyq-front h4,
.pyq-front h5 {
    font-family: var(--pyq-front-display);
    color: var(--ink-900);
    line-height: 1.2;
    margin: 0 0 var(--pyq-front-gap);
    font-weight: 600;
}

.pyq-front h1 { font-size: 34px; }
.pyq-front h2 { font-size: 26px; }
.pyq-front h3 { font-size: 20px; }
.pyq-front h4 { font-size: 17px; }
.pyq-front h5 { font-size: 15px; }

.pyq-front p {
    margin: 0 0 var(--pyq-front-gap);
    color: var(--ink-700);
}

.pyq-front a {
    color: var(--burgundy-600);
    text-decoration: none;
    transition: color var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front a:hover { color: var(--burgundy-700); }

.pyq-front :focus-visible {
    outline: 2px solid var(--brass-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.pyq-front .pyq-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.pyq-front .pyq-container--narrow { max-width: 720px; }
.pyq-front .pyq-container--wide { max-width: 1280px; }

/* =============================================================
   2. Buttons
   ============================================================= */

.pyq-front .pyq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--pyq-front-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 11px 20px;
    border-radius: var(--pyq-front-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    background: var(--paper-200);
    color: var(--ink-800);
    transition: background var(--pyq-front-dur) var(--pyq-front-ease),
                color var(--pyq-front-dur) var(--pyq-front-ease),
                border-color var(--pyq-front-dur) var(--pyq-front-ease),
                box-shadow var(--pyq-front-dur) var(--pyq-front-ease),
                transform var(--pyq-front-dur) var(--pyq-front-ease);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.pyq-front .pyq-btn:hover { transform: translateY(-1px); }
.pyq-front .pyq-btn:active { transform: translateY(0); }

.pyq-front .pyq-btn:disabled,
.pyq-front .pyq-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.pyq-front .pyq-btn--primary {
    background: var(--burgundy-500);
    color: var(--paper-50);
    border-color: var(--burgundy-600);
    box-shadow: 0 4px 12px rgba(140, 58, 68, 0.22);
}

.pyq-front .pyq-btn--primary:hover {
    background: var(--burgundy-600);
    color: var(--paper-50);
}

.pyq-front .pyq-btn--ghost {
    background: transparent;
    border-color: var(--paper-300);
    color: var(--ink-700);
}

.pyq-front .pyq-btn--ghost:hover {
    background: var(--paper-100);
    color: var(--ink-900);
}

.pyq-front .pyq-btn--success {
    background: var(--viridian-500);
    color: #fff;
    border-color: var(--viridian-600);
}

.pyq-front .pyq-btn--success:hover { background: var(--viridian-600); }

.pyq-front .pyq-btn--danger {
    background: var(--burgundy-600);
    color: #fff;
}

.pyq-front .pyq-btn--block { width: 100%; }
.pyq-front .pyq-btn--lg { padding: 14px 28px; font-size: 15px; }
.pyq-front .pyq-btn--sm { padding: 6px 12px; font-size: 12px; }

.pyq-front .pyq-btn__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pyq-front-spin 700ms linear infinite;
}

@keyframes pyq-front-spin { to { transform: rotate(360deg); } }

/* =============================================================
   3. Cards
   ============================================================= */

.pyq-front .pyq-card {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    box-shadow: var(--pyq-front-shadow-sm);
    padding: 22px;
    transition: box-shadow var(--pyq-front-dur) var(--pyq-front-ease),
                transform var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-card--hover:hover {
    box-shadow: var(--pyq-front-shadow);
    transform: translateY(-2px);
}

.pyq-front .pyq-card--accent {
    border-top: 3px solid var(--burgundy-500);
}

.pyq-front .pyq-card--brass {
    border-top: 3px solid var(--brass-500);
}

/* =============================================================
   4. Auth Forms
   ============================================================= */

.pyq-front .pyq-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--pyq-front-radius-lg);
    overflow: hidden;
    box-shadow: var(--pyq-front-shadow);
    border: 1px solid var(--paper-200);
    max-width: 920px;
    margin: 0 auto;
}

.pyq-front .pyq-auth__aside {
    background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
    color: var(--paper-100);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.pyq-front .pyq-auth__aside::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(171, 130, 50, 0.25), transparent 70%);
    pointer-events: none;
}

.pyq-front .pyq-auth__aside h2 {
    color: var(--paper-50);
    font-size: 26px;
    margin-bottom: 12px;
    position: relative;
}

.pyq-front .pyq-auth__aside p {
    color: var(--ink-300);
    position: relative;
}

.pyq-front .pyq-auth__aside ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    position: relative;
}

.pyq-front .pyq-auth__aside li {
    padding: 8px 0 8px 28px;
    color: var(--paper-200);
    font-size: 14px;
    position: relative;
}

.pyq-front .pyq-auth__aside li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    background: var(--brass-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316161f'%3E%3Cpath d='M6 11.6L2.4 8l1.4-1.4L6 8.8l6.2-6.2L13.6 4z'/%3E%3C/svg%3E") center/12px no-repeat;
    border-radius: 50%;
}

.pyq-front .pyq-auth__main {
    padding: 40px;
}

.pyq-front .pyq-auth__title {
    font-size: 24px;
    margin-bottom: 6px;
}

.pyq-front .pyq-auth__subtitle {
    color: var(--ink-400);
    margin-bottom: 28px;
}

.pyq-front .pyq-field {
    margin-bottom: 18px;
}

.pyq-front .pyq-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-800);
    margin-bottom: 6px;
}

.pyq-front .pyq-field__hint {
    font-size: 12px;
    color: var(--ink-400);
    margin-top: 5px;
}

.pyq-front .pyq-field__error {
    font-size: 12px;
    color: var(--burgundy-600);
    margin-top: 5px;
    display: none;
}

.pyq-front .pyq-field.is-invalid .pyq-field__error { display: block; }
.pyq-front .pyq-field.is-invalid .pyq-input {
    border-color: var(--burgundy-500);
    box-shadow: 0 0 0 3px rgba(140, 58, 68, 0.12);
}

.pyq-front .pyq-input,
.pyq-front .pyq-select,
.pyq-front .pyq-textarea {
    width: 100%;
    font-family: var(--pyq-front-font);
    font-size: 14px;
    color: var(--ink-900);
    background: var(--paper-50);
    border: 1px solid var(--paper-300);
    border-radius: var(--pyq-front-radius-sm);
    padding: 11px 14px;
    transition: border-color var(--pyq-front-dur) var(--pyq-front-ease),
                box-shadow var(--pyq-front-dur) var(--pyq-front-ease),
                background var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-input:hover,
.pyq-front .pyq-select:hover,
.pyq-front .pyq-textarea:hover { border-color: var(--ink-300); }

.pyq-front .pyq-input:focus,
.pyq-front .pyq-select:focus,
.pyq-front .pyq-textarea:focus {
    outline: none;
    border-color: var(--brass-500);
    box-shadow: 0 0 0 3px rgba(171, 130, 50, 0.18);
    background: #fff;
}

.pyq-front .pyq-input::placeholder { color: var(--ink-300); }

.pyq-front .pyq-password {
    position: relative;
}

.pyq-front .pyq-password__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--ink-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-password__toggle:hover { color: var(--ink-800); }

.pyq-front .pyq-password .pyq-input { padding-right: 42px; }

/* Password strength meter */
.pyq-front .pyq-strength {
    margin-top: 8px;
}

.pyq-front .pyq-strength__bar {
    height: 4px;
    background: var(--paper-200);
    border-radius: 999px;
    overflow: hidden;
}

.pyq-front .pyq-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 300ms var(--pyq-front-ease), background 300ms var(--pyq-front-ease);
}

.pyq-front .pyq-strength--1 .pyq-strength__fill { width: 25%; background: var(--burgundy-600); }
.pyq-front .pyq-strength--2 .pyq-strength__fill { width: 50%; background: var(--brass-500); }
.pyq-front .pyq-strength--3 .pyq-strength__fill { width: 75%; background: var(--viridian-500); }
.pyq-front .pyq-strength--4 .pyq-strength__fill { width: 100%; background: var(--viridian-600); }

.pyq-front .pyq-strength__label {
    font-size: 11px;
    color: var(--ink-400);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* OTP grid */
.pyq-front .pyq-otp {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}

.pyq-front .pyq-otp__input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-family: var(--pyq-front-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-900);
    background: var(--paper-50);
    border: 1.5px solid var(--paper-300);
    border-radius: var(--pyq-front-radius-sm);
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-otp__input:focus {
    outline: none;
    border-color: var(--brass-500);
    box-shadow: 0 0 0 3px rgba(171, 130, 50, 0.18);
    background: #fff;
}

.pyq-front .pyq-otp__input.is-filled {
    border-color: var(--brass-500);
    background: rgba(171, 130, 50, 0.06);
}

/* Social login */
.pyq-front .pyq-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.pyq-front .pyq-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--paper-300);
    background: var(--paper-50);
    border-radius: var(--pyq-front-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-800);
    cursor: pointer;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-social__btn:hover {
    background: #fff;
    border-color: var(--ink-300);
}

.pyq-front .pyq-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--ink-400);
    font-size: 12px;
}

.pyq-front .pyq-auth__divider::before,
.pyq-front .pyq-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--paper-300);
}

.pyq-front .pyq-auth__foot {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--ink-500);
}

/* =============================================================
   5. Checkout
   ============================================================= */

.pyq-front .pyq-checkout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.pyq-front .pyq-plan-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.pyq-front .pyq-plan {
    background: var(--bg-card);
    border: 1.5px solid var(--paper-300);
    border-radius: var(--pyq-front-radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
    display: flex;
    align-items: center;
    gap: 16px;
}

.pyq-front .pyq-plan:hover {
    border-color: var(--ink-300);
    box-shadow: var(--pyq-front-shadow-sm);
}

.pyq-front .pyq-plan.is-selected {
    border-color: var(--burgundy-500);
    background: rgba(140, 58, 68, 0.04);
    box-shadow: 0 0 0 3px rgba(140, 58, 68, 0.1);
}

.pyq-front .pyq-plan__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ink-300);
    flex-shrink: 0;
    position: relative;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-plan.is-selected .pyq-plan__radio {
    border-color: var(--burgundy-500);
}

.pyq-front .pyq-plan.is-selected .pyq-plan__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--burgundy-500);
    border-radius: 50%;
}

.pyq-front .pyq-plan__body { flex: 1; }

.pyq-front .pyq-plan__name {
    font-family: var(--pyq-front-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-900);
    margin: 0 0 2px;
}

.pyq-front .pyq-plan__desc {
    color: var(--ink-400);
    font-size: 13px;
    margin: 0;
}

.pyq-front .pyq-plan__price {
    text-align: right;
    flex-shrink: 0;
}

.pyq-front .pyq-plan__amount {
    font-family: var(--pyq-front-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-900);
    display: block;
}

.pyq-front .pyq-plan__period {
    font-size: 12px;
    color: var(--ink-400);
}

.pyq-front .pyq-coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pyq-front .pyq-coupon .pyq-input { flex: 1; text-transform: uppercase; }

.pyq-front .pyq-coupon__msg {
    font-size: 12px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}

.pyq-front .pyq-coupon__msg.is-success {
    display: block;
    background: rgba(71, 128, 96, 0.1);
    color: var(--viridian-600);
}

.pyq-front .pyq-coupon__msg.is-error {
    display: block;
    background: rgba(140, 58, 68, 0.1);
    color: var(--burgundy-600);
}

/* Order summary sidebar */
.pyq-front .pyq-summary {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    padding: 22px;
    position: sticky;
    top: 20px;
    box-shadow: var(--pyq-front-shadow-sm);
}

.pyq-front .pyq-summary__title {
    font-family: var(--pyq-front-display);
    font-size: 18px;
    margin: 0 0 14px;
}

.pyq-front .pyq-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink-700);
}

.pyq-front .pyq-summary__row--discount { color: var(--viridian-600); }

.pyq-front .pyq-summary__divider {
    border-top: 1px dashed var(--paper-300);
    margin: 12px 0;
}

.pyq-front .pyq-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--pyq-front-display);
}

.pyq-front .pyq-summary__total-label { font-size: 14px; font-weight: 600; color: var(--ink-800); }

.pyq-front .pyq-summary__total-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink-900);
}

/* Payment methods */
.pyq-front .pyq-paymethods {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.pyq-front .pyq-paymethod {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--paper-300);
    border-radius: var(--pyq-front-radius-sm);
    cursor: pointer;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
    background: var(--paper-50);
}

.pyq-front .pyq-paymethod:hover { border-color: var(--ink-300); }

.pyq-front .pyq-paymethod.is-selected {
    border-color: var(--burgundy-500);
    background: rgba(140, 58, 68, 0.04);
}

.pyq-front .pyq-paymethod__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ink-300);
    flex-shrink: 0;
    position: relative;
}

.pyq-front .pyq-paymethod.is-selected .pyq-paymethod__radio {
    border-color: var(--burgundy-500);
}

.pyq-front .pyq-paymethod.is-selected .pyq-paymethod__radio::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--burgundy-500);
    border-radius: 50%;
}

.pyq-front .pyq-paymethod__name { font-weight: 600; color: var(--ink-900); }

.pyq-front .pyq-paymethod__desc { font-size: 12px; color: var(--ink-400); }

.pyq-front .pyq-paymethod__logo {
    margin-left: auto;
    height: 22px;
    width: auto;
}

/* =============================================================
   6. Thank-you Page
   ============================================================= */

.pyq-front .pyq-thanks {
    text-align: center;
    padding: 48px 20px;
}

.pyq-front .pyq-thanks__check {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--viridian-500);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    font-size: 40px;
    box-shadow: 0 12px 30px rgba(71, 128, 96, 0.32);
    animation: pyq-thanks-pop 600ms var(--pyq-front-ease);
}

@keyframes pyq-thanks-pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.pyq-front .pyq-thanks__title {
    font-size: 32px;
    margin-bottom: 8px;
}

.pyq-front .pyq-thanks__subtitle {
    color: var(--ink-500);
    max-width: 460px;
    margin: 0 auto 28px;
}

.pyq-front .pyq-thanks__order {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    padding: 22px;
    max-width: 520px;
    margin: 0 auto 28px;
    text-align: left;
}

.pyq-front .pyq-thanks__next {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.pyq-front .pyq-thanks__step {
    background: var(--paper-100);
    border-radius: var(--pyq-front-radius-sm);
    padding: 16px;
    text-align: center;
}

.pyq-front .pyq-thanks__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brass-500);
    color: var(--ink-900);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    margin: 0 auto 10px;
}

.pyq-front .pyq-thanks__step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    margin: 0 0 4px;
}

.pyq-front .pyq-thanks__step-text {
    font-size: 12px;
    color: var(--ink-500);
    margin: 0;
}

/* Confetti */
.pyq-front .pyq-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.pyq-front .pyq-confetti__piece {
    position: absolute;
    width: 10px;
    height: 14px;
    top: -20px;
    animation: pyq-confetti-fall linear forwards;
}

@keyframes pyq-confetti-fall {
    to { transform: translateY(110vh) rotate(720deg); }
}

/* =============================================================
   7. Paywall Overlay
   ============================================================= */

.pyq-front .pyq-paywall {
    position: relative;
    overflow: hidden;
    border-radius: var(--pyq-front-radius);
}

.pyq-front .pyq-paywall__content {
    filter: blur(3px);
    opacity: 0.4;
    user-select: none;
    pointer-events: none;
}

.pyq-front .pyq-paywall__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 240, 230, 0) 0%, rgba(245, 240, 230, 0.85) 35%, var(--paper-50) 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pyq-front .pyq-paywall__card {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius-lg);
    padding: 32px;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--pyq-front-shadow-lg);
    animation: pyq-fade-in 240ms var(--pyq-front-ease);
}

.pyq-front .pyq-paywall__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--burgundy-500);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.pyq-front .pyq-paywall__title {
    font-size: 22px;
    margin-bottom: 8px;
}

.pyq-front .pyq-paywall__msg {
    color: var(--ink-500);
    margin-bottom: 22px;
    font-size: 14px;
}

.pyq-front .pyq-paywall__price {
    font-family: var(--pyq-front-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--burgundy-600);
    margin: 0 0 4px;
}

.pyq-front .pyq-paywall__price-note {
    font-size: 12px;
    color: var(--ink-400);
    margin-bottom: 22px;
}

/* =============================================================
   8. Notifications Dropdown
   ============================================================= */

.pyq-front .pyq-notif {
    position: relative;
}

.pyq-front .pyq-notif__btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--paper-300);
    color: var(--ink-700);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-notif__btn:hover { background: var(--paper-100); color: var(--ink-900); }

.pyq-front .pyq-notif__dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--burgundy-500);
    border-radius: 50%;
    border: 2px solid var(--paper-50);
}

.pyq-front .pyq-notif__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--paper-300);
    border-radius: var(--pyq-front-radius);
    box-shadow: var(--pyq-front-shadow-lg);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.pyq-front .pyq-notif.is-open .pyq-notif__panel { display: block; animation: pyq-fade-in 180ms var(--pyq-front-ease); }

.pyq-front .pyq-notif__header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--paper-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pyq-front .pyq-notif__title {
    font-family: var(--pyq-front-display);
    font-size: 15px;
    margin: 0;
}

.pyq-front .pyq-notif__list {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
}

.pyq-front .pyq-notif__item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--pyq-front-dur) var(--pyq-front-ease);
    position: relative;
}

.pyq-front .pyq-notif__item:hover { background: var(--paper-100); }

.pyq-front .pyq-notif__item.is-unread::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--burgundy-500);
    border-radius: 50%;
}

.pyq-front .pyq-notif__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--paper-200);
    color: var(--ink-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 14px;
}

.pyq-front .pyq-notif__body { flex: 1; min-width: 0; }

.pyq-front .pyq-notif__text {
    font-size: 13px;
    color: var(--ink-800);
    margin: 0 0 2px;
    line-height: 1.4;
}

.pyq-front .pyq-notif__time {
    font-size: 11px;
    color: var(--ink-400);
}

.pyq-front .pyq-notif__footer {
    padding: 10px 14px;
    border-top: 1px solid var(--paper-200);
    text-align: center;
    font-size: 13px;
}

/* =============================================================
   9. Toast Notifications
   ============================================================= */

.pyq-front .pyq-toast-region {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    pointer-events: none;
}

.pyq-front .pyq-toast {
    background: var(--ink-900);
    color: var(--paper-50);
    border-radius: var(--pyq-front-radius);
    padding: 12px 14px 12px 16px;
    box-shadow: var(--pyq-front-shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: auto;
    border-left: 4px solid var(--ink-400);
    animation: pyq-toast-up 260ms var(--pyq-front-ease);
}

@keyframes pyq-toast-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pyq-front .pyq-toast.is-leaving {
    animation: pyq-toast-down 200ms var(--pyq-front-ease) forwards;
}

@keyframes pyq-toast-down {
    to { opacity: 0; transform: translateY(20px); }
}

.pyq-front .pyq-toast--success { border-left-color: var(--viridian-500); }
.pyq-front .pyq-toast--error { border-left-color: var(--burgundy-500); }
.pyq-front .pyq-toast--warning { border-left-color: var(--brass-500); }

.pyq-front .pyq-toast__title { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.pyq-front .pyq-toast__msg { font-size: 12px; color: var(--ink-200); margin: 0; }
.pyq-front .pyq-toast__close {
    background: transparent;
    border: 0;
    color: var(--ink-300);
    cursor: pointer;
    padding: 0;
}
.pyq-front .pyq-toast__close:hover { color: var(--paper-50); }

/* =============================================================
   10. Bookmark Button
   ============================================================= */

.pyq-front .pyq-bookmark {
    background: transparent;
    border: 1px solid var(--paper-300);
    color: var(--ink-500);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-bookmark:hover {
    background: var(--paper-100);
    color: var(--burgundy-600);
    border-color: var(--burgundy-500);
}

.pyq-front .pyq-bookmark.is-active {
    background: var(--burgundy-500);
    color: #fff;
    border-color: var(--burgundy-600);
}

.pyq-front .pyq-bookmark.is-active:hover {
    background: var(--burgundy-600);
}

/* =============================================================
   11. User Dashboard
   ============================================================= */

.pyq-front .pyq-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.pyq-front .pyq-dashboard__nav {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    padding: 10px;
    position: sticky;
    top: 20px;
}

.pyq-front .pyq-dashboard__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
    text-decoration: none;
}

.pyq-front .pyq-dashboard__nav-item:hover {
    background: var(--paper-100);
    color: var(--ink-900);
}

.pyq-front .pyq-dashboard__nav-item.is-active {
    background: var(--ink-900);
    color: var(--paper-50);
}

.pyq-front .pyq-dashboard__main { min-width: 0; }

.pyq-front .pyq-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.pyq-front .pyq-stat {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    padding: 16px;
    box-shadow: var(--pyq-front-shadow-sm);
}

.pyq-front .pyq-stat__label {
    font-size: 12px;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.pyq-front .pyq-stat__value {
    font-family: var(--pyq-front-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink-900);
}

/* =============================================================
   12. Subscription Cards
   ============================================================= */

.pyq-front .pyq-subs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.pyq-front .pyq-sub {
    background: var(--bg-card);
    border: 1px solid var(--paper-300);
    border-radius: var(--pyq-front-radius-lg);
    padding: 24px;
    position: relative;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-sub:hover {
    box-shadow: var(--pyq-front-shadow);
    transform: translateY(-2px);
}

.pyq-front .pyq-sub--featured {
    border-color: var(--brass-500);
    box-shadow: 0 0 0 3px rgba(171, 130, 50, 0.15);
}

.pyq-front .pyq-sub__ribbon {
    position: absolute;
    top: -10px;
    right: 18px;
    background: var(--brass-500);
    color: var(--ink-900);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.pyq-front .pyq-sub__name {
    font-family: var(--pyq-front-display);
    font-size: 19px;
    margin: 0 0 4px;
}

.pyq-front .pyq-sub__price {
    margin: 12px 0;
}

.pyq-front .pyq-sub__amount {
    font-family: var(--pyq-front-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--ink-900);
}

.pyq-front .pyq-sub__period { color: var(--ink-400); font-size: 13px; }

.pyq-front .pyq-sub__features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.pyq-front .pyq-sub__features li {
    padding: 7px 0 7px 26px;
    color: var(--ink-700);
    font-size: 13px;
    position: relative;
    border-bottom: 1px solid var(--paper-200);
}

.pyq-front .pyq-sub__features li:last-child { border-bottom: 0; }

.pyq-front .pyq-sub__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 14px;
    height: 14px;
    background: var(--viridian-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M6 11.6L2.4 8l1.4-1.4L6 8.8l6.2-6.2L13.6 4z'/%3E%3C/svg%3E") center/10px no-repeat;
    border-radius: 50%;
}

/* =============================================================
   13. PDF Download Button
   ============================================================= */

.pyq-front .pyq-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pyq-front .pyq-pdf__progress {
    display: none;
    width: 120px;
    height: 4px;
    background: var(--paper-200);
    border-radius: 999px;
    overflow: hidden;
}

.pyq-front .pyq-pdf.is-downloading .pyq-pdf__progress { display: inline-block; }

.pyq-front .pyq-pdf__bar {
    height: 100%;
    width: 0;
    background: var(--burgundy-500);
    border-radius: 999px;
    transition: width 200ms var(--pyq-front-ease);
}

.pyq-front .pyq-pdf__label { font-size: 12px; color: var(--ink-500); }

/* =============================================================
   14. Cookie Consent Banner
   ============================================================= */

.pyq-front .pyq-cookie {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 880px;
    margin: 0 auto;
    background: var(--ink-900);
    color: var(--paper-100);
    border-radius: var(--pyq-front-radius);
    padding: 16px 20px;
    box-shadow: var(--pyq-front-shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100050;
    transform: translateY(0);
    transition: transform 300ms var(--pyq-front-ease), opacity 300ms var(--pyq-front-ease);
}

.pyq-front .pyq-cookie.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.pyq-front .pyq-cookie__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brass-500);
    color: var(--ink-900);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pyq-front .pyq-cookie__body { flex: 1; }

.pyq-front .pyq-cookie__title {
    color: var(--paper-50);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}

.pyq-front .pyq-cookie__text {
    color: var(--ink-300);
    font-size: 12px;
    margin: 0;
}

.pyq-front .pyq-cookie__text a { color: var(--brass-400); text-decoration: underline; }

.pyq-front .pyq-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* =============================================================
   15. Modal & Dialog
   ============================================================= */

.pyq-front .pyq-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pyq-front .pyq-modal.is-open { display: flex; }

.pyq-front .pyq-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(2px);
    animation: pyq-fade-in 200ms var(--pyq-front-ease);
}

.pyq-front .pyq-modal__dialog {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--pyq-front-radius-lg);
    box-shadow: var(--pyq-front-shadow-lg);
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: pyq-modal-pop 240ms var(--pyq-front-ease);
}

@keyframes pyq-modal-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pyq-front .pyq-modal__header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--paper-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pyq-front .pyq-modal__title {
    font-family: var(--pyq-front-display);
    font-size: 18px;
    margin: 0;
}

.pyq-front .pyq-modal__close {
    background: transparent;
    border: 0;
    color: var(--ink-400);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-modal__close:hover { background: var(--paper-200); color: var(--ink-900); }

.pyq-front .pyq-modal__body { padding: 22px; overflow-y: auto; flex: 1; }

.pyq-front .pyq-modal__footer {
    padding: 14px 22px;
    border-top: 1px solid var(--paper-200);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--paper-100);
    border-radius: 0 0 var(--pyq-front-radius-lg) var(--pyq-front-radius-lg);
}

/* =============================================================
   16. Search Dropdown
   ============================================================= */

.pyq-front .pyq-search {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.pyq-front .pyq-search__input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1px solid var(--paper-300);
    border-radius: 999px;
    background: var(--paper-50);
    font-family: var(--pyq-front-font);
    font-size: 14px;
    color: var(--ink-900);
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-search__input:focus {
    outline: none;
    border-color: var(--brass-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(171, 130, 50, 0.18);
}

.pyq-front .pyq-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    pointer-events: none;
}

.pyq-front .pyq-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--paper-300);
    border-radius: var(--pyq-front-radius);
    box-shadow: var(--pyq-front-shadow-lg);
    z-index: 200;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}

.pyq-front .pyq-search.is-open .pyq-search__results { display: block; animation: pyq-fade-in 160ms var(--pyq-front-ease); }

.pyq-front .pyq-search__group-title {
    padding: 6px 10px 4px;
    font-size: 11px;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.pyq-front .pyq-search__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--ink-800);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-search__item:hover,
.pyq-front .pyq-search__item.is-active {
    background: var(--paper-100);
    color: var(--ink-900);
}

.pyq-front .pyq-search__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--paper-200);
    color: var(--ink-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 14px;
}

.pyq-front .pyq-search__item-body { flex: 1; min-width: 0; }

.pyq-front .pyq-search__item-title { font-size: 13px; font-weight: 600; margin: 0; }
.pyq-front .pyq-search__item-meta { font-size: 11px; color: var(--ink-400); margin: 0; }

.pyq-front .pyq-search__empty {
    padding: 24px;
    text-align: center;
    color: var(--ink-400);
    font-size: 13px;
}

/* =============================================================
   17. Pricing Table (3-tier)
   ============================================================= */

.pyq-front .pyq-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.pyq-front .pyq-price-card {
    background: var(--bg-card);
    border: 1px solid var(--paper-300);
    border-radius: var(--pyq-front-radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
    position: relative;
}

.pyq-front .pyq-price-card:hover {
    box-shadow: var(--pyq-front-shadow);
    transform: translateY(-3px);
}

.pyq-front .pyq-price-card--featured {
    border-color: var(--burgundy-500);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(140, 58, 68, 0.04), var(--bg-card));
    transform: scale(1.02);
}

.pyq-front .pyq-price-card__tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--burgundy-500);
    color: var(--paper-50);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pyq-front .pyq-price-card__tier {
    font-size: 13px;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 6px;
}

.pyq-front .pyq-price-card__name {
    font-family: var(--pyq-front-display);
    font-size: 24px;
    margin: 0 0 14px;
}

.pyq-front .pyq-price-card__price {
    font-family: var(--pyq-front-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1;
}

.pyq-front .pyq-price-card__currency {
    font-size: 22px;
    vertical-align: top;
    color: var(--ink-500);
}

.pyq-front .pyq-price-card__period { color: var(--ink-400); font-size: 14px; margin-left: 4px; }

.pyq-front .pyq-price-card__desc {
    color: var(--ink-500);
    font-size: 13px;
    margin: 14px 0;
    min-height: 36px;
}

.pyq-front .pyq-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    flex: 1;
}

.pyq-front .pyq-price-card__features li {
    padding: 8px 0 8px 26px;
    color: var(--ink-700);
    font-size: 13px;
    position: relative;
    border-bottom: 1px solid var(--paper-200);
}

.pyq-front .pyq-price-card__features li:last-child { border-bottom: 0; }

.pyq-front .pyq-price-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    background: var(--viridian-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M6 11.6L2.4 8l1.4-1.4L6 8.8l6.2-6.2L13.6 4z'/%3E%3C/svg%3E") center/10px no-repeat;
    border-radius: 50%;
}

.pyq-front .pyq-price-card__features li.is-off::before {
    background: var(--paper-300);
}

.pyq-front .pyq-price-card__features li.is-off {
    color: var(--ink-400);
    text-decoration: line-through;
}

/* =============================================================
   18. FAQ Accordion
   ============================================================= */

.pyq-front .pyq-faq {
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    background: var(--bg-card);
    overflow: hidden;
}

.pyq-front .pyq-faq__item + .pyq-faq__item { border-top: 1px solid var(--paper-200); }

.pyq-front .pyq-faq__q {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 18px 22px;
    font-family: var(--pyq-front-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-faq__q:hover { background: var(--paper-100); }

.pyq-front .pyq-faq__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-faq__icon::before,
.pyq-front .pyq-faq__icon::after {
    content: "";
    position: absolute;
    background: var(--ink-500);
    transition: background var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-faq__icon::before {
    top: 50%; left: 0; right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.pyq-front .pyq-faq__icon::after {
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.pyq-front .pyq-faq__item.is-open .pyq-faq__icon { transform: rotate(180deg); }
.pyq-front .pyq-faq__item.is-open .pyq-faq__icon::after { opacity: 0; }

.pyq-front .pyq-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms var(--pyq-front-ease);
}

.pyq-front .pyq-faq__item.is-open .pyq-faq__a { max-height: 400px; }

.pyq-front .pyq-faq__a-inner {
    padding: 0 22px 18px;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================================
   19. Testimonial Grid
   ============================================================= */

.pyq-front .pyq-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pyq-front .pyq-testimonial {
    background: var(--bg-card);
    border: 1px solid var(--paper-200);
    border-radius: var(--pyq-front-radius);
    padding: 24px;
    position: relative;
    transition: all var(--pyq-front-dur) var(--pyq-front-ease);
}

.pyq-front .pyq-testimonial:hover {
    box-shadow: var(--pyq-front-shadow);
    transform: translateY(-2px);
}

.pyq-front .pyq-testimonial__quote {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--pyq-front-display);
    font-size: 60px;
    line-height: 1;
    color: var(--paper-300);
}

.pyq-front .pyq-testimonial__stars {
    color: var(--brass-500);
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.pyq-front .pyq-testimonial__text {
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    position: relative;
}

.pyq-front .pyq-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pyq-front .pyq-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brass-500), var(--brass-600));
    color: var(--ink-900);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--pyq-front-display);
}

.pyq-front .pyq-testimonial__name {
    font-weight: 600;
    color: var(--ink-900);
    font-size: 14px;
    margin: 0;
}

.pyq-front .pyq-testimonial__role {
    color: var(--ink-400);
    font-size: 12px;
    margin: 0;
}

/* =============================================================
   20. Newsletter Signup
   ============================================================= */

.pyq-front .pyq-newsletter {
    background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
    color: var(--paper-100);
    border-radius: var(--pyq-front-radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pyq-front .pyq-newsletter::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(171, 130, 50, 0.25), transparent 70%);
    pointer-events: none;
}

.pyq-front .pyq-newsletter__title {
    color: var(--paper-50);
    font-size: 26px;
    margin-bottom: 8px;
    position: relative;
}

.pyq-front .pyq-newsletter__text {
    color: var(--ink-300);
    margin-bottom: 24px;
    position: relative;
}

.pyq-front .pyq-newsletter__form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 8px;
    position: relative;
}

.pyq-front .pyq-newsletter__form .pyq-input {
    background: rgba(245, 240, 230, 0.08);
    border-color: rgba(245, 240, 230, 0.15);
    color: var(--paper-50);
}

.pyq-front .pyq-newsletter__form .pyq-input::placeholder { color: var(--ink-300); }

.pyq-front .pyq-newsletter__form .pyq-input:focus {
    background: rgba(245, 240, 230, 0.12);
    border-color: var(--brass-400);
}

.pyq-front .pyq-newsletter__note {
    color: var(--ink-400);
    font-size: 12px;
    margin-top: 12px;
    position: relative;
}

/* =============================================================
   21. Generic Animations & Helpers
   ============================================================= */

@keyframes pyq-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pyq-front .pyq-skeleton {
    background: linear-gradient(90deg, var(--paper-200) 25%, var(--paper-100) 50%, var(--paper-200) 75%);
    background-size: 200% 100%;
    animation: pyq-front-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes pyq-front-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pyq-front .pyq-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--paper-200);
    color: var(--ink-700);
    border: 1px solid var(--paper-300);
}

.pyq-front .pyq-badge--paid,
.pyq-front .pyq-badge--success { background: rgba(71, 128, 96, 0.14); color: var(--viridian-600); border-color: rgba(71, 128, 96, 0.3); }
.pyq-front .pyq-badge--pending { background: rgba(171, 130, 50, 0.14); color: var(--brass-600); border-color: rgba(171, 130, 50, 0.3); }
.pyq-front .pyq-badge--failed,
.pyq-front .pyq-badge--refunded { background: rgba(140, 58, 68, 0.14); color: var(--burgundy-600); border-color: rgba(140, 58, 68, 0.3); }

.pyq-front .pyq-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--paper-200);
    border-top-color: var(--burgundy-500);
    border-radius: 50%;
    animation: pyq-front-spin 800ms linear infinite;
}

/* =============================================================
   22. Utility classes
   ============================================================= */

.pyq-front .pyq-row { display: flex; gap: 12px; align-items: center; }
.pyq-front .pyq-row--between { justify-content: space-between; }
.pyq-front .pyq-row--wrap { flex-wrap: wrap; }
.pyq-front .pyq-row--end { justify-content: flex-end; }
.pyq-front .pyq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pyq-front .pyq-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pyq-front .pyq-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pyq-front .pyq-text-center { text-align: center; }
.pyq-front .pyq-text-muted { color: var(--ink-400); }
.pyq-front .pyq-text-sm { font-size: 12px; }
.pyq-front .pyq-mt-0 { margin-top: 0; }
.pyq-front .pyq-mb-0 { margin-bottom: 0; }
.pyq-front .pyq-mb-2 { margin-bottom: 12px; }
.pyq-front .pyq-mb-3 { margin-bottom: 18px; }
.pyq-front .pyq-hidden { display: none !important; }
.pyq-front .pyq-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================
   23. Responsive — Tablet
   ============================================================= */

@media (max-width: 1024px) {
    .pyq-front .pyq-auth { grid-template-columns: 1fr; max-width: 480px; }
    .pyq-front .pyq-auth__aside { display: none; }
    .pyq-front .pyq-checkout { grid-template-columns: 1fr; }
    .pyq-front .pyq-summary { position: static; }
    .pyq-front .pyq-dashboard { grid-template-columns: 1fr; }
    .pyq-front .pyq-dashboard__nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .pyq-front .pyq-dashboard__nav-item { flex: 1 0 auto; }
    .pyq-front .pyq-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .pyq-front .pyq-subs { grid-template-columns: 1fr; }
    .pyq-front .pyq-pricing { grid-template-columns: 1fr; }
    .pyq-front .pyq-testimonials { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   24. Responsive — Mobile
   ============================================================= */

@media (max-width: 640px) {
    .pyq-front h1 { font-size: 26px; }
    .pyq-front h2 { font-size: 21px; }
    .pyq-front .pyq-auth__main { padding: 26px 20px; }
    .pyq-front .pyq-social { grid-template-columns: 1fr; }
    .pyq-front .pyq-otp__input { width: 40px; height: 50px; font-size: 18px; }
    .pyq-front .pyq-thanks__next { grid-template-columns: 1fr; }
    .pyq-front .pyq-stat-grid { grid-template-columns: 1fr 1fr; }
    .pyq-front .pyq-testimonials { grid-template-columns: 1fr; }
    .pyq-front .pyq-newsletter__form { flex-direction: column; }
    .pyq-front .pyq-cookie { flex-direction: column; align-items: stretch; text-align: left; }
    .pyq-front .pyq-cookie__actions { justify-content: flex-end; }
    .pyq-front .pyq-newsletter { padding: 28px 20px; }
    .pyq-front .pyq-price-card--featured { transform: none; }
}

/* =============================================================
   25. RTL Support
   ============================================================= */

[dir="rtl"] .pyq-front .pyq-auth__aside li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .pyq-front .pyq-auth__aside li::before { left: auto; right: 0; }
[dir="rtl"] .pyq-front .pyq-plan,
[dir="rtl"] .pyq-front .pyq-paymethod { text-align: right; }
[dir="rtl"] .pyq-front .pyq-paymethod__logo { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pyq-front .pyq-password .pyq-input { padding-right: 14px; padding-left: 42px; }
[dir="rtl"] .pyq-front .pyq-password__toggle { right: auto; left: 12px; }
[dir="rtl"] .pyq-front .pyq-notif__panel { right: auto; left: 0; }
[dir="rtl"] .pyq-front .pyq-search__input { padding: 11px 42px 11px 16px; }
[dir="rtl"] .pyq-front .pyq-search__icon { left: auto; right: 14px; }
[dir="rtl"] .pyq-front .pyq-sub__features li,
[dir="rtl"] .pyq-front .pyq-price-card__features li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .pyq-front .pyq-sub__features li::before,
[dir="rtl"] .pyq-front .pyq-price-card__features li::before { left: auto; right: 0; }
[dir="rtl"] .pyq-front .pyq-testimonial__quote { right: auto; left: 18px; }

/* =============================================================
   26. Dark Mode
   ============================================================= */

@media (prefers-color-scheme: dark) {
    .pyq-front {
        --bg: #16161f;
        --bg-card: #1f1f2e;
        --paper-50: #16161f;
        --paper-100: #1f1f2e;
        --paper-200: #2a2a3c;
        --paper-300: #3a3a52;
    }

    .pyq-front { color: var(--paper-200); }
    .pyq-front h1, .pyq-front h2, .pyq-front h3, .pyq-front h4, .pyq-front h5 { color: var(--paper-50); }
    .pyq-front p { color: var(--ink-200); }
    .pyq-front .pyq-card,
    .pyq-front .pyq-summary,
    .pyq-front .pyq-sub,
    .pyq-front .pyq-testimonial,
    .pyq-front .pyq-faq,
    .pyq-front .pyq-stat { background: var(--bg-card); border-color: var(--paper-300); }
    .pyq-front .pyq-input,
    .pyq-front .pyq-select,
    .pyq-front .pyq-textarea {
        background: var(--ink-800);
        border-color: var(--ink-600);
        color: var(--paper-50);
    }
    .pyq-front .pyq-input::placeholder { color: var(--ink-400); }
    .pyq-front .pyq-input:focus { background: var(--ink-700); }
    .pyq-front .pyq-btn--ghost { color: var(--paper-200); border-color: var(--ink-600); }
    .pyq-front .pyq-btn--ghost:hover { background: var(--ink-700); color: var(--paper-50); }
    .pyq-front .pyq-dashboard__nav-item,
    .pyq-front .pyq-stat__label,
    .pyq-front .pyq-plan__desc,
    .pyq-front .pyq-paymethod__desc { color: var(--ink-300); }
    .pyq-front .pyq-dashboard__nav-item:hover { background: var(--ink-700); color: var(--paper-50); }
    .pyq-front .pyq-plan { background: var(--bg-card); border-color: var(--ink-600); }
    .pyq-front .pyq-plan.is-selected { background: rgba(140, 58, 68, 0.12); }
    .pyq-front .pyq-testimonial__text,
    .pyq-front .pyq-testimonial__name,
    .pyq-front .pyq-plan__name,
    .pyq-front .pyq-stat__value,
    .pyq-front .pyq-sub__name,
    .pyq-front .pyq-price-card__name,
    .pyq-front .pyq-faq__q,
    .pyq-front .pyq-newsletter__title { color: var(--paper-50); }
    .pyq-front .pyq-modal__dialog { background: var(--bg-card); }
    .pyq-front .pyq-toast { background: var(--ink-700); }
}

/* =============================================================
   27. Reduced Motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
    .pyq-front *,
    .pyq-front *::before,
    .pyq-front *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
