.pricing {
    position: relative;
    background: #fefefc;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

@media (min-width: 901px) {
    .pricing {
        min-height: 1300px;
    }
}

.pricing::before {
    content: '';
    position: absolute;
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background-image: url('../assets/layers/pricing-bg.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.pricing .section-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text);
}

/* Toggle Pills */
.pricing-toggle-container {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}


.pricing-toggle-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto;
}

.pricing-pill {
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-pill:hover {
    color: #000;
}

.pricing-pill-active {
    background: #1e1e1e;
    color: #fff;
}

.pricing-pill-active:hover {
    color: #fff;
}

/* Save Badge */
.pricing-save-badge {
    position: absolute;
    left: calc(50% + 135px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.pricing-save-arrow {
    flex-shrink: 0;
    width: 50px;
    height: auto;
    order: -1;
    transform: scaleX(-1);
}

.pricing-save-text {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary, #ff9000);
    white-space: nowrap;
    line-height: 1;
    transform: rotate(-3deg);
}

@media (max-width: 900px) {
    .pricing-save-badge {
        left: auto;
        right: 20px;
    }

    .pricing-save-arrow {
        width: 38px;
    }

    .pricing-save-text {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .pricing-save-badge {
        left: calc(50% + 100px);
    }

    .pricing-save-arrow {
        width: 32px;
    }

    .pricing-save-text {
        font-size: 16px;
    }
}

/* Pricing Grid */
.pricing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Base Card Styles */
.pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.pricing-card-starter,
.pricing-card-enterprise {
    background: #ffffff;
}

/* PRO Card - Featured */
.pricing-card-popular {
    background: #FFB350;
    border: none;
    padding: 40px 28px;
    min-height: 560px;
    box-shadow: 0 10px 40px rgba(255, 179, 80, 0.3);
}

/* Header */
.pricing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.pricing-subtitle {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.pricing-billing-note {
    margin: auto 0 0 0;
    padding-top: 16px;
    font-size: 11px;
    color: #888;
    text-align: center;
    display: none;
}

.pricing-card[data-yearly="true"] .pricing-billing-note {
    display: block;
}

.pricing-name {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Inline Badge for PRO */
.pricing-badge-inline {
    background: #1e1e1e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Photo Quota */
.pricing-quota {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-quota-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
}

.pricing-quota-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

.pricing-card-popular .pricing-quota-label {
    color: rgba(0, 0, 0, 0.6);
}

/* Per-Image Price */
.pricing-per-image {
    text-align: center;
    font-size: 13px;
    margin: -16px 0 20px 0;
    white-space: nowrap;
}

.pricing-per-image-old {
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 4px;
    display: none;
}

.pricing-card[data-yearly="true"] .pricing-per-image-old {
    display: inline;
}

.pricing-per-image-amount {
    font-weight: 600;
    color: #000;
}

.pricing-per-image-label {
    color: #6b7280;
    margin-left: 2px;
}

.pricing-card-popular .pricing-per-image-amount {
    color: #000;
}

.pricing-card-popular .pricing-per-image-label {
    color: rgba(0, 0, 0, 0.6);
}

.pricing-card-popular .pricing-per-image-old {
    color: rgba(0, 0, 0, 0.4);
}

/* Price */
.pricing-price {
    margin-bottom: 24px;
}

.pricing-amount-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.pricing-amount-old {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    white-space: nowrap;
    display: none;
}

.pricing-card[data-yearly="true"] .pricing-amount-old {
    display: inline;
}

.pricing-amount {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}


.pricing-period {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    margin-left: 4px;
}

.pricing-card-popular .pricing-period {
    color: rgba(0, 0, 0, 0.6);
}

/* Button */
.pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    min-height: 56px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-pill, 50px);
    border: 1px solid  #1e1e1e1f;
    background: white;
    color: #000;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 28px;
}

.pricing-button:hover {
    background: var(--color-primary, #ff9000);
    transform: translateY(-2px);
    box-shadow: -4px 6px 75px rgba(255, 144, 0, 0.5);
    border:none;
}

.pricing-button-popular {
    background: #1e1e1e;
    border: none;
    color: #ffffff;
}

.pricing-button-popular:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

/* Features Header */
.pricing-features-header {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.pricing-card-popular .pricing-features-header {
    color: rgba(0, 0, 0, 0.7);
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #374151;
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #000;
    font-weight: 500;
    font-size: 14px;
}

.pricing-card-popular .pricing-features li {
    color: rgba(0, 0, 0, 0.85);
}

.pricing-card-popular .pricing-features li::before {
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing {
        padding: 60px 0 0;
    }

    .pricing::before {
        top: 0;
        height: 400px;
        opacity: 0.1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card-popular {
        margin-top: 0;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .pricing {
        padding: 50px 0 0;
    }

    .pricing::before {
        height: 300px;
    }

    .pricing .section-title {
        font-size: 28px;
    }

    .pricing-pill {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .pricing-amount {
        font-size: 28px;
    }

    .pricing-amount-old {
        font-size: 20px;
    }
}
