/* ============================================================================
   XVPSVN.COM — DESIGN SYSTEM, OBSIDIAN/VIOLET DARK & SNOW LIGHT THEMES
   Responsive: Desktop (>=1200px), Tablet (768-1199px), Mobile (<768px)
   ============================================================================ */

:root,
:root[data-theme="dark"] {
    color-scheme: dark;
    --xv-bg: #09090b;
    --xv-bg-elevated: #0e0e13;
    --xv-surface: #111117;
    --xv-surface-2: #16161f;
    --xv-surface-3: #1c1c27;
    --xv-surface-hover: #21212f;
    --xv-border: #252534;
    --xv-border-strong: #35354a;
    --xv-text: #f4f4f8;
    --xv-text-muted: #9ca3af;
    --xv-text-dim: #6b7280;
    --xv-accent: #7c3aed;
    --xv-accent-bright: #8b5cf6;
    --xv-accent-hover: #6d28d9;
    --xv-accent-soft: rgba(124, 58, 237, 0.14);
    --xv-accent-border: rgba(139, 92, 246, 0.45);
    --xv-accent-glow: rgba(124, 58, 237, 0.25);
    --xv-blue: #3b82f6;
    --xv-cyan: #38bdf8;
    --xv-success: #22c55e;
    --xv-success-soft: rgba(34, 197, 94, 0.14);
    --xv-warning: #f59e0b;
    --xv-warning-soft: rgba(245, 158, 11, 0.14);
    --xv-danger: #ef4444;
    --xv-danger-soft: rgba(239, 68, 68, 0.14);
    --xv-info: #38bdf8;
    --xv-info-soft: rgba(56, 189, 248, 0.14);
    --xv-header-bg: rgba(12, 12, 18, 0.92);
    --xv-input-bg: #0c0c12;
    --xv-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
    --xv-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28);
    --xv-sidebar-w: 248px;
    --xv-topbar-h: 60px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --xv-bg: #f4f5f8;
    --xv-bg-elevated: #eceef4;
    --xv-surface: #ffffff;
    --xv-surface-2: #f8fafc;
    --xv-surface-3: #f1f5f9;
    --xv-surface-hover: #f1f5f9;
    --xv-border: #e2e8f0;
    --xv-border-strong: #cbd5e1;
    --xv-text: #09090b;
    --xv-text-muted: #475569;
    --xv-text-dim: #64748b;
    --xv-accent: #7c3aed;
    --xv-accent-bright: #6d28d9;
    --xv-accent-hover: #5b21b6;
    --xv-accent-soft: rgba(124, 58, 237, 0.10);
    --xv-accent-border: rgba(124, 58, 237, 0.35);
    --xv-accent-glow: rgba(124, 58, 237, 0.16);
    --xv-blue: #2563eb;
    --xv-cyan: #0284c7;
    --xv-success: #16a34a;
    --xv-success-soft: rgba(22, 163, 74, 0.10);
    --xv-warning: #d97706;
    --xv-warning-soft: rgba(217, 119, 6, 0.10);
    --xv-danger: #dc2626;
    --xv-danger-soft: rgba(220, 38, 38, 0.10);
    --xv-info: #0284c7;
    --xv-info-soft: rgba(2, 132, 199, 0.10);
    --xv-header-bg: rgba(255, 255, 255, 0.94);
    --xv-input-bg: #ffffff;
    --xv-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    --xv-shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.04);
    --xv-sidebar-w: 248px;
    --xv-topbar-h: 60px;
}

/* Global Base & Zero Horizontal Overflow */
html, body {
    background-color: var(--xv-bg) !important;
    color: var(--xv-text);
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Brand Logo Adaptive Swap */
:root[data-theme="dark"] .xv-logo-light,
:root:not([data-theme]) .xv-logo-light {
    display: none !important;
}
:root[data-theme="light"] .xv-logo-dark {
    display: none !important;
}

/* ============================================================================
   TOP HEADER BAR (SHARED DESKTOP / TABLET / MOBILE)
   ============================================================================ */
.xv-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--xv-topbar-h);
    background: var(--xv-header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--xv-border);
    z-index: 1045;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 0;
}

.xv-topbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
    flex: 1;
    margin-right: 12px;
}

.xv-brand-slot {
    width: var(--xv-sidebar-w);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-right: 1px solid var(--xv-border);
    transition: width 0.22s ease;
    flex-shrink: 0;
}

.xv-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.xv-logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.xv-sidebar-toggle {
    width: 38px;
    height: 38px;
    margin-left: 14px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
    flex-shrink: 0;
}

.xv-sidebar-toggle:hover {
    color: var(--xv-text);
    border-color: var(--xv-accent-border);
    background: var(--xv-accent-soft);
}

.xv-topbar-crumb {
    margin-left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--xv-text-muted);
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 460px;
}

.xv-topbar-crumb > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.xv-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Wallet + Deposit Pill (exact match to xvps.vn header) */
.xv-wallet-pill {
    display: inline-flex;
    align-items: center;
    background: var(--xv-surface-2);
    border: 1px solid var(--xv-border);
    border-radius: 10px;
    padding: 3px 4px 3px 11px;
    gap: 10px;
    height: 36px;
}

.xv-wallet-bal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--xv-text);
    white-space: nowrap;
}

.xv-wallet-bal i {
    color: var(--xv-accent-bright);
    font-size: 13px;
}

.xv-wallet-deposit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--xv-accent);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.xv-wallet-deposit:hover {
    background: var(--xv-accent-hover);
    color: #ffffff !important;
}

/* Top Icon / Utility Buttons */
.xv-top-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.xv-top-pill-link:hover {
    border-color: var(--xv-accent-border);
    color: var(--xv-accent-bright);
    background: var(--xv-accent-soft);
}

.xv-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.xv-theme-toggle:hover {
    border-color: var(--xv-accent-border);
    background: var(--xv-accent-soft);
    color: var(--xv-accent-bright);
}

:root[data-theme="dark"] .xv-theme-icon-dark { display: none; }
:root[data-theme="dark"] .xv-theme-icon-light { display: inline-flex; color: #fbbf24; }
:root[data-theme="light"] .xv-theme-icon-light { display: none; }
:root[data-theme="light"] .xv-theme-icon-dark { display: inline-flex; color: #7c3aed; }

.xv-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
}

.xv-icon-btn:hover {
    color: var(--xv-text);
    border-color: var(--xv-border-strong);
    background: var(--xv-surface-hover);
}

.xv-notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--xv-surface-2);
}

