/* ==========================================================================
   WP Full Pay Paywall — Frontend Styles
   ========================================================================== */

/* ---- Paywall Overlay ---- */
.wppw-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;
}

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

.wppw-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);
}

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

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

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

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

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

/* ---- Pricing Grid ---- */
.wppw-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 ---- */
.wppw-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;
}

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

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

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

/* Badge */
.wppw-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 */
.wppw-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    letter-spacing: -.2px;
}

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

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

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

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

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

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

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

/* CTA Button */
.wppw-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;
}

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

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

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

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

/* ---- User Profile Page ---- */
.wppw-user-profile {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.wppw-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.wppw-profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.wppw-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.wppw-avatar-form {
    position: absolute;
    bottom: 0;
    right: 0;
}

.wppw-avatar-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
    transition: transform .2s;
}

.wppw-avatar-upload:hover {
    transform: scale(1.1);
}

.wppw-avatar-upload input {
    display: none;
}

.wppw-profile-info h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.wppw-profile-info p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.wppw-profile-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wppw-profile-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.wppw-profile-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.wppw-form-group {
    margin-bottom: 16px;
}

.wppw-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.wppw-form-control {
    width: 100%;
    max-width: 360px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.wppw-form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    outline: none;
}

.wppw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.wppw-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.wppw-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.wppw-btn-danger {
    background: #ef4444;
    color: #fff;
}

.wppw-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,.3);
}

.wppw-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.wppw-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.wppw-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wppw-notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wppw-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Subscription status */
.wppw-subscription-status {
    margin-bottom: 16px;
}

.wppw-status-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.wppw-status-label {
    font-weight: 600;
    color: #475569;
}

.wppw-status-value {
    color: #64748b;
}

.wppw-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.wppw-status-active {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wppw-status-inactive {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.wppw-status-pending {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* ---- Navigation Profile Button ---- */
.wppw-nav-profile-item a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wppw-floating-profile-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
    transition: transform .2s, box-shadow .2s;
}

.wppw-floating-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .4);
    color: #fff !important;
}

/* ---- Billing Table ---- */
.wppw-billing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.wppw-billing-table th,
.wppw-billing-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.wppw-billing-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    background: #f8fafc;
}

.wppw-billing-table tbody tr:nth-child(odd) {
    background: #fafbfc;
}

.wppw-billing-table tbody tr:hover {
    background: #f1f5f9;
}

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

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

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

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

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

    .wppw-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .wppw-floating-profile-btn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
