:root {
    --color-primary: #FE3CB3;
    --color-primary-hover: #E535A0;
    --color-surface: #FFFFFF;
    --color-error: #E53935;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition-fast: 0.2s;
}
input{
    box-sizing: border-box;
}
/* Paywall Overlay */
.paywall-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.paywall-overlay.active {
    display: flex;
}
.paywall-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.paywall-center {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1020px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 16px;
}
.paywall-wrap {
    background: #0D0D0D;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Close Button */
.paywall-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layouts */
.paywall-desktop { display: flex; }
.paywall-mobile { display: none; }
.paywall-left { flex: 1; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.paywall-right { width: 45%; background: #1a1a1a; position: relative; }

/* Typography & Elements */
.paywall-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: #fff;
    line-height: 1.2;
    text-align: center;
}
.pw-button{
    cursor: pointer;
}
.paywall-email-input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 16px;
}
.paywall-email-input:focus { outline: none; border-color: var(--color-primary); }
.paywall-email-input.error { border-color: var(--color-error); }
.paywall-error { color: var(--color-error); font-size: 14px; min-height: 20px; }
.paywall-error.success { color: #4CAF50; }
.paywall-helper { color: rgba(255,255,255,0.82); font-size: 13px; margin-top: 8px; }
.paywall-helper[hidden] { display: none; }

/* Plans */
.paywall-plans-area { display: flex; flex-direction: column; gap: 10px; }
.paywall-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    transition: var(--transition-fast);
    background: rgba(255,255,255,0.04);
    font: inherit;
}
.paywall-plan.active {
    border-color: var(--color-primary);
    background: rgba(254, 60, 179, 0.1);
}
.paywall-plans-area .cro-price-card { color: #fff; }

/* CTA */
.paywall-cta {
    width: 100%;
    height: 60px;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.paywall-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.paywall-cta:hover:not(:disabled) { background: var(--color-primary-hover); transform: scale(1.02); }
.paywall-cta .submit-spinner { display: none; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: paywallSpinner 0.6s linear infinite; }
@keyframes paywallSpinner { to { transform: rotate(360deg); } }

/* Images & Benefits */
.paywall-image-wrap { position: relative; width: 100%; height: 100%; }
.paywall-image-wrap { background: linear-gradient(145deg, #291322, #111); }
.paywall-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paywall-image-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}
.paywall-benefits-list { list-style: none; color: #fff; display: flex; flex-direction: column; gap: 8px; font-size: 15px; padding: 0 }
.paywall-benefits-list .tiny-check { margin-right: 8px; color: var(--color-primary); }
.paywall-guarantee .tiny-check { margin-right: 6px; color: var(--color-primary); }
.paywall-guarantee{
    margin: 20px 0;
}
/* Skip / Guarantees */
.paywall-skip { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 14px; text-decoration: underline; cursor: pointer; text-align: center; margin-top: 10px; }
.paywall-guarantees { display: flex; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.6); }
.paywall-charge-note,
.paywall-plans-error { color: rgba(255,255,255,0.78); font-size: 12px; line-height: 1.45; text-align: center; margin: 0; }
.paywall-charge-note a { color: #fff; font-weight: 700; }
.paywall-plans-error { padding: 18px 10px; border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .paywall-desktop { display: none; }
    .paywall-mobile {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .paywall-image-wrap { height: 180px; flex: 0 0 180px; }
    .paywall-img { object-position: center 18%; }
    .paywall-image-overlay { padding: 16px; }
    .paywall-benefits-list { gap: 4px; font-size: 12px; }
    .paywall-center { height: 100dvh; padding: 8px; overflow: hidden; box-sizing: border-box; }
    .paywall-wrap { border-radius: 18px; }
    .paywall-mobile-bottom { padding: 12px 14px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
    .paywall-title { font-size: 20px; line-height: 1.15; }
    .paywall-email-input { height: 46px; }
    .paywall-error { min-height: 0; font-size: 12px; }
    .paywall-error:empty { display: none; }
    .paywall-plans-area { gap: 6px; }
    .paywall-plan { min-height: 56px; padding: 9px 11px; border-radius: 13px; }
    .paywall-cta { height: 52px; flex: 0 0 52px; font-size: 17px; }
    .paywall-charge-note { padding: 8px 10px !important; font-size: 11px !important; line-height: 1.3; }
}