.xv-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    cursor: pointer;
    transition: all 0.16s ease;
}

.xv-user-trigger:hover {
    border-color: var(--xv-accent-border);
}

.xv-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xv-user-name {
    font-size: 12.5px;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xv-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 246px;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border-strong);
    border-radius: 14px;
    box-shadow: var(--xv-shadow);
    padding: 8px;
    display: none;
    z-index: 1080;
}

.xv-dropdown-panel.show {
    display: block;
}

.xv-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--xv-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.14s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.xv-dropdown-item:hover {
    background: var(--xv-surface-hover);
    color: var(--xv-accent-bright);
}

.xv-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--xv-text-muted);
}

.xv-dropdown-item:hover i {
    color: var(--xv-accent-bright);
}

/* ============================================================================
   APP SHELL BODY + PERSISTENT / COLLAPSIBLE SIDEBAR
   ============================================================================ */
.xv-shell-body {
    display: flex;
    min-height: 100vh;
    padding-top: var(--xv-topbar-h);
}

.xv-sidebar {
    width: var(--xv-sidebar-w);
    flex-shrink: 0;
    background: var(--xv-surface);
    border-right: 1px solid var(--xv-border);
    position: sticky;
    top: var(--xv-topbar-h);
    height: calc(100vh - var(--xv-topbar-h));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 24px;
    transition: width 0.22s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--xv-border-strong) transparent;
}

.xv-sidebar::-webkit-scrollbar { width: 5px; }
.xv-sidebar::-webkit-scrollbar-thumb { background: var(--xv-border-strong); border-radius: 99px; }

.xv-nav-group-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xv-text-dim);
    padding: 12px 10px 6px;
    white-space: nowrap;
}

.xv-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xv-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--xv-text-muted);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    width: 100%;
    background: transparent;
}

.xv-nav-link-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.xv-nav-link-main i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.xv-nav-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xv-nav-link:hover {
    color: var(--xv-text);
    background: var(--xv-surface-2);
}

.xv-nav-link.active {
    color: var(--xv-text);
    background: var(--xv-accent-soft);
    border-color: var(--xv-accent-border);
    font-weight: 600;
}

.xv-nav-link.active i {
    color: var(--xv-accent-bright);
}

.xv-nav-sub {
    list-style: none;
    margin: 3px 0 4px 16px;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--xv-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xv-nav-sub.collapsed {
    display: none;
}

.xv-nav-sub a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--xv-text-muted);
    text-decoration: none;
    transition: all 0.14s ease;
}

.xv-nav-sub a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: var(--xv-text-dim);
    flex-shrink: 0;
}

.xv-nav-sub a:hover,
.xv-nav-sub a.active {
    color: var(--xv-text);
    background: var(--xv-surface-2);
}

.xv-nav-sub a.active::before {
    background: var(--xv-accent-bright);
    box-shadow: 0 0 0 3px var(--xv-accent-soft);
}

.xv-nav-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--xv-success-soft);
    color: var(--xv-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Desktop Collapsed Rail Mode */
@media (min-width: 1200px) {
    body.xv-sidebar-collapsed .xv-brand-slot {
        width: 72px;
        justify-content: center;
        padding: 0 8px;
    }
    body.xv-sidebar-collapsed .xv-brand-slot .xv-logo-img {
        width: 36px;
        object-fit: cover;
        object-position: left center;
    }
    body.xv-sidebar-collapsed .xv-sidebar {
        width: 72px;
        padding: 14px 8px;
    }
    body.xv-sidebar-collapsed .xv-nav-group-label,
    body.xv-sidebar-collapsed .xv-nav-link-text,
    body.xv-sidebar-collapsed .xv-nav-caret,
    body.xv-sidebar-collapsed .xv-nav-badge,
    body.xv-sidebar-collapsed .xv-nav-sub,
    body.xv-sidebar-collapsed .xv-sidebar-mobile-head {
        display: none !important;
    }
    body.xv-sidebar-collapsed .xv-nav-link {
        justify-content: center;
        padding: 10px;
    }
}

/* Main Content Pane */
.xv-main-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--xv-bg);
}

.xv-content-inner {
    flex: 1;
}

/* Tablet & Mobile Slide Drawer Behavior (< 1200px) */
.xv-sidebar-mobile-head {
    display: none;
}

.xv-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1055;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.xv-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-overlay:not(.opened):not(.active) {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .xv-brand-slot {
        width: auto;
        border-right: none;
        padding: 0 4px 0 14px;
    }
    .xv-topbar-crumb {
        display: none !important;
    }
    .xv-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 274px;
        height: 100vh;
        z-index: 1060;
        transform: translateX(-105%);
        padding-top: 12px;
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
    }
    .xv-sidebar.active {
        transform: translateX(0);
    }
    .xv-sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 6px 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--xv-border);
    }
}

@media (max-width: 767.98px) {
    .xv-topbar {
        padding: 0 10px 0 0;
    }
    .xv-topbar-left {
        margin-right: 6px;
    }
    .xv-brand-slot {
        padding: 0 2px 0 10px;
    }
    .xv-logo-img {
        height: 24px;
    }
    .xv-sidebar-toggle {
        margin-left: 6px;
        width: 32px;
        height: 32px;
    }
    .xv-topbar-right {
        gap: 6px;
    }
    .xv-wallet-pill {
        padding: 2px 3px 2px 8px;
        gap: 5px;
        height: 32px;
    }
    .xv-wallet-bal {
        font-size: 11.5px;
    }
    .xv-wallet-deposit {
        font-size: 10.5px;
        padding: 3px 7px;
    }
    .xv-theme-toggle,
    .xv-icon-btn {
        height: 32px;
        width: 32px;
        min-width: 32px;
        padding: 0;
    }
    .xv-user-name,
    .xv-theme-label {
        display: none !important;
    }
    .xv-user-trigger {
        padding: 2px;
        height: 32px;
    }
    .xv-main-workspace {
        padding-bottom: 68px;
    }
}

@media (max-width: 479.98px) {
    #xvNotifWrap {
        display: none !important;
    }
}

