/* Modern Pricing Cards CSS */

.pricing {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fe;
}

.pricing::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 56, 252, 0.15) 0%, rgba(76, 56, 252, 0) 70%);
    z-index: 1;
}

.pricing::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 56, 252, 0.1) 0%, rgba(76, 56, 252, 0) 70%);
    z-index: 1;
}

.pricing .container {
    position: relative;
    z-index: 2;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.pricing-cards.second-row {
    margin-top: 25px;
}

.price-card {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    transition: all 0.4s ease;
}

.price-card-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 230, 240, 0.7);
}

.price-card:hover .price-card-inner {
    box-shadow: 0 15px 35px rgba(45, 27, 174, 0.1);
    border-color: rgba(45, 27, 174, 0.2);
}

.price-header {
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fe 100%);
    border-bottom: 1px solid rgba(230, 230, 240, 0.7);
}

.plan-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 5px;
    position: relative;
}

.plan-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.price-card h3 {
    margin: 15px 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
    width: 100%;
    clear: both;
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    position: relative;
    display: block;
    margin: 10px auto 5px;
}

.price::before {
    content: '';
    font-size: 20px;
    font-weight: 600;
    position: relative;
    top: -10px;
    left: -2px;
    display: inline-block;
}

.price-period {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.price-content {
    padding: 25px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    justify-content: space-between;
}

.devices-tag {
    display: block;
    background-color: rgba(45, 27, 174, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 20px;
    margin: 5px auto 20px;
    width: fit-content;
}

.devices-tag.highlight {
    background: linear-gradient(135deg, rgba(45, 27, 174, 0.15) 0%, rgba(76, 56, 252, 0.15) 100%);
    color: var(--primary-color);
    font-weight: 700;
}

.price-features {
    text-align: left;
    margin: 0 auto 25px;
    flex-grow: 1;
    margin-bottom: 40px;
    width: 100%;
}

.price-features p {
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    width: 100%;
    padding-left: 10px;
}



.price-features i {
    color: #4CAF50;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.order-btn {
    background: linear-gradient(135deg, rgba(45, 27, 174, 0.97) 0%, rgba(60, 42, 196, 0.97) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    width: 90%;
    margin: 30px auto 0;
    box-shadow: 0 5px 15px rgba(45, 27, 174, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 27, 174, 0.4);
}

.order-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.order-btn:hover::after {
    transform: scale(1.1);
    opacity: 0;
}

/* Featured card styling */
.price-card.featured .price-card-inner {
    background: linear-gradient(135deg, #2d1bae 0%, #4c38fc 100%);
    border: none;
    box-shadow: 0 15px 35px rgba(45, 27, 174, 0.25);
}

.price-card.featured .price-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured .plan-label,
.price-card.featured .price-period {
    color: #fff;
}

.price-card.featured .plan-label::after {
    background: #fff;
}

.price-card.featured .price-features p {
    color: rgba(255, 255, 255, 0.9);
}

.price-card.featured .price-features i {
    color: #86ff8b;
}

.price-card.featured .devices-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.price-card.featured .order-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.price-card.featured .order-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Additional button visibility fixes */
.price-card {
    position: relative;
    padding-bottom: 80px;
}

.price-card .order-btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Badge styling */
.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 81, 47, 0.3);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Free Tag Styling */
.free-tag {
    display: block;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 5px auto 10px;
    animation: pulse 2s infinite;
    width: fit-content;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 81, 47, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 81, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 81, 47, 0);
    }
}

/* Price Card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card {
    animation: fadeInUp 0.6s forwards;
    opacity: 0;
}

.price-card:nth-child(1) {
    animation-delay: 0.1s;
}

.price-card:nth-child(2) {
    animation-delay: 0.2s;
}

.price-card:nth-child(3) {
    animation-delay: 0.3s;
}

.price-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Secure Checkout Section */
.secure-checkout-container {
    margin-top: 50px;
    animation: fadeIn 0.8s forwards;
}

.secure-checkout {
    background: linear-gradient(135deg, rgba(45, 27, 174, 0.97) 0%, rgba(60, 42, 196, 0.97) 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(45, 27, 174, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
}

.secure-checkout::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 56, 252, 0.08) 0%, rgba(76, 56, 252, 0) 70%);
    z-index: 0;
}

.secure-checkout::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 56, 252, 0.05) 0%, rgba(76, 56, 252, 0) 70%);
    z-index: 0;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.security-badge {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.security-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.security-badge i {
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.security-badge h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
}

.security-badge p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.payment-methods-container {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.payment-methods-container h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-methods-container h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.payment-methods-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-logo {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.payment-logo img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.money-back {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 25px;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.money-back i {
    margin-right: 8px;
    color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .price-card {
        margin-bottom: 10px;
    }
    
    .security-badges {
        gap: 15px;
    }
    
    .security-badge {
        padding: 15px;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .secure-checkout {
        padding: 30px 20px;
    }
    
    .payment-logo {
        width: 70px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .pricing {
        padding: 60px 0;
    }
    
    .price-header {
        padding: 20px 15px 15px;
    }
    
    .price-content {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-features {
        text-align: left;
        padding-left: 5px;
        width: 90%;
    }
    
    .price-content .devices-tag {
        order: 1;
        margin-left: 10px;
        margin-right: auto;
    }
    
    .price-content .price-features {
        order: 2;
        margin-bottom: 60px;
    }
    
    .price-content .order-btn {
        order: 3;
        margin-top: 40px;
        position: relative;
        padding-top: 16px;
        padding-bottom: 16px;
        margin-bottom: 10px;
    }
    
    /* Add spacing after last feature item */
    .price-features p:last-child {
        margin-bottom: 30px;
    }
    
    .price {
        font-size: 32px;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .security-badge {
        width: 100%;
        max-width: 100%;
    }
    
    .payment-methods-logos {
        gap: 10px;
    }
    
    .payment-logo {
        width: 60px;
        height: 40px;
    }
}
