/* VPS Common Styles */

.hero-vps {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.vps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 320px));
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.vps-card {
    background: white;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: #0ea5e9;
    background-color: #f8fafc;
}

.vps-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #1e293b; 
    margin-bottom: 2px; 
}

.vps-price { 
    font-size: 2.5rem; 
    font-weight: 900; 
    background: linear-gradient(135deg, #0ea5e9, #6366f1); 
    -webkit-background-clip: text; 
    color: transparent; 
    margin: 2px 0; 
    line-height: 1.2; 
}

.vps-price span { 
    font-size: 0.9rem; 
    font-weight: 600; 
    -webkit-text-fill-color: #64748b; 
    color: #64748b; 
}

.vps-price .amount { 
    font-size: 2.5rem; 
    font-weight: 900; 
    -webkit-text-fill-color: transparent; 
}

.vps-features { 
    list-style: none; 
    padding: 0; 
    margin: 2px 0; 
    text-align: left; 
}

.vps-features li { 
    margin-bottom: 3px; 
    font-size: 0.9rem; 
    color: #475569; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.vps-features {
    list-style: none; 
    padding: 0; 
    margin: 2px 0; 
    text-align: left; 
}

.vps-features li i { 
    color: #10b981; 
}

.steel-btn {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white !important;
    width: 80%;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.steel-btn:hover { 
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.steel-btn:active {
    transform: translateY(-1px) scale(1);
}

.developer-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Offer Classes */
.vps-card.offer {
    position: relative;
    border-top: 4px solid #fbbf24 !important;
}

.offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1e293b;
    padding: 2px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.old-price {
    display: none;
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: -5px;
}

/* Diagonal Ribbon */
.popular-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 10;
}

.popular-ribbon span {
    position: absolute;
    display: block;
    width: 140px;
    padding: 6px 0;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    right: -30px;
    top: 20px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* DDR5 Specific Premium Enhancements */
.vps-ddr5 {
    /* Stronger glows and border for DDR5 tier */
}

.vps-ddr5 .vps-card {
    padding-bottom: 15px;
}

.vps-ddr5 .vps-card.offer {
    border-top: 5px solid #fbbf24 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vps-ddr5 .vps-card.offer:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    border-color: #6366f1 !important;
}

.vps-ddr5 .offer-badge {
    padding: 3px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    top: -15px;
}

.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.tech-badge i {
    margin-right: 6px;
}

/* Vibrant Toggle Overrides */
.vps-ddr5 .slider.vibrant-ddr5 {
    background-color: #fbbf24 !important;
}

.vps-ddr3 .slider.vibrant-ddr3 {
    background-color: #0ea5e9 !important;
}

input:checked + .slider.vibrant-ddr5 {
    background-color: #fbbf24 !important;
}

input:checked + .slider.vibrant-ddr3 {
    background-color: #0ea5e9 !important;
}

/* OS Banner Styles */
.os-banner {
    margin-top: 80px;
    padding: 60px 0;
    text-align: center;
}

.os-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 40px;
}

.os-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-content: center;
}

.os-item-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px 30px 30px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.os-item-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #0ea5e9;
}

.os-item-logo {
    width: 100%;
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.os-item-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.os-item-logo i {
    font-size: 3.5rem;
    color: #64748b;
}

.os-item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.os-item-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.os-item-use {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: auto;
}

.badge-stable {
    position: absolute;
    top: -15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
}

.os-item-card.recommended {
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
    transform: none;
    z-index: 2;
}

.os-item-card.recommended:hover {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.os-header-group {
    background: #0f172a;
    padding: 4px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
    width: fit-content;
    height: auto;
    margin: 0;
}

.os-item-card.recommended .os-item-logo {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}



.os-header-group img {
    max-height: 40px;
    width: auto;
}

.os-item-card.recommended .os-item-name {
    margin-bottom: 12px;
}

.os-item-card.recommended .os-item-use {
    background: #10b981;
    color: white;
}

/* Apps Banner Styles */
.apps-banner {
    padding: 0 0 80px 0;
    text-align: center;
}

.apps-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 40px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    justify-content: center;
}

.app-item-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    min-width: 0; /* Important for ellipsis */
}

.app-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #0ea5e9;
}

.app-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-item-icon i {
    font-size: 1.5rem;
}

.app-item-info {
    overflow: hidden;
    line-height: 1.3;
}

.app-item-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-item-desc {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