/* Mobile Compact Bottom Bar (< 768px) */
.xv-mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .xv-mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: var(--xv-header-bg);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--xv-border);
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        padding: 4px 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
    }
    .xv-mb-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--xv-text-muted);
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 600;
        background: transparent;
        border: none;
        padding: 4px 2px;
    }
    .xv-mb-item i {
        font-size: 15px;
    }
    .xv-mb-item.active,
    .xv-mb-item:hover {
        color: var(--xv-accent-bright);
    }
}

/* ============================================================================
   SHARED XVPSVN COMPONENT PRIMITIVES
   ============================================================================ */
.xv-card {
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 14px;
    box-shadow: var(--xv-shadow-sm);
}

.xv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 10px;
    font-weight: 600;
    padding: 9px 16px;
    font-size: 13.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.xv-btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.xv-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--xv-surface-2);
    color: var(--xv-text) !important;
    border: 1px solid var(--xv-border);
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.xv-btn-ghost:hover {
    border-color: var(--xv-accent-border);
    background: var(--xv-accent-soft);
    color: var(--xv-accent-bright) !important;
}

.xv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.xv-badge-success { background: var(--xv-success-soft); color: var(--xv-success); border: 1px solid rgba(34, 197, 94, 0.3); }
.xv-badge-warning { background: var(--xv-warning-soft); color: var(--xv-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.xv-badge-danger  { background: var(--xv-danger-soft);  color: var(--xv-danger);  border: 1px solid rgba(239, 68, 68, 0.3); }
.xv-badge-accent  { background: var(--xv-accent-soft);  color: var(--xv-accent-bright); border: 1px solid var(--xv-accent-border); }
.xv-badge-muted   { background: var(--xv-surface-3);    color: var(--xv-text-muted); border: 1px solid var(--xv-border); }

/* ============================================================================
   COMPATIBILITY OVERRIDES FOR EXISTING BOOTSTRAP / LEGACY PAGES IN DARK & LIGHT
   ============================================================================ */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .accordion-item,
:root[data-theme="dark"] .bg-white,
:root[data-theme="dark"] .vps-list-hero,
:root[data-theme="dark"] .vps-hero-badge-item,
:root[data-theme="dark"] .desktop-blog-card,
:root[data-theme="dark"] .desktop-trust-bar,
:root[data-theme="dark"] .desktop-spotlight-card,
:root[data-theme="dark"] .hero-service-item,
:root[data-theme="dark"] .mobile-app-shell {
    background-color: var(--xv-surface) !important;
    border-color: var(--xv-border) !important;
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .vps-list-wrapper,
:root[data-theme="dark"] .w-breadcrumb-area,
:root[data-theme="dark"] .card-header,
:root[data-theme="dark"] .card-footer,
:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer,
:root[data-theme="dark"] .toc-section {
    background-color: var(--xv-surface-2) !important;
    border-color: var(--xv-border) !important;
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .policy-header {
    background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(56,189,248,0.08)) !important;
    border-left-color: var(--xv-accent) !important;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] .text-dark,
:root[data-theme="dark"] .text-body,
:root[data-theme="dark"] .breadcrumb-item.active,
:root[data-theme="dark"] .breadcrumb-title,
:root[data-theme="dark"] .policy-content h3,
:root[data-theme="dark"] .policy-content h4,
:root[data-theme="dark"] .form-label {
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .text-secondary,
:root[data-theme="dark"] .policy-content p,
:root[data-theme="dark"] .policy-content ul {
    color: var(--xv-text-muted) !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .input-group-text,
:root[data-theme="dark"] textarea.form-control {
    background-color: var(--xv-input-bg) !important;
    border-color: var(--xv-border) !important;
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus {
    border-color: var(--xv-accent) !important;
    box-shadow: 0 0 0 3px var(--xv-accent-soft) !important;
}

:root[data-theme="dark"] .form-control::placeholder {
    color: var(--xv-text-dim) !important;
}

:root[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--xv-text);
    --bs-table-border-color: var(--xv-border);
    --bs-table-hover-bg: var(--xv-surface-2);
    --bs-table-hover-color: var(--xv-text);
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .table thead th,
:root[data-theme="dark"] .table-light {
    background-color: var(--xv-surface-2) !important;
    color: var(--xv-text-muted) !important;
    border-color: var(--xv-border) !important;
}

:root[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(190%);
}

:root[data-theme="dark"] .swal2-popup {
    background: var(--xv-surface) !important;
    color: var(--xv-text) !important;
    border: 1px solid var(--xv-border-strong) !important;
}

:root[data-theme="dark"] .swal2-title,
:root[data-theme="dark"] .swal2-html-container {
    color: var(--xv-text) !important;
}

/* Footer Compact Styles */
.xv-footer {
    border-top: 1px solid var(--xv-border);
    background: var(--xv-surface);
    color: var(--xv-text-muted);
    margin-top: 32px;
}

.xv-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 28px;
    padding: 36px 0 28px;
}

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

@media (max-width: 575.98px) {
    .xv-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px 0 20px;
    }
}

.xv-footer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--xv-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.xv-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xv-footer-links a {
    color: var(--xv-text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.14s ease;
}

.xv-footer-links a:hover {
    color: var(--xv-accent-bright);
}

.xv-footer-bottom {
    border-top: 1px solid var(--xv-border);
    padding: 14px 0;
    font-size: 12.5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ============================================================================
   SPLIT-SCREEN AUTHENTICATION LAYOUT (XVPS.VN CLONE)
   ============================================================================ */
.xv-auth-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--xv-bg);
}

.xv-auth-theme-float {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 50;
}

.xv-auth-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 36px;
    background: var(--xv-bg);
}

.xv-auth-left-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xv-auth-form-box {
    width: 100%;
    max-width: 400px;
    margin: 28px auto;
}

.xv-auth-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--xv-text);
    margin-bottom: 6px;
}

.xv-auth-sub {
    font-size: 14px;
    color: var(--xv-text-muted);
    margin-bottom: 24px;
}

.xv-auth-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--xv-text-muted);
    margin-bottom: 6px;
}

.xv-auth-input-wrap {
    position: relative;
}

