/* Pricing page specific styles — Blinkist-inspired redesign */

body.pricing-page {
    background: linear-gradient(to bottom, #EBEDFF 0%, #EBEDFF 10%, #ffffff 70%);
    overflow-y: auto;
    overflow-x: hidden;
}

body.pricing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    background-image: url('image/radial_image_login_top_left.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

body.pricing-page::after {
    content: '';
    position: fixed;
    top: -20px;
    right: 0;
    width: 240px;
    height: 240px;
    background-image: url('image/radial_image_login_top_right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ===== Pricing Hero ===== */
.pricing-hero {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.pricing-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.pricing-headline .highlight {
    color: #3C4BFB;
}

.pricing-subheadline {
    color: #666;
    font-size: 1rem;
    margin-top: 0rem;
}

/* ===== Plan Cards ===== */
.plans-section {
    padding: 0rem 1rem;
    padding-bottom: 2rem;
}

.plans-container {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 780px;
    margin: 0 auto;
}

/* --- Base card --- */
.plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    width: 340px;
    position: relative;
    transition: box-shadow 0.2s;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.plan-card-selected {
    border-color: #3C4BFB;
    box-shadow: 0 4px 16px rgba(60, 75, 251, 0.15);
}

/* --- Featured card --- */
.plan-card-featured {
    border-color: #3C4BFB;
    box-shadow: 0 4px 16px rgba(60, 75, 251, 0.15);
}

/* --- Banner (MOST POPULAR) --- */
.plan-banner {
    background: #3C4BFB;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Card header (always visible) --- */
.plan-card-header {
    padding: 0.25rem 1rem 0 1rem;
}

.plan-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1rem;
    font-weight: 400;
    color: #1a2b4a;
    margin: 0;
}

.plan-name strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.plan-chevron {
    font-size: 1.25rem;
    color: #1a2b4a;
    transition: transform 0.3s;
    line-height: 1;
}

/* --- Pricing row --- */
.plan-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-pricing-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.plan-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2b4a;
}

.plan-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    display: none;
}

.plan-per-month {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.plan-billing {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

.plan-savings-badge {
    display: inline-block;
    border: 1.5px solid #1a2b4a;
    color: #1a2b4a;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
    width: fit-content;
}

/* --- Per-day price (right side) --- */
.plan-per-day {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.plan-per-day-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b4a;
    align-self: flex-start;
    margin-top: 0.3rem;
}

.plan-per-day-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4a;
    line-height: 1;
}

.plan-per-day-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.plan-per-day-cents {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2b4a;
    line-height: 1.2;
}

.plan-per-day-label {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

/* --- Divider --- */
.plan-card-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* --- Card body (expandable content) --- */
.plan-card-body {
    padding: 1rem 1rem;
    padding-top: 1rem;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    overflow: hidden;
}

/* --- CTA buttons --- */
.plan-cta-btn {
    background: white;
    color: #1a2b4a;
    border: 2px solid #1a2b4a;
    margin-bottom: 0.25rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-family: inherit;
}

.plan-cta-btn:hover {
    background: #f5f5f5;
}

.plan-cta-btn-featured {
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(60, 75, 251, 0.3);
}

.plan-cta-btn-featured:hover {
    background: linear-gradient(135deg, #3040e0 0%, #5a6fd8 100%);
    box-shadow: 0 4px 12px rgba(60, 75, 251, 0.4);
    transform: translateY(-1px);
}

/* ===== Features Section ===== */
.features-section {
    padding: 2rem 1rem 3rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 1.25rem 0 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ===== Social Proof Stats ===== */
.store-ratings-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding: 2rem 1rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.store-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    text-align: center;
}

.store-rating-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.store-rating-stars {
    color: #f5a623;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.store-rating-stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2b4a;
}

.store-rating-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .store-ratings-section {
        gap: 1.5rem;
        padding: 1.5rem 1rem 2rem;
    }

    .store-rating-stat {
        font-size: 1.35rem;
    }

    .store-rating-desc {
        font-size: 0.8rem;
    }

    .store-rating-icon {
        font-size: 1.5rem;
    }
}

/* ===== Testimonials ===== */
.testimonials-section {
    padding: 2rem 1rem 3rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: #333;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.75rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 2rem 1rem 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 1rem;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 2rem 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1a2b4a;
    font-family: inherit;
    position: relative;
    line-height: 1.5;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #3C4BFB;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 1.25rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Bottom CTA ===== */
.bottom-cta-section {
    text-align: center;
    padding: 1rem 1rem 4rem;
}

.bottom-cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 0.5rem;
}

.bottom-cta-section p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.bottom-cta-btn {
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60, 75, 251, 0.3);
}

.bottom-cta-btn:hover {
    background: linear-gradient(135deg, #3040e0 0%, #5a6fd8 100%);
    box-shadow: 0 4px 12px rgba(60, 75, 251, 0.4);
    transform: translateY(-1px);
}

/* ===== Payment Modal ===== */
.payment-modal-content {
    max-width: 460px;
}

.payment-plan-summary {
    background: rgba(60, 75, 251, 0.05);
    border: 1px solid rgba(60, 75, 251, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-plan-name {
    font-weight: 700;
    color: #1a2b4a;
    font-size: 1.1rem;
}

.payment-plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3C4BFB;
    margin-top: 0.25rem;
}

.payment-plan-breakdown {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.payment-form {
    text-align: left;
}

.payment-field {
    margin-bottom: 1rem;
}

.payment-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 0.25rem;
}

.payment-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #999;
    font-family: inherit;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}

.payment-submit-btn:hover {
    background: linear-gradient(135deg, #3040e0 0%, #5a6fd8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 75, 251, 0.3);
}

.payment-disclaimer {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

.payment-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.payment-secure-badge svg {
    width: 16px;
    height: 16px;
}

.checkout-loading {
    text-align: center;
    padding: 40px 20px;
}

.checkout-loading p {
    color: #666;
    margin-top: 0.5rem;
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 767px) {
    .plans-container {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        width: 100%;
        max-width: 400px;
    }

    .pricing-subheadline {
        display: none;
    }

    .pricing-headline {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item h3 {
        font-size: 0.9rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .plan-card:not(.plan-card-featured) .plan-card-body:has(.plan-feature-list) {
        display: none;
    }
}

/* ===== Responsive — Desktop ===== */
@media (min-width: 768px) {
    .pricing-headline {
        font-size: 2.5rem;
    }

    .pricing-hero {
        padding: 1.5rem 1rem 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* On desktop, chevron is hidden and all cards are expanded */
    .plan-chevron {
        display: none;
    }

    .plan-card .plan-card-body {
        max-height: 500px;
        opacity: 1;
        padding: 0.25rem 1rem;
        padding-top: 0.75rem;
    }

    .plan-card .plan-card-divider {
        display: block;
    }

    /* Featured card is wider on desktop */
    .plan-card-featured {
        width: 380px;
    }

    .plan-card:not(.plan-card-featured) {
        width: 360px;
    }
}

/* ===== Subscription Check Overlay ===== */
.subscription-check-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-check-content {
    text-align: center;
    padding: 2rem;
}

.subscription-check-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

.subscription-check-text {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* ===== Coupon Section ===== */
.coupon-section {
    padding: 0 1rem 2rem;
    max-width: 460px;
    margin: 0 auto;
}

.coupon-container {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(60, 75, 251, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.coupon-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 0.75rem;
}

.coupon-input-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.2s;
}

.coupon-input:focus {
    outline: none;
    border-color: rgba(60, 75, 251, 0.4);
}

.coupon-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3C4BFB 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.coupon-btn:hover {
    background: linear-gradient(135deg, #3040e0 0%, #5a6fd8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(60, 75, 251, 0.3);
}

.coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.coupon-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.3em;
}

.coupon-message-success {
    color: #2e7d32;
}

.coupon-message-error {
    color: #c62828;
}

/* ===== Plan card tagline ===== */
.plan-card-tagline {
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

/* ===== Plan Feature List ===== */
.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.32rem 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-feature-list li {
    font-size: 0.85rem;
    color: #1a2b4a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-feature-icon {
    width: 14px;
    height: 10px;
    flex-shrink: 0;
    color: #3C4BFB;
}

/* ===== Discounted price display ===== */
.plan-discounted-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
}

.plan-price-struck {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}

@media (max-width: 767px) {
    .coupon-section {
        max-width: 400px;
    }
    .coupon-container {
        padding: 1rem;
    }
    .coupon-input {
        min-width: 0;
    }
}
