/* ==========================================
   MANGA PREMIUM PRO - PUBLIC STYLES
   ========================================== */

:root {
    --mpp-primary: #3b82f6;
    --mpp-success: #10b981;
    --mpp-danger: #ef4444;
}

/* Premium Page */
.mpp-premium-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mpp-premium-header {
    text-align: center;
    margin-bottom: 60px;
}

.mpp-premium-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.mpp-premium-header p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

/* Packages Container */
.mpp-packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mpp-package {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.mpp-package:hover {
    border-color: var(--mpp-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mpp-package-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpp-package h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.mpp-package-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
}

.mpp-package-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
}

.mpp-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--mpp-primary);
}

.mpp-duration {
    font-size: 16px;
    color: #64748b;
}

.mpp-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.mpp-package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #334155;
}

.mpp-package-features svg {
    color: var(--mpp-success);
    flex-shrink: 0;
}

.mpp-package-button {
    width: 100%;
    padding: 16px;
    background: var(--mpp-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mpp-package-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* Trial Offer */
.mpp-trial-offer {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
}

.mpp-trial-offer h3 {
    font-size: 28px;
    margin: 0 0 12px 0;
}

.mpp-trial-offer p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

/* Already Premium */
.mpp-premium-active {
    text-align: center;
    padding: 60px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px;
}

.mpp-premium-icon {
    margin-bottom: 24px;
}

.mpp-premium-icon svg {
    fill: white;
}

.mpp-premium-active h2 {
    font-size: 32px;
    margin: 0 0 12px 0;
}

.mpp-premium-active > p {
    font-size: 18px;
    margin: 0 0 32px 0;
    opacity: 0.9;
}

.mpp-subscription-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.mpp-info-item {
    text-align: left;
}

.mpp-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.mpp-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* Payment Modal */
.mpp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mpp-modal-dialog {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.mpp-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mpp-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.mpp-modal-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
}

.mpp-modal-close:hover {
    color: #1e293b;
}

.mpp-modal-body {
    padding: 24px;
}

#mpp-coupon-section {
    margin-bottom: 24px;
}

#mpp-coupon-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.mpp-coupon-input {
    display: flex;
    gap: 10px;
}

.mpp-coupon-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.mpp-coupon-input button {
    padding: 12px 24px;
    background: var(--mpp-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#mpp-coupon-message {
    margin-top: 8px;
    font-size: 14px;
}

#mpp-coupon-message .mpp-success {
    color: var(--mpp-success);
}

#mpp-coupon-message .mpp-error {
    color: var(--mpp-danger);
}

.mpp-price-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.mpp-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #64748b;
}

.mpp-price-row.mpp-discount {
    color: var(--mpp-success);
}

.mpp-price-row.mpp-total {
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.mpp-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.mpp-error {
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    text-align: center;
}

/* Locked Content */
.mpp-locked-content {
    position: relative;
    min-height: 400px;
}

.mpp-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 60px 20px;
    text-align: center;
    z-index: 10;
}

.mpp-lock-icon {
    margin-bottom: 24px;
    color: var(--mpp-primary);
}

.mpp-lock-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.mpp-lock-description {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
}

.mpp-lock-features {
    display: inline-block;
    text-align: left;
    margin-bottom: 32px;
}

.mpp-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: #334155;
}

.mpp-feature svg {
    color: var(--mpp-success);
    flex-shrink: 0;
}

.mpp-premium-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--mpp-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mpp-premium-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.mpp-trial-text {
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
}

.mpp-trial-text a {
    color: var(--mpp-primary);
    font-weight: 600;
    text-decoration: none;
}

.mpp-blurred-preview {
    filter: blur(20px);
    opacity: 0.3;
    pointer-events: none;
}

.mpp-preview-image {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

/* Message Page */
.mpp-message-page {
    max-width: 600px;
    margin: 80px auto;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mpp-message-icon {
    margin-bottom: 24px;
}

.mpp-message-page.mpp-success .mpp-message-icon svg {
    stroke: var(--mpp-success);
}

.mpp-message-page.mpp-failed .mpp-message-icon svg {
    stroke: var(--mpp-danger);
}

.mpp-message-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.mpp-message-page p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
}

.mpp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--mpp-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mpp-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Premium Badge */
.mpp-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--mpp-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .mpp-premium-header h1 {
        font-size: 32px;
    }
    
    .mpp-packages-container {
        grid-template-columns: 1fr;
    }
    
    .mpp-subscription-info {
        flex-direction: column;
        gap: 16px;
    }
    
    .mpp-amount {
        font-size: 36px;
    }
}
