/* Upgrade Page Styles */
.alp-upgrade-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.alp-upgrade-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.alp-upgrade-hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.alp-upgrade-hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alp-upgrade-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.alp-upgrade-btn-primary {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.alp-upgrade-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

.alp-upgrade-btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.alp-upgrade-btn-secondary:hover {
    background: white;
    color: #667eea;
    text-decoration: none;
}

.alp-section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #1f2937;
}

.alp-upgrade-features {
    margin-bottom: 60px;
}

.alp-feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.alp-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.alp-feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.alp-feature-icon {
    flex-shrink: 0;
}

.alp-feature-title-section {
    flex: 1;
}

.alp-feature-title-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #1f2937;
    display: inline-block;
    margin-right: 10px;
}

.alp-premium-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alp-feature-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alp-feature-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.alp-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 500;
}

.alp-upgrade-pricing {
    margin-bottom: 60px;
}

.alp-pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Add these new styles for desktop layout */
@media (min-width: 992px) {
    .alp-pricing-cards {
        flex-wrap: nowrap;
    }
    
    .alp-pricing-card {
        flex: 1;
        max-width: calc(33.333% - 20px);
        width: calc(33.333% - 20px);
    }
}

.alp-pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px 30px 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.alp-pricing-featured {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.alp-pricing-featured .alp-price-decimal {
    font-size: 1.43rem; /* Compensate for 1.05 scale: 1.5rem / 1.05 ≈ 1.43rem */
}

.alp-pricing-featured::before {
    display: none;
}

.alp-pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 25px; /* Increased from 10px to add more spacing */
    color: #1f2937;
}

.alp-pricing-price {
    margin-bottom: 20px;
    text-align: center;
}

.alp-price-currency {
    font-size: 1.5rem;
    color: #6b7280;
    vertical-align: top;
    margin-right: 2px;
}

.alp-price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.alp-price-decimal {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: top;
    opacity: 0.7;
    line-height: 1;
    display: inline-block;
}

.alp-price-period {
    font-size: 1.2rem;
    color: #6b7280;
    margin-left: 4px;
}

.alp-price-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.alp-pricing-description {
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

.alp-pricing-description div {
    margin-bottom: 8px;
}

.alp-pricing-description div:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #9ca3af;
}

.alp-pricing-features {
    margin-bottom: 30px;
}

.alp-pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    justify-content: flex-start;
    text-align: left;
}

.alp-money-back-image {
    max-width: 240px;
    height: auto;
    margin: 10px auto 0;
    display: block;
}

.alp-guarantee-section {
    margin-top: 25px; /* Added spacing between button and guarantee image */
    text-align: center;
}

.alp-guarantee-clickable {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.alp-guarantee-clickable:hover {
    transform: translateY(-3px);
}

.alp-guarantee-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.alp-guarantee-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Refund Policy Modal */
.alp-refund-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.alp-refund-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.alp-refund-modal-header {
    background: #2271b1;
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alp-refund-modal-title {
    font-weight: 600;
    margin: 0;
    font-size: 20px;
    color: #ffffff !important;
}

.alp-refund-modal-close {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 0 !important;
    transition: opacity 0.2s ease !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.alp-refund-modal-close:hover {
    opacity: 0.8 !important;
    background: none !important;
    box-shadow: none !important;
}

.alp-refund-modal-content {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

.alp-refund-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
}

.alp-refund-modal-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.alp-refund-modal-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.alp-refund-modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.alp-refund-modal-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .alp-refund-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .alp-refund-modal-content {
        padding: 20px;
    }
    
    .alp-refund-modal-title {
        font-size: 18px;
    }
}

.alp-pricing-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: calc(100% - 20px);
    max-width: 280px;
    justify-content: center;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    margin: 0 auto;
}

.alp-pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.alp-upgrade-faq {
    margin-bottom: 60px;
}

.alp-faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.alp-faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.alp-faq-question {
    background: #f9fafb;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.alp-faq-question:hover {
    background: #f3f4f6;
}

.alp-faq-icon {
    font-size: 2.0rem;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.alp-faq-open .alp-faq-icon {
    transform: rotate(180deg);
}

.alp-faq-answer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
}

.alp-faq-answer p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.alp-upgrade-wrap .alp-upgrade-cta {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    border: none !important;
    margin: 40px 0 !important;
}

.alp-upgrade-wrap .alp-cta-content {
    text-align: center;
}

.alp-upgrade-wrap .alp-cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white !important;
}

.alp-upgrade-wrap .alp-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: white !important;
}

.alp-cta-btn {
    background: #667eea;
    color: white;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.alp-cta-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alp-upgrade-hero {
        padding: 40px 20px;
    }
    
    .alp-upgrade-hero-content h2 {
        font-size: 2rem;
    }
    
    .alp-upgrade-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .alp-feature-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .alp-feature-benefits {
        grid-template-columns: 1fr;
    }
    
    .alp-pricing-featured {
        transform: none;
        margin-bottom: 30px;
    }
    
    .alp-section-title {
        font-size: 1.5rem;
    }
}

/* New Pricing Toggle Styles */
.alp-pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.alp-pricing-toggle {
    background: #f9fafb;
    border-radius: 50px;
    padding: 6px;
    display: flex;
    position: relative;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.alp-toggle-btn {
    background: transparent;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
}

.alp-toggle-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.alp-toggle-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.alp-toggle-btn.active:hover {
    background: #5a67d8;
}

.alp-discount-badge {
    background: #f97316;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: bounce 2s infinite;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    white-space: nowrap;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.alp-best-deal-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Dynamic Badge Styles */
.monthly-badge, .yearly-badge {
    display: none;
}

.monthly-badge.active, .yearly-badge.active {
    display: inline;
}

/* Pricing Display Styles */
.alp-price-content {
    display: none;
}

.alp-price-content.active {
    display: block;
}

.alp-yearly-details {
    margin-top: 10px;
    font-size: 0.9rem;
}

.alp-billed-yearly {
    color: #667eea; /* Changed from #6b7280 to match the theme color */
    margin-bottom: 5px;
    font-weight: 700; /* Added bold */
    font-size: 1.1rem; /* Increased from default */
    text-transform: uppercase; /* Added for emphasis */
    letter-spacing: 0.5px; /* Added for better readability */
}

.alp-savings-text {
    color: #667eea;
    font-weight: 600;
}

/* Money-back Guarantee Styles */
.alp-money-back-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: #6b7280;
    font-size: 0.9rem;
}
