/* VPS Management - Minimal & Modern Design */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-radius: 0.5rem;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}


/* VPS Card Styles */

.vps-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vps-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.vps-card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vps-card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.vps-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.vps-status.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.vps-status.suspended {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.vps-status.terminated {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.vps-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.vps-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.vps-spec {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vps-spec-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vps-spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.vps-card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vps-card-footer .btn {
    flex: 1;
    min-width: 100px;
}

.oscuavps {
    display: none;
}

/* Action Buttons */

.btn-action {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-action:hover {
    transform: scale(1.05);
}

.btn-action i {
    margin-right: 0.25rem;
}


/* Loading Animation */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* Empty State */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}


/* Modal Enhancements */

.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}


/* Plan Details Card */

#planDetails {
    background: var(--light-color);
    border: 1px solid #dee2e6;
}

#planDetails .card-body {
    padding: 1rem;
}


/* Toast Notifications */

.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.toast-header .btn-close {
    filter: invert(1);
}


/* Responsive Design */

@media (max-width: 768px) {
    .vps-specs {
        grid-template-columns: 1fr;
    }
    .vps-card-footer {
        flex-direction: column;
    }
    .vps-card-footer .btn {
        width: 100%;
    }
    .container {
        padding: 0 1rem;
    }
}


/* Status Badge Animation */

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.vps-status.active::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.5rem;
    animation: statusPulse 2s ease-in-out infinite;
}


/* Smooth Transitions */

.vps-card,
.btn,
.modal-content {
    transition: var(--transition);
}


/* Button processing effect */

.btn-processing {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

.btn-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}


/* Datacenter Selection - Compact Pills (Always Compact) */

.datacenter-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.datacenter-selection-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.datacenter-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-color);
    width: auto;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.datacenter-card:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-1px);
}

.datacenter-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.datacenter-card i {
    font-size: 0.8rem;
    margin-right: 0.3rem;
}


/* OS Selection Cards (similar to vps-toiuu) */

.os-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.os-card {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: white;
}

.os-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.os-card.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.os-card .os-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.os-card .os-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-color);
    line-height: 1.2;
}


/* Billing Selection Cards (similar to vps-toiuu) */

.billing-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.billing-card {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    padding: 0.75rem 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: white;
    position: relative;
}

.billing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.billing-card.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.billing-card .billing-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.billing-card .billing-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.billing-card .billing-price-per-month {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.billing-card .discount-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}


/* Balance Info Card - Simplified */

/* VPS Modal - Compact Design */
.vps-modal-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.summary-item i {
    font-size: 1rem;
}

.summary-label {
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    color: #212529;
    font-weight: 600;
}

.vps-config-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.vps-info-column {
    height: 100%;
}

.vps-datacenter-column {
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.vps-datacenter-column #datacenter-selection-container {
    width: 100%;
}

.vps-billing-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.section-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.vps-options-section {
    margin-top: 1rem;
}

.vps-options-section .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.vps-options-section .accordion-button {
    background: #f8f9fa;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: none;
    box-shadow: none;
}

.vps-options-section .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.vps-options-section .accordion-button:not(.collapsed) i {
    color: white;
}

.vps-options-section .accordion-body {
    padding: 1rem;
    background: white;
}

/* Compact Price Summary */
.vps-price-summary {
    margin-top: 1rem;
}

.price-summary-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    height: 100%;
}

