/* Modern Features Bar for VDS */
.features-bar-modern {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 35px 0;
    position: relative;
    overflow: hidden;
}

.features-bar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.features-modern-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-modern-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    min-width: 140px;
}

.feature-modern-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrap {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.feature-icon-wrap i {
    font-size: 22px;
    color: #fff;
}

.feature-modern-card span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* Hosting Pricing Section */
.pricing-section {
    padding: 60px 0 80px;
    background: #fff;
}

/* Hide old grids */
.pricing-grid,
.pricing-grid-modern,
.plans-container {
    display: none !important;
}

/* Modern VDS Cards */
.vds-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Hide old grid completely */
.vds-grid {
    display: none !important;
}

.vps-card {
    position: relative;
}

.vps-card-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Featured VDS */
.vps-card.featured .vps-card-inner {
    background: linear-gradient(145deg, var(--dark-bg) 0%, #0c2340 50%, #0a1c38 100%);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.2);
}

/* Glow */
.vps-glow {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
}

.vps-card:hover .vps-glow {
    opacity: 1;
}

.vps-card.featured .vps-glow {
    opacity: 0.5;
}

/* Hover */
.vps-card:hover .vps-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.12);
    border-color: var(--primary-color);
}

.vps-card.featured:hover .vps-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.3);
}

/* Featured Label */
.vps-featured-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vps-featured-label i {
    margin-right: 6px;
}

/* Tier Badges */
.vps-tier-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.vps-card.featured .vps-tier-badge {
    top: 48px;
}

.tier-starter {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

.tier-popular {
    background: rgba(0, 212, 255, 0.15);
    color: var(--secondary-color);
}

.tier-pro {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
}

.tier-enterprise {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* VPS Top */
.vps-top {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 5px;
}

.vps-card.featured .vps-top {
    padding-top: 30px;
}

.vps-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--secondary-color) 120deg, var(--primary-light) 240deg, var(--primary-color) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 3px;
    animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
    to { transform: rotate(360deg); }
}

.vps-ring-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vps-card.featured .vps-ring-inner {
    background: var(--dark-bg);
}

.vps-ring-inner i {
    font-size: 26px;
    color: var(--primary-color);
}

.vps-card.featured .vps-ring-inner i {
    color: var(--secondary-color);
}

.vps-top h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-bg);
}

.vps-card.featured .vps-top h3 {
    color: var(--text-light);
}

/* Price Block */
.vps-price-block {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 20px;
    position: relative;
}

.vps-price-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.vps-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    vertical-align: top;
}

.vps-card.featured .vps-currency {
    color: var(--secondary-color);
}

.vps-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.vps-card.featured .vps-amount {
    color: var(--secondary-color);
}

.vps-period {
    font-size: 15px;
    color: #999;
}

.vps-card.featured .vps-period {
    color: var(--text-gray);
}

/* Spec Bars */
.vps-specs-grid {
    margin-bottom: 18px;
}

.vps-spec {
    margin-bottom: 14px;
}

.vps-spec-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.vps-card.featured .vps-spec-bar {
    background: rgba(0, 212, 255, 0.1);
}

.vps-spec-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.vps-card.featured .vps-spec-fill {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #33d4ff 100%);
}

.vps-spec-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vps-spec-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.vps-card.featured .vps-spec-val {
    color: var(--secondary-color);
}

.vps-spec-label {
    font-size: 12px;
    color: #999;
}

.vps-card.featured .vps-spec-label {
    color: var(--text-gray);
}

/* VPS Tags */
.vps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.vps-tags span {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border-radius: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vps-card.featured .vps-tags span {
    background: rgba(0, 212, 255, 0.12);
    color: var(--secondary-color);
}

.vps-tags i {
    font-size: 8px;
}

/* Location Bar */
.vps-location-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    margin-bottom: 18px;
}

.vps-card.featured .vps-location-bar {
    background: rgba(255, 255, 255, 0.07);
}

.vps-location-bar img {
    width: 22px;
    border-radius: 3px;
}

.vps-location-bar span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.vps-card.featured .vps-location-bar span {
    color: var(--text-gray);
}

/* VPS Button */
.vps-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.vps-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vps-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-glow {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #33d4ff 100%);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    animation: pulse-glow 2s ease infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 4px 35px rgba(0, 212, 255, 0.6); }
}

.btn-glow:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
    .vds-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vds-grid-modern {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .vps-amount {
        font-size: 40px;
    }

    .features-modern-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-modern-card {
        min-width: 200px;
    }
}
