@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* style.css - CSS chung cho toàn site */

body {
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    line-height: 1.4;
    background: #f8f9fa;
    font-size: 16px;
    line-height: 1.4;
}


body.light-mode .modern-header-wrapper .nav-link:hover {
    color: yellow !important;
}

.hero-main-title,
.section-title,
.title-main,
.footer-cta-title,
.faq-header h3,
.titdichvu {
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.4;
}

.titdichvu {
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-style: normal;
}

.header-row-2 .user-info-card {
    font-size: 12px !important;
    padding: 8px 12px !important;
}

.login-card {
    max-width: 500px;
    width: 90%;
    margin: 5% auto;
    border-radius: 1.2rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.login-card img {
    width: 80%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
    margin-bottom: 15px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.form-control:focus {
    box-shadow: 0 0 0 2px #19875433;
    border-color: #198754;
}

h1 {
    font-size: 20px;
    margin: 10px 0;
    font-weight: bold;
}

h2 {
    font-size: 16px;
    margin: 10px 0;
    font-weight: bold;
}

a {
    color: red;
    transition: .3s;
}

a:hover {
    color: green;
}

a:link,
a:visited,
a:hover {
    text-decoration: none;
}

p {
    margin: 5px 0;
}

.col-lg-4.col-md-6.mb-4 {
    height: 100%;
}

.titdichvu {
    font-size: 25px;
    margin: 25px 0;
    font-weight: bold;
}

.lang-switcher {
    font-size: 24px;
    gap: 10px !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;
}

.thongbaodeal {
    background: linear-gradient(270deg, #ff4e50, #f9d423, #ff4e50);
    background-size: 600% 600%;
    animation: moveGradient 10s ease infinite;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 20px auto;
    width: 95%;
    max-width: 700px;
}

.bannerhead {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 40px;
}

.bannerhead img {
    width: 100%;
    border-radius: 1.2rem;
    height: auto;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 1450px) {
    .header-user {
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        /* width: 100%; */
    }
}

@media (max-width: 600px) {
    .header-balance {
        flex: 100% !important;
        text-align: center;
        justify-content: center;
    }
    .header-user {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .lang-switcher {
        width: 60px;
    }
    button#mobileMenuBtn {
        width: 45px;
    }
    .header-main {
        padding: 10px !important;
    }
    .bannerhead {
        margin: -10px auto 0;
    }
}


/* CSS cho tab navigation - Thêm mới */

.nav-pills {
    gap: 5px;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #dee2e6; */
}

.nav-pills .nav-item {
    margin: 0 2px;
}

.nav-pills .nav-link {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
    .nav-pills .nav-link {
        padding: 5px;
        font-size: 13px;
    }
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
    color: #007bff;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}


/* Badge styling */

.nav-pills .nav-link .badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    /* background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important; */
    background: linear-gradient(135deg, #dc35455c 0%, #c8233326 100%) !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover .badge {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
}

.nav-pills .nav-link.active .badge {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border-color: #fff;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}


/* Icon styling */

.tab-icon {
    margin-right: 8px;
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-pills .nav-link.active .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}


/* Billing card styling without icon */

.billing-card {
    padding: 18px 15px;
}

.billing-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.3;
}

.billing-card.selected .billing-name {
    color: white;
}


/* Special styling for navigation links */

.nav-pills .nav-link[href="/vpsngay"],
.nav-pills .nav-link[href="/vps"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border-color: #28a745;
    margin-left: auto;
}

.nav-pills .nav-link[href="/vpsngay"]:hover,
.nav-pills .nav-link[href="/vps"]:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}


/* CSS cho popup tạo VPS - Thêm mới */

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 900px;
    /* Tăng kích thước tối đa */
}


/* Responsive modal sizing */

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 800px;
        /* Tăng từ 500px mặc định */
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 900px;
        /* Còn rộng hơn nữa trên màn hình lớn */
    }
}


/* Modal sizing cho vps.php */

#dichvuModal.modal-dialog {
    max-width: 100% !important;
}

#dichvuModal .modal-content {
    max-width: 100% !important;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    font-size: 18px;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 25px;
}


/* OS Selection Cards */

.os-selection,
.billing-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.os-card,
.billing-card {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.os-card:hover,
.billing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.os-card.selected,
.billing-card.selected {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.os-card.selected .os-icon,
.billing-card.selected .billing-icon {
    color: #ffc107;
}

.os-card.selected .os-name,
.billing-card.selected .billing-name,
.billing-card.selected .billing-price {
    color: #333;
}

.os-icon,
.billing-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.billing-icon {
    display: none;
}

.os-name,
.billing-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #495057;
    line-height: 1.3;
}

.billing-price {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.os-card.selected .billing-price {
    color: #ffc107;
}


/* Discount badge styling */

.discount-badge {
    margin: 5px 0 0 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.discount-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}


/* Enhanced price styling */

.billing-card .billing-price {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 900;
    margin-top: 10px;
    padding: 10px 5px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    text-align: center;
    /* position: relative; */
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.billing-card .billing-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: linear-gradient(90deg, #007bff, #28a745, #ffc107); */
    opacity: 0.8;
}

.billing-card:hover .billing-price {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    transform: translateY(-3px) scale(1.03);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25);
}

.billing-card.selected .billing-price {
    /* background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); */
    color: #8b6914;
    /* border-color: #ffc107; */
    /* box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5); */
    transform: translateY(-2px);
    /* border-width: 3px; */
}

.billing-card.selected .billing-price::before {
    /* background: linear-gradient(90deg, #ffc107, #fd7e14, #e83e8c); */
    opacity: 1;
    height: 5px;
}

.billing-card.selected .billing-price .discount-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.5);
    transform: scale(1.15);
    transition: all 0.3s ease;
}


/* Form styling improvements */

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    border: 2px solid #e9ecef;
    border-left: none;
    padding: 12px 16px;
    font-weight: 600;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
}


/* Modal footer */

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    display: flex;
    justify-content: center;
}

.modal-footer .btn {
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}


/* Responsive */

@media (max-width: 576px) {
    .os-selection,
    .billing-selection {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .os-card,
    .billing-card {
        padding: 12px;
    }
    .os-icon,
    .billing-icon {
        font-size: 20px;
    }
    .os-name,
    .billing-name {
        font-size: 12px;
    }
}


/* Responsive form layout */

@media (max-width: 700px) {
    .row .col-md-6 {
        margin-bottom: 15px;
    }
    .row .col-md-6:last-child {
        margin-bottom: 0;
    }
    /* Stack form fields vertically on small screens */
    .modal-body .row {
        flex-direction: column;
    }
    .modal-body .col-md-6 {
        width: 100%;
        max-width: none;
    }
    /* Adjust input group spacing */
    .input-group {
        margin-bottom: 0;
    }
    /* Make buttons smaller on mobile */
    .input-group .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    /* Adjust form control padding */
    .form-control {
        padding: 10px 14px;
    }
}


/* Pagination responsive styles */

.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    align-items: center;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}


/* Refund pagination specific styles */

#refund-pagination .pagination {
    margin: 0;
}

#refund-pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

#refund-pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

#refund-pagination .page-link {
    font-size: 0.875rem;
    padding: 6px 10px;
}

#refund-pagination .page-link i {
    font-size: 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}


/* Responsive pagination for mobile */

@media (max-width: 576px) {
    .pagination {
        gap: 1px;
    }
    .pagination .page-link {
        padding: 6px 8px;
        font-size: 14px;
    }
}