/* =============================================
   Pricing styles extracted from dashboard.css
   Used by index.html for the #pricing section
   ============================================= */

/* Plans grid layout */
.plans-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 18px 4px 12px;
    max-width: 1100px;
    margin: 0 auto;
    scrollbar-width: none;
}

.plans-grid::-webkit-scrollbar {
    display: none;
}

.plans-grid > .plan-card-v2 {
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    scroll-snap-align: start;
}

/* Plan CTA button */
.btn-plan-gradient {
    width: 100%;
    background: #044939;
    border: 2px solid transparent;
    background-image: linear-gradient(#044939, #044939), linear-gradient(135deg, #bddd81, #3ab9a1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: auto;
}

.btn-plan-gradient:hover {
    background-image: linear-gradient(#055a47, #055a47), linear-gradient(135deg, #bddd81, #3ab9a1);
    transform: translateY(-2px);
}

.btn-plan-gradient.current {
    background: #333;
    background-image: none;
    border: 2px solid #555;
    color: #888;
    cursor: default;
}

.btn-plan-gradient.current:hover {
    transform: none;
    background-image: none;
}

/* Tabs row */
.plans-tabs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

.plans-tabs-row .currency-toggle-wrapper {
    position: absolute;
    right: 0;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .plans-tabs-row {
        flex-direction: column;
        gap: 15px;
    }

    .plans-tabs-row .currency-toggle-wrapper {
        position: static;
    }
}

/* Category tabs */
.plans-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.plans-tab-btn {
    padding: 12px 32px;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
    background: transparent;
    color: #888;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.plans-tab-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.plans-tab-btn.active {
    background: var(--bg-dark);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), linear-gradient(135deg, #bddd81, #3ab9a1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    box-shadow: 0 2px 12px rgba(0, 255, 191, 0.15);
}

.plans-tab-btn .ia-sparkle-icon,
.plans-tab-btn .addon-tab-icon {
    width: 24px;
    height: 24px;
}

.plan-card-name .addon-plan-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

/* Billing toggle (monthly/annual) */
.billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.billing-toggle-label {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s, font-weight 0.3s;
    cursor: pointer;
    user-select: none;
}

.billing-toggle-label.active {
    color: white;
    font-weight: 700;
}

.billing-toggle-label.inactive {
    color: #666;
    font-weight: 400;
}

.billing-toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    background: #333;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #555;
    flex-shrink: 0;
}

.billing-toggle-track.annual {
    background: rgba(0, 255, 191, 0.15);
    border-color: var(--accent-green);
}

.billing-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    border-radius: 50%;
    transition: transform 0.3s;
}

.billing-toggle-track.annual .billing-toggle-thumb {
    transform: translateX(24px);
}

.billing-save-badge {
    background: var(--bg-dark);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), linear-gradient(135deg, #bddd81, #3ab9a1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Currency toggle ARS/USD */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s, font-weight 0.3s;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-toggle-label.active {
    color: white;
    font-weight: 700;
}

.currency-toggle-label.inactive {
    color: #666;
    font-weight: 400;
}

.currency-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #333;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #555;
    flex-shrink: 0;
}

.currency-toggle-track.usd {
    background: rgba(0, 112, 186, 0.2);
    border-color: #0070ba;
}

.currency-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.currency-toggle-track.usd .currency-toggle-thumb {
    transform: translateX(20px);
    background: #0070ba;
}

/* Plan card v2 */
.plan-card-v2 {
    background: rgba(15, 25, 35, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    overflow: visible;
}

.plan-card-v2:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.plan-card-v2.popular {
    border-color: var(--accent-green);
    background: rgba(0, 255, 191, 0.03);
}

.plan-card-v2.popular:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 255, 191, 0.15);
}

.plan-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: black;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 1;
}

.plan-card-category {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.plan-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.plan-card-name .ia-sparkle-icon {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}

.plan-card-description {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.plan-savings-badge {
    display: inline-block;
    background: rgba(0, 255, 191, 0.15);
    color: var(--accent-green);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
}

.plan-price-original {
    color: #666;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.plan-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 4px;
    line-height: 1.1;
}

.plan-price-main .plan-price-period {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.plan-free-months {
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.85;
}

.plan-price-spacer {
    height: 20px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

.plan-features-list li i {
    color: var(--accent-green);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.plan-see-all-features {
    color: var(--accent-green);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s;
}

.plan-see-all-features:hover {
    opacity: 0.8;
}

.plan-see-all-features i {
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.plan-see-all-features.expanded i {
    transform: rotate(180deg);
}

.plan-features-hidden {
    display: none;
}

.plan-features-hidden.show {
    display: block;
}

.plan-card-v2.free-plan {
    border-style: dashed;
}

.plan-card-v2.free-plan .plan-price-main {
    color: #bddd82;
}

/* Section titles */
.plans-section-title {
    text-align: center;
    margin-bottom: 8px;
}

.plans-section-subtitle {
    text-align: center;
    margin-bottom: 15px;
}

/* Carousel dots */
.plans-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
}

.plans-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.plans-carousel-dots .dot.active {
    background: var(--accent-green);
    width: 24px;
    border-radius: 4px;
}

/* Payment gateway buttons */
.gateway-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: transparent;
}

.payment-gateway-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .plans-grid {
        gap: 16px;
    }

    .plans-grid > .plan-card-v2 {
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    .plans-grid > .plan-card-v2:first-child {
        margin-left: 7.5%;
    }

    .plans-grid > .plan-card-v2:last-child {
        margin-right: 7.5%;
    }
}
