/* ===== PRICING PAGE SPECIFIC STYLES ===== */

/* Force remove all subscription input styles */
.subscription-section input,
.subscription-section .card-element,
.subscription-section .payment-form input,
.subscription-section .payment-form .card-element,
#subscribe input,
#subscribe .card-element {
    all: unset !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
    transform: none !important;
    min-height: auto !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    box-sizing: content-box !important;
    display: inline-block !important;
    position: static !important;
    z-index: auto !important;
    overflow: visible !important;
    resize: none !important;
    cursor: text !important;
}

/* ===== PRICING HERO ===== */
.pricing-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

.pricing-hero .hero-title {
    margin-bottom: 1.5rem;
}

.pricing-hero .hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* ===== PRICING TOGGLE ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 0.5rem;
    backdrop-filter: blur(20px);
}

.pricing-toggle span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.discount {
    background: var(--grok-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-border);
    transition: var(--transition);
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--grok-gradient);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-sphere);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 0.1;
}

.pricing-card:hover {
    transform: translateY(-0.5rem);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 1rem 3rem rgba(0, 212, 255, 0.1);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-0.5rem);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grok-gradient);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--grok-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.5rem;
}

.description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.card-features {
    margin-bottom: 2rem;
}

.card-features ul {
    list-style: none;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.card-features i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.card-action {
    text-align: center;
}

.card-action .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FEATURES COMPARISON ===== */
.features-comparison {
    padding: 6rem 0;
}

.comparison-table {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    max-width: 1000px;
    margin: 0 auto;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-row:last-child {
    border-bottom: none;
}

.feature-name {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-column {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-column:last-child {
    border-right: none;
}

.plan-column.featured {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 122, 0.02));
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0.5rem 2rem rgba(0, 212, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.faq-question i {
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pricing-toggle {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-0.5rem);
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        min-width: 600px;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 6rem 1rem 3rem;
    }
    
    .pricing-section,
    .features-comparison,
    .faq-section {
        padding: 4rem 0;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        min-width: 500px;
    }
    
    .feature-name,
    .plan-column {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATION OVERRIDES ===== */
.pricing-card[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pricing-card[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */
.pricing-card:hover .card-header h3 {
    color: var(--accent-color);
}

.pricing-card:hover .amount {
    transform: scale(1.05);
}

.pricing-card:hover .card-features i {
    transform: scale(1.2);
}

/* ===== GLOW EFFECTS ===== */
.pricing-card.featured {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.popular-badge {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ===== PRICE ANIMATION ===== */
.price {
    transition: transform 0.3s ease;
}

.pricing-card:hover .price {
    transform: scale(1.05);
}

/* ===== FEATURE ICON ANIMATION ===== */
.card-features i {
    transition: all 0.3s ease;
}

.pricing-card:hover .card-features i {
    transform: scale(1.2) rotate(5deg);
}

/* ===== COMPARISON TABLE HOVER ===== */
.table-row:hover .feature-name {
    color: var(--accent-color);
}

.table-row:hover .plan-column.featured {
    color: var(--secondary-accent);
}

/* ===== FAQ ANIMATION ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* ===== TOGGLE SWITCH ANIMATION ===== */
.slider:before {
    transition: transform 0.3s ease;
}

.switch:hover .slider {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===== PRICING CARD STACKING ===== */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
        z-index: 2;
    }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .card-action .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 0.75rem;
        background: var(--accent-color);
        color: var(--primary-color);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        min-height: 48px;
        line-height: 1.2;
        position: relative;
        overflow: hidden;
    }
    
    /* Додатковий контраст для кращої видимості */
    .card-action .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .card-action .btn:hover::before {
        opacity: 1;
    }
    
    .card-action .btn:hover {
        background: #00b4d8;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }
    
    .card-action .btn:active {
        transform: translateY(0);
    }
    
    /* Спеціальні hover ефекти для різних типів кнопок */
    .card-action .btn.btn-outline:hover {
        background: #00b4d8;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }
    
    .card-action .btn.btn-primary:hover {
        background: linear-gradient(135deg, #00b4d8, #ff007a);
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
    }
    
    .card-action .btn.btn-secondary:hover {
        background: #e6006b;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
    }
    
    /* Спеціальні стилі для різних типів кнопок */
    .card-action .btn.btn-outline {
        background: var(--accent-color);
        color: var(--primary-color);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    }
    
    .card-action .btn.btn-primary {
        background: var(--grok-gradient);
        color: var(--text-color);
        border: none;
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .card-action .btn.btn-secondary {
        background: var(--secondary-accent);
        color: var(--text-color);
        border: none;
        box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
    }
    
    .pricing-hero {
        padding: 6rem 1rem 3rem;
    }
    
    .pricing-toggle {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .card-header h3 {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .card-action .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        box-shadow: 0 3px 10px rgba(0, 212, 255, 0.4);
    }
    
    .pricing-hero .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .pricing-card {
        padding: 1rem;
    }
    
    .card-action .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}