.xv-auth-input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface);
    color: var(--xv-text);
    font-size: 14px;
    padding: 0 40px 0 38px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.xv-auth-input:focus {
    border-color: var(--xv-accent);
    box-shadow: 0 0 0 3px var(--xv-accent-soft);
}

.xv-auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xv-text-dim);
    font-size: 14px;
    pointer-events: none;
}

.xv-auth-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--xv-text-dim);
    padding: 4px 6px;
    cursor: pointer;
}

.xv-auth-eye-btn:hover {
    color: var(--xv-text);
}

.xv-auth-submit {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.16s ease;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.xv-auth-submit:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

.xv-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--xv-text-dim);
    font-size: 12px;
    margin: 18px 0;
}

.xv-auth-divider::before,
.xv-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--xv-border);
}

.xv-auth-oauth-btn {
    width: 100%;
    height: 43px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface);
    color: var(--xv-text) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.16s ease;
}

.xv-auth-oauth-btn:hover {
    border-color: var(--xv-accent-border);
    background: var(--xv-surface-2);
}

.xv-auth-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: radial-gradient(circle at 50% 42%, rgba(124, 58, 237, 0.15) 0%, var(--xv-surface) 64%, var(--xv-bg) 100%);
    border-left: 1px solid var(--xv-border);
    overflow: hidden;
    text-align: center;
}

.xv-auth-art-wrap {
    position: relative;
    max-width: 420px;
    margin-bottom: 28px;
}

.xv-auth-art-img {
    width: 100%;
    max-width: 390px;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 24px 48px rgba(124, 58, 237, 0.22));
    animation: xvFloat 6s ease-in-out infinite;
}

@keyframes xvFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}

.xv-auth-headline {
    font-size: 26px;
    font-weight: 800;
    color: var(--xv-text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.xv-auth-accent-text {
    background: linear-gradient(90deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .xv-auth-accent-text {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xv-auth-caption {
    font-size: 14px;
    color: var(--xv-text-muted);
    max-width: 420px;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .xv-auth-shell {
        grid-template-columns: 1fr;
    }
    .xv-auth-right {
        display: none;
    }
    .xv-auth-left {
        padding: 22px 20px;
    }
}

/* ============================================================================
   HOMEPAGE DASHBOARD & FEATURED PLANS
   ============================================================================ */
.xv-hero-panel {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--xv-border);
    background: radial-gradient(circle at 90% 15%, rgba(124, 58, 237, 0.18) 0%, var(--xv-surface) 58%);
    padding: 28px 30px;
    overflow: hidden;
}

.xv-hero-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: var(--xv-text);
}

.xv-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--xv-text);
}

.xv-service-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface);
    text-decoration: none;
    color: var(--xv-text);
    height: 100%;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.xv-service-tile:hover {
    transform: translateY(-2px);
    border-color: var(--xv-accent-border);
    box-shadow: 0 10px 26px var(--xv-accent-glow);
    color: var(--xv-text);
}

.xv-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* ============================================================================
   ALL-IN-ONE VPS CONFIGURATOR (XVPS.VN CLONE — IMAGES 2 & 4)
   ============================================================================ */
.xv-ord-page {
    padding: 18px 20px 40px;
}

@media (max-width: 767.98px) {
    .xv-ord-page {
        padding: 14px 12px 32px;
    }
}

.xv-ord-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.xv-ord-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--xv-text-muted);
}

.xv-ord-breadcrumb a {
    color: var(--xv-text-muted);
    text-decoration: none;
}

.xv-ord-breadcrumb a:hover {
    color: var(--xv-text);
}

.xv-ord-h1 {
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 800;
    color: var(--xv-text);
    margin: 4px 0 0;
    letter-spacing: -0.02em;
}

.xv-line-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xv-line-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface);
    color: var(--xv-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.xv-line-tab:hover {
    color: var(--xv-text);
    border-color: var(--xv-border-strong);
}

.xv-line-tab.active {
    background: var(--xv-accent-soft);
    border-color: var(--xv-accent-border);
    color: var(--xv-text);
}

.xv-section-panel {
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.xv-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.xv-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--xv-text);
    margin: 0;
}

.xv-section-title i {
    color: var(--xv-accent-bright);
}

/* Selectable Plan Grid (3 cols PC, 2 cols Tablet, 1 col Mobile) */
.xv-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1399.98px) {
    .xv-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .xv-plan-grid {
        grid-template-columns: 1fr;
    }
}

.xv-plan-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    padding: 15px;
    cursor: pointer;
    transition: all 0.16s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xv-plan-card:hover {
    border-color: var(--xv-border-strong);
    background: var(--xv-surface-hover);
}

.xv-plan-card.active {
    border-color: var(--xv-accent);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.13) 0%, var(--xv-surface-2) 100%);
    box-shadow: 0 0 0 1px var(--xv-accent), 0 8px 24px rgba(124, 58, 237, 0.18);
}

.xv-plan-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--xv-surface-3);
    border: 1px solid var(--xv-border-strong);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s ease;
}

.xv-plan-card.active .xv-plan-check {
    background: var(--xv-accent);
    border-color: var(--xv-accent-bright);
    color: #fff;
}

.xv-plan-cube {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(124, 58, 237, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.xv-plan-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--xv-text);
    line-height: 1.25;
}

.xv-plan-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--xv-text);
    line-height: 1.2;
}

.xv-plan-price small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--xv-text-muted);
}

.xv-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xv-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    background: var(--xv-surface-3);
    border: 1px solid var(--xv-border);
    color: var(--xv-text-muted);
}

.xv-plan-bullets {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    border-top: 1px dashed var(--xv-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.xv-plan-bullets li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--xv-text-muted);
}

.xv-plan-bullets li i {
    font-size: 11px;
    width: 14px;
    color: var(--xv-text-dim);
}

/* Billing Cycle Row (Image 2 style) */
.xv-cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 9px;
}

.xv-cycle-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.xv-cycle-pill:hover {
    border-color: var(--xv-border-strong);
}

.xv-cycle-pill.active {
    border-color: var(--xv-accent);
    background: var(--xv-accent-soft);
    box-shadow: 0 0 0 1px var(--xv-accent);
}

.xv-cycle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
}

.xv-cycle-radio {
    width: 14px;
    height: 14px;
    border-radius: 99px;
    border: 2px solid var(--xv-text-dim);
    display: inline-block;
    flex-shrink: 0;
}

