/* Style cho header, menu, card, badge, submenu... */

.header-main {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-radius: 1.2rem;
    margin-bottom: 24px;
    padding: 16px 32px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: .3s;
}

.header-main:hover {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px #eee;
    object-fit: cover;
    border: 2px solid #fff;
}

.header-menu {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-menu .nav-link {
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 18px;
    border-radius: 2rem;
    transition: background 0.2s, color 0.2s;
}

.header-menu .nav-link.active,
.header-menu .nav-link:hover {
    background: #f0f4ff;
    color: #0d6efd;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-balance {
    background: #e9f7ef;
    color: #198754;
    border-radius: 1.2rem;
    padding: 0.4rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 225px;
    overflow: hidden;
    align-content: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
}

.header-balance .tenkhach {
    font-size: 12px;
    flex: 100%;
}

.header-balance .emailkhach {
    font-size: 12px;
    flex: 100%;
}

.header-balance .sodukhach {
    font-size: 12px;
    flex: 100%;
}

.header-actions .btn {
    margin-left: 8px;
}

@media (max-width: 600px) {
    .header-balance {
        max-width: 100%;
    }
    .header-balance,
    .header-balance .tenkhach,
    .header-balance .emailkhach,
    .header-balance .sodukhach {
        font-size: 14px;
    }
}


/* Submenu */

.dropdown-menu {
    border-radius: 1rem;
    min-width: 180px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    font-size: 1rem;
    padding: 10px 18px;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover {
    background: #f0f4ff;
    color: #0d6efd;
}


/* Card, badge, ... giữ nguyên như cũ hoặc copy từ style cũ */

.plan-card {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e3e8ee;
    background: linear-gradient(135deg, #fafdff 80%, #e3f0ff 100%);
    transition: box-shadow 0.25s, border-color 0.2s, transform 0.18s;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
}

.plan-card:hover {
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18), 0 2px 8px rgba(0, 0, 0, 0.07);
    border-color: #1976d2;
    transform: translateY(-3px) scale(1.012);
    background: linear-gradient(135deg, #fafdff 60%, #e3f0ff 100%);
}

.plan-header {
    padding: 26px 26px 0 26px;
}

.plan-header h4 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #222;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1976d2 60%, #00c6fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.plan-body {
    padding: 0 26px 26px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    margin-bottom: 7px;
    color: #222;
    font-weight: 500;
}

.plan-specs i {
    color: #1976d2;
    font-size: 1.25em;
    min-width: 22px;
    text-align: center;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e3f0ff;
    color: #1976d2;
    border-radius: 16px;
    padding: 4px 16px 4px 12px;
    font-size: 1em;
    font-weight: 700;
    border: 1.5px solid #b6d6fa;
    margin-right: 8px;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.04);
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.os-badge:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.os-badge[title="Linux"]:before {
    /* background-image: url('data:image/svg+xml;utf8,<svg fill="%231976d2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/></svg>'); */
}

.os-badge[title="Windows"]:before {
    /* background-image: url('data:image/svg+xml;utf8,<svg fill="%231976d2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="8" x="2" y="4"/><rect width="20" height="8" x="2" y="12"/></svg>'); */
}

.os-badge:hover,
.os-badge:focus {
    background: #69e78f23;
    color: red;
    border-color: red;
}

.btn-chon-goi {
    border-radius: 14px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 15px 10px;
    margin-top: 18px;
    /* max-width: 200px; */
    background: linear-gradient(124deg, #19d28a99 60%, #19d28a2e 100%);
    border: none;
    color: #637b54;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-chon-goi:hover,
.btn-chon-goi:focus {
    background: linear-gradient(90deg, #1251a3 60%, #00a6e0 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.16);
    transform: translateY(-2px) scale(1.01);
}

.cacgoivps {
    width: 95%;
    max-width: 1300px;
    margin: auto;
}

.os-badge::before {
    display: none;
}

@media (max-width: 600px) {
    .plan-header,
    .plan-body {
        padding: 12px;
    }
    .plan-header h4 {
        font-size: 1.08rem;
    }
    .plan-price {
        font-size: 1.01rem;
    }
    .btn-chon-goi {
        font-size: 1rem;
        padding: 12px 0;
    }
}

.btn-menu {
    background: none;
    border: none;
    color: #1976d2;
    margin-left: 10px;
    padding: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 32, 64, 0.18);
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu-content {
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 24px 24px 24px;
    min-height: 320px;
    animation: slideUp 0.25s;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.btn-close-menu {
    position: absolute;
    right: 18px;
    top: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1976d2;
}

.mobile-menu-content .nav-link,
.mobile-menu-content .dropdown-toggle {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 16px;
}

.mobile-menu-content .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    background: #f5faff;
    border-radius: 10px;
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    .btn-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}