:root {
    --bs-font-sans-serif: 'Roboto', sans-serif !important;
    --bs-body-font-family: 'Roboto', sans-serif !important;
}

body,
input,
button,
select,
optgroup,
textarea,
.form-control,
.form-select,
.btn,
.navbar,
.nav,
.nav-link,
.dropdown-menu,
.dropdown-item,
.card,
.modal,
.table,
h1, h2, h3, h4, h5, h6,
p,
div,
span:not([class*="fa-"]):not([class*="bi-"]):not([class*="ri-"]):not([class*="feather-"]):not(.icon):not(.feather-icon),
a:not([class*="fa-"]):not([class*="bi-"]):not([class*="ri-"]) {
    font-family: 'Roboto', sans-serif !important;
}

div#\:0\.targetLanguage,
a.VIpgJd-ZVi9od-l4eHX-hSRGPd {
    display: none;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

select.goog-te-combo {
    width:100%;
    border: 1px solid #dcdcdc;
    padding: 8px;
}

.skiptranslate:not(.goog-te-gadget) {
    visibility: hidden !important;
}

.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {
    visibility: hidden !important;
}

body {
    top: 0 !important;
}

.skiptranslate goog-te-gadget {
    display: inline;
}

#google_translate_element {
    display: inline;
    position: absolute;
    left: -140px;
    top: -20px;
}

.nav-item {
    position: relative;
}