.xv-cycle-pill.active .xv-cycle-radio {
    border-color: var(--xv-accent-bright);
    background: radial-gradient(circle, var(--xv-accent-bright) 45%, transparent 52%);
}

.xv-cycle-amt {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--xv-accent-bright);
}

/* OS Grid & Tabs (Image 4 style) */
.xv-os-tabs {
    display: inline-flex;
    background: var(--xv-surface-2);
    border: 1px solid var(--xv-border);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
}

.xv-os-tab {
    border: none;
    background: transparent;
    color: var(--xv-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
}

.xv-os-tab.active {
    background: var(--xv-accent);
    color: #fff;
}

.xv-os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
    gap: 10px;
}

.xv-os-card {
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    border-radius: 11px;
    padding: 11px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.xv-os-card:hover {
    border-color: var(--xv-border-strong);
}

.xv-os-card.active {
    border-color: var(--xv-accent);
    background: var(--xv-accent-soft);
}

.xv-os-card.is-hidden {
    display: none;
}

.xv-os-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xv-os-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.xv-loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.xv-loc-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    cursor: pointer;
    text-align: left;
}

.xv-loc-card.active {
    border-color: var(--xv-accent);
    background: var(--xv-accent-soft);
}

.xv-addon-card {
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    border-radius: 11px;
    padding: 13px;
}

.xv-addon-card.is-disabled {
    opacity: 0.55;
}

.xv-sticky-summary {
    position: sticky;
    top: calc(var(--xv-topbar-h) + 16px);
}

.xv-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--xv-border);
    font-size: 13px;
}

.xv-summary-row:last-child {
    border-bottom: none;
}

/* ============================================================================
   VPS MANAGEMENT LIST & DETAIL (XVPS.VN CLONE — IMAGES 5 & 6)
   ============================================================================ */
.xv-chip-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xv-chip-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface);
    color: var(--xv-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.14s ease;
}

.xv-chip-tab:hover {
    color: var(--xv-text);
    border-color: var(--xv-border-strong);
}

.xv-chip-tab.active {
    background: var(--xv-accent-soft);
    border-color: var(--xv-accent-border);
    color: var(--xv-text);
}

.xv-chip-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--xv-surface-3);
    color: var(--xv-text-muted);
}

.xv-chip-tab.active .xv-chip-count {
    background: var(--xv-accent);
    color: #fff;
}

.xv-table-wrap {
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 14px;
    overflow: hidden;
}

.xv-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--xv-border);
    padding: 0 16px;
}

.xv-detail-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xv-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.xv-detail-tab:hover {
    color: var(--xv-text);
}

.xv-detail-tab.active {
    color: var(--xv-accent-bright);
    border-bottom-color: var(--xv-accent-bright);
}

.xv-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 991.98px) {
    .xv-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .xv-meta-grid {
        grid-template-columns: 1fr;
    }
}

.xv-meta-label {
    font-size: 11.5px;
    color: var(--xv-text-dim);
    margin-bottom: 4px;
}

.xv-meta-val {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--xv-text);
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.xv-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xv-action-row-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
    text-align: left;
}

.xv-action-row-btn:hover:not(:disabled) {
    border-color: var(--xv-accent-border);
    background: var(--xv-surface-hover);
}

.xv-action-row-btn.is-danger {
    color: var(--xv-danger);
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.06);
}

.xv-action-row-btn.is-danger:hover:not(:disabled) {
    border-color: var(--xv-danger);
    background: rgba(239, 68, 68, 0.14);
}

.xv-action-row-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ============================================================================
   LUCIDE SVG ICONS + XVPS.VN USER POPOVER CARD + BANK/PROFILE/AFFILIATE THEME
   ============================================================================ */
.xv-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.xv-nav-link-main svg.xv-svg-icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.75;
}

.xv-user-popover {
    width: 312px;
    padding: 16px;
    border-radius: 16px;
}

.xv-user-pop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.xv-user-pop-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xv-user-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 99px;
    background: #22c55e;
    border: 2px solid var(--xv-surface);
}

.xv-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #3b82f6);
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.xv-user-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.xv-user-stat-card {
    position: relative;
    overflow: hidden;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--xv-surface-2);
    border: 1px solid var(--xv-border);
}

.xv-user-stat-label {
    font-size: 11.5px;
    color: var(--xv-text-muted);
    margin-bottom: 2px;
}

.xv-user-stat-val {
    font-size: 15px;
    font-weight: 800;
}

.xv-user-stat-wm {
    position: absolute;
    right: -4px;
    bottom: -4px;
    opacity: 0.12;
    pointer-events: none;
}

.xv-user-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.xv-user-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 11px;
    text-decoration: none;
    color: var(--xv-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    transition: all 0.14s ease;
}

.xv-user-quick-item:hover {
    background: var(--xv-surface-2);
    color: var(--xv-text);
}

.xv-user-quick-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.xv-user-quick-item:hover .xv-user-quick-circle {
    background: var(--xv-accent);
    color: #fff;
}

.xv-user-logout-btn {
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.xv-user-logout-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* ============================================================================
   REUSABLE PROFILE SHELL + DEPOSIT (/bank) + AFFILIATES (/affiliates) STYLES
   ============================================================================ */
.xv-profile-header-card {
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xv-profile-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.xv-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--xv-text-muted);
    text-decoration: none;
    transition: all 0.14s ease;
}

.xv-profile-tab:hover {
    color: var(--xv-text);
    background: var(--xv-surface-2);
}

.xv-profile-tab.active {
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-text);
}

/* Override legacy profile settings cards cleanly */
.settings-card,
.profile-info-card,
.package-tab-content {
    background: var(--xv-surface) !important;
    border: 1px solid var(--xv-border) !important;
    border-radius: 14px !important;
    color: var(--xv-text) !important;
    overflow: hidden;
}

.settings-card-head,
.profile-info-header {
    background: var(--xv-surface-2) !important;
    border-bottom: 1px solid var(--xv-border) !important;
    padding: 14px 20px !important;
}

