/*!
 * Miku Network — client area theme for WHMCS. v1.2
 * Loaded after the base styles (css/all.min.css, css/theme.min.css). Everything is scoped to
 * body.mk so module screens that bring their own styles are left alone.
 *
 * Look: flat surfaces with hairline borders, small corner radii (4–8 px), monospace labels and
 * a faint grid behind the page head.
 *
 *  1. Fonts and tokens          6. Forms                   11. Client area pages
 *  2. Base                      7. Tables and lists        12. Footer
 *  3. Navigation                8. Labels and alerts       13. Notice bar, cookie notice, admin pill
 *  4. Mobile menu               9. Cards and sidebar       14. Responsive
 *  5. Page head and layout     10. Buttons, modals, misc   15. Bootstrap 3 compatibility (modules)
 *                                                          16. Chinese pages  17. Affiliates
 */

/* ---------------------------------------------------------------- 1. Fonts and tokens */
@font-face {
    font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url("../fonts/red-hat-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url("../fonts/red-hat-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --mk-brand: #128afa;
    --mk-brand-2: #4aa6ff;
    --mk-brand-3: #8fd0ff;
    --mk-brand-ink: #0b5fd6;
    --mk-brand-soft: rgba(18, 138, 250, .08);
    --mk-navy: #0b1d5a;
    --mk-ink: #0c1222;
    --mk-ink-2: #2b3346;
    --mk-muted: #5c6477;
    --mk-muted-2: #8a91a2;
    --mk-line: #e3e8f0;
    --mk-line-2: #d1d8e4;
    --mk-line-3: #b9c3d3;
    --mk-surface: #fff;
    --mk-subtle: #f7f9fc;
    --mk-page: #f3f6fa;
    --mk-paper: #fff;
    --mk-ice: #eef3fc;
    --mk-mist: #f3f6fa;
    --mk-hover: #f4f8ff;
    --mk-night: #070a12;
    --mk-on-dark: #eef2f8;
    --mk-on-dark-2: rgba(238, 242, 248, .66);
    --mk-on-dark-3: rgba(238, 242, 248, .42);
    --mk-ok: #16a34a;
    --mk-warn: #d97706;
    --mk-danger: #dc2626;

    --mk-radius-xl: 10px;
    --mk-radius-lg: 8px;
    --mk-radius: 6px;
    --mk-radius-sm: 4px;
    --mk-shadow: 0 1px 2px rgba(12, 18, 34, .04);
    --mk-shadow-hover: 0 10px 28px -14px rgba(11, 29, 90, .28);
    --mk-shadow-float: 0 0 0 1px rgba(12, 18, 34, .06), 0 18px 48px -18px rgba(12, 18, 34, .3);
    --mk-ease: cubic-bezier(.2, .7, .2, 1);

    /* Latin: Red Hat Display / JetBrains Mono; Chinese: HarmonyOS Sans SC (fonts/harmonyos-sans-sc), then the system's */
    --mk-font: "Red Hat Display", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mk-mono: "JetBrains Mono", "HarmonyOS Sans SC", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

    --mk-maxw: 1320px;
    --mk-pad: clamp(16px, 3.2vw, 40px);
    --mk-nav-top: 0px;
    --mk-nav-h: 64px;
    --mk-notice-h: 0px;
    --mk-head-offset: calc(var(--mk-nav-h) + var(--mk-notice-h) + 16px);
}

/* ---------------------------------------------------------------- 2. Base */
html { scroll-padding-top: var(--mk-head-offset); background: var(--mk-page); }
html.mk-menu-open { overflow: hidden; }

body.mk {
    height: auto; /* the base theme sets html, body { height: 100% } */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--mk-nav-h) + env(safe-area-inset-top, 0px));
    font-family: var(--mk-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--mk-ink);
    /* page colour with a faint grid behind the top of the page, fading out after ~520px */
    background:
        linear-gradient(180deg, rgba(243, 246, 250, .35) 0, var(--mk-page) 520px) no-repeat,
        linear-gradient(rgba(12, 18, 34, .05) 1px, transparent 1px) center top / 40px 40px,
        linear-gradient(90deg, rgba(12, 18, 34, .05) 1px, transparent 1px) center top / 40px 40px,
        var(--mk-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.mk > * { flex-shrink: 0; }
body.mk > .mk-main { flex: 1 0 auto; }
.mk ::selection { background: rgba(18, 138, 250, .18); }
.mk h1, .mk h2, .mk h3, .mk h4, .mk h5, .mk h6,
.mk .h1, .mk .h2, .mk .h3, .mk .h4, .mk .h5, .mk .h6 { font-family: var(--mk-font); color: var(--mk-ink); letter-spacing: -.015em; }
.mk h1, .mk .h1 { font-weight: 700; }
.mk h2, .mk .h2, .mk h3, .mk .h3 { font-weight: 650; }
.mk a { color: var(--mk-brand-ink); transition: color .2s; }
.mk a:hover { color: var(--mk-brand); text-decoration: none; }
.mk .text-muted { color: var(--mk-muted) !important; }
.mk .text-primary { color: var(--mk-brand-ink) !important; }
.mk .text-success { color: var(--mk-ok) !important; }
.mk .text-danger { color: var(--mk-danger) !important; }
.mk .text-warning { color: var(--mk-warn) !important; }
.mk hr { border-top-color: var(--mk-line); }
.mk code, .mk kbd, .mk pre, .mk-mono { font-family: var(--mk-mono); }
.mk code { color: var(--mk-brand-ink); background: var(--mk-brand-soft); padding: .1em .4em; border-radius: var(--mk-radius-sm); font-size: 87%; }
.mk pre code { padding: 0; background: none; }
.mk-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mk-ic--chevron { width: 14px; height: 14px; stroke-width: 2; transition: transform .3s var(--mk-ease); }
.mk-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--mk-brand-ink);
    font-family: var(--mk-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.mk-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--mk-brand); box-shadow: 0 0 0 3px var(--mk-brand-soft); }

/* the website's containers: up to 1320px wide with fluid gutters */
.mk .container.mk-container {
    width: 100%;
    max-width: calc(var(--mk-maxw) + 2 * var(--mk-pad));
    padding-left: var(--mk-pad);
    padding-right: var(--mk-pad);
}

/* ---------------------------------------------------------------- 3. Navigation */
.mk-nav {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0; right: 0;
    z-index: 1030;
    height: var(--mk-nav-h);
    border-bottom: 1px solid var(--mk-line);
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    transition: background-color .3s, box-shadow .3s;
}
.mk-nav.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 24px -18px rgba(12, 18, 34, .35); }
/* the bar's inner row (kept the old class name so the templates did not change) */
.mk-nav__pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: calc(var(--mk-maxw) + 2 * var(--mk-pad));
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--mk-pad);
}
.mk-nav__brand { display: flex; align-items: center; height: 100%; flex: none; }
.mk-nav__brand img { display: block; width: auto; height: 24px; }
.mk-nav__links { display: flex; align-items: center; align-self: stretch; gap: 2px; min-width: 0; }
.mk-nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.mk-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--mk-radius-sm);
    background: transparent;
    color: #3a4153;
    font: inherit;
    font-size: 14.5px;
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}
.mk .mk-nav__link { color: #3a4153; }
.mk .mk-nav__link:hover,
.mk .mk-nav__item.is-open > .mk-nav__link { color: var(--mk-ink); background: rgba(12, 18, 34, .045); }
.mk-nav__item.is-open > .mk-nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--mk-brand);
}
.mk-nav__link:focus-visible, .mk-nav__icon:focus-visible, .mk-nav__account:focus-visible, .mk-nav__cta:focus-visible, .mk-nav__burger:focus-visible { outline: 2px solid var(--mk-brand); outline-offset: 2px; }
.mk-nav__link:focus { outline: none; }
/* focus rings for keyboard users only (Bootstrap 4.5 also draws them on mouse and touch clicks) */
.mk button:focus:not(:focus-visible), .mk summary:focus:not(:focus-visible) { outline: 0; }
.mk-nav__item.is-open > .mk-nav__trigger .mk-ic--chevron { transform: rotate(180deg); }

.mk-panel {
    position: absolute;
    top: calc(100% + 1px);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s, transform .2s var(--mk-ease), visibility .18s;
}
.mk-nav__item.is-open > .mk-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mk-dropdown {
    left: 0;
    min-width: 240px;
    max-width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - var(--mk-nav-h) - 24px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--mk-line);
    border-radius: 0 0 var(--mk-radius) var(--mk-radius);
    background: #fff;
    box-shadow: 0 18px 40px -18px rgba(12, 18, 34, .3);
}
.mk-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mk-nav__item--right .mk-dropdown { left: auto; right: 0; }
.mk-dropdown--wide { min-width: 300px; }
.mk .mk-dropdown__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--mk-radius-sm);
    color: var(--mk-ink-2);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.mk .mk-dropdown__link:hover { background: var(--mk-subtle); color: var(--mk-ink); box-shadow: inset 2px 0 0 var(--mk-brand); }
