/* Pricing Cards Plugin Custom CSS */
.pricing-cards-section {
    width: 100%;
}

.pricing-cards-grid {
    display: grid;
    /* Use variables with fallbacks */
    grid-template-columns: repeat(var(--pc-cols-desktop, 3), 1fr);
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(var(--pc-cols-tablet, 2), 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(var(--pc-cols-mobile, 1), 1fr);
    }
}

.pricing-cards-grid .pricing-card {
    position: relative;
    background: linear-gradient(180deg, #050a15 0%, #030814 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 32px 32px 32px;
    box-shadow: var(--shadow-premium);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    animation: pc-fade-up 0.6s ease-out forwards;
    opacity: 0;
    color: #f4f4f4;
    font-family: Inter, Arial, sans-serif;
}

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

@keyframes pc-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-cards-grid .pricing-card * {
    box-sizing: border-box;
}

.pricing-cards-grid .pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-cards-grid .pricing-card.featured {
    border-color: #d4a72c;
    box-shadow:
        0 0 0 1px rgba(212, 167, 44, 0.08),
        0 10px 30px rgba(212, 167, 44, 0.08);
}

/* Featured Badge */
.pricing-cards-grid .popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a72c;
    color: #111;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    padding: 14px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 158px;
    justify-content: center;
    text-transform: uppercase;
    font-family: Inter, Arial, sans-serif;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(212, 167, 44, 0.4);
}

.pricing-cards-grid .popular-badge.free-badge {
    background: #00d977;
    box-shadow: 0 4px 15px rgba(0, 217, 119, 0.35);
}

/* Top Icon */
.pricing-cards-grid .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(212, 167, 44, 0.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #d4a72c;
}

.pricing-cards-grid .icon-box svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Titles and Descriptions */
.pricing-cards-grid .plan-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
    color: #f4f4f4;
    padding: 0;
    margin-top: 0;
}

.pricing-cards-grid .plan-desc {
    color: #8e96a8;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 250px;
}

/* Price */
.pricing-cards-grid .price-wrap {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.pricing-cards-grid .price {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    color: #e3bb49;
    letter-spacing: -1px;
}

.pricing-cards-grid .free-plan .price {
    color: #00d977;
}

.pricing-cards-grid .duration {
    color: #8e96a8;
    font-size: 16px;
    margin-bottom: 6px;
}

/* Features List */
.pricing-cards-grid .feature-list {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 34px;
    padding: 0 !important;
}

.pricing-cards-grid .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d4d8e2;
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
    padding: 0;
}

.pricing-cards-grid .check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 999px;
    background: rgba(0, 193, 106, 0.18);
    color: #00d977;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 1px;
    font-weight: 700;
}

/* Button */
.pricing-cards-grid .btn-wrap {
    margin-top: auto;
}

.pricing-cards-grid .pricing-btn {
    width: 100%;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-cards-grid .pricing-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
    animation: pc-shimmer 4s infinite;
}

@keyframes pc-shimmer {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.pricing-cards-grid .pricing-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.pricing-cards-grid .featured .pricing-btn {
    background: linear-gradient(180deg, #e0b84a 0%, #d0a32c 100%);
    color: #111;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(212, 167, 44, 0.25);
}

.pricing-cards-grid .featured .pricing-btn:hover {
    box-shadow: 0 12px 24px rgba(212, 167, 44, 0.30);
    color: #000;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    /* Auto fit handles this seamlessly */
}

@media (max-width: 640px) {
    .pricing-cards-grid .pricing-card {
        min-height: auto;
        padding: 28px 22px;
    }

    .pricing-cards-grid .price {
        font-size: 46px;
    }

    .pricing-cards-grid .popular-badge {
        top: -14px;
        font-size: 13px;
        padding: 12px 20px;
    }
}

/* Billing Toggle */
.pc-billing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
}

.pc-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #8e96a8;
    transition: color 0.3s;
}

.pc-toggle-label.active {
    color: #1a1f2c;
}

.pc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.pc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.pc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .pc-slider {
    background-color: #6772E5;
}

input:checked + .pc-slider:before {
    transform: translateX(24px);
}

.pc-save-badge {
    position: absolute;
    right: calc(50% - 180px);
    background: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 217, 119, 0.2);
}

@media (max-width: 600px) {
    .pc-save-badge {
        position: static;
        margin-left: 10px;
    }
}

.pc-price-display {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