.settings-card-head h4,
.profile-info-header h4 {
    color: var(--xv-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.settings-card-body,
.profile-info-body {
    background: var(--xv-surface) !important;
    padding: 20px !important;
}

/* Bank Deposit cards (/bank) dark/light polish (Screenshot #6) */
.xv-bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.bank-option {
    position: relative;
    padding: 16px !important;
    border: 1px solid var(--xv-border) !important;
    border-radius: 13px !important;
    background: var(--xv-surface-2) !important;
    color: var(--xv-text) !important;
    cursor: pointer;
    transition: all 0.16s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-option:hover {
    border-color: var(--xv-border-strong) !important;
}

.bank-option.active {
    border-color: var(--xv-accent) !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.16) 0%, var(--xv-surface-2) 100%) !important;
    box-shadow: 0 0 0 1px var(--xv-accent) !important;
}

.bank-option .check-mark {
    background: var(--xv-accent) !important;
}

.bank-option .bank-holder {
    color: var(--xv-text-muted) !important;
}

.quick-amount {
    background: var(--xv-surface-2) !important;
    border: 1px solid var(--xv-border) !important;
    color: var(--xv-text) !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 7px 12px !important;
}

.quick-amount:hover,
.quick-amount.active {
    border-color: var(--xv-accent-border) !important;
    background: var(--xv-accent-soft) !important;
    color: var(--xv-accent-bright) !important;
}

.btn-create-invoice {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 11px 18px !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25) !important;
}

.invoice-table th {
    background: var(--xv-surface-2) !important;
    color: var(--xv-text-muted) !important;
    border-bottom: 1px solid var(--xv-border) !important;
    font-size: 12px !important;
    text-transform: uppercase;
}

.invoice-table td {
    border-bottom: 1px solid var(--xv-border) !important;
    color: var(--xv-text) !important;
}

.invoice-table tbody tr:hover {
    background: var(--xv-surface-hover) !important;
}

.history-filter {
    background: var(--xv-surface) !important;
    border-bottom: 1px solid var(--xv-border) !important;
}

:root[data-theme="dark"] .guide-box {
    background: rgba(124, 58, 237, 0.10) !important;
    border-left-color: var(--xv-accent) !important;
    border: 1px solid var(--xv-accent-border);
}

:root[data-theme="dark"] .guide-box h5 {
    color: var(--xv-accent-bright) !important;
}

:root[data-theme="dark"] .guide-box li {
    color: var(--xv-text-muted) !important;
}

/* ============================================================================
   GLOBAL LEGACY COLOR UNIFICATION & CONTRAST GUARANTEES (DARK + LIGHT)
   Overrides legacy MTD Cloud orange (#ff6900) and dark anchor (#1d1d1d) rules
   ============================================================================ */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
    --color-primary: var(--xv-accent);
    --color-primary-hover: var(--xv-accent-hover);
    --color-primary-light: var(--xv-accent-soft);
    --color-primary-dark: var(--xv-accent-hover);
    --color-text-primary: var(--xv-text);
    --color-text-secondary: var(--xv-text-muted);
    --color-text-muted: var(--xv-text-muted);
    --color-bg-primary: var(--xv-surface);
    --color-bg-secondary: var(--xv-surface-2);
    --color-bg-tertiary: var(--xv-surface-3);
    --color-border: var(--xv-border);
    --bs-primary: #7c3aed;
    --bs-link-color: var(--xv-accent-bright);
    --bs-link-hover-color: var(--xv-accent);
}

/* Override legacy styles.css `a { color: #1d1d1d; }` so links are NEVER invisible on dark surfaces */
body.xv-app-body a {
    color: var(--xv-accent-bright);
}
body.xv-app-body a:hover {
    color: var(--xv-accent);
}
body.xv-app-body .xv-nav-link,
body.xv-app-body .xv-nav-sub a,
body.xv-app-body .xv-footer-links a,
body.xv-app-body .xv-ord-breadcrumb a,
body.xv-app-body .xv-profile-tab,
body.xv-app-body .xv-chip-tab,
body.xv-app-body .xv-mb-item,
body.xv-app-body .xv-user-quick-item {
    color: var(--xv-text-muted);
}
body.xv-app-body .xv-nav-link:hover,
body.xv-app-body .xv-nav-link.active,
body.xv-app-body .xv-nav-sub a:hover,
body.xv-app-body .xv-nav-sub a.active,
body.xv-app-body .xv-profile-tab:hover,
body.xv-app-body .xv-profile-tab.active,
body.xv-app-body .xv-chip-tab:hover,
body.xv-app-body .xv-chip-tab.active,
body.xv-app-body .xv-service-tile,
body.xv-app-body .xv-top-pill-link,
body.xv-app-body .xv-dropdown-item,
body.xv-app-body .xv-action-row-btn {
    color: var(--xv-text);
}
body.xv-app-body .xv-btn-primary,
body.xv-app-body .xv-wallet-deposit,
body.xv-app-body .btn-primary,
body.xv-app-body .btn.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}
body.xv-app-body .btn-primary:hover,
body.xv-app-body .btn.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
}
body.xv-app-body .btn-outline-primary {
    border-color: var(--xv-accent-border) !important;
    color: var(--xv-accent-bright) !important;
    background: transparent !important;
}
body.xv-app-body .btn-outline-primary:hover {
    background: var(--xv-accent) !important;
    border-color: var(--xv-accent) !important;
    color: #ffffff !important;
}
body.xv-app-body .text-primary {
    color: var(--xv-accent-bright) !important;
}

/* Hard-anchor sidebar left edge against any legacy styles.css interference */
aside.xv-sidebar {
    margin: 0 !important;
    left: 0;
}

/* Comprehensive Dark Mode Fixes for Legacy Pages (Blog, FAQ, Terms, Privacy, Services, Profile, Downloads) */
:root[data-theme="dark"] .border,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-bottom,
:root[data-theme="dark"] .border-start,
:root[data-theme="dark"] .border-end {
    border-color: var(--xv-border) !important;
}

