/* =====================================================================
   VPS.DO — WHMCS client area theme (child of Twenty-One)
   Design tokens mirror https://vps.do
   ===================================================================== */

@font-face {
    font-family: "VD Inter";
    src: url("../fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #1a74fa;
    --brand-50: #eef4ff;
    --brand-100: #dce8ff;
    --brand-600: #1662e6;
    --brand-700: #0f4fc2;
    --navy-700: #142a63;
    --navy-800: #0b1c47;
    --navy-900: #061230;
    --navy-950: #030a1c;
    --accent: #f98017;
    --accent-600: #c45000;
    --success: #13a46b;
    --ink: #0b1531;
    --text: #3a4560;
    --muted: #5b6680;
    --line: #e4e9f2;
    --line-strong: #cfd7e6;
    --bg: #fff;
    --bg-alt: #f5f7fb;
    --on-dark: #c9d5ee;
    --on-dark-muted: #8fa0c4;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 2px #0b15310f;
    --shadow: 0 1px 2px #0b15310d, 0 6px 20px #0b153112;
    --shadow-lg: 0 2px 6px #0b15310f, 0 22px 48px #0b153124;
    --header-h: 68px;
    --grad-header: linear-gradient(90deg, #1d4ed8, #4f46e5 60%, #7c3aed);
    --grad-line: linear-gradient(90deg, #1d4ed8, #4f46e5 45%, #7c3aed 75%, #22d3ee);
    --font: "VD Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}
:root:lang(zh), :root:lang(zh-CN) { --font: "VD Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:root:lang(zh-TW), :root:lang(zh-HK) { --font: "VD Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
:root:lang(ja) { --font: "VD Inter", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:root:lang(ko) { --font: "VD Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }

/* ---------- Base ---------- */
html, body { height: auto; min-height: 100%; }
body, body.primary-bg-color {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-alt);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
    display: flex;
    flex-direction: column;
}
body > #main-body { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }
code, pre, kbd { font-family: var(--mono); }
.text-primary { color: var(--brand-600) !important; }
.bg-primary { background-color: var(--brand-600) !important; }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--brand-100); color: var(--ink); }

/* ---------- Logo ---------- */
.vlogo { display: inline-flex; align-items: center; gap: calc(var(--logo-size) * .26); line-height: 1; }
.vlogo-mark { flex-shrink: 0; display: block; }
.vlogo-text {
    font-family: "VD Inter", system-ui, sans-serif;
    font-size: calc(var(--logo-size) * .72);
    font-weight: 900;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff;
}
.vlogo-text i { font-style: normal; color: #67e8f9; }

/* ---------- Header ---------- */
header.header.vd-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--grad-header);
    box-shadow: 0 1px #ffffff14, 0 8px 24px -16px #1e1b4b99;
}
header.header .topbar {
    background: var(--navy-950);
    color: var(--on-dark-muted);
    padding: 3px 0;
    font-size: .82rem;
}
header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text { color: var(--on-dark); font-size: .82rem; }
header.header .topbar .btn:hover { color: #fff; }
header.header .topbar .active-client .btn.btn-active-client span { border-bottom-color: #ffffff59; }
header.header .topbar .btn-return-to-admin { background: var(--accent-600); color: #fff; border-radius: var(--radius-xs); }
.vd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 2px; vertical-align: middle; }

header.header .vd-bar { padding: 0; min-height: var(--header-h); }
header.header .vd-bar > .container { flex-wrap: wrap; min-height: var(--header-h); }
header.header .vd-brand { padding: 0; margin: 0 1.25rem 0 0; display: inline-flex; align-items: center; height: var(--header-h); }
header.header .vd-brand:hover .vlogo-text i { color: #cffafe; }

header.header .navbar a,
header.header .navbar-nav a { color: #fff; font-size: .93rem; }
header.header .vd-bar #nav > li > a,
header.header .vd-bar .vd-secondary > li > a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 .65rem !important;
    border-radius: var(--radius-xs);
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s;
}
header.header .vd-bar #nav > li > a:hover,
header.header .vd-bar #nav > li.show > a,
header.header .vd-bar #nav > li.active > a,
header.header .vd-bar .vd-secondary > li > a:not(.btn):hover,
header.header .vd-bar .vd-secondary > li.show > a { background: #ffffff24; color: #fff; }
header.header .vd-bar .dropdown-toggle::after { border-top-color: currentColor; opacity: .75; margin-left: .4em; }
header.header .vd-bar .badge { background: #ffffff38; color: #fff; font-weight: 600; }

/* dropdowns: white cards like vps.do mega menu */
header.header .vd-bar .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
    margin-top: 10px;
    min-width: 230px;
}
header.header .vd-bar .dropdown-menu li.dropdown-item { padding: 0; background: none; }
header.header .vd-bar .dropdown-menu a.dropdown-item {
    color: var(--ink);
    padding: .55rem .75rem !important;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 500;
}
header.header .vd-bar .dropdown-menu a.dropdown-item:hover,
header.header .vd-bar .dropdown-menu .active > a.dropdown-item { background: var(--bg-alt); color: var(--brand-600); }
header.header .vd-bar .dropdown-menu a.dropdown-item i { color: var(--brand-600); width: 1.1em; }
header.header .vd-bar .dropdown-menu .badge { background: var(--brand-50); color: var(--brand-600); }
header.header .vd-bar .dropdown-divider { border-color: var(--line); margin: .3rem .25rem; }
header.header .balance-nav-item .balance-amount { font-weight: 700; }
/* Twenty-One adds the balance to every navbar include; show it once, beside the account menu. */
header.header #nav .balance-nav-item { display: none !important; }
header.header .vd-secondary .balance-nav-item > a { gap: .35rem; }
header.header .vd-secondary .balance-nav-item i { opacity: .85; }

/* right side: login / register */
.vd-secondary { align-items: center; gap: .35rem; }
.vd-login { font-weight: 500; }
.btn.vd-btn-white,
header.header .navbar a.vd-btn-white {
    background: #fff;
    color: #1d4ed8;
    border: 1.5px solid #fff;
    font-weight: 600;
    min-height: 38px;
    padding: .4rem 1rem;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
}
.btn.vd-btn-white:hover, header.header .navbar a.vd-btn-white:hover { background: #eef2ff; border-color: #eef2ff; color: #1e40af; }

/* tool buttons */
header.header .vd-tools { flex-direction: row; align-items: center; gap: .4rem; margin-left: .75rem; }
.btn.vd-pill {
    color: #fff;
    background: #ffffff1f;
    border: 1px solid #ffffff38;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 .8rem 0 .65rem;
    font-size: .82rem !important;
    font-weight: 600;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.btn.vd-pill:hover, .btn.vd-pill:focus { color: #fff; background: #ffffff38; border-color: #fff6; box-shadow: none; }
header.header .btn.vd-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    border-radius: var(--radius-xs);
    border: 1px solid #ffffff38;
    background: #ffffff14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
header.header .btn.vd-icon-btn:hover { background: #ffffff2e; color: #fff; }
header.header .cart-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    opacity: 1;
}
header.header .cart-btn .badge.vd-empty { display: none; }

/* mobile / compact header */
@media (max-width: 1199.98px) {
    /* Bootstrap zeroes .navbar-expand-xl > .container padding below xl; restore the gutter */
    header.header .vd-bar > .container { align-items: center; padding-left: 16px; padding-right: 16px; }
    header.header .vd-tools { margin-left: auto; order: 2; }
    header.header .vd-bar .navbar-collapse { order: 3; flex-basis: 100%; }
    header.header .vd-bar .navbar-collapse.show,
    header.header .vd-bar .navbar-collapse.collapsing { padding: .25rem 0 1rem; border-top: 1px solid #ffffff2e; }
    header.header .vd-bar #nav > li > a,
    header.header .vd-bar .vd-secondary > li > a:not(.btn) { min-height: 46px; }
    header.header .vd-bar .dropdown-menu { box-shadow: none; margin: 0 0 .5rem; }
    .vd-secondary { flex-direction: row; flex-wrap: wrap; padding-top: .5rem; }
    .vd-mobile-search { margin: .75rem 0 .5rem; }
    .vd-mobile-search .search { background: #fff; border-radius: var(--radius-xs); }
    .vd-mobile-search .btn, .vd-mobile-search .form-control { border: 0; color: var(--muted); }
}
/* Any link inside a dropdown — including items Twenty-One's autoCollapse
   moves into "More" (they keep their original <a>, not a.dropdown-item). */
header.header .vd-bar .dropdown-menu li > a {
    display: block;
    color: var(--ink);
    padding: .55rem .75rem !important;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
header.header .vd-bar .dropdown-menu li > a:hover { background: var(--bg-alt); color: var(--brand-600); }
header.header .vd-bar .dropdown-menu li.dropdown-item { padding: 0; background: none; }
header.header .vd-bar .dropdown-menu .dropdown-menu { position: static; float: none; box-shadow: none; border: 0; margin: 0 0 0 .75rem; padding: 0; min-width: 0; }
header.header .vd-bar .dropdown-menu .dropdown-toggle::after { display: none; }

@media (min-width: 1200px) {
    header.header .vd-bar > .container { flex-wrap: nowrap; }
    header.header .main-navbar-wrapper .navbar-collapse { padding: 0; min-width: 0; flex: 1 1 auto; }
    /* Let #nav wrap when it runs out of room so Twenty-One's autoCollapse
       (height >= 30px) moves the overflow into "More" instead of overlapping. */
    header.header .vd-bar #nav { flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
    header.header .vd-bar .vd-secondary, header.header .vd-tools { flex-shrink: 0; }
    /* Twenty-One collapses #nav items into "More" once #nav is >= 30px tall.
       Keep 40px hit targets but a 28px layout box, so only real wrapping triggers it. */
    header.header .vd-bar #nav > li > a,
    header.header .vd-bar .vd-secondary > li > a:not(.btn) { margin-block: -6px; }
    header.header .vd-bar #nav { align-items: center; }
    .vd-secondary { padding-left: .75rem; margin-left: .5rem !important; border-left: 1px solid #ffffff38; }
}

/* ---------- Breadcrumb ---------- */
.master-breadcrumb { background: #fff; border-bottom: 1px solid var(--line); }
.master-breadcrumb .breadcrumb { background: none; padding: .7rem 0; font-size: .86rem; }
.master-breadcrumb .breadcrumb-item a { color: var(--muted); }
.master-breadcrumb .breadcrumb-item a:hover { color: var(--brand-600); }
.master-breadcrumb .breadcrumb-item.active { color: var(--ink); font-weight: 500; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: var(--line-strong); }

/* ---------- Homepage hero (logged-out) ---------- */
.vd-hero {
    position: relative;
    overflow: hidden;
    color: var(--on-dark);
    padding: clamp(2.5rem, 7vw, 4.5rem) 0;
    background:
        radial-gradient(900px 380px at 100% 0%, #7c3aed38, transparent 70%),
        radial-gradient(700px 360px at 0% 100%, #22d3ee1a, transparent 70%),
        var(--navy-950);
}
.vd-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .4em; }
.vd-hero .vd-lead { max-width: 56ch; font-size: 1.05rem; color: var(--on-dark); }
.vd-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: #67e8f9; margin-bottom: .75rem; }
.vd-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Main body ---------- */
section#main-body { padding: 2rem 0 3rem; }
.primary-content .card-title { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.header-lined h1, .primary-content h1 { font-size: clamp(1.6rem, 3vw, 2rem); }

/* ---------- Cards / panels ---------- */
.card,
.primary-content .card,
.sidebar .card,
.mc-promo-manage, .mc-promo-login {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: #fff;
    overflow: hidden;
}
.primary-content .card, .sidebar .card { margin-bottom: 1rem; }
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .9rem 1.25rem;
}
.card-header .card-title, .card-header h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
.card-header .card-title i, .sidebar .card-header i { color: var(--brand-600); }
.card-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.card.card-accent-blue, .card.card-accent-teal, .card.card-accent-pomegranate, .card.card-accent-emerald,
.card.card-accent-gold, .card.card-accent-asbestos, .card.card-accent-sun-flower, .card.card-accent-midnight-blue,
.card.card-accent-orange, .card.card-accent-green, .card.card-accent-red, .card.card-accent-amethyst {
    border-top: 3px solid var(--brand-600);
}

/* Sidebar */
.sidebar .list-group-item {
    border-color: var(--line);
    color: var(--text);
    font-size: .92rem;
    padding: .65rem 1.25rem;
}
.sidebar .list-group-item:hover { background: var(--bg-alt); color: var(--ink); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--line);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--brand-600);
}
.sidebar .list-group-item.active .badge { background: var(--brand-600); color: #fff; }
.sidebar .list-group-item i { color: var(--muted); }
.sidebar .list-group-item.active i { color: var(--brand-600); }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius-xs);
    font-weight: 600;
    letter-spacing: -.005em;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px #1662e633; }
.btn-primary, .btn-info {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 1px 2px #1662e64d, inset 0 1px #ffffff24;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active,
.btn-info:hover, .btn-info:focus, .btn-info:not(:disabled):not(.disabled):active {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}
.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #0e8a59; border-color: #0e8a59; }
.btn-warning { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-warning:hover { background: #a34200; border-color: #a34200; color: #fff; }
.btn-default, .btn-secondary, .btn-outline-secondary, .btn-light:not(.vd-hero .btn) {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--line-strong);
}
.btn-default:hover, .btn-secondary:hover, .btn-outline-secondary:hover {
    background: #fff;
    border-color: var(--brand-600);
    color: var(--brand-600);
}
.btn-outline-primary { color: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-link { color: var(--brand-600); font-weight: 500; }
.btn-lg { min-height: 48px; padding: .65em 1.4em; font-size: 1rem; }
.vd-hero .btn { min-height: 46px; padding: .65em 1.35em; display: inline-flex; align-items: center; gap: .5em; }
.vd-hero .btn-light { background: #fff; color: var(--navy-900); border: 0; }
.vd-hero .btn-light:hover { background: var(--brand-50); color: var(--navy-900); }
.btn-ghost-light { color: #fff; background: #ffffff0a; border: 1.5px solid #ffffff47; }
.btn-ghost-light:hover { color: #fff; background: #ffffff1f; border-color: #ffffff80; }

/* ---------- Forms ---------- */
.form-control, .custom-select, .input-group-text, select.form-control {
    border-color: var(--line-strong);
    border-radius: var(--radius-xs);
    color: var(--ink);
}
.form-control:focus, .custom-select:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px #1662e626;
}
.input-group-text { background: var(--bg-alt); color: var(--muted); }
label, .col-form-label { color: var(--ink); font-weight: 500; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--brand-600); border-color: var(--brand-600); }

/* ---------- Tables ---------- */
.table { color: var(--text); }
.table thead th, .table-list thead th {
    background: var(--bg-alt);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--line);
    border-top: 0;
}
.table td, .table th { border-color: var(--line); vertical-align: middle; }
.table-list > tbody > tr:hover > td, .table-hover tbody tr:hover { background: #f2f7ff; }
.table-container { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow-sm); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.page-item.active .page-link { background: var(--brand-600) !important; border-color: var(--brand-600) !important; color: #fff !important; }
.page-link { color: var(--brand-600); }

/* ---------- Status labels ---------- */
.label.status, .status {
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    padding: .25em .75em;
    letter-spacing: .02em;
}
.status-active, .status-paid, .status-completed, .status-open, .status-accepted, .status-delivered { background: #e3f6ee !important; color: #0b7a4f !important; }
.status-pending, .status-unpaid, .status-customer-reply, .status-answered, .status-in-progress, .status-on-hold { background: #fff1e3 !important; color: #a34200 !important; }
.status-suspended, .status-overdue, .status-fraud, .status-collections, .status-cancelled, .status-terminated, .status-expired, .status-refunded, .status-closed, .status-dead, .status-lost { background: #eef1f6 !important; color: var(--muted) !important; }
.status-suspended, .status-overdue, .status-fraud { background: #fdecec !important; color: #b42318 !important; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border-width: 1px; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--navy-700); }
.alert-success { background: #e9f8f1; border-color: #bfe8d6; color: #0b6b45; }
.alert-warning { background: #fff5eb; border-color: #fbd9b8; color: #8a3a00; }
.alert-danger { background: #fdecec; border-color: #f6caca; color: #9b1c1c; }

/* ---------- Client home tiles ---------- */
.tiles .tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tiles .row > div:last-child .tile { border-right: 1px solid var(--line); }
.tiles .tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-1px); }
.tiles .tile i { color: var(--brand-100); }
.tiles .tile:hover i { color: var(--brand-600); }
.tiles .tile .stat { color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.tiles .tile .title { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.tiles .tile .highlight { background: var(--grad-line) !important; height: 3px; }

/* ---------- Domain search / homepage action tiles ---------- */
.domain-search, .home-domain-search {
    background: var(--grad-header) !important;
    color: #fff;
}
.home-domain-search h2, .domain-search h2 { color: #fff; }
.action-icon-btns a, .card-columns.home .card { border-radius: var(--radius); }
.action-icon-btns a .ico-container { color: var(--brand-600); }

/* ---------- Login / register ---------- */
.login-form, .tpl-login .primary-content .card, .tpl-clientregister .primary-content .card {
    border-radius: var(--radius);
}
.tpl-login .primary-content .card { max-width: 480px; margin: 1rem auto 0; box-shadow: var(--shadow); }
.tpl-login .primary-content .card::before,
.tpl-clientregister .primary-content .card:first-child::before,
.tpl-password-reset-container .primary-content .card::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--grad-line);
}

/* ---------- Store / cart (standard_cart and children) ---------- */
body #order-standard_cart .products .product,
body #order-standard_cart .view-cart-items,
body #order-standard_cart .order-summary,
body #order-standard_cart .sub-heading span,
body #order-standard_cart .panel { border-radius: var(--radius); }
body #order-standard_cart .order-summary { background: var(--navy-900); border: 0; }
body #order-standard_cart .order-summary h2 { background: transparent; color: #fff; font-weight: 700; font-size: 1.2rem; }
body #order-standard_cart .summary-container { background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
body #order-standard_cart .view-cart-items-header { background: var(--navy-900); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
body #order-standard_cart .products .product header { background: var(--bg-alt); border-bottom: 1px solid var(--line); color: var(--ink); }
body #order-standard_cart .products .product div.product-pricing span.price { color: var(--ink); font-weight: 800; }
body #order-standard_cart .btn-checkout, body #order-standard_cart .btn-order-now { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
body #order-standard_cart .btn-checkout:hover, body #order-standard_cart .btn-order-now:hover { background: #a34200; border-color: #a34200; color: #fff; }
body #order-standard_cart .sub-heading { border-top-color: var(--line); }
body #order-standard_cart .sub-heading span { background: var(--bg-alt); color: var(--muted); font-weight: 600; }
body #order-standard_cart .field-container { border-radius: var(--radius); }

/* ---------- Modals / popovers ---------- */
.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { border-bottom-color: var(--line); }
.modal-footer { border-top-color: var(--line); background: var(--bg-alt); }
.modal-localisation .modal-content { background: var(--navy-950); }
.modal-localisation .modal-body { background: radial-gradient(700px 300px at 100% 0%, #7c3aed38, transparent 70%); color: var(--on-dark); }
.modal-localisation .modal-footer { background: #ffffff0a; border-top-color: #ffffff14; }
.modal-localisation .item-selector .item { border-radius: var(--radius-xs); color: var(--on-dark); border: 1px solid #ffffff1f; }
.modal-localisation .item-selector .item:hover { background: #ffffff14; color: #fff; }
.modal-localisation .item-selector .item.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.popover { border-color: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
footer.footer.vd-footer {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    padding: clamp(3rem, 7vw, 4.5rem) 0 0;
    background:
        radial-gradient(900px 380px at 100% 0%, #7c3aed38, transparent 70%),
        radial-gradient(700px 360px at 0% 100%, #22d3ee1a, transparent 70%),
        var(--navy-950);
    color: var(--on-dark-muted);
    font-size: .92rem;
}
footer.footer.vd-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-line); }
.vd-footer a { color: var(--on-dark-muted); text-decoration: none; }
.vd-footer a:hover { color: #fff; }
.vd-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .vd-footer-grid { grid-template-columns: repeat(2, 1fr); } .vd-about { grid-column: 1 / -1; } }
@media (min-width: 992px) { .vd-footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .vd-about { grid-column: auto; } }
.vd-about p { max-width: 380px; margin: 1.1rem 0 0; line-height: 1.6; }
.vd-pay-title { color: #fff !important; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; }
.vd-pay { display: flex; flex-wrap: wrap; gap: .4rem; max-width: 380px; padding: 0; margin: .6rem 0 0; list-style: none; }
.vd-pay li { color: var(--on-dark); background: #ffffff0d; border: 1px solid #ffffff1f; border-radius: 999px; padding: .2rem .65rem; font-size: .78rem; }
.vd-social { margin: 1rem 0 0; padding: 0; }
.vd-social .btn-icon { color: var(--on-dark); background: #ffffff0d; border: 1px solid #ffffff1f; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.vd-col h2 {
    position: relative;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
}
.vd-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #22d3ee, #a855f7); }
.vd-col ul { list-style: none; margin: 0; padding: 0; }
.vd-col li a { display: inline-block; padding: .28rem 0; }
.vd-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-top: 3rem;
    padding-block: 1.5rem;
    border-top: 1px solid #ffffff14;
    font-size: .85rem;
}
.vd-footer-bottom p { margin: 0; }
.vd-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.vd-footer .vd-pill { font-size: .8rem !important; }

/* ---------- Misc ---------- */
#fullpage-overlay { background: #030a1ccc; }
.btn-return-to-admin { background: var(--accent-600); color: #fff; }
.progress-bar { background: var(--brand-600); }
.nav-tabs .nav-link.active { color: var(--brand-600); border-color: var(--line) var(--line) #fff; font-weight: 600; }
.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { color: var(--muted); }
.list-group-item.active { background: var(--brand-600); border-color: var(--brand-600); }
hr { border-top-color: var(--line); }

/* Affiliate programme is not offered */
#affiliatesPanel { display: none !important; }

/* =====================================================================
   Site-wide pass (2026-11-18)
   ===================================================================== */

/* ---------- Homepage ---------- */
.vd-home-section { margin: 0 0 3rem; }
.vd-home-title { margin: .5rem 0 1.25rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; }
.vd-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vd-group {
    display: flex; flex-direction: column; gap: .4rem;
    padding: 1.25rem 1.35rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    color: var(--text); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vd-group:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--text); text-decoration: none; }
.vd-group h3 { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.vd-group p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.vd-group-cta { margin-top: auto; padding-top: .6rem; font-size: .88rem; font-weight: 600; color: var(--brand-600); }
.vd-group-cta i { font-size: .8em; transition: transform .15s; }
.vd-group:hover .vd-group-cta i { transform: translateX(3px); }
.vd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.vd-tile {
    display: flex; flex-direction: column; align-items: center; gap: .65rem;
    padding: 1.5rem 1rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    color: var(--ink); font-weight: 600; font-size: .92rem; text-align: center; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.vd-tile i { font-size: 1.9rem; color: var(--brand-600); }
.vd-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--brand-600); text-decoration: none; }

/* ---------- Email verification banner ---------- */
.verification-banner { background: #fff7ed !important; border-bottom: 1px solid #fbd9b8; color: #8a3a00; padding: .6rem 0 !important; }
.verification-banner .text { color: #8a3a00; font-size: .9rem; }
.verification-banner i.fas, .verification-banner .fa-exclamation-triangle { color: var(--accent-600) !important; font-size: 1.3rem !important; }
.verification-banner .btn:not(.close) {
    background: #fff !important; color: var(--accent-600) !important;
    border: 1.5px solid #f3b98a !important; border-radius: var(--radius-xs); font-weight: 600; font-size: .85rem; padding: .35rem .9rem;
}
.verification-banner .btn:not(.close):hover { background: var(--accent-600) !important; color: #fff !important; border-color: var(--accent-600) !important; }
.verification-banner .close { color: #8a3a00; opacity: .6; }

/* ---------- List tables (tickets, invoices, services…) ---------- */
table.table-list { border-collapse: separate; border-spacing: 0; }
table.table-list thead th,
.dataTables_wrapper table.table-list thead th {
    text-align: left; padding: .7rem .9rem !important;
    background: var(--bg-alt) !important; color: var(--muted);
    font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    border: 0 !important; border-bottom: 1px solid var(--line) !important; white-space: nowrap;
}
.dataTables_wrapper table.table-list thead th.sorting,
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc { background-color: var(--bg-alt) !important; }
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc { color: var(--ink); }
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_desc::after { opacity: .25 !important; font-size: .8em; }
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::after { opacity: .8 !important; color: var(--brand-600); }
table.table-list tbody td { padding: .8rem .9rem; font-size: .9rem; text-align: left; border-top: 0; border-bottom: 1px solid var(--line); }
table.table-list tbody tr:last-child td { border-bottom: 0; }
table.table-list tbody td.text-center { text-align: left !important; }
.table-list > tbody > tr > td a.border-left { border-left: 0 !important; padding-left: 0 !important; }
.table-list span.hidden, .table-list .w-hidden { display: none !important; }
.table-container { overflow-x: auto; padding: 1rem; }
.dataTables_wrapper { min-width: 0; }
.dataTables_wrapper .dataTables_info { color: var(--muted); font-size: .85rem; padding-top: .25rem; }
.dataTables_wrapper .dataTables_filter label .form-control {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6680' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50% !important;
    padding: .5rem .8rem .5rem 2.4rem !important; border-radius: var(--radius-xs);
}
.dataTables_wrapper .dataTables_length select { border-radius: var(--radius-xs); }
.pagination > li > a, .pagination > li > span, .page-link { color: var(--ink); border-color: var(--line); }
.pagination .page-item:first-child .page-link { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.pagination .page-item:last-child .page-link { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
@media (max-width: 767.98px) {
    table.table-list tbody td, table.table-list thead th { padding: .65rem .6rem !important; }
    .table-container { padding: .6rem; }
}

/* ---------- Product details ---------- */
.product-details .product-status { background: var(--navy-900) !important; border-radius: var(--radius) !important; overflow: hidden; }
.product-details .product-status .product-icon { padding: 2rem 1rem 1.25rem; }
.product-details .product-status .product-icon .fa-stack { font-size: 1.6rem; }
.product-details .product-status .fa-circle { color: #ffffff1f !important; }
.product-details .product-status .fa-inverse, .product-details .product-status .fa-stack-1x { color: #67e8f9 !important; }
.product-details .product-status h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: .75rem 0 .2rem; }
.product-details .product-status h4 { color: var(--on-dark); font-size: .95rem; font-weight: 500; margin: 0; }
.product-details .product-status-text { padding: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #ffffff14 !important; color: var(--on-dark); }
.product-details .product-status-active .product-status-text { background: #13a46b !important; color: #fff; }
.product-details .product-status-suspended .product-status-text { background: var(--accent-600) !important; color: #fff; }
.product-details .col-md-6.text-center h4,
.product-details h4 { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .2rem; }
.product-details h4 + * , .product-details .col-md-6.text-center { color: var(--ink); font-weight: 600; }
.product-details-tab-container, .tab-content.bg-white { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Order form: product description on configure page ---------- */
body #order-standard_cart .product-info { border-radius: var(--radius); }
body #order-standard_cart .product-info ul { margin: .5rem 0 0; padding-left: 1.1rem; }
body #order-standard_cart .product-info li { margin: 0 0 .2rem; font-size: .9rem; color: var(--text); }
body #order-standard_cart .product-info ul br { display: none; }
body #order-standard_cart .product-info .product-title { color: var(--ink); font-weight: 700; }
div.product-details div.product-icon {
    background: radial-gradient(500px 220px at 100% 0%, #7c3aed38, transparent 70%), var(--navy-900) !important;
    border-radius: var(--radius) var(--radius) 0 0 !important; padding: 2rem 1rem 1.5rem !important; font-size: 44px !important;
}
.product-details .tab-content, .product-details-tab-container { background: #fff; }
/* phones: drop low-value columns so the rest stays readable */
@media (max-width: 767.98px) {
    #tableInvoicesList th:nth-child(2), #tableInvoicesList td:nth-child(2) { display: none; }
    #tableServicesList th:nth-child(1), #tableServicesList td:nth-child(1) { display: none; }
    #tableServicesList td:nth-child(4) { font-size: .8rem; }
}

/* ---------- Ticket list (templates/vpsdo/supportticketslist.tpl) ---------- */
table.vd-tickets { table-layout: fixed; width: 100% !important; }
table.vd-tickets th, table.vd-tickets td { box-sizing: border-box; }
table.vd-tickets th:nth-child(1) { width: 170px !important; }
table.vd-tickets th:nth-child(2) { width: auto !important; }
table.vd-tickets th:nth-child(3) { width: 125px !important; }
table.vd-tickets th:nth-child(4) { width: 165px !important; }
table.vd-tickets td.vd-dept { color: var(--text); font-size: .88rem; line-height: 1.35; }
/* one line when it fits, two when it doesn't; only longer subjects are cut */
table.vd-tickets td.vd-subject a {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    line-height: 1.4; color: var(--ink); text-decoration: none; word-break: break-word;
}
table.vd-tickets td.vd-subject .ticket-number { color: var(--brand-600); font-weight: 600; margin-right: .3rem; }
table.vd-tickets td.vd-subject .ticket-subject { font-weight: 500; }
table.vd-tickets td.vd-subject .ticket-subject.unread { font-weight: 700; }
table.vd-tickets tr:hover td.vd-subject a { color: var(--brand-600); }
table.vd-tickets .vd-dept-inline { display: none; }
table.vd-tickets td.vd-date { white-space: nowrap; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
    table.vd-tickets th:nth-child(1), table.vd-tickets td.vd-dept { display: none; }
    table.vd-tickets th:nth-child(3) { width: 88px !important; }
    table.vd-tickets th:nth-child(4) { width: 84px !important; }
    table.vd-tickets thead th { white-space: normal !important; line-height: 1.25; font-size: .64rem !important; padding-right: 1.1rem !important; }
    table.vd-tickets td.vd-subject a { -webkit-line-clamp: 4; }
    table.vd-tickets td.vd-subject .ticket-number { display: block; font-size: .78rem; }
    table.vd-tickets .vd-dept-inline { display: block; margin-top: .2rem; color: var(--muted); font-size: .74rem; }
    table.vd-tickets td.vd-date { white-space: normal; font-size: .76rem; }
}

/* ---------- Knowledgebase articles ---------- */
.vd-kb-article { color: var(--text); font-size: 15px; line-height: 1.7; }
.vd-kb-article > :first-child { margin-top: 0; }
.vd-kb-article p, .vd-kb-article ul, .vd-kb-article ol { margin: 0 0 14px; }
.vd-kb-article ul, .vd-kb-article ol { padding-left: 22px; }
.vd-kb-article li { margin-bottom: 4px; }
.vd-kb-article h2 { font-size: 21px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; padding-top: 4px; letter-spacing: -.01em; }
.vd-kb-article h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.vd-kb-article strong { color: var(--ink); }
.vd-kb-article a { color: var(--brand-600); }
.vd-kb-article code { font-size: .88em; color: var(--navy-700); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; word-break: break-word; }
.vd-kb-article pre { background: var(--navy-900); color: #e2e8f5; border-radius: var(--radius-sm); padding: 14px 16px; margin: 8px 0 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; white-space: pre; }
.vd-kb-article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; word-break: normal; }
.vd-kb-article li > pre { margin-top: 8px; }
.vd-kb-article .vd-table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vd-kb-article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vd-kb-article th, .vd-kb-article td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vd-kb-article thead th { background: var(--bg-alt); color: var(--ink); font-weight: 600; white-space: nowrap; }
.vd-kb-article tbody tr:last-child td { border-bottom: 0; }
.vd-kb-article td:first-child { color: var(--ink); font-weight: 500; }
.vd-kb-title { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
@media (max-width: 575px) {
    .vd-kb-title { font-size: 22px; }
    .vd-kb-article { font-size: 14.5px; }
    .vd-kb-article h2 { font-size: 19px; }
    .vd-kb-article thead th { white-space: normal; }
    .vd-kb-article th, .vd-kb-article td { padding: 8px 10px; }
}
@media print {
    .vd-kb-article pre { background: #f5f7fb; color: #000; border: 1px solid #ccc; white-space: pre-wrap; }
}