.mk-dropdown__link > i { width: 18px; text-align: center; color: var(--mk-muted-2); font-size: 14px; transition: color .15s; }
.mk .mk-dropdown__link:hover > i { color: var(--mk-brand); }
.mk-dropdown__link > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.mk-dropdown__link--admin > i { color: var(--mk-warn); }
.mk-dropdown__divider { height: 1px; margin: 6px 8px; background: var(--mk-line); }
.mk-dropdown__title { padding: 8px 12px 6px; font-family: var(--mk-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-muted-2); }
.mk-dropdown__empty { padding: 12px 12px 14px; color: var(--mk-muted); font-size: 14px; }
.mk-pillcount {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: var(--mk-radius-sm);
    background: var(--mk-brand-soft); color: var(--mk-brand-ink);
    font-family: var(--mk-mono); font-size: 11px; font-weight: 500; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.mk .mk-alertitem { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--mk-radius-sm); color: var(--mk-ink-2); font-size: 14px; line-height: 1.45; text-decoration: none; }
.mk .mk-alertitem:hover { background: var(--mk-subtle); color: var(--mk-ink); }
.mk-alertitem > i { margin-top: 2px; color: var(--mk-brand); }
.mk-alertitem--danger > i { color: var(--mk-danger); }
.mk-alertitem--warning > i { color: var(--mk-warn); }
.mk-alertitem--success > i { color: var(--mk-ok); }

