/* ==========================================================================
   EasyPlate Paywall — Frontend Styles
   ========================================================================== */

/* ---- Paywall Overlay ---- */
.epw-paywall-overlay {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 48px 32px 40px;
    text-align: center;
    border: 1px solid #e8e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
    margin: 32px 0;
}

.epw-paywall-header {
    max-width: 520px;
    margin: 0 auto 40px;
}

.epw-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
}

.epw-paywall-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: -.3px;
}

.epw-paywall-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

.epw-paywall-login {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.epw-paywall-login a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.epw-paywall-login a:hover {
    text-decoration: underline;
}

/* ---- Pricing Grid ---- */
.epw-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0;
}

/* ---- Pricing Card ---- */
.epw-pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 28px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.epw-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .1);
}

/* Highlighted card */
.epw-pricing-card.epw-highlighted {
    border: 2px solid #6366f1;
    box-shadow: 0 8px 32px rgba(99, 102, 241, .12);
}

.epw-pricing-card.epw-highlighted:hover {
    box-shadow: 0 16px 48px rgba(99, 102, 241, .18);
}

/* Badge */
.epw-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 4px 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}

/* Plan name */
.epw-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    letter-spacing: -.2px;
}

/* Price */
.epw-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 24px;
}

.epw-currency {
    font-size: 24px;
    font-weight: 600;
    color: #64748b;
    align-self: flex-start;
    margin-top: 6px;
}

.epw-amount {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -1px;
}

.epw-period {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
}

/* Features list */
.epw-features-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 24px 0 0;
    border-top: 1px solid #f1f5f9;
    text-align: left;
}

.epw-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
}

.epw-check-icon {
    flex-shrink: 0;
    color: #22c55e;
}

/* CTA Button */
.epw-plan-cta {
    display: block;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    color: #475569;
    background: #fff;
}

.epw-plan-cta:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f8f7ff;
    text-decoration: none;
}

.epw-plan-cta.epw-cta-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
}

.epw-plan-cta.epw-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .4);
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.epw-plan-cta.epw-cta-disabled {
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .epw-paywall-overlay {
        padding: 32px 16px 28px;
        border-radius: 14px;
    }

    .epw-paywall-title {
        font-size: 22px;
    }

    .epw-pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .epw-amount {
        font-size: 40px;
    }

    .epw-pricing-card {
        padding: 28px 20px 24px;
    }
}