:root[data-theme="dark"] .blog-card-modern,
:root[data-theme="dark"] .blog-sidebar-card,
:root[data-theme="dark"] .hp-faq-item,
:root[data-theme="dark"] .card-enterprise,
:root[data-theme="dark"] .policy-content,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .download-card,
:root[data-theme="dark"] .faq-card {
    background: var(--xv-surface) !important;
    border-color: var(--xv-border) !important;
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .blog-card-title,
:root[data-theme="dark"] .blog-card-title a,
:root[data-theme="dark"] .hp-faq-title,
:root[data-theme="dark"] .hp-faq-btn,
:root[data-theme="dark"] .accordion-button,
:root[data-theme="dark"] .accordion-body,
:root[data-theme="dark"] .hp-faq-body,
:root[data-theme="dark"] .policy-content,
:root[data-theme="dark"] .policy-content li,
:root[data-theme="dark"] .policy-content strong,
:root[data-theme="dark"] .toc-title,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .text-black,
:root[data-theme="dark"] .text-gray-900,
:root[data-theme="dark"] .text-gray-800 {
    color: var(--xv-text) !important;
}

:root[data-theme="dark"] .blog-card-excerpt,
:root[data-theme="dark"] .blog-card-meta,
:root[data-theme="dark"] .hp-faq-subtitle,
:root[data-theme="dark"] .text-gray-600,
:root[data-theme="dark"] .text-gray-500 {
    color: var(--xv-text-muted) !important;
}

:root[data-theme="dark"] .accordion-button,
:root[data-theme="dark"] .hp-faq-btn {
    background-color: var(--xv-surface-2) !important;
    box-shadow: none !important;
}
:root[data-theme="dark"] .accordion-button:not(.collapsed),
:root[data-theme="dark"] .hp-faq-btn:not(.collapsed) {
    background-color: var(--xv-accent-soft) !important;
    color: var(--xv-text) !important;
}
:root[data-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(180%);
}
:root[data-theme="dark"] .accordion-body,
:root[data-theme="dark"] .hp-faq-body {
    background-color: var(--xv-surface) !important;
}

:root[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
:root[data-theme="dark"] .alert-danger p,
:root[data-theme="dark"] .alert-danger strong,
:root[data-theme="dark"] .alert-danger div {
    color: #fecaca !important;
}
:root[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fde68a !important;
}
:root[data-theme="dark"] .alert-info {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #bae6fd !important;
}
:root[data-theme="dark"] .alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #bbf7d0 !important;
}

:root[data-theme="dark"] .pagination .page-link {
    background-color: var(--xv-surface-2) !important;
    border-color: var(--xv-border) !important;
    color: var(--xv-text-muted) !important;
}
:root[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--xv-accent) !important;
    border-color: var(--xv-accent) !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] .dropdown-item {
    color: var(--xv-text) !important;
}
:root[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--xv-surface-hover) !important;
    color: var(--xv-accent-bright) !important;
}

/* ============================================================================
   HOMEPAGE DASHBOARD CLONE (XVPS.VN/DASHBOARD LIGHT & DARK)
   ============================================================================ */
.xv-dash-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    font-size: 13px;
    color: var(--xv-text);
}
.xv-dash-notice-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.xv-dash-notice-close {
    background: transparent;
    border: none;
    color: var(--xv-text-dim);
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.xv-dash-notice-close:hover {
    color: var(--xv-text);
}

.xv-dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 332px;
    gap: 18px;
    align-items: start;
}
@media (max-width: 1199.98px) {
    .xv-dash-layout {
        grid-template-columns: 1fr;
    }
}

.xv-account-panel {
    position: sticky;
    top: calc(var(--xv-topbar-h) + 16px);
}
.xv-account-wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--xv-surface-2);
    border: 1px solid var(--xv-border);
    margin-bottom: 14px;
}
.xv-account-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.xv-account-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 10px 6px;
    border-radius: 11px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--xv-text-muted) !important;
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.14s ease;
}
.xv-account-shortcut:hover {
    background: var(--xv-surface-2);
    border-color: var(--xv-border);
    color: var(--xv-text) !important;
}
.xv-account-shortcut-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
}
.xv-vps-active-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    text-decoration: none;
    color: var(--xv-text) !important;
    transition: all 0.15s ease;
}
.xv-vps-active-row:hover {
    border-color: var(--xv-accent-border);
    background: var(--xv-surface-hover);
}
.xv-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
    color: var(--xv-text-muted);
}
.xv-empty-circle {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    background: var(--xv-surface-2);
    border: 1px solid var(--xv-border);
    color: var(--xv-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.xv-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.xv-brand-emblem {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.32);
    flex-shrink: 0;
}
.xv-brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.xv-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--xv-text);
}
.xv-brand-title span {
    color: var(--xv-accent-bright);
}
.xv-brand-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--xv-text-dim);
    margin-top: 2px;
}
@media (max-width: 767.98px) {
    .xv-brand-emblem { width: 28px; height: 28px; border-radius: 7px; }
    .xv-brand-title { font-size: 14px; }
    .xv-brand-sub { display: none; }
}
@media (min-width: 1200px) {
    body.xv-sidebar-collapsed .xv-brand-wordmark {
        display: none !important;
    }
}

/* Fix Auth page floating TOS badge overlap & duplicate native select caret */
body.xv-auth-body .hci-tos-floating-badge {
    left: auto !important;
    right: 22px !important;
    bottom: 18px !important;
}
body.xv-app-body select.form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 43px !important;
    line-height: 1.45 !important;
    padding: 9px 36px 9px 12px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 14px 10px !important;
}

/* ============================================================================
   XVPSVN MARKETING LANDING PAGE (XVPS.VN/ CLONE — DARK & LIGHT)
   ============================================================================ */
body.xv-landing-body {
    background-color: var(--xv-bg) !important;
    color: var(--xv-text);
    padding-top: 66px;
}

.xv-land-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: var(--xv-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--xv-border);
}

.xv-land-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xv-land-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.xv-land-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--xv-text-muted) !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.xv-land-link:hover {
    color: var(--xv-text) !important;
    background: var(--xv-surface-2);
}

.xv-land-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.xv-land-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 18px;
    background: var(--xv-surface);
    border-top: 1px solid var(--xv-border);
}

.xv-land-mobile-menu.open {
    display: flex;
}

.xv-land-mob-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--xv-text) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.xv-land-mob-item:hover {
    background: var(--xv-surface-2);
}

/* Landing Architectural Grid Hero */
.xv-land-hero {
    position: relative;
    padding: 76px 0 64px;
    overflow: hidden;
    background-image:
        linear-gradient(to right, rgba(139, 92, 246, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
}

:root[data-theme="light"] .xv-land-hero {
    background-image:
        linear-gradient(to right, rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
}

.xv-land-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 68% 58% at 50% 18%, rgba(124, 58, 237, 0.19) 0%, transparent 72%);
    pointer-events: none;
}

.xv-land-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to bottom, transparent, var(--xv-bg));
    pointer-events: none;
}

.xv-land-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.xv-land-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border-strong);
    font-size: 12px;
    font-weight: 600;
    color: var(--xv-text-muted);
    margin-bottom: 22px;
    box-shadow: var(--xv-shadow-sm);
}

.xv-land-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.xv-land-h1 {
    font-size: clamp(32px, 5.2vw, 58px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--xv-text);
    margin-bottom: 18px;
}

.xv-land-lead {
    font-size: clamp(14.5px, 1.5vw, 16.5px);
    line-height: 1.72;
    color: var(--xv-text-muted);
    max-width: 680px;
    margin: 0 auto 28px;
}

/* 4-Cell Joined KPI Bar (exact match to xvps.vn/) */
.xv-land-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 740px;
    margin: 40px auto 0;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--xv-shadow-sm);
}

.xv-land-kpi-cell {
    padding: 20px 14px;
    text-align: center;
    border-right: 1px solid var(--xv-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.xv-land-kpi-cell:last-child {
    border-right: none;
}

.xv-land-kpi-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--xv-accent-soft);
    color: var(--xv-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.xv-land-kpi-val {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--xv-text);
    line-height: 1.1;
}

.xv-land-kpi-lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xv-text-dim);
}

@media (max-width: 639.98px) {
    .xv-land-hero {
        padding: 46px 0 42px;
    }
    .xv-land-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .xv-land-kpi-cell:nth-child(2) {
        border-right: none;
    }
    .xv-land-kpi-cell:nth-child(1),
    .xv-land-kpi-cell:nth-child(2) {
        border-bottom: 1px solid var(--xv-border);
    }
}

/* Landing Section Headers */
.xv-land-section {
    padding: 56px 0;
}

.xv-land-sec-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 36px;
}

.xv-land-sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-accent-bright);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.xv-land-sec-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--xv-text);
    margin-bottom: 10px;
}

.xv-land-sec-sub {
    font-size: 14.5px;
    color: var(--xv-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Ecosystem Service Cards */
.xv-eco-card {
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.xv-eco-card:hover {
    transform: translateY(-3px);
    border-color: var(--xv-accent-border);
    box-shadow: 0 14px 32px var(--xv-accent-glow);
}

.xv-eco-card.is-featured {
    border-color: var(--xv-accent-border);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.10) 0%, var(--xv-surface) 60%);
}

/* Bento Infrastructure Cards (exact clone of screenshot #2) */
.xv-bento-card {
    position: relative;
    background: var(--xv-surface);
    border: 1px solid var(--xv-border);
    border-radius: 18px;
    padding: 26px;
    height: 100%;
    overflow: hidden;
}

.xv-bento-card-glow {
    background: radial-gradient(circle at 50% 65%, rgba(124, 58, 237, 0.16) 0%, var(--xv-surface) 68%);
}

.xv-bento-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xv-accent-bright);
    margin-bottom: 6px;
}

.xv-bento-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--xv-accent-soft);
    border: 1px solid var(--xv-accent-border);
    color: var(--xv-accent-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.xv-bento-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--xv-text);
    margin-bottom: 8px;
}

.xv-bento-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--xv-text-muted);
    margin: 0;
}

.xv-land-cta-banner {
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.22) 0%, var(--xv-surface) 62%);
    border: 1px solid var(--xv-accent-border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
}

/* Dashboard Service Filter Tabs (xvps.vn/dashboard screenshot #3) */
.xv-dash-svc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.xv-dash-svc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    color: var(--xv-text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.xv-dash-svc-tab:hover {
    color: var(--xv-text);
    border-color: var(--xv-border-strong);
}

.xv-dash-svc-tab.active {
    background: var(--xv-accent-soft);
    border-color: var(--xv-accent-border);
    color: var(--xv-accent-bright);
}

.xv-dash-svc-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 14px;
    border-radius: 13px;
    border: 1px solid var(--xv-border);
    background: var(--xv-surface-2);
    text-decoration: none !important;
    color: var(--xv-text) !important;
    text-align: center;
    height: 100%;
    transition: all 0.16s ease;
}

.xv-dash-svc-tile:hover {
    border-color: var(--xv-accent-border);
    background: var(--xv-surface-hover);
    transform: translateY(-2px);
}

/* Live Audit Polish: High-contrast Light Theme Toggle, Clean Select, & Sticky Sidebar Clearance */
:root[data-theme="light"] .xv-theme-toggle,
:root[data-theme="light"] #themeToggleBtn {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
:root[data-theme="light"] .xv-theme-toggle .xv-theme-label,
:root[data-theme="light"] #themeToggleBtn .xv-theme-label {
    color: #0f172a !important;
}
:root[data-theme="light"] .xv-theme-toggle:hover,
:root[data-theme="light"] #themeToggleBtn:hover,
:root[data-theme="light"] .xv-theme-toggle:focus-visible,
:root[data-theme="light"] #themeToggleBtn:focus-visible {
    background: #f3e8ff !important;
    color: #5b21b6 !important;
    border-color: #a78bfa !important;
}
:root[data-theme="light"] .xv-theme-toggle:hover .xv-theme-label,
:root[data-theme="light"] #themeToggleBtn:hover .xv-theme-label {
    color: #5b21b6 !important;
}

select.form-select {
    --bs-form-select-bg-img: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
select.form-select::before,
select.form-select::after {
    display: none !important;
    content: none !important;
}

/* Keep /cloudvps sticky checkout CTA cleanly above the bottom-right floating contact pill */
@media (min-width: 992px) {
    .xv-sticky-summary {
        gap: 10px !important;
        padding-bottom: 84px;
    }
    .xv-sticky-summary .xv-section-panel {
        padding: 14px 16px !important;
    }
    .xv-sticky-summary .xv-summary-row {
        padding: 5px 0 !important;
        font-size: 12.5px !important;
    }
    .xv-sticky-summary #summaryTotalBox .pb-3 {
        padding-bottom: 0.65rem !important;
    }
    .xv-sticky-summary #summaryTotalBox .mb-3 {
        margin-bottom: 0.65rem !important;
    }
}