.mk-nav__actions { display: flex; align-items: center; align-self: stretch; gap: 6px; margin-left: auto; flex: none; }
.mk-lang { display: flex; padding: 2px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-subtle); }
.mk .mk-lang a { padding: 6px 9px; border-radius: var(--mk-radius-sm); color: #6a7183; font-family: var(--mk-mono); font-size: 11.5px; font-weight: 500; line-height: 1; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.mk .mk-lang a:hover { color: var(--mk-ink); }
.mk .mk-lang a[aria-current="true"] { background: #fff; color: var(--mk-ink); box-shadow: 0 0 0 1px var(--mk-line-2); }
.mk-nav__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--mk-radius);
    background: transparent;
    color: var(--mk-ink);
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.mk .mk-nav__icon { color: var(--mk-ink); }
.mk .mk-nav__icon:hover, .mk .mk-nav__item.is-open > .mk-nav__icon { border-color: var(--mk-line); background: var(--mk-subtle); color: var(--mk-ink); }
.mk-count {
    position: absolute;
    top: 2px; right: 1px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--mk-brand);
    color: #fff;
    font-family: var(--mk-mono); font-size: 10.5px; font-weight: 500; line-height: 17px; text-align: center;
    font-variant-numeric: tabular-nums;
}
.mk-count.is-empty { display: none; }
.mk-count--alert { background: #ef4444; }
.mk .mk-nav__cta {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 16px;
    border-radius: var(--mk-radius);
    background: var(--mk-ink); color: #fff;
    font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
    transition: background-color .2s;
}
.mk .mk-nav__cta:hover { background: #232a3a; color: #fff; }
.mk-nav__account {
    display: inline-flex; align-items: center; gap: 9px;
    max-width: 230px; height: 40px;
    padding: 0 10px 0 4px;
    border: 1px solid var(--mk-line-2);
    border-radius: var(--mk-radius);
    background: #fff; color: var(--mk-ink);
    font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.mk-nav__account:hover, .mk-nav__item.is-open > .mk-nav__account { border-color: var(--mk-line-3); background: var(--mk-subtle); }
.mk-nav__account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-nav__account .mk-ic--chevron { opacity: .6; }
.mk-nav__item.is-open > .mk-nav__account .mk-ic--chevron { transform: rotate(180deg); }
.mk-avatar {
    display: grid; place-items: center; flex: none;
    width: 30px; height: 30px;
    border-radius: var(--mk-radius-sm);
    background: linear-gradient(135deg, var(--mk-brand-2), var(--mk-brand-ink));
    color: #fff;
    font-size: 13px; font-weight: 700; line-height: 1;
}
.mk-avatar .mk-ic { width: 16px; height: 16px; stroke-width: 1.8; }
.mk-avatar--lg { width: 42px; height: 42px; border-radius: var(--mk-radius); font-size: 17px; }
.mk-accounthead { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--mk-line); }
.mk-accounthead__text { display: grid; min-width: 0; line-height: 1.3; }
.mk-accounthead__label { font-family: var(--mk-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-muted-2); }
.mk-accounthead__name { font-size: 15px; font-weight: 650; color: var(--mk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-accounthead__mail { font-size: 12.5px; color: var(--mk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-nav__burger { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--mk-radius); background: var(--mk-ink); cursor: pointer; }
.mk-nav__burger i { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 1px; background: #fff; transition: transform .35s var(--mk-ease); }
.mk-nav__burger i:nth-of-type(1) { top: 16px; }
.mk-nav__burger i:nth-of-type(2) { top: 22px; }
.mk-nav.is-menu .mk-nav__burger i:nth-of-type(1) { transform: translateY(3px) rotate(45deg); }
.mk-nav.is-menu .mk-nav__burger i:nth-of-type(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------------------------------------------------------------- 4. Mobile menu */
.mk-menu {
    position: fixed;
    inset: 0;
    z-index: 1025;
    overflow-y: auto;
    padding: calc(var(--mk-nav-h) + 22px + env(safe-area-inset-top, 0px)) var(--mk-pad) 40px;
    background: rgba(247, 249, 252, .98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.mk-menu[hidden] { display: none; }
.mk-menu__body { display: grid; gap: 26px; max-width: 640px; margin: 0 auto; }
.mk-menu__links { display: grid; border-top: 1px solid var(--mk-line); }
.mk .mk-menu__link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--mk-line);
    color: var(--mk-ink);
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}
.mk-menu__link::-webkit-details-marker { display: none; }
.mk-menu__group[open] > .mk-menu__link .mk-ic--chevron { transform: rotate(180deg); }
.mk-menu__sub { display: grid; padding: 6px 4px 12px; border-bottom: 1px solid var(--mk-line); }
.mk .mk-menu__sub a { padding: 9px 0 9px 12px; border-left: 1px solid var(--mk-line-2); color: var(--mk-ink-2); font-size: 15.5px; text-decoration: none; }
.mk .mk-menu__sub a:hover { border-left-color: var(--mk-brand); color: var(--mk-ink); }
.mk-menu__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mk-menu__account { display: grid; gap: 10px; }
.mk-menu__account .mk-menu__link { border-top: 1px solid var(--mk-line); }
.mk-menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 14px; }
.mk .mk-menu__foot > a { color: var(--mk-muted); }
.mk-menu__foot .mk-lang { margin-left: auto; }

/* the theme's own buttons */
.mk .mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--mk-radius);
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.mk .mk-btn--dark { background: var(--mk-ink); color: #fff; }
.mk .mk-btn--dark:hover { background: #232a3a; color: #fff; }
.mk .mk-btn--light { border-color: var(--mk-line-2); background: #fff; color: var(--mk-ink); }
.mk .mk-btn--light:hover { border-color: var(--mk-brand); background: #fff; color: var(--mk-brand-ink); }
.mk .mk-btn--block { width: 100%; }
.mk .mk-btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ---------------------------------------------------------------- 5. Page head and layout */
.mk-pagehead { padding: 30px 0 4px; }
.mk-pagehead--slim { padding: 20px 0 0; }
.mk-pagehead__title { margin: 10px 0 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--mk-ink); }
.mk-pagehead__sub { margin: 8px 0 0; max-width: 760px; color: var(--mk-muted); }
.mk .mk-crumbs .breadcrumb { margin: 0; padding: 0; background: none; border-radius: 0; font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.mk .mk-crumbs .breadcrumb-item, .mk .mk-crumbs .breadcrumb-item a { color: var(--mk-muted-2); }
.mk .mk-crumbs .breadcrumb-item a:hover { color: var(--mk-brand-ink); }
.mk .mk-crumbs .breadcrumb-item.active { color: var(--mk-muted); }
.mk .mk-crumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--mk-line-3); }

.mk .mk-main { padding: 22px 0 88px; background: none; }
.mk .mk-main--bare { padding-top: 28px; }
.mk .mk-side .sidebar { margin-bottom: 0; }
.mk .mk-side__inner.is-sticky { position: sticky; top: var(--mk-head-offset); }
.mk .primary-content > :last-child { margin-bottom: 0; }

/* WHMCS's network-issue banner and e-mail verification bars */
.mk .alert.alert-warning.global-alert,
.mk .verification-banner { margin: 16px auto 0; max-width: calc(var(--mk-maxw) + 2 * var(--mk-pad)); border-radius: var(--mk-radius); }
.mk .verification-banner { padding: 10px 0; border: 1px solid rgba(217, 119, 6, .25); background: #fff8eb; color: #8a4b05; }
.mk .verification-banner .text { font-weight: 600; }
.mk .verification-banner a.mk-verify-link { margin-left: 8px; color: #8a4b05; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- 6. Forms */
.mk .form-control,
.mk .custom-select,
.mk select.form-control {
    min-height: 42px;
    padding: .5rem .85rem;
    border: 1px solid var(--mk-line-2);
    border-radius: var(--mk-radius);
    background-color: #fff;
    color: var(--mk-ink);
    font-size: 14.5px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}
.mk .form-control:not(textarea),
.mk .custom-select { height: 42px; }
.mk .custom-select, .mk select.custom-select { padding-right: 2.3rem; background-position: right .85rem center; }
.mk .form-control-sm, .mk .custom-select-sm { min-height: 34px; height: 34px; padding: .3rem .7rem; font-size: 13.5px; }
.mk .form-control-lg, .mk .custom-select-lg { min-height: 50px; height: 50px; font-size: 16px; }
.mk textarea.form-control { min-height: 110px; line-height: 1.55; }
.mk .form-control:hover:not(:focus):not(:disabled), .mk .custom-select:hover:not(:focus) { border-color: var(--mk-line-3); }
.mk .form-control:focus,
.mk .custom-select:focus { border-color: var(--mk-brand); box-shadow: 0 0 0 3px rgba(18, 138, 250, .14); }
.mk .form-control::placeholder { color: #9aa1b1; }
.mk .form-control:disabled, .mk .form-control[readonly] { background-color: var(--mk-subtle); color: var(--mk-muted); }
.mk label,
.mk .form-control-label,
.mk .col-form-label,
.mk .control-label { color: var(--mk-ink-2); font-size: 13.5px; font-weight: 600; }
.mk .form-text, .mk .help-block, .mk small.text-muted { color: var(--mk-muted) !important; font-size: 12.5px; }
.mk .input-group-text { min-height: 42px; border-color: var(--mk-line-2); background: var(--mk-subtle); color: var(--mk-muted); border-radius: var(--mk-radius); }
.mk .input-group-merge .input-group-text { background: #fff; }
.mk .input-group-merge:focus-within .input-group-text { border-color: var(--mk-brand); color: var(--mk-brand); }
.mk .is-invalid, .mk .form-control.is-invalid { border-color: var(--mk-danger); }
.mk .invalid-feedback { color: var(--mk-danger); }
.mk .custom-control-label { font-weight: 500; }
.mk .custom-control-label::before { border-color: var(--mk-line-3); }
.mk .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--mk-brand); background-color: var(--mk-brand); }
.mk .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(18, 138, 250, .16); }
.mk .custom-checkbox .custom-control-label::before { border-radius: 3px; }
.mk input[type="checkbox"], .mk input[type="radio"] { accent-color: var(--mk-brand); }
.mk .form-group { margin-bottom: 1.15rem; }
.mk fieldset { min-width: 0; }

/* ---------------------------------------------------------------- 7. Tables and lists */
.mk .table { margin-bottom: 0; color: var(--mk-ink-2); font-size: 14.5px; }
.mk .table thead th,
.mk .table > tbody > tr > th {
    border-top: 0;
    border-bottom: 1px solid var(--mk-line);
    background: var(--mk-subtle);
    color: var(--mk-muted-2);
    font-family: var(--mk-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}
.mk .table td, .mk .table th { padding: 13px 16px; border-top: 1px solid var(--mk-line); vertical-align: middle; }
.mk .table thead th { border-top: 0; }
.mk .table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
.mk .table-hover tbody tr:hover,
.mk .table-list tbody tr:hover { background: var(--mk-hover); }
.mk .table-bordered, .mk .table-bordered td, .mk .table-bordered th { border-color: var(--mk-line); }
.mk .table-responsive { border-radius: var(--mk-radius-lg); }

/* WHMCS's client lists (services, invoices, tickets…) */
.mk .table-container {
    padding: 0;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: #fff;
    box-shadow: var(--mk-shadow);
    overflow: hidden;
}
.mk .table-container .dataTables_wrapper { padding: 0; }
.mk .table-container .table { border-collapse: separate; border-spacing: 0; }
.mk .table-list > thead > tr > th { background: var(--mk-subtle); border-bottom: 1px solid var(--mk-line); padding-top: 12px; padding-bottom: 11px; }
.mk .table-list > tbody > tr > td { padding-top: 15px; padding-bottom: 15px; }
.mk .table-list > tbody > tr > td a { font-weight: 600; }
.mk .table-list > tbody > tr > td .text-domain, .mk .table-list > tbody > tr > td small { color: var(--mk-muted); }
.mk .dataTables_wrapper .dataTables_filter,
.mk .dataTables_wrapper .dataTables_length { padding: 12px 16px; }
.mk .dataTables_wrapper .dataTables_filter input,
.mk .dataTables_wrapper .dataTables_length select {
    height: 36px;
    min-height: 36px;
    border: 1px solid var(--mk-line-2);
    border-radius: var(--mk-radius);
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
}
.mk .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--mk-brand); box-shadow: 0 0 0 3px rgba(18, 138, 250, .14); outline: 0; }
.mk .dataTables_wrapper .dataTables_info { padding: 14px 16px; color: var(--mk-muted); font-family: var(--mk-mono); font-size: 12px; }
.mk .dataTables_wrapper .dataTables_paginate { padding: 10px 16px 14px; }
.mk .dataTables_wrapper .dataTables_empty { padding: 40px 16px !important; color: var(--mk-muted); text-align: center; }
.mk .table-container .table-list > thead > tr > th.sorting::after,
.mk .table-container .table-list > thead > tr > th.sorting_asc::after,
.mk .table-container .table-list > thead > tr > th.sorting_desc::after { opacity: .45; }

.mk .list-group-item { border-color: var(--mk-line); color: var(--mk-ink-2); }
.mk .list-group-item-action:hover, .mk .list-group-item-action:focus { background: var(--mk-hover); color: var(--mk-ink); }
.mk .list-group-item.active { z-index: 1; background: var(--mk-brand-soft); border-color: var(--mk-line); color: var(--mk-brand-ink); font-weight: 600; }
.mk .list-group-item.disabled, .mk .list-group-item:disabled { color: var(--mk-muted-2); background: #fff; }

/* ---------------------------------------------------------------- 8. Labels and alerts */
.mk .label,
.mk .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 0;
    padding: .3em .6em;
    border-radius: var(--mk-radius-sm);
    background: rgba(12, 18, 34, .06);
    color: var(--mk-ink-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    white-space: nowrap;
    vertical-align: middle;
}
.mk .label.status::before,
.mk .label[class*="status-"]::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; flex: none; }
.mk .badge-primary, .mk .badge-info, .mk .label-info, .mk .label-primary,
.mk .label.status-open, .mk .label.status-answered, .mk .label.status-inprogress { background: rgba(18, 138, 250, .1); color: var(--mk-brand-ink); }
.mk .badge-success, .mk .label-success,
.mk .label.status-active, .mk .label.status-paid, .mk .label.status-completed, .mk .label.status-accepted, .mk .label.status-delivered { background: rgba(22, 163, 74, .1); color: #15803d; }
.mk .badge-warning, .mk .label-warning,
.mk .label.status-pending, .mk .label.status-payment-pending, .mk .label.status-pending-registration, .mk .label.status-pending-transfer, .mk .label.status-onhold, .mk .label.status-customer-reply, .mk .label.status-grace { background: rgba(217, 119, 6, .11); color: #b45309; }
.mk .badge-danger, .mk .label-danger,
.mk .label.status-suspended, .mk .label.status-unpaid, .mk .label.status-overdue, .mk .label.status-fraud, .mk .label.status-collections, .mk .label.status-dead, .mk .label.status-lost, .mk .label.status-redemption, .mk .label.status-expired { background: rgba(220, 38, 38, .09); color: #b91c1c; }
.mk .badge-secondary, .mk .badge-light, .mk .label-default,
.mk .label.status-cancelled, .mk .label.status-terminated, .mk .label.status-closed, .mk .label.status-refunded, .mk .label.status-transferred-away, .mk .label.status-draft { background: rgba(12, 18, 34, .06); color: var(--mk-muted); }
.mk .badge-dark { background: var(--mk-ink); color: #fff; }
/* ticket statuses can carry their own colour from WHMCS; keep the text readable on it */
.mk .label.status[style*="background"] { color: #fff; }

.mk .alert {
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: var(--mk-radius);
    padding: 13px 16px;
    font-size: 14.5px;
    line-height: 1.55;
}
.mk .alert-info { border-color: rgba(18, 138, 250, .22); border-left-color: var(--mk-brand); background: #f0f7ff; color: #0b4fa8; }
.mk .alert-success { border-color: rgba(22, 163, 74, .22); border-left-color: var(--mk-ok); background: #effaf3; color: #14632f; }
.mk .alert-warning { border-color: rgba(217, 119, 6, .24); border-left-color: var(--mk-warn); background: #fff8eb; color: #8a4b05; }
.mk .alert-danger { border-color: rgba(220, 38, 38, .22); border-left-color: var(--mk-danger); background: #fef1f1; color: #9b1c1c; }
.mk .alert-secondary, .mk .alert-light { border-color: var(--mk-line); border-left-color: var(--mk-line-3); background: var(--mk-subtle); color: var(--mk-ink-2); }
.mk .alert a:not(.btn) { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.mk .alert .close { opacity: .45; text-shadow: none; }
.mk .alert-dismissible .close { padding: 12px 16px; }

/* ---------------------------------------------------------------- 9. Cards and sidebar */
.mk .card {
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: #fff;
    box-shadow: var(--mk-shadow);
}
.mk .card + .card { margin-top: 0; }
.mk .card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mk-line);
    background: transparent;
}
.mk .card-header:first-child { border-radius: calc(var(--mk-radius-lg) - 1px) calc(var(--mk-radius-lg) - 1px) 0 0; }
.mk .card-title, .mk .card-header h3 { margin: 0; color: var(--mk-ink); font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.mk .card-body { padding: 20px; }
.mk .card-footer { padding: 12px 20px; border-top: 1px solid var(--mk-line); background: var(--mk-subtle); }
.mk .card-footer:last-child { border-radius: 0 0 calc(var(--mk-radius-lg) - 1px) calc(var(--mk-radius-lg) - 1px); }
.mk .card > .list-group:last-child,
.mk .card > .collapsable-card-body:last-child > .list-group:last-child { border-bottom-left-radius: var(--mk-radius-lg); border-bottom-right-radius: var(--mk-radius-lg); overflow: hidden; }

.mk .sidebar .card { margin-bottom: 14px !important; overflow: hidden; }
.mk .card-sidebar .card-header { padding: 12px 16px; background: var(--mk-subtle); }
.mk .card-sidebar .card-title { display: flex; align-items: center; gap: 8px; color: var(--mk-muted); font-family: var(--mk-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.mk .card-sidebar .card-title > i:first-child { color: var(--mk-brand); }
.mk .card-sidebar .card-title .badge { margin-left: auto; }
.mk .card-sidebar .card-minimise { margin-left: auto; color: var(--mk-muted-2); font-size: 12px; cursor: pointer; }
.mk .card-sidebar .card-title .badge + .card-minimise { margin-left: 8px; }
.mk .card-sidebar .card-body { padding: 14px 16px; font-size: 14px; }
.mk .card-sidebar .list-group-item { padding: 10px 16px; font-size: 14.5px; }
.mk .card-sidebar .list-group-item.active { box-shadow: inset 2px 0 0 var(--mk-brand); }
.mk .card-sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
.mk .card-sidebar .sidebar-menu-item-icon-wrapper { width: 18px; text-align: center; }
.mk .card-sidebar .sidebar-menu-item-icon { color: var(--mk-muted-2); }
.mk .card-sidebar .list-group-item.active .sidebar-menu-item-icon,
.mk .card-sidebar .list-group-item:hover .sidebar-menu-item-icon { color: var(--mk-brand); }
.mk .card-sidebar .sidebar-menu-item-label { flex: 1 1 auto; min-width: 0; }
.mk .card-sidebar .sidebar-menu-item-badge .badge { background: var(--mk-brand-soft); color: var(--mk-brand-ink); font-family: var(--mk-mono); font-weight: 500; }
.mk .card-sidebar .card-footer { padding: 10px 16px; }

/* coloured accents WHMCS gives the Client Area home cards */
.mk [class*="card-accent-"] { --mk-accent: var(--mk-brand); border-top: 2px solid var(--mk-accent); }
.mk .card-accent-gold, .mk .card-accent-sun-flower { --mk-accent: #f59e0b; }
.mk .card-accent-green, .mk .card-accent-emerald, .mk .card-accent-lime { --mk-accent: #16a34a; }
.mk .card-accent-red, .mk .card-accent-pomegranate { --mk-accent: #ef4444; }
.mk .card-accent-blue, .mk .card-accent-teal, .mk .card-accent-turquoise { --mk-accent: var(--mk-brand); }
.mk .card-accent-orange, .mk .card-accent-brand-cpanel-orange { --mk-accent: #f97316; }
.mk .card-accent-pink, .mk .card-accent-magenta { --mk-accent: #ec4899; }
.mk .card-accent-purple, .mk .card-accent-amethyst { --mk-accent: #8b5cf6; }
.mk .card-accent-midnight-blue, .mk .card-accent-wet-asphalt { --mk-accent: var(--mk-navy); }
.mk .card-accent-silver, .mk .card-accent-asbestos { --mk-accent: #94a3b8; }

/* ---------------------------------------------------------------- 10. Buttons, modals, misc */
.mk .btn {
    border-radius: var(--mk-radius);
    padding: .5rem 1.05rem;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.005em;
    transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.mk .btn:focus, .mk .btn.focus { box-shadow: 0 0 0 3px rgba(18, 138, 250, .2); }
.mk .btn-lg { padding: .7rem 1.5rem; font-size: 16px; }
.mk .btn-sm { padding: .32rem .8rem; font-size: 13px; }
.mk .btn-xs { padding: .16rem .55rem; font-size: 12px; border-radius: var(--mk-radius-sm); }
.mk .btn-primary, .mk .btn-primary:disabled, .mk .btn-primary.disabled { border-color: var(--mk-brand); background: var(--mk-brand); color: #fff; }
.mk .btn-primary:hover, .mk .btn-primary:focus { border-color: var(--mk-brand-ink); background: var(--mk-brand-ink); color: #fff; }
.mk .btn-primary:not(:disabled):not(.disabled):active, .mk .btn-primary:not(:disabled):not(.disabled).active { border-color: #0a4fb3; background: #0a4fb3; }
.mk .btn-success { border-color: var(--mk-ok); background: var(--mk-ok); color: #fff; }
.mk .btn-success:hover, .mk .btn-success:focus { border-color: #15803d; background: #15803d; color: #fff; }
.mk .btn-danger { border-color: #ef4444; background: #ef4444; color: #fff; }
.mk .btn-danger:hover, .mk .btn-danger:focus { border-color: var(--mk-danger); background: var(--mk-danger); color: #fff; }
.mk .btn-warning { border-color: #f59e0b; background: #f59e0b; color: #fff; }
.mk .btn-warning:hover, .mk .btn-warning:focus { border-color: var(--mk-warn); background: var(--mk-warn); color: #fff; }
.mk .btn-info { border-color: #0ea5e9; background: #0ea5e9; color: #fff; }
.mk .btn-info:hover, .mk .btn-info:focus { border-color: #0284c7; background: #0284c7; color: #fff; }
.mk .btn-dark { border-color: var(--mk-ink); background: var(--mk-ink); color: #fff; }
.mk .btn-dark:hover, .mk .btn-dark:focus { border-color: #232a3a; background: #232a3a; color: #fff; }
.mk .btn-default, .mk .btn-secondary, .mk .btn-light {
    border-color: var(--mk-line-2);
    background: #fff;
    color: var(--mk-ink);
}
.mk .btn-default:hover, .mk .btn-default:focus,
.mk .btn-secondary:hover, .mk .btn-secondary:focus,
.mk .btn-light:hover, .mk .btn-light:focus { border-color: var(--mk-line-3); background: var(--mk-subtle); color: var(--mk-ink); }
.mk .btn-outline-primary { border-color: rgba(18, 138, 250, .45); color: var(--mk-brand-ink); }
.mk .btn-outline-primary:hover { border-color: var(--mk-brand); background: var(--mk-brand); color: #fff; }
.mk .btn-outline-secondary, .mk .btn-outline-default { border-color: var(--mk-line-2); color: var(--mk-ink-2); }
.mk .btn-outline-secondary:hover, .mk .btn-outline-default:hover { border-color: var(--mk-line-3); background: var(--mk-subtle); color: var(--mk-ink); }
.mk .btn-link { color: var(--mk-brand-ink); font-weight: 600; }
.mk .btn-link:hover { color: var(--mk-brand); text-decoration: none; }
.mk .input-group > .input-group-append > .btn,
.mk .input-group > .input-group-prepend > .btn { min-height: 42px; }

.mk .dropdown-menu {
    padding: 6px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    box-shadow: 0 18px 40px -18px rgba(12, 18, 34, .3);
    font-size: 14.5px;
}
.mk .dropdown-item { padding: 8px 12px; border-radius: var(--mk-radius-sm); color: var(--mk-ink-2); }
.mk .dropdown-item:hover, .mk .dropdown-item:focus { background: var(--mk-subtle); color: var(--mk-ink); }
.mk .dropdown-item.active, .mk .dropdown-item:active { background: var(--mk-brand-soft); color: var(--mk-brand-ink); }
.mk .dropdown-divider { margin: 6px 4px; border-top-color: var(--mk-line); }

.mk .modal-content { border: 1px solid var(--mk-line); border-radius: var(--mk-radius-xl); box-shadow: 0 40px 90px -30px rgba(11, 29, 90, .55); }
.mk .modal-header { padding: 16px 20px; border-bottom: 1px solid var(--mk-line); }
.mk .modal-title { font-size: 17px; font-weight: 650; }
.mk .modal-body { padding: 20px; }
.mk .modal-footer { padding: 12px 20px; border-top: 1px solid var(--mk-line); background: var(--mk-subtle); border-radius: 0 0 var(--mk-radius-xl) var(--mk-radius-xl); }
.mk .modal-backdrop.show { opacity: .45; }
.mk .modal-backdrop { background: #070a12; }

.mk .nav-tabs { gap: 2px; border-bottom: 1px solid var(--mk-line); }
.mk .nav-tabs .nav-link { border: 0; border-radius: 0; color: var(--mk-muted); font-weight: 600; padding: 10px 14px; }
.mk .nav-tabs .nav-link:hover { color: var(--mk-ink); background: transparent; box-shadow: inset 0 -2px 0 var(--mk-line-3); }
.mk .nav-tabs .nav-link.active, .mk .nav-tabs .nav-item.show .nav-link { color: var(--mk-ink); background: transparent; box-shadow: inset 0 -2px 0 var(--mk-brand); }
.mk .nav-pills .nav-link { border-radius: var(--mk-radius); color: var(--mk-ink-2); font-weight: 600; }
.mk .nav-pills .nav-link.active, .mk .nav-pills .show > .nav-link { background: var(--mk-ink); color: #fff; }
.mk .tab-content > .tab-pane { padding-top: 4px; }

.mk .pagination { gap: 4px; }
.mk .page-link { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--mk-radius-sm) !important; background: transparent; color: var(--mk-ink-2); font-family: var(--mk-mono); font-weight: 500; font-size: 12.5px; }
.mk .page-link:hover { border-color: var(--mk-line); background: #fff; color: var(--mk-ink); }
.mk .page-item.active .page-link { border-color: var(--mk-ink); background: var(--mk-ink); color: #fff; }
.mk .page-item.disabled .page-link { background: transparent; color: var(--mk-muted-2); }

.mk .progress { height: 6px; border-radius: 2px; background: rgba(12, 18, 34, .07); }
.mk .progress-bar { border-radius: 2px; background: linear-gradient(90deg, var(--mk-brand), var(--mk-brand-2)); }
.mk .popover { border: 1px solid var(--mk-line); border-radius: var(--mk-radius); box-shadow: var(--mk-shadow-float); }
.mk .tooltip-inner { border-radius: var(--mk-radius-sm); background: var(--mk-ink); font-size: 12.5px; }
.mk .close { font-weight: 400; }
/* WHMCS colour helpers (tile bars, card header buttons) on the theme palette */
.mk .bg-color-blue, .mk .bg-color-teal, .mk .bg-color-turquoise { background-color: var(--mk-brand) !important; }
.mk .bg-color-green, .mk .bg-color-emerald, .mk .bg-color-lime { background-color: var(--mk-ok) !important; }
.mk .bg-color-red, .mk .bg-color-pomegranate { background-color: #ef4444 !important; }
.mk .bg-color-gold, .mk .bg-color-sun-flower { background-color: #f59e0b !important; }
.mk .bg-color-orange { background-color: #f97316 !important; }
.mk .bg-color-pink, .mk .bg-color-magenta { background-color: #ec4899 !important; }
.mk .bg-color-purple, .mk .bg-color-amethyst { background-color: #8b5cf6 !important; }
.mk .bg-color-midnight-blue, .mk .bg-color-wet-asphalt { background-color: var(--mk-navy) !important; }
.mk .bg-color-silver, .mk .bg-color-asbestos { background-color: #94a3b8 !important; }
.mk .btn[class*="bg-color-"] { border-color: transparent; color: #fff; }

/* ---------------------------------------------------------------- 11. Client area pages */
/* home: four tiles + cards */
.mk .tiles { margin-bottom: 20px !important; border: 0; background: none; box-shadow: none; }
.mk .tiles > .row { margin: -7px; }
.mk .tiles > .row > [class*="col-"] { padding: 7px; }
.mk .tiles .tile {
    position: relative;
    display: block;
    height: 100%;
    padding: 18px 20px 20px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: #fff;
    box-shadow: var(--mk-shadow);
    color: var(--mk-ink);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s;
}
.mk .tiles .tile:hover { border-color: rgba(18, 138, 250, .45); box-shadow: var(--mk-shadow-hover); background: #fff; }
.mk .tiles .tile > i { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-subtle); color: var(--mk-brand); font-size: 15px; opacity: 1; }
.mk .tiles .tile .stat { margin: 0; color: var(--mk-ink); font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mk .tiles .tile .title { margin-top: 6px; color: var(--mk-muted-2); font-family: var(--mk-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.mk .tiles .tile .highlight { position: absolute; left: 0; right: auto; bottom: 0; width: 100%; height: 2px; border-radius: 0; opacity: .9; }
.mk .client-home-cards .card { margin-bottom: 14px; }
.mk .client-home-cards .card-header .btn { margin-top: -4px; }
.mk .client-home-cards .list-group-item { padding: 12px 20px; }

/* services, product details */
.mk .product-details .product-status,
.mk .product-status {
    position: relative;
    overflow: hidden;
    border: 1px solid #0c1222;
    border-radius: var(--mk-radius-lg);
    background: #0c1222;
    color: #fff;
}
.mk .product-status::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.mk .product-status > * { position: relative; }
.mk .product-status .product-icon i, .mk .product-status h3, .mk .product-status h4 { color: #fff; }
.mk .product-status .product-status-text { border-radius: 0; background: rgba(255, 255, 255, .06); color: #fff; font-family: var(--mk-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.mk .product-details-tab-container,
.mk .module-client-area { margin-top: 4px; }

/* tickets */
.mk .ticket-reply {
    margin-bottom: 12px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: #fff;
    box-shadow: var(--mk-shadow);
    overflow: hidden;
}
.mk .ticket-reply .posted-by { padding: 12px 18px; border-bottom: 1px solid var(--mk-line); background: var(--mk-subtle); color: var(--mk-muted); font-size: 13.5px; }
.mk .ticket-reply .posted-by .posted-by-name { color: var(--mk-ink); font-weight: 650; }
.mk .ticket-reply .message { padding: 16px 18px; color: var(--mk-ink-2); }
.mk .ticket-reply.staff { border-left: 2px solid var(--mk-brand); }
.mk .ticket-reply.staff .posted-by { background: #f2f8ff; }
.mk .ticket-reply .attachments { padding: 12px 18px; border-top: 1px solid var(--mk-line); }

/* knowledgebase, announcements, downloads */
.mk .kb-search .form-control, .mk .knowledgebase-search .form-control { border-radius: var(--mk-radius); }
.mk .kb-article-content, .mk .announcement-content { color: var(--mk-ink-2); line-height: 1.75; }
.mk .kb-article-content img, .mk .announcement-content img { max-width: 100%; height: auto; border-radius: var(--mk-radius); }

/* login, register, password reset: one centred card */
.mk .mw-540 { max-width: 480px; margin-left: auto; margin-right: auto; }
.mk .login-form .card,
.mk-page-password-reset-container .card,
.mk-page-two-factor-challenge .card { border-radius: var(--mk-radius-xl); box-shadow: 0 1px 2px rgba(12, 18, 34, .04), 0 30px 60px -40px rgba(11, 29, 90, .45); }
.mk .login-form .card::before,
.mk-page-password-reset-container .card::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; border-radius: var(--mk-radius-xl) var(--mk-radius-xl) 0 0; background: linear-gradient(90deg, var(--mk-brand), var(--mk-brand-3)); }
.mk .login-form .card-body { padding: 38px 34px !important; }
.mk .login-form .h3, .mk .login-form h6.h3 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.mk .login-form .btn-primary { width: 100%; min-height: 46px; }
.mk .login-form .card-footer { padding: 14px 34px; text-align: center; }
.mk.mk-page-clientregister .primary-content > form,
.mk.mk-page-clientregister #registration { max-width: 920px; margin: 0 auto; }

/* invoices, quotes */
.mk .invoice-status { font-weight: 650; }
.mk .masspay-total, .mk .total-row td { font-weight: 700; color: var(--mk-ink); }

/* ---------------------------------------------------------------- 12. Footer */
.mk-footer {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    padding: 72px 0 0;
    background: var(--mk-night);
    color: var(--mk-on-dark);
}
.mk-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    pointer-events: none;
}
.mk-footer > * { position: relative; }
.mk-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mk-footer__brand img { display: block; width: auto; height: 28px; }
.mk-footer__brand p { max-width: 280px; margin: 18px 0 0; color: var(--mk-on-dark-3); font-size: 14.5px; line-height: 1.6; }
.mk-footer__cols { display: grid; grid-template-columns: repeat(var(--mk-footer-cols, 4), minmax(0, 1fr)); gap: 24px; }
.mk-footer__cols h3 { margin: 0 0 16px; color: var(--mk-on-dark-3); font-family: var(--mk-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.mk .mk-footer__cols a { display: block; padding: 5px 0; color: var(--mk-on-dark-2); font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.mk .mk-footer__cols a:hover { color: #fff; }
.mk-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; color: var(--mk-on-dark-3); font-size: 13px; }
.mk-footer__bottom p { margin: 0; }
.mk-footer__bottom .mk-mono { font-size: 12px; letter-spacing: .08em; }
.mk .mk-footer__toplink { color: var(--mk-on-dark-2); font-family: var(--mk-mono); font-size: 12px; letter-spacing: .06em; text-decoration: none; }
.mk .mk-footer__toplink:hover { color: #fff; }
.mk-footer__giant {
    margin: 0;
    padding: 0 12px;
    color: transparent;
    font-size: 13.4vw;
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.055em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
    transform: translateY(14%);
}

/* ---------------------------------------------------------------- 13. Notice bar, cookie notice, admin pill */
.mk-notice {
    position: fixed;
    top: calc(var(--mk-nav-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    z-index: 1020;
    border-bottom: 1px solid rgba(18, 138, 250, .2);
    background: #eef6ff;
    color: #0b3d86;
    font-size: 13.5px;
}
.mk-notice--warning { border-bottom-color: rgba(217, 119, 6, .25); background: #fff6e6; color: #7a4205; }
.mk-notice--dark { border-bottom-color: #000; background: var(--mk-ink); color: var(--mk-on-dark); }
.mk-notice__inner { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.mk-notice__tag { flex: none; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; font-family: var(--mk-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.mk-notice__text { flex: 1 1 auto; min-width: 0; }
.mk .mk-notice a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.mk-notice__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--mk-radius-sm); background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; }
.mk-notice__close:hover { opacity: 1; background: rgba(12, 18, 34, .06); }
body.mk.has-notice { --mk-notice-h: 41px; padding-top: calc(var(--mk-nav-h) + var(--mk-notice-h) + env(safe-area-inset-top, 0px)); }

.mk-cookie {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: grid;
    gap: 12px;
    max-width: 380px;
    padding: 16px 18px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px -18px rgba(12, 18, 34, .3);
    color: var(--mk-ink-2);
    font-size: 13.5px;
    line-height: 1.55;
}
.mk-cookie[hidden] { display: none; }
.mk-cookie p { margin: 0; }
.mk-cookie .mk-btn { justify-self: start; }
.mk .mk-adminpill {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px;
    border-radius: var(--mk-radius);
    background: var(--mk-ink); color: #fff;
    font-size: 13.5px; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 30px -14px rgba(11, 29, 90, .6);
}
.mk .mk-adminpill:hover { background: #232a3a; color: #fff; }

/* ---------------------------------------------------------------- 14. Responsive */
@media (max-width: 1399.98px) {
    .mk-nav__pill { gap: 16px; }
    .mk-nav__link { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 1199.98px) {
    .mk-nav__links { display: none; }
    .mk-nav__burger { display: block; }
    .mk-nav__account-name { display: none; }
    .mk-nav__account { padding: 0 8px 0 4px; }
}
@media (max-width: 991.98px) {
    .mk .mk-side { margin-bottom: 8px; }
    .mk-footer__top { grid-template-columns: 1fr; gap: 36px; }
    .mk-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 767.98px) {
    .mk .card-body { padding: 16px; }
    .mk .card-header { padding: 12px 16px; }
    .mk .tiles .tile { padding: 14px 16px 16px; }
    .mk .tiles .tile .stat { font-size: 26px; }
    .mk .tiles .tile > i { top: 14px; right: 14px; width: 30px; height: 30px; font-size: 13px; }
    .mk .login-form .card-body { padding: 28px 20px !important; }
    .mk .table td, .mk .table th { padding: 12px; }
    .mk-notice__tag { display: none; }
}
@media (max-width: 575.98px) {
    :root { --mk-nav-h: 58px; }
    .mk-nav__actions > .mk-lang, .mk-nav__cta { display: none; }
    .mk-nav__account .mk-ic--chevron { display: none; }
    .mk-nav__account { padding: 0 4px; border-color: transparent; }
    .mk-cookie { left: 10px; right: 10px; max-width: none; }
    .mk-footer { padding-top: 56px; }
    .mk-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .mk *, .mk *::before, .mk *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- 15. Bootstrap 3 compatibility
   Add-on modules written for Lagom or the old "Six" theme (renewal, port mapping, dynamic IP, …) use
   Bootstrap 3 classes that this theme's Bootstrap 4 base lacks. Lagom provided them, with the same
   behaviour as here (e.g. .hidden is !important). Grid columns use :where() so Bootstrap 4's own
   responsive columns on the same element (col-xs-12 col-md-6) still win. */
.mk .hidden, .mk .hide { display: none !important; }
@media (max-width: 767.98px) { .mk .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .mk .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .mk .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .mk .hidden-lg { display: none !important; } }
.mk .visible-xs, .mk .visible-sm, .mk .visible-md, .mk .visible-lg,
.mk .visible-xs-block, .mk .visible-sm-block, .mk .visible-md-block, .mk .visible-lg-block,
.mk .visible-xs-inline, .mk .visible-sm-inline, .mk .visible-md-inline, .mk .visible-lg-inline,
.mk .visible-xs-inline-block, .mk .visible-sm-inline-block, .mk .visible-md-inline-block, .mk .visible-lg-inline-block { display: none !important; }
@media (max-width: 767.98px) {
    .mk .visible-xs, .mk .visible-xs-block { display: block !important; }
    .mk .visible-xs-inline { display: inline !important; }
    .mk .visible-xs-inline-block { display: inline-block !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .mk .visible-sm, .mk .visible-sm-block { display: block !important; }
    .mk .visible-sm-inline { display: inline !important; }
    .mk .visible-sm-inline-block { display: inline-block !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mk .visible-md, .mk .visible-md-block { display: block !important; }
    .mk .visible-md-inline { display: inline !important; }
    .mk .visible-md-inline-block { display: inline-block !important; }
}
@media (min-width: 1200px) {
    .mk .visible-lg, .mk .visible-lg-block { display: block !important; }
    .mk .visible-lg-inline { display: inline !important; }
    .mk .visible-lg-inline-block { display: inline-block !important; }
}
.mk .pull-left { float: left !important; }
.mk .pull-right { float: right !important; }
.mk .center-block { display: block; margin-right: auto; margin-left: auto; }
.mk .img-responsive { display: block; max-width: 100%; height: auto; }
.mk .collapse.in { display: block; }
.mk tr.collapse.in { display: table-row; }
.mk tbody.collapse.in { display: table-row-group; }
.mk .fade.in { opacity: 1; }
.mk .clearfix::after, .mk .panel-body::after, .mk .form-horizontal .form-group::after { content: ""; display: table; clear: both; }

/* grid: col-xs-* and *-offset-* */
:where(.mk) :where([class*="col-xs-"]) { position: relative; width: 100%; min-height: 1px; padding-right: 15px; padding-left: 15px; }
:where(.mk) :where(.col-xs-1) { flex: 0 0 8.333333%; max-width: 8.333333%; }
:where(.mk) :where(.col-xs-2) { flex: 0 0 16.666667%; max-width: 16.666667%; }
:where(.mk) :where(.col-xs-3) { flex: 0 0 25%; max-width: 25%; }
:where(.mk) :where(.col-xs-4) { flex: 0 0 33.333333%; max-width: 33.333333%; }
:where(.mk) :where(.col-xs-5) { flex: 0 0 41.666667%; max-width: 41.666667%; }
:where(.mk) :where(.col-xs-6) { flex: 0 0 50%; max-width: 50%; }
:where(.mk) :where(.col-xs-7) { flex: 0 0 58.333333%; max-width: 58.333333%; }
:where(.mk) :where(.col-xs-8) { flex: 0 0 66.666667%; max-width: 66.666667%; }
:where(.mk) :where(.col-xs-9) { flex: 0 0 75%; max-width: 75%; }
:where(.mk) :where(.col-xs-10) { flex: 0 0 83.333333%; max-width: 83.333333%; }
:where(.mk) :where(.col-xs-11) { flex: 0 0 91.666667%; max-width: 91.666667%; }
:where(.mk) :where(.col-xs-12) { flex: 0 0 100%; max-width: 100%; }
:where(.mk) :where(.col-xs-offset-1) { margin-left: 8.333333%; }
:where(.mk) :where(.col-xs-offset-2) { margin-left: 16.666667%; }
:where(.mk) :where(.col-xs-offset-3) { margin-left: 25%; }
:where(.mk) :where(.col-xs-offset-4) { margin-left: 33.333333%; }
:where(.mk) :where(.col-xs-offset-6) { margin-left: 50%; }
@media (min-width: 768px) {
    :where(.mk) :where(.col-sm-offset-1) { margin-left: 8.333333%; }
    :where(.mk) :where(.col-sm-offset-2) { margin-left: 16.666667%; }
    :where(.mk) :where(.col-sm-offset-3) { margin-left: 25%; }
    :where(.mk) :where(.col-sm-offset-4) { margin-left: 33.333333%; }
    :where(.mk) :where(.col-sm-offset-6) { margin-left: 50%; }
}
@media (min-width: 992px) {
    :where(.mk) :where(.col-md-offset-1) { margin-left: 8.333333%; }
    :where(.mk) :where(.col-md-offset-2) { margin-left: 16.666667%; }
    :where(.mk) :where(.col-md-offset-3) { margin-left: 25%; }
    :where(.mk) :where(.col-md-offset-4) { margin-left: 33.333333%; }
    :where(.mk) :where(.col-md-offset-6) { margin-left: 50%; }
}
@media (min-width: 1200px) {
    :where(.mk) :where(.col-lg-offset-1) { margin-left: 8.333333%; }
    :where(.mk) :where(.col-lg-offset-2) { margin-left: 16.666667%; }
    :where(.mk) :where(.col-lg-offset-3) { margin-left: 25%; }
    :where(.mk) :where(.col-lg-offset-4) { margin-left: 33.333333%; }
}

/* panels and wells */
.mk .panel { margin-bottom: 20px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius-lg); background: var(--mk-surface); box-shadow: var(--mk-shadow); }
.mk .panel-heading { padding: 12px 16px; border-bottom: 1px solid var(--mk-line); border-radius: var(--mk-radius-lg) var(--mk-radius-lg) 0 0; background: var(--mk-subtle); color: var(--mk-ink); }
.mk .panel-title { margin: 0; color: inherit; font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
.mk .panel-title > a, .mk .panel-title > small, .mk .panel-title > .small, .mk .panel-title > small > a { color: inherit; }
.mk .panel-body { padding: 16px; }
.mk .panel-footer { padding: 12px 16px; border-top: 1px solid var(--mk-line); border-radius: 0 0 var(--mk-radius-lg) var(--mk-radius-lg); background: var(--mk-subtle); }
.mk .panel > .table, .mk .panel > .table-responsive > .table, .mk .panel > .panel-collapse > .table { margin-bottom: 0; }
.mk .panel > .table-responsive { margin-bottom: 0; border: 0; }
.mk .panel > .list-group, .mk .panel > .panel-collapse > .list-group { margin-bottom: 0; }
.mk .panel > .list-group .list-group-item, .mk .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; }
.mk .panel > .list-group:first-child .list-group-item:first-child { border-top: 0; }
.mk .panel > .list-group:last-child .list-group-item:last-child { border-bottom: 0; }
.mk .panel-group { margin-bottom: 20px; }
.mk .panel-group .panel { margin-bottom: 0; }
.mk .panel-group .panel + .panel { margin-top: 8px; }
.mk .panel-primary { border-color: rgba(18, 138, 250, .45); }
.mk .panel-primary > .panel-heading { border-color: var(--mk-brand); background: var(--mk-brand); color: #fff; }
.mk .panel-success { border-color: rgba(22, 163, 74, .3); }
.mk .panel-success > .panel-heading { border-color: rgba(22, 163, 74, .25); background: rgba(22, 163, 74, .08); color: #166534; }
.mk .panel-info { border-color: rgba(18, 138, 250, .3); }
.mk .panel-info > .panel-heading { border-color: rgba(18, 138, 250, .25); background: var(--mk-brand-soft); color: var(--mk-brand-ink); }
.mk .panel-warning { border-color: rgba(217, 119, 6, .3); }
.mk .panel-warning > .panel-heading { border-color: rgba(217, 119, 6, .25); background: rgba(217, 119, 6, .08); color: #92400e; }
.mk .panel-danger { border-color: rgba(220, 38, 38, .3); }
.mk .panel-danger > .panel-heading { border-color: rgba(220, 38, 38, .25); background: rgba(220, 38, 38, .07); color: #991b1b; }
.mk .well { min-height: 20px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-subtle); box-shadow: none; }
.mk .well-sm { padding: 10px; }
.mk .well-lg { padding: 24px; }
.mk .thumbnail { display: block; margin-bottom: 20px; padding: 4px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: #fff; }

/* forms */
.mk .help-block { display: block; margin: 5px 0 10px; color: var(--mk-muted); font-size: 13px; }
.mk .form-horizontal .form-group { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
@media (min-width: 768px) { .mk .form-horizontal .control-label { margin-bottom: 0; padding-top: 10px; text-align: right; } }
.mk .input-group-addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--mk-line-2); background: var(--mk-subtle); color: var(--mk-muted); font-size: 14px; white-space: nowrap; }
.mk .input-group > .input-group-addon:first-child { border-right: 0; border-radius: var(--mk-radius) 0 0 var(--mk-radius); }
.mk .input-group > .input-group-addon:last-child { border-left: 0; border-radius: 0 var(--mk-radius) var(--mk-radius) 0; }
.mk .input-group > .input-group-addon:not(:first-child):not(:last-child) { border-radius: 0; }
.mk .input-group-btn { display: flex; white-space: nowrap; }
.mk .input-group-btn > .btn { position: relative; }
.mk .input-group-btn > .btn + .btn { margin-left: -1px; }
.mk .input-group > .input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mk .input-group > .input-group-btn:last-child > .btn:not(:last-child) { border-radius: 0; }
.mk .input-group > .input-group-btn:first-child > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mk .table-condensed > thead > tr > th, .mk .table-condensed > tbody > tr > th, .mk .table-condensed > tbody > tr > td { padding: 6px 10px; }

/* Bootstrap 3 menus: <ul class="nav nav-tabs"><li class="active"><a>, <ul class="dropdown-menu"><li><a> */
.mk .nav-tabs > li > a, .mk .nav-pills > li > a { display: block; padding: 10px 14px; color: var(--mk-muted); font-weight: 600; text-decoration: none; }
.mk .nav-tabs > li > a:hover { color: var(--mk-ink); box-shadow: inset 0 -2px 0 var(--mk-line-3); }
.mk .nav-tabs > li.active > a { color: var(--mk-ink); box-shadow: inset 0 -2px 0 var(--mk-brand); }
.mk .nav-pills > li > a { border-radius: var(--mk-radius); }
.mk .nav-pills > li.active > a { background: var(--mk-ink); color: #fff; }
.mk .nav-stacked { flex-direction: column; }
.mk .dropdown-menu > li > a { display: block; padding: 8px 12px; border-radius: var(--mk-radius-sm); color: var(--mk-ink-2); white-space: nowrap; text-decoration: none; }
.mk .dropdown-menu > li > a:hover, .mk .dropdown-menu > li > a:focus { background: var(--mk-subtle); color: var(--mk-ink); }
.mk .dropdown-menu > .active > a { background: var(--mk-brand-soft); color: var(--mk-brand-ink); }
.mk .dropdown-menu > .divider { height: 1px; margin: 6px 4px; background: var(--mk-line); }
.mk .dropdown-menu > .dropdown-header { padding: 6px 12px; color: var(--mk-muted-2); font-size: 12px; }

/* glyphicons, drawn with the Font Awesome 5 font that WHMCS bundles */
.mk .glyphicon { position: relative; top: 1px; display: inline-block; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-style: normal; font-weight: 900; line-height: 1; -webkit-font-smoothing: antialiased; }
.mk .glyphicon-plus::before { content: "\f067"; }
.mk .glyphicon-minus::before { content: "\f068"; }
.mk .glyphicon-ok::before { content: "\f00c"; }
.mk .glyphicon-remove::before { content: "\f00d"; }
.mk .glyphicon-ok-circle::before, .mk .glyphicon-ok-sign::before { content: "\f058"; }
.mk .glyphicon-remove-circle::before, .mk .glyphicon-remove-sign::before { content: "\f057"; }
.mk .glyphicon-info-sign::before { content: "\f05a"; }
.mk .glyphicon-question-sign::before { content: "\f059"; }
.mk .glyphicon-exclamation-sign::before { content: "\f06a"; }
.mk .glyphicon-warning-sign::before { content: "\f071"; }
.mk .glyphicon-refresh::before { content: "\f2f1"; }
.mk .glyphicon-repeat::before { content: "\f01e"; }
.mk .glyphicon-list-alt::before { content: "\f022"; }
.mk .glyphicon-th::before { content: "\f00a"; }
.mk .glyphicon-th-list::before { content: "\f00b"; }
.mk .glyphicon-fullscreen::before { content: "\f065"; }
.mk .glyphicon-export::before { content: "\f56e"; }
.mk .glyphicon-collapse-up::before, .mk .glyphicon-chevron-up::before { content: "\f077"; }
.mk .glyphicon-collapse-down::before, .mk .glyphicon-chevron-down::before { content: "\f078"; }
.mk .glyphicon-chevron-left::before { content: "\f053"; }
.mk .glyphicon-chevron-right::before { content: "\f054"; }
.mk .glyphicon-arrow-left::before { content: "\f060"; }
.mk .glyphicon-arrow-right::before { content: "\f061"; }
.mk .glyphicon-trash::before { content: "\f1f8"; }
.mk .glyphicon-search::before { content: "\f002"; }
.mk .glyphicon-move::before { content: "\f0b2"; }
.mk .glyphicon-calendar::before { content: "\f073"; }
.mk .glyphicon-time::before { content: "\f017"; }
.mk .glyphicon-pencil::before { content: "\f303"; }
.mk .glyphicon-edit::before { content: "\f044"; }
.mk .glyphicon-cog::before { content: "\f013"; }
.mk .glyphicon-user::before { content: "\f007"; }
.mk .glyphicon-lock::before { content: "\f023"; }
.mk .glyphicon-home::before { content: "\f015"; }
.mk .glyphicon-envelope::before { content: "\f0e0"; }
.mk .glyphicon-download::before, .mk .glyphicon-download-alt::before { content: "\f019"; }
.mk .glyphicon-upload::before { content: "\f093"; }
.mk .glyphicon-link::before { content: "\f0c1"; }
.mk .glyphicon-globe::before { content: "\f0ac"; }
.mk .glyphicon-flash::before { content: "\f0e7"; }
.mk .glyphicon-off::before { content: "\f011"; }
.mk .glyphicon-play::before { content: "\f04b"; }
.mk .glyphicon-stop::before { content: "\f04d"; }
.mk .glyphicon-star::before { content: "\f005"; }
.mk .glyphicon-shopping-cart::before { content: "\f07a"; }

/* ---------------------------------------------------------------- 16. Chinese pages
   Wide tracking suits Latin capitals but leaves gaps between Chinese characters, and negative
   tracking squeezes them; Chinese pages use near-normal spacing. */
html[lang^="zh"] .mk h1, html[lang^="zh"] .mk h2, html[lang^="zh"] .mk h3, html[lang^="zh"] .mk h4, html[lang^="zh"] .mk h5, html[lang^="zh"] .mk h6,
html[lang^="zh"] .mk .h1, html[lang^="zh"] .mk .h2, html[lang^="zh"] .mk .h3, html[lang^="zh"] .mk .h4, html[lang^="zh"] .mk .h5, html[lang^="zh"] .mk .h6 { letter-spacing: 0; }
html[lang^="zh"] .mk-eyebrow, html[lang^="zh"] .mk-dropdown__title, html[lang^="zh"] .mk-accounthead__label,
html[lang^="zh"] .mk .mk-crumbs .breadcrumb, html[lang^="zh"] .mk .table thead th, html[lang^="zh"] .mk .table > tbody > tr > th,
html[lang^="zh"] .mk .card-sidebar .card-title, html[lang^="zh"] .mk .tiles .tile .title, html[lang^="zh"] .mk .product-status .product-status-text,
html[lang^="zh"] .mk-footer__cols h3, html[lang^="zh"] .mk-notice__tag { letter-spacing: .05em; }
html[lang^="zh"] body.mk { line-height: 1.7; }

/* ---------------------------------------------------------------- 17. Affiliates (affiliates.tpl, affiliatessignup.tpl) */
.mk-aff { display: grid; gap: 20px; }
.mk-aff-hero,
.mk-aff-join__side {
    color: var(--mk-on-dark);
    background:
        radial-gradient(120% 150% at 100% 0, rgba(18, 138, 250, .38) 0, rgba(18, 138, 250, 0) 55%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--mk-night);
}
.mk-aff-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 22px 40px;
    padding: 28px 32px;
    border-radius: var(--mk-radius-xl);
    overflow: hidden;
}
.mk-eyebrow--light { color: var(--mk-brand-3); }
.mk-eyebrow--light::before { background: var(--mk-brand-2); box-shadow: 0 0 0 3px rgba(74, 166, 255, .2); }
.mk .mk-aff-hero__title { margin: 10px 0 6px; color: #fff; font-size: 24px; font-weight: 700; }
.mk-aff-hero__lead { margin: 0; color: var(--mk-on-dark-2); font-size: 14px; line-height: 1.7; }
.mk-aff-link { display: flex; align-items: stretch; gap: 6px; padding: 6px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--mk-radius-lg); background: rgba(255, 255, 255, .06); }
.mk-aff-link__input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: #fff; font-family: var(--mk-mono); font-size: 14px; outline: 0; }
.mk-aff-link__input::selection { background: rgba(74, 166, 255, .45); }
.mk .mk-aff-link__copy { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--mk-radius); background: var(--mk-brand); color: #fff; font-weight: 600; transition: background-color .2s; }
.mk .mk-aff-link__copy:hover, .mk .mk-aff-link__copy:focus { background: var(--mk-brand-ink); color: #fff; }
.mk .mk-aff-link__copy.is-copied { background: var(--mk-ok); }

.mk-aff-card { border: 1px solid var(--mk-line); border-radius: var(--mk-radius-lg); background: var(--mk-surface); box-shadow: var(--mk-shadow); overflow: hidden; }
.mk-aff-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--mk-line); background: var(--mk-subtle); }
.mk .mk-aff-card__title { margin: 0; color: var(--mk-ink); font-size: 15px; font-weight: 650; letter-spacing: 0; }
.mk-aff-card__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--mk-muted-2); font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .06em; }
.mk-aff-live { width: 7px; height: 7px; border-radius: 50%; background: var(--mk-ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.mk-aff-card .table-container { border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mk-aff-card .table-list { min-width: 620px; }
.mk-aff-card .table-list > thead > tr > th { text-align: left; }

.mk-aff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-aff-stat { display: grid; gap: 8px; padding: 20px; border-left: 1px solid var(--mk-line); }
.mk-aff-stat:first-child { border-left: 0; }
.mk-aff-stat__label { display: inline-flex; align-items: center; gap: 8px; color: var(--mk-muted); font-size: 13px; }
.mk-aff-stat__label i { color: var(--mk-brand); }
.mk-aff-stat__value { color: var(--mk-ink); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-aff-stat__value small { margin-left: 2px; color: var(--mk-muted); font-size: 16px; font-weight: 600; }

.mk-aff-earn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 20px; }
.mk-aff-earn__list { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; }
.mk-aff-earn__item { display: grid; align-content: start; gap: 4px; }
.mk-aff-earn__item dt { color: var(--mk-muted); font-size: 13px; font-weight: 500; }
.mk-aff-earn__item dd { margin: 0; color: var(--mk-ink-2); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mk-aff-earn__item.is-main dd { color: var(--mk-brand-ink); font-size: 26px; font-weight: 700; }
.mk-aff-earn__item small { color: var(--mk-muted-2); font-size: 12px; }
.mk-aff-earn__action { display: grid; justify-items: end; gap: 8px; margin: 0; }
.mk-aff-earn__note { max-width: 320px; margin: 0; color: var(--mk-muted); font-size: 12.5px; text-align: right; }

.mk-aff-empty { display: flex; align-items: center; gap: 14px; padding: 22px 20px; color: var(--mk-muted); }
.mk-aff-empty p { margin: 0; font-size: 14px; }
.mk-aff-empty__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-subtle); color: var(--mk-brand); }
.mk-aff-codes { padding: 20px; overflow-x: auto; text-align: center; }
.mk-aff-codes textarea { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--mk-line-2); border-radius: var(--mk-radius); background: var(--mk-subtle); font-family: var(--mk-mono); font-size: 12.5px; }

/* not an affiliate yet */
.mk-aff-join { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); border: 1px solid var(--mk-line); border-radius: var(--mk-radius-xl); background: var(--mk-surface); box-shadow: var(--mk-shadow); overflow: hidden; }
.mk-aff-join__main { padding: 34px 38px; }
.mk .mk-aff-join__title { margin: 12px 0 8px; font-size: 26px; font-weight: 700; }
.mk-aff-join__lead { margin: 0 0 22px; color: var(--mk-muted); font-size: 15px; line-height: 1.7; }
.mk-aff-join__points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mk-line); }
.mk-aff-join__points li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mk-line); }
.mk-aff-join__num { flex: none; padding-top: 2px; color: var(--mk-brand-ink); font-family: var(--mk-mono); font-size: 12px; font-weight: 500; }
.mk-aff-join__points p { margin: 0; color: var(--mk-ink-2); font-size: 14px; line-height: 1.7; }
.mk-aff-join__side { display: flex; flex-direction: column; gap: 16px; padding: 34px 32px; }
.mk-aff-join__badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--mk-radius-lg); background: rgba(255, 255, 255, .06); color: var(--mk-brand-3); font-size: 22px; }
.mk-aff-join__note { margin: 24px 0 0; color: var(--mk-on-dark-2); font-size: 14px; line-height: 1.7; }
.mk-aff-join__side form { margin: 0; }

@media (max-width: 991.98px) {
    .mk-aff-hero { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .mk-aff-join { grid-template-columns: minmax(0, 1fr); }
    .mk-aff-join__badge { margin-bottom: 0; }
}
@media (max-width: 575.98px) {
    .mk-aff-link { flex-direction: column; }
    .mk-aff-link__input { min-height: 40px; }
    .mk-aff-stat { padding: 14px 12px; }
    .mk-aff-stat__value { font-size: 22px; }
    .mk-aff-earn__action { justify-items: stretch; width: 100%; }
    .mk-aff-earn__note { text-align: left; }
    .mk-aff-join__main, .mk-aff-join__side { padding: 24px 20px; }
}

/* ---------------------------------------------------------------- 18. On/off switches
   WHMCS's yes/no options (e.g. "join our mailing list" on registration, checkout and account details)
   use Bootstrap Switch. Its sliding "是 / 否" handles get cut off with one-character Chinese labels
   (the base theme forces a 79px window), so it is drawn as a plain toggle instead. Bootstrap Switch
   still does the work: its label covers the whole switch, so a click anywhere toggles it. */
.mk .bootstrap-switch {
    position: relative;
    width: 46px !important;   /* Bootstrap Switch sets an inline width from its handle text */
    min-width: 0 !important;
    height: 26px;
    border: 0;
    border-radius: 13px;
    background: var(--mk-line-3);
    vertical-align: middle;
    transition: background-color .2s, box-shadow .2s;
}
.mk .bootstrap-switch.bootstrap-switch-on { background: var(--mk-brand); }
.mk .bootstrap-switch .bootstrap-switch-container { width: 100% !important; height: 100%; margin-left: 0 !important; }
.mk .bootstrap-switch .bootstrap-switch-handle-on,
.mk .bootstrap-switch .bootstrap-switch-handle-off { display: none !important; }
.mk .bootstrap-switch .bootstrap-switch-label { position: absolute; top: 0; left: 0; width: 100% !important; height: 100%; padding: 0; border: 0; background: transparent; font-size: 0; }
.mk .bootstrap-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(12, 18, 34, .3);
    transition: transform .2s var(--mk-ease);
    pointer-events: none;
}
.mk .bootstrap-switch.bootstrap-switch-on::after { transform: translateX(20px); }
.mk .bootstrap-switch.bootstrap-switch-focused { box-shadow: 0 0 0 3px rgba(18, 138, 250, .25); }
.mk .bootstrap-switch.bootstrap-switch-disabled, .mk .bootstrap-switch.bootstrap-switch-readonly { opacity: .5; cursor: not-allowed; }
