/* VPS Plans Grid Styles */
.vps-plans-grid {
    padding: 40px 0 50px;
    overflow: visible;
    width: 100%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.vps-plans-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
    padding: 0 15px;
}

.vps-plan-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 28px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vps-plan-item {
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Desktop Grid - Show 4 columns */
@media (min-width: 1280px) {
    .vps-plans-grid {
        max-width: 1400px;
    }
    
    .vps-plans-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 0 20px;
    }
    
    .vps-plan-card {
        padding: 24px 20px;
    }
    
    .price {
        font-size: 38px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .plan-subtitle {
        font-size: 13px;
        min-height: 34px;
    }
    
    .plan-features li {
        font-size: 14px;
        font-weight: 500;
        padding: 5px 0;
    }
    
    .plan-features li i {
        font-size: 16px;
        width: 30px;
        height: 30px;
    }
}

.vps-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #ff6b35;
}

.vps-plan-card.featured {
    border: 3px solid #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff6b35;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    z-index: 10;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.plan-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px;
}

.save-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 24px;
}

.save-text {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.original-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.plan-pricing {
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.period {
    font-size: 20px;
    color: #6b7280;
    font-weight: 400;
}

.plan-term {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 50px;
}

.plan-buy-btn {
    display: block;
    width: 100%;
    background: #111827;
    color: #ffffff;
    text-align: center;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.plan-buy-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.vps-plan-card.featured .plan-buy-btn {
    background: #ff6b35;
}

.vps-plan-card.featured .plan-buy-btn:hover {
    background: #e55a25;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.plan-features li {
    padding: 6px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    line-height: 1.4;
    white-space: normal;
}

.plan-features li strong {
    white-space: nowrap;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: #6b7280;
    font-size: 18px;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    margin-top: 0;
    transition: all 0.3s;
}

.plan-features li:hover i {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Tooltip Styles */
.tooltip-icon {
    margin-left: auto;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tooltip-icon i.bi-info-circle {
    color: #9ca3af;
    font-size: 16px;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    transition: color 0.3s;
    pointer-events: none;
}

.tooltip-icon:hover i.bi-info-circle {
    color: #ff6b35;
}

/* JS-rendered tooltip (appended to <body>) */
.vps-tooltip {
    position: absolute;
    background: #3a0e85;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(58, 14, 133, 0.4);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 2000;
    pointer-events: none;
}

.vps-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Swiper Navigation - Hidden */
.vps-next, .vps-prev {
    display: none;
}

.vps-pagination {
    bottom: -25px !important;
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    width: 100%;
}

.vps-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s;
    border-radius: 2px;
}

.vps-pagination .swiper-pagination-bullet-active {
    background: #111827;
    width: 40px;
}

/* Progress Bar / Scrollbar - Hidden */
.vps-scrollbar {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .vps-plans-grid {
        padding: 30px 0 45px;
    }
}

@media (max-width: 768px) {
    .vps-plans-grid {
        padding: 25px 15px 40px;
    }
    
    .vps-plans-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vps-plan-card {
        padding: 24px;
    }
    
    .price {
        font-size: 38px;
    }
    .plan-name {
        font-size: 22px;
    }
    .plan-subtitle {
        font-size: 15px;
    }
    .plan-term {
        min-height: auto;
    }
    .plan-features li {
        font-size: 15px;
        font-weight: 500;
        padding: 8px 0;
        line-height: 1.6;
        gap: 10px;
    }
    .plan-features li i {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }
    .plan-buy-btn {
        font-size: 16px;
        padding: 14px 24px;
    }
    .vps-next, .vps-prev {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .vps-prev {
        left: 10px;
    }
    
    .vps-next {
        right: 10px;
    }
    
    /* Tooltip responsive */
    .tooltip-icon[data-tooltip]::before {
        width: 180px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 10px);
    }
    
    .tooltip-icon[data-tooltip]::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 4px);
    }
}

@media (max-width: 576px) {
    .vps-plans-grid {
        padding: 20px 15px 30px;
    }
    
    .vps-plans-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vps-plan-card {
        padding: 24px 20px;
    }
    
    .price {
        font-size: 36px;
    }
    .plan-name {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .plan-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
    }
    .save-badge {
        margin-bottom: 18px;
    }
    .plan-buy-btn {
        padding: 14px 24px;
        font-size: 16px;
        margin-bottom: 24px;
    }
    .plan-features li {
        font-size: 15px;
        font-weight: 500;
        padding: 8px 0;
        line-height: 1.6;
        gap: 10px;
    }
    .plan-features li i {
        font-size: 18px;
        width: 32px;
        height: 32px;
    }
    
    .vps-next, .vps-prev {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .vps-prev {
        left: 5px;
    }
    
    .vps-next {
        right: 5px;
    }
    
    .vps-pagination {
        bottom: -20px !important;
    }
}