#google_translate_element,
.skiptranslate.goog-te-gadget,
.skiptranslate.goog-te-gadget>div {
    display: inline !important;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.ovl-auto {
    overflow: auto;
}

.checkbox:checked+img {
    border: 3px solid #21da11;
    position: relative;
    top: -3px;
    transform: scale(1.2);
}

.svg-icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Chống FOUC (Flash of Unstyled Content) cho menu Sản Phẩm & Dịch Vụ */
.hk-menu .nav-children.collapse:not(.show) {
    display: none !important;
}
.hk-menu .nav-children.collapsing {
    display: block;
}
.hk-menu .nav-children.collapse.show {
    display: block !important;
}

span.nav-link-text {
    font-weight: 500;
}

.nav-item span.badge.ms-auto {
    font-size: 12px;
}

.nav-link {
    white-space: normal !important;
}


.hk-wrapper[data-menu=dark] .hk-pg-wrapper {
    background-color: #f5f6fa;
}

@media (min-width: 992px) {
    .hk-wrapper[data-menu=dark] button.btn.btn-icon.btn-rounded.btn-flush-dark.flush-soft-hover.navbar-toggle {
        color: #fff;
    }
}

@media (max-width: 992px) {
    .dataTables_length {
        margin-bottom: 10px;
    }

    .dataTables_filter {
        margin-bottom: 10px;
    }
}

div.dataTables_wrapper div.dataTables_filter input {
    width: auto !important;
}

.card .card-header {
    display: block !important;
}

.new_updates {
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #ced6e0;
    border-radius: 2px;
}

/* ========================================================
   Server Selection Cards & Service Badges (Loaded in <head>)
   ======================================================== */
.server-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.server-choice-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.server-choice-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.08);
}
.server-choice-card:has(.server-radio:checked),
.server-choice-card.active {
    border-color: #2563eb;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.server-choice-card.server-disabled {
    opacity: 0.6;
    background: #f8fafc;
    border-color: #cbd5e1;
    cursor: not-allowed;
}
.server-choice-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
}
.server-radio-col {
    padding-top: 3px;
}
.server-radio {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.server-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.server-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.badge-sv-tag {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.server-detail-text {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
}
.server-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.badge-frame {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    white-space: nowrap;
}
/* Khung Tốc độ */
.badge-frame-speed {
    background-color: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}
/* Khung Get UID */
.badge-frame-uid {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
/* Khung Cảm xúc */
.badge-frame-reaction {
    background-color: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}
/* Khung Bình luận */
.badge-frame-comment {
    background-color: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
/* Khung Giá bán */
.badge-frame-price {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    border: 1px solid #059669;
    font-weight: 700;
}
/* Khung Trạng thái Hoạt động */
.badge-frame-active {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
/* Khung Trạng thái Bảo trì */
.badge-frame-inactive {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ========================================================
   SweetAlert & Order Confirmation Modal Styling
   ======================================================== */
.swal2-modal-order-custom {
    border-radius: 18px !important;
    padding: 26px 22px !important;
    max-width: 480px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
}

.confirm-icon-pulse {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.icon-circle-glow {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15);
    animation: pulseOrderGlow 2s infinite ease-in-out;
}

@keyframes pulseOrderGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.confirm-order-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13.5px;
}

.confirm-label {
    color: #64748b;
    font-weight: 500;
}

.confirm-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.confirm-row-total {
    border-top: 1.5px dashed #cbd5e1 !important;
}

.confirm-note-footer {
    font-size: 12.5px;
    color: #475569;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.swal2-order-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 16px !important;
}

.order-confirm-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 22px !important;
    min-width: 140px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
    cursor: pointer !important;
}

.order-confirm-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38) !important;
}

.order-cancel-btn {
    border-radius: 8px !important;
    padding: 9px 20px !important;
    min-width: 105px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.order-cancel-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ========================================================
   Modern Notice & Alert Boxes in Service Page
   ======================================================== */
.order-notice-box {
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.order-notice-danger {
    background: #fff5f5 !important;
    border: 1px solid #fed7d7 !important;
    border-left: 4px solid #e53e3e !important;
    color: #2d3748 !important;
}

.order-notice-danger .notice-box-title {
    color: #c53030 !important;
}

.order-notice-info {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 4px solid #16a34a !important;
    color: #1e293b !important;
}

.order-notice-info .notice-box-title {
    color: #15803d !important;
}

.order-notice-warning {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #d97706 !important;
    color: #2d3748 !important;
}

.order-notice-warning .notice-box-title {
    color: #b45309 !important;
}

.notice-box-title {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.notice-box-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.notice-box-list li {
    margin-bottom: 6px;
}

.notice-box-list li:last-child {
    margin-bottom: 0;
}

/* Order Total Card */
.order-total-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.order-total-amount {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
}

.total-currency {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

/* ========================================================
   Global Alert Styles (Soft, modern, card-like)
   ======================================================== */
.alert {
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    border: 1px solid transparent !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.alert-success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    border-left: 4px solid #16a34a !important;
    color: #14532d !important;
}
.alert-success .alert-heading {
    color: #15803d !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 6px !important;
}

.alert-danger {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
    border-left: 4px solid #ef4444 !important;
    color: #7f1d1d !important;
}
.alert-danger .alert-heading {
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 6px !important;
}
.alert-danger ul {
    margin-bottom: 0 !important;
    padding-left: 20px !important;
}
.alert-danger li {
    color: #991b1b !important;
}

.alert-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    border-left: 4px solid #f59e0b !important;
    color: #78350f !important;
}
.alert-warning .alert-heading {
    color: #d97706 !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 6px !important;
}

.alert-info {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
    color: #1e3a8a !important;
}
.alert-info .alert-heading {
    color: #2563eb !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    margin-bottom: 6px !important;
}

/* Legacy .alert.bg-* overrides */
.alert.bg-danger {
    background: #fff5f5 !important;
    color: #2d3748 !important;
    border: 1px solid #fed7d7 !important;
    border-left: 4px solid #ef4444 !important;
}
.alert.bg-danger h4,
.alert.bg-danger .text-white {
    color: #dc2626 !important;
}

.alert.bg-secondary {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #64748b !important;
}
.alert.bg-secondary h4,
.alert.bg-secondary .text-white {
    color: #334155 !important;
}

.alert.bg-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.alert.bg-success {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}
.alert.bg-success h3,
.alert.bg-success .text-white {
    color: #15803d !important;
}

/* SweetAlert2 Global Enhancement */
.swal2-popup {
    border-radius: 18px !important;
    font-family: 'Roboto', sans-serif !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}
.swal2-title {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 20px !important;
}
.swal2-html-container {
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.swal2-close {
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    color: #94a3b8 !important;
}
.swal2-close:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

/* ========================================================
   Rank & Level Upgrade Cards (upgrade.blade.php)
   ======================================================== */
.rank-card-col {
    display: flex;
}

.rank-pricing-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.rank-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

/* Card Header & Accent */
.rank-card-header {
    padding: 24px 20px 12px 20px;
    text-align: center;
    position: relative;
}

.rank-name-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Rank Badge Ribbons */
.rank-badge-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.rank-ribbon-hot {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rank-ribbon-vip {
    background: #ffe4e6;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.rank-current-user-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Specific Rank Color Accents */
.rank-card-level1 {
    border-top: 5px solid #0284c7;
}
.rank-card-level1:hover {
    border-color: #0284c7;
}
.rank-card-level1 .rank-name-title {
    color: #0284c7;
}

.rank-card-level2 {
    border-top: 5px solid #4f46e5;
}
.rank-card-level2:hover {
    border-color: #4f46e5;
}
.rank-card-level2 .rank-name-title {
    color: #4f46e5;
}

.rank-card-level3 {
    border-top: 5px solid #d97706;
}
.rank-card-level3:hover {
    border-color: #d97706;
}
.rank-card-level3 .rank-name-title {
    color: #d97706;
}

.rank-card-level4 {
    border-top: 5px solid #7c3aed;
}
.rank-card-level4:hover {
    border-color: #7c3aed;
}
.rank-card-level4 .rank-name-title {
    color: #7c3aed;
}

.rank-card-level5 {
    border-top: 5px solid #e11d48;
}
.rank-card-level5:hover {
    border-color: #e11d48;
}
.rank-card-level5 .rank-name-title {
    color: #e11d48;
}

/* Icon Wrap */
.rank-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 14px 0 16px 0;
    transition: transform 0.3s ease;
}

.rank-pricing-card:hover .rank-icon-wrap {
    transform: scale(1.08);
}

/* Price Section */
.rank-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 16px;
}

.rank-price-amount {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.rank-price-unit {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 6px;
}

/* Features List */
.rank-features-card {
    padding: 18px 22px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    flex-grow: 1;
}

.rank-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-features-list li {
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 11px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.rank-features-list li:last-child {
    margin-bottom: 0;
}

.rank-features-list li i {
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 10px;
}

/* Action Button */
.rank-action-area {
    padding: 20px 22px 24px 22px;
}

.rank-btn-upgrade {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    color: #ffffff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    text-decoration: none !important;
    width: 100%;
}

.rank-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.rank-btn-level1 {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}
.rank-btn-level2 {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}
.rank-btn-level3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}
.rank-btn-level4 {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.rank-btn-level5 {
    background: linear-gradient(135deg, #e11d48, #be123c);
}

.rank-btn-current {
    background: #e2e8f0 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: default !important;
}