.vps-submit-wrapper {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.vps-submit-wrapper button {
    width: 100%;
    height: 100%;
    min-height: 70px;
    font-weight: 600;
    font-size: 1rem;
    white-space: normal;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.vps-submit-btn .small {
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.95;
}

/* Compact Balance Alert - Hiển thị ở vị trí nút submit */
.balance-alert-compact {
    height: 100%;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.balance-alert-content {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.balance-alert-content i {
    font-size: 1.5rem;
    color: #ffc107;
}

.balance-alert-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.balance-alert-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.balance-alert-amount {
    font-size: 0.9rem;
    color: #856404;
}

.balance-alert-amount strong {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1rem;
}

/* Compact Summary Info */
.summary-info-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 50px;
}

.summary-info-compact i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.summary-info-label-small {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.15rem;
}

.summary-info-value-small {
    font-size: 0.85rem;
    color: #212529;
    font-weight: 600;
    line-height: 1.2;
}

/* Compact Price Items */
.price-item-compact {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-item-compact.price-total-compact {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 1px solid var(--primary-color);
}

.price-label-small {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.15rem;
}

.price-value-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.price-value-total {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-item.price-total {
    border-left: 2px solid var(--primary-color);
    padding-left: 1rem;
}

.price-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.price-item.price-total .price-value {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.balance-info-simple {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.balance-simple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.balance-simple-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.balance-simple-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.balance-simple-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.balance-alert-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.balance-alert-warning i {
    color: #856404;
    font-size: 1.2rem;
}

.balance-alert-warning span {
    flex: 1;
    color: #856404;
}

.balance-alert-warning strong {
    color: #856404;
    font-weight: 700;
}

.balance-alert-warning .btn {
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.balance-alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #d1e7dd;
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #0f5132;
}

.balance-alert-success i {
    color: var(--success-color);
    font-size: 1.2rem;
}


/* Plan Card Styles (similar to vps-toiuu) */

.plan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.plan-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.plan-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.plan-datacenter {
    margin-bottom: 0.75rem;
}

.plan-datacenter small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.plan-datacenter i {
    font-size: 0.9rem;
}

.plan-pricing-table {
    margin-top: 1rem;
}

.plan-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.plan-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.plan-specs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.plan-specs li:last-child {
    border-bottom: none;
}

.plan-specs li i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.os-badge-clickable {
    cursor: pointer;
    user-select: none;
}

.os-badge-clickable:hover {
    background: #e9ecef;
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* OS List Popup */

.os-list-popup {
    position: fixed;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    min-width: 280px;
    max-width: 400px;
    max-height: 400px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    pointer-events: none;
}

.os-list-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.os-list-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0.75rem 0.75rem 0 0;
}

.os-list-popup-header h6 {
    margin: 0;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
}

.os-list-popup-body {
    padding: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
}

.os-list-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    color: #495057;
}

.os-list-item:hover {
    background: #f8f9fa;
}

.os-list-item:last-child {
    margin-bottom: 0;
}

.os-list-item i {
    font-size: 0.875rem;
}


/* Scrollbar styling for popup */

.os-list-popup-body::-webkit-scrollbar {
    width: 6px;
}

.os-list-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.os-list-popup-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.os-list-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Pricing Table Styles (for plan cards) */

.vps-cycle-table {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.vps-cycle-table th,
.vps-cycle-table td {
    text-align: center;
    padding: 4px 0;
}

.vps-cycle-table th {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

.vps-cycle-table td {
    font-size: 16px;
}

.cycle-label {
    text-align: left;
    color: #333;
    font-size: 15px;
    min-width: 80px;
    font-weight: 400;
}

.cycle-price {
    text-align: right;
    font-weight: bold;
    color: #1976d2;
    font-size: 15px;
    min-width: 100px;
    letter-spacing: 0.5px;
}

.cycle-discount {
    text-align: center;
    font-size: 14px;
    padding: 3px 12px;
    border-radius: 14px;
    background: #43a047 !important;
    color: #fff !important;
    font-weight: 500;
    min-width: 56px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(67, 160, 71, 0.12);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
}

.plan-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid #dee2e6;
}


/* Loading Overlay - Modern Design */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.loading-spinner-modern {
    width: 80px;
    height: 80px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.loading-text-modern h5 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.loading-text-modern p {
    font-size: 0.9rem;
    color: #6c757d;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%,
    20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%,
    100% {
        content: '...';
    }
}


/* Skeleton Loading - Modern Design */

.skeleton-plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.skeleton-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.skeleton {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text.long {
    height: 24px;
    width: 80%;
}

.skeleton-text.medium {
    height: 18px;
    width: 60%;
}

.skeleton-text.short {
    height: 16px;
    width: 40%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Plan Info Quick Display - Compact */

.plan-info-quick {
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.plan-info-item {
    font-size: 0.85rem;
    color: var(--dark-color);
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    flex-wrap: wrap;
}

.plan-info-item strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.plan-info-item span {
    color: #495057;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}


/* VPS Tabs Styles - Premium Design */

.vps-tabs-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.vps-tabs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #2563eb 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.vps-tabs {
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vps-tabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.vps-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.vps-tabs .nav-link:hover::before {
    opacity: 1;
}

.vps-tabs .nav-link i {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.vps-tabs .nav-link span {
    position: relative;
    z-index: 1;
}

.vps-tabs .nav-link:hover {
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.vps-tabs .nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #2563eb;
}

.vps-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.vps-tabs .nav-link.active::before {
    opacity: 0;
}

.vps-tabs .nav-link.active i {
    color: white;
    transform: scale(1.1);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

.vps-tabs .nav-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Tab Description - Premium */

.tab-description-container {
    padding: 1rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.tab-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-description::before {
    content: 'ℹ️';
    font-size: 1.1rem;
    opacity: 0.7;
}

.vps-tabs-container button {
    border-radius: 12px;
}

.oscuavps {
    display: none;
}


/* Responsive tabs */

@media (max-width: 768px) {
    .vps-tabs-container {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    
    .vps-tabs-container::before {
        height: 2px;
    }
    
    .vps-tabs {
        display: flex;
        flex-wrap: nowrap;
        min-width: max-content;
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .vps-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .vps-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .vps-tabs::-webkit-scrollbar-thumb {
        background: rgba(37, 99, 235, 0.3);
        border-radius: 2px;
    }
    
    .vps-tabs .nav-link {
        white-space: nowrap;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .vps-tabs .nav-link i {
        font-size: 1rem;
    }
    
    .tab-description-container {
        padding: 0.75rem 0 0.5rem 0;
        flex-wrap: wrap;
    }
    
    .tab-description {
        font-size: 0.875rem;
    }
}

td.cycle-label,
td.cycle-price {
    color: white;
}

@media (max-width: 600px) {
    .vps-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        flex-direction: column;
    }
}

/* ============================================
   VPS SEO Content Section - I2 Style
   ============================================ */

.vps-seo-section {
    background: var(--i2-bg-secondary, #f9fafb);
    margin-top: 4rem;
}

/* VPS Introduction Section */
.vps-intro-i2 {
    padding: 3rem 0;
}

.vps-intro-i2 .section-badge-i2 {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--i2-primary, #2563eb) 0%, var(--i2-secondary, #7c3aed) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.vps-intro-i2 .section-title-i2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--i2-text-primary, #1f2937);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.vps-intro-i2 .section-description-i2 {
    font-size: 1.1rem;
    color: var(--i2-text-secondary, #6b7280);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stat-item-i2 {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--i2-border-radius, 16px);
    box-shadow: var(--i2-shadow-sm);
    flex: 1;
    min-width: 120px;
}

.stat-number-i2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--i2-primary, #2563eb);
    margin-bottom: 0.5rem;
}

.stat-label-i2 {
    font-size: 0.875rem;
    color: var(--i2-text-secondary, #6b7280);
    font-weight: 600;
}

.vps-intro-image-i2 {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-icon-i2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--i2-primary, #2563eb) 0%, var(--i2-secondary, #7c3aed) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: var(--i2-shadow-xl);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-icon-i2 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--i2-primary, #2563eb);
    box-shadow: var(--i2-shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-icon-i2.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-i2.icon-2 {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.floating-icon-i2.icon-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Use Cases Section */
.use-cases-section-i2 {
    background: var(--i2-bg-light, #f3f4f6);
}

.use-case-card-i2 {
    background: white;
    border-radius: var(--i2-border-radius, 16px);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--i2-shadow-sm);
    transition: var(--i2-transition);
    height: 100%;
}

.use-case-card-i2:hover {
    transform: translateY(-8px);
    box-shadow: var(--i2-shadow-xl);
}

.use-case-icon-i2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--i2-primary, #2563eb) 0%, var(--i2-secondary, #7c3aed) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--i2-shadow-md);
}

.use-case-title-i2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--i2-text-primary, #1f2937);
    margin-bottom: 1rem;
}

.use-case-desc-i2 {
    font-size: 0.95rem;
    color: var(--i2-text-secondary, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* Benefits Section */
.benefits-section-i2 {
    padding: 4rem 0;
}

.benefit-list-i2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item-i2 {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-icon-i2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--i2-success, #10b981) 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--i2-shadow-md);
}

.benefit-content-i2 {
    flex: 1;
}

.benefit-title-i2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--i2-text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.benefit-desc-i2 {
    font-size: 1rem;
    color: var(--i2-text-secondary, #6b7280);
    line-height: 1.7;
    margin: 0;
}

.benefits-image-i2 {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-box-i2 {
    background: white;
    border-radius: var(--i2-border-radius, 16px);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--i2-shadow-lg);
    min-width: 150px;
    transition: var(--i2-transition);
}

.stat-box-i2:hover {
    transform: scale(1.1);
    box-shadow: var(--i2-shadow-xl);
}

.stat-box-i2 i {
    font-size: 2.5rem;
    color: var(--i2-primary, #2563eb);
    margin-bottom: 1rem;
}

.stat-box-i2 h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--i2-text-primary, #1f2937);
    margin: 0.5rem 0;
}

.stat-box-i2 p {
    font-size: 0.875rem;
    color: var(--i2-text-secondary, #6b7280);
    font-weight: 600;
    margin: 0;
}

/* FAQ Section */
.faq-section-i2 {
    background: var(--i2-bg-light, #f3f4f6);
}

.accordion-i2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.accordion-item-i2 {
    background: white;
    border-radius: var(--i2-border-radius, 16px);
    box-shadow: var(--i2-shadow-sm);
    overflow: visible;
    transition: var(--i2-transition);
    position: relative;
    z-index: 1;
}

.accordion-item-i2 .accordion-collapse {
    overflow: hidden;
}

.accordion-item-i2:hover {
    box-shadow: var(--i2-shadow-md);
}

.accordion-header-i2 {
    margin: 0;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.accordion-header-i2 button {
    pointer-events: auto;
}

.accordion-button-i2 {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--i2-text-primary, #1f2937);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--i2-transition);
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

.accordion-button-i2:not(.collapsed) {
    color: var(--i2-primary, #2563eb);
    background: var(--i2-bg-secondary, #f9fafb);
}

.accordion-button-i2::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    pointer-events: none;
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-button-i2:not(.collapsed)::after {
    content: '−';
    transform: rotate(0deg);
}

.accordion-body-i2 {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-body-i2 p {
    font-size: 1rem;
    color: var(--i2-text-secondary, #6b7280);
    line-height: 1.8;
    margin: 0;
}

/* Ensure AOS doesn't interfere with clicks */
.accordion-item-i2[data-aos] {
    pointer-events: auto;
}

.accordion-item-i2[data-aos] .accordion-button-i2 {
    pointer-events: auto !important;
    z-index: 100 !important;
    position: relative;
}

/* Fix for any overlay issues */
.faq-section-i2 {
    position: relative;
    z-index: 1;
}

.faq-section-i2 * {
    position: relative;
}

.faq-section-i2 .accordion-button-i2 {
    z-index: 1000 !important;
}

/* VPS CTA Section - Light and Elegant Style */
.vps-cta-section {
    padding: 4rem 0;
    background: var(--i2-bg-secondary, #f9fafb);
}

.vps-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--i2-border-radius-lg, 24px);
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--i2-shadow-sm);
    transition: var(--i2-transition);
    max-width: 900px;
    margin: 0 auto;
}

.vps-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--i2-primary, #2563eb) 0%, var(--i2-secondary, #7c3aed) 100%);
    opacity: 0.6;
}

.vps-cta-card:hover {
    box-shadow: var(--i2-shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.vps-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--i2-text-primary, #1f2937);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.vps-cta-description {
    font-size: 1.1rem;
    color: var(--i2-text-secondary, #6b7280);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.vps-cta-btn {
    background: linear-gradient(135deg, var(--i2-primary, #2563eb) 0%, var(--i2-primary-dark, #1d4ed8) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: var(--i2-shadow-md);
    transition: var(--i2-transition);
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.vps-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--i2-shadow-lg);
    background: linear-gradient(135deg, var(--i2-primary-dark, #1d4ed8) 0%, var(--i2-primary, #2563eb) 100%);
    color: white;
    text-decoration: none;
}

.vps-cta-btn i {
    font-size: 1.2rem;
}

/* Responsive cho Quantity, Hostname, Password */
@media (max-width: 575.98px) {
    /* Mobile: Stack vertically */
    .vps-config-section .col-md-9 .row > div {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Tablet: Adjust column widths */
    .vps-config-section .col-md-9 .row > .col-md-2 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    .vps-config-section .col-md-9 .row > .col-md-5 {
        flex: 0 0 35%;
        max-width: 35%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vps-intro-i2 .section-title-i2 {
        font-size: 2rem;
    }
    
    .vps-intro-image-i2 {
        height: 300px;
        margin-top: 2rem;
    }
    
    .main-icon-i2 {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .floating-icon-i2 {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefits-image-i2 {
        height: auto;
        margin-top: 2rem;
    }
    
    .stat-box-i2 {
        min-width: 120px;
        padding: 1.5rem;
    }
    
    .vps-cta-card {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
    }
    
    .vps-cta-title {
        font-size: 1.75rem;
    }
    
    .vps-cta-description {
        font-size: 1rem;
    }
    
    .vps-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}