@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.pricing-cards-container {
    padding: 50px 0;
}

.pricing-cards-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 32px;
    align-items: stretch;
    justify-content: center;
}

.pricing-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom card colors support */
.pricing-card[style*="--custom-card-bg"] {
    background-color: var(--custom-card-bg) !important;
}

.pricing-card[style*="--custom-text-color"] {
    color: var(--custom-text-color) !important;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.most-popular {
    border: 1px solid hsl(186 100% 33%);
    transform: scale(1.02);
}

.pricing-card.most-popular:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, hsl(186 100% 33%), hsl(186 85% 40%));
    color: white;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* Custom badge color support */
.popular-badge[style*="--custom-badge-color"] {
    background: var(--custom-badge-color) !important;
}

.star-icon {
    font-size: 16px;
}

.card-content {
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: hsl(210 45% 11.2%);
    margin-bottom: 8px;
    line-height: 28px;
}

/* Custom text color support */
.pricing-card[style*="--custom-text-color"] .card-title {
    color: var(--custom-text-color) !important;
}

.price-section {
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    font-family: Roboto Mono, ui-monospace, monospace;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}

/* Custom text color support for price period */
.pricing-card[style*="--custom-text-color"] .price-period {
    color: var(--custom-text-color) !important;
    opacity: 0.7;
}

.card-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Custom text color support for description */
.pricing-card[style*="--custom-text-color"] .card-description {
    color: var(--custom-text-color) !important;
    opacity: 0.8;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.4;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.check-icon svg {
    color: hsl(186 100% 33%);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.feature-text {
    color: hsl(210 45% 11.2%);
}

/* Custom text color support for feature text */
.pricing-card[style*="--custom-text-color"] .feature-text {
    color: var(--custom-text-color) !important;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.cta-button.primary {
    background: hsl(186 100% 33%);
    color: white;
    border-color: hsl(186 100% 33%);
}

.cta-button.primary:hover {
    background: hsl(186 85% 40%);
    border-color: hsl(186 85% 40%);
    color: white;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: hsl(186 100% 33%);
    border-color: hsl(186 100% 33%);
}

.cta-button.secondary:hover {
    background: hsl(186 100% 33%);
    color: white;
    transform: translateY(-2px);
}

/* Custom button color support */
.cta-button[style*="--custom-button-color"] {
    background-color: var(--custom-button-color) !important;
    border-color: var(--custom-button-color) !important;
}

.cta-button[style*="--custom-button-color"]:hover {
    background-color: var(--custom-button-color) !important;
    border-color: var(--custom-button-color) !important;
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .pricing-cards-container {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .pricing-cards-container {
        padding: 40px 20px;
    }
    
    .card-content {
        padding: 30px 25px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .price {
        font-size: 36px;
    }
    
    .pricing-card:hover {
        transform: scale(1.02);
    }
    
    .pricing-card.most-popular:hover {
        transform: scale(1.05);
    }

    .pricing-card.most-popular {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .pricing-cards-container {
        padding: 30px 15px;
    }
    
    .card-content {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .price {
        font-size: 36px;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Focus states for accessibility */
.cta-button:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pricing-card {
        border: 2px solid #000;
    }
    
    .pricing-card.most-popular {
        border-color: #10b981;
        border-width: 3px;
    }
}
