/* =========================================
   Payments Page / Pricing Styles
   Extracted from landing/index.css
   ========================================= */

.pricing-section {
    background-color: #F7F7F7;
    padding: 72px 0;
    width: 100%;
    /* Ensure it fills container */
    height: 100%;
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pricing-header {
    font-family: "PlusJakartaSans-ExtraBold", sans-serif;
    font-size: 48px;
    color: #101828;
    margin-bottom: 90px;
    line-height: 1.6;
    max-width: 646px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-header-highlight {
    color: #1452CA;
}

/* Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    /* Ensure cards are visible immediately (no animation hiding) */
    opacity: 1 !important;
    transform: none !important;
}

/* Card Styles */
.pricing-card {
    background: #FFFFFF;
    border: 1px solid #EAECF0;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 8px 8px 40px 0px #FDFDFD14;
    transition: transform 0.2s, box-shadow 0.2s;

    /* Ensure visibility */
    opacity: 1 !important;
    transform: none !important;
}

.pricing-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.12);
}

.pricing-card.recommended {
    border: 1px solid #1452CA;
    background-color: #ECF2FD;
    padding-top: 58px;
    /* 20px base + 38px offset */
    overflow: hidden;
    /* Ensure visibility against dashboard background */
    z-index: 1;
}

/* Explicit Title Visibility Override for Scale Plan */
.pricing-card.recommended .pricing-title {
    color: #101828 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Offset ONLY for Grid Layout (Desktop/Tablet Landscape) */
@media only screen and (min-width: 701px) {
    .pricing-card.recommended {
        margin-top: -38px;
    }
}

.pricing-badge {
    background-color: #1452CA;
    color: #FFFFFF;
    font-family: "PlusJakartaSans-SemiBold", sans-serif;
    font-size: 14px;
    padding: 8px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-title {
    font-family: "PlusJakartaSans-Bold", sans-serif;
    font-size: 24px;
    color: #101828;
    margin-bottom: 12px;
    text-align: center;
    /* Guarantee visibility on all cards */
    opacity: 1 !important;
    visibility: visible !important;
}

.pricing-price {
    font-family: "PlusJakartaSans-ExtraBold", sans-serif;
    font-size: 32px;
    color: #0B2110;
    margin-bottom: 12px;
    text-align: center;
}

.pricing-period {
    font-size: 20px;
    color: #0B2110;
    font-weight: normal;
    font-family: "PlusJakartaSans-Regular", sans-serif;
}

.pricing-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.pricing-details p {
    font-family: "PlusJakartaSans-Regular", sans-serif;
    font-size: 16px;
    color: #475467;
    line-height: 1.5;
    margin: 0;
}

.pricing-features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 24px 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-family: "PlusJakartaSans-Regular", sans-serif;
    font-size: 16px;
    color: #475467;
    text-align: left;
    line-height: 1.5;
}

/* Checkmark icon sizing */
.pricing-features li img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    /* Align with text */
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 16px 16px;
    border-radius: 8px;
    font-family: "PlusJakartaSans-SemiBold", sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    margin-top: auto;
    box-sizing: border-box;
}

.btn-pricing-outline {
    background: #FFFFFF;
    border: 1px solid #1452CA;
    color: #1452CA;
}

.btn-pricing-outline:hover {
    background-color: #F9FAFB;
    border-color: #D0D5DD;
}

.btn-pricing-filled {
    background: #1452CA;
    border: 1px solid #1452CA;
    color: #FFFFFF;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-pricing-filled:hover {
    opacity: 0.9;
}

/* =========================================
   Mobile / Responsive Overrides
   ========================================= */

@media only screen and (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.recommended {
        margin-top: 0 !important;
        padding-top: 36px !important;
        /* Compact mobile padding from landing */
    }
}

@media only screen and (max-width: 550px) {
    .pricing-section {
        padding-top: 32px !important;
        padding-bottom: 72px !important;
        background-color: transparent;
        /* Blend with dashboard */
    }

    .pricing-header {
        font-size: 20px !important;
        margin-bottom: 32px !important;
    }

    .pricing-card {
        padding: 14px !important;
    }

    .pricing-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .pricing-price {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }

    .pricing-period {
        font-size: 14px !important;
    }

    .pricing-details {
        font-size: 14px !important;
        margin-bottom: 16px !important;
    }

    .pricing-details p {
        font-size: 14px !important;
    }

    .pricing-features {
        margin-bottom: 24px !important;
    }

    .pricing-features li {
        font-size: 14px !important;
    }

    .pricing-btn {
        padding: 14px !important;
        font-size: 14px !important;
    }

    /* Mobile Header Overrides */
    .payments-hd-title {
        font-size: 20px !important;
        margin-bottom: 28px !important;
    }

    .payments-hd-subtitle {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .payments-hd-plan-info {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .payments-hd-expiry-info {
        font-size: 12px !important;
        margin-bottom: 28px !important;
    }
}

/* Back Button Styles (replicated from api-stats.css) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #737373;
    text-decoration: none;
    font-family: 'Inter_28pt-Regular';
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1452CA;
}

.back-link img {
    width: 10px;
    height: 18px;
    transition: transform 0.2s ease;
}

.back-link:hover img {
    transform: translateX(-2px);
}

.back-nav-container {
    margin-bottom: 20px;
}

/* Specific Header Styles */
.payments-hd-title {
    font-family: 'Inter_18pt-Bold', sans-serif;
    /* As approximated 'Inter Bold' */
    font-size: 32px;
    color: #000000;
    margin-bottom: 25px;
}

.payments-hd-subtitle {
    font-family: 'Inter_28pt-Regular', sans-serif;
    font-size: 20px;
    color: #404040;
    margin-bottom: 15px;
}

.payments-hd-plan-info {
    font-family: 'Inter_18pt-Bold', sans-serif;
    margin-top: 8px;
    font-size: 16px;
    color: #252525;
    margin-bottom: 15px;
}

.payments-hd-expiry-info {
    font-family: 'Inter_28pt-Regular', sans-serif;
    margin-top: 4px;
    font-size: 14px;
    color: #404040;
    margin-bottom: 80px;
}

/* Pricing Button Loading States */
.pricing-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: stopreg-btn-spin 0.27s linear infinite;
    display: inline-block;
}

/* Scale Plan (Filled) Spinner Skin */
.btn-pricing-filled .pricing-btn-loading {
    color: #fff !important;
}

.btn-pricing-filled .pricing-btn-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
}

/* Outline Plans Spinner Skin */
.btn-pricing-outline .pricing-btn-loading {
    color: #1452CA !important;
}

.btn-pricing-outline .pricing-btn-spinner {
    border: 2px solid rgba(20, 82, 202, 0.1) !important;
    border-top-color: #1452CA !important;
}