/* ==========================================================================
   Cloudtria Web theme (built on WHMCS Twenty-One)
   Follows Cloudtria Brand Guidelines v1.0. Colours, fonts, radii and
   shadows come from tokens.css (copied verbatim from cloudtria-brand);
   never hard-code brand hex values here.
   ========================================================================== */

:root {
    /* Theme roles mapped onto brand tokens */
    --t-text: var(--ct-midnight);
    --t-muted: var(--ct-grey-600);
    --t-line: var(--ct-grey-200);
    --t-bg: var(--ct-grey-100);
    --t-surface: var(--ct-white);
    --t-tint: #f8f5fe;                      /* pale lavender, per imagery guidance */
    --t-on-dark: var(--ct-white);
    --t-on-dark-muted: rgba(255, 255, 255, .72);
    --t-dark-line: rgba(255, 255, 255, .12);

    --t-accent: var(--ct-blue);             /* links, primary buttons */
    --t-accent-hover: #0166c0;
    --t-accent-soft: rgba(2, 118, 219, .08);
    --t-grad: var(--ct-gradient-aurora);    /* icon tiles, highlights */
    --t-headline: linear-gradient(90deg, var(--ct-signal-pink) 0%, #c84fd6 100%);
}

/* Sub-brand accents (Brand family): Protect uses Bloom, Hosting adds Cobalt + Sky */
.ct-brand-protect { --t-grad: var(--ct-gradient-bloom); }
.ct-brand-hosting {
    --t-grad: linear-gradient(135deg, var(--ct-cobalt) 0%, var(--ct-blue) 50%, var(--ct-sky) 100%);
    --t-accent-soft: rgba(1, 49, 185, .08);
}

/* ---------------------------------------------------------------- base */

body.ct-body {
    font-family: var(--ct-font-body);
    color: var(--t-text);
    background: var(--t-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.ct-body h1, .ct-body h2, .ct-body h3, .ct-body h4, .ct-body h5,
.ct-body .h1, .ct-body .h2, .ct-body .h3, .ct-body .h4 {
    font-family: var(--ct-font-display);
    color: inherit;
    letter-spacing: -.01em;
}
.ct-body a { color: var(--t-accent); }
.ct-body a:hover { color: var(--t-accent-hover); }
.ct-body :focus-visible { outline: 3px solid var(--ct-sky); outline-offset: 2px; }

/* Visually hidden until focused. Uses clipping, not left:-9999px, which
   would widen the page in right-to-left languages. */
.ct-skip {
    position: absolute;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    z-index: 2000;
}
.ct-skip:focus {
    top: 1rem;
    inset-inline-start: 1rem;
    width: auto;
    height: auto;
    padding: .5rem 1rem;
    clip: auto;
    clip-path: none;
    background: var(--t-surface);
}

/* Twenty-One client area in brand colours */
/* Button links must not pick up the generic ".ct-body a" link colour,
   and Bootstrap's green :active/:focus states are replaced with brand blue. */
.ct-body .btn-primary,
.ct-body .btn-success,
.ct-body a.btn-primary,
.ct-body a.btn-success { color: #fff; background: var(--ct-blue); border-color: var(--ct-blue); border-radius: var(--ct-radius-pill); font-family: var(--ct-font-display); font-weight: 600; }
.ct-body .btn-primary:hover, .ct-body .btn-success:hover,
.ct-body .btn-primary:focus, .ct-body .btn-success:focus,
.ct-body .btn-primary:not(:disabled):not(.disabled):active,
.ct-body .btn-success:not(:disabled):not(.disabled):active,
.ct-body .btn-primary:not(:disabled):not(.disabled).active,
.ct-body .btn-success:not(:disabled):not(.disabled).active { color: #fff; background: var(--t-accent-hover); border-color: var(--t-accent-hover); }
.ct-body .btn-primary:focus, .ct-body .btn-success:focus,
.ct-body .btn-primary:not(:disabled):not(.disabled):active:focus,
.ct-body .btn-success:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 3px rgba(2, 118, 219, .3); }
.ct-body a.btn-default { color: var(--t-text); }
.ct-body .btn-default { border-radius: var(--ct-radius-pill); }
.ct-body .card { border-color: var(--t-line); border-radius: var(--ct-radius-md); box-shadow: var(--ct-shadow-sm); }
.ct-body .form-control { border-radius: var(--ct-radius-sm); border-color: var(--t-line); }
.ct-body .form-control:focus { border-color: var(--ct-blue); box-shadow: 0 0 0 3px var(--t-accent-soft); }
.ct-body .list-group-item.active { background: var(--ct-blue); border-color: var(--ct-blue); }
.ct-app #main-body { padding: 2rem 0 4rem; background: var(--t-bg); }

/* ---------------------------------------------------------------- buttons (UI styleguide) */

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    font-family: var(--ct-font-display);
    font-weight: 600;
    font-size: .94rem;
    line-height: 1.3;
    border-radius: var(--ct-radius-pill);
    border: 2px solid transparent;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.ct-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ct-btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.ct-btn-sm { padding: .45rem 1rem; font-size: .82rem; }

.ct-body .ct-btn-primary { color: #fff; background: var(--ct-blue); box-shadow: 0 6px 16px rgba(2, 118, 219, .3); }
.ct-body .ct-btn-primary:hover { color: #fff; background: var(--t-accent-hover); }
.ct-body .ct-btn-dark { color: #fff; background: var(--ct-midnight); }
.ct-body .ct-btn-dark:hover { color: #fff; background: var(--ct-indigo); }
.ct-body .ct-btn-outline { color: var(--ct-midnight); background: transparent; border-color: var(--ct-midnight); }
.ct-body .ct-btn-outline:hover { color: #fff; background: var(--ct-midnight); }
.ct-body .ct-btn-gradient { color: #fff; background: var(--ct-gradient-bloom); }
.ct-body .ct-btn-gradient:hover { color: #fff; box-shadow: 0 10px 24px rgba(249, 138, 254, .35); }
/* outline/ghost on dark surfaces */
.ct-on-dark .ct-btn-outline,
.ct-body .ct-on-dark .ct-btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.ct-body .ct-on-dark .ct-btn-outline:hover { color: var(--ct-midnight); background: #fff; border-color: #fff; }

.ct-link-arrow { font-family: var(--ct-font-display); font-weight: 600; font-size: .92rem; color: var(--t-accent); }
.ct-link-arrow::after { content: "\2192"; display: inline-block; margin-left: .35rem; transition: transform .15s ease; }
a:hover > .ct-link-arrow::after, a.ct-link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- top bar + header */

.ct-topbar { background: var(--ct-midnight); color: var(--t-on-dark-muted); font-size: .8rem; }
.ct-topbar .container { gap: .25rem; min-height: 36px; }
.ct-body .ct-topbar .ct-topbar-btn { color: #fff; background: transparent; }
.ct-body .ct-topbar .ct-topbar-btn:hover { background: rgba(255, 255, 255, .1); }

.ct-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ct-midnight);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 6px 20px rgba(1, 5, 45, .18);
    color: #fff;
}
.ct-nav { display: flex; align-items: center; min-height: 92px; gap: 1.5rem; flex-wrap: wrap; }

.ct-logo { display: inline-flex; align-items: center; text-decoration: none !important; flex: 0 0 auto; }
.ct-logo img { height: 46px; width: auto; display: block; }   /* above 120px min width */

.ct-menu { flex: 1 1 auto; }
.ct-menu-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.ct-menu-item { position: static; }
.ct-body .ct-header a.ct-menu-link {
    display: block;
    padding: .55rem .9rem;
    color: rgba(255, 255, 255, .88);
    font-family: var(--ct-font-display);
    font-weight: 500;
    font-size: .95rem;
    border-radius: var(--ct-radius-pill);
    text-decoration: none;
}
.ct-body .ct-header a.ct-menu-link:hover,
.ct-body .ct-header .ct-menu-item.show > a.ct-menu-link,
.ct-body .ct-header .ct-menu-item.active > a.ct-menu-link { color: #fff; background: rgba(255, 255, 255, .1); }
.ct-menu-link.dropdown-toggle::after {
    content: "";
    width: .42em;
    height: .42em;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-.2em) rotate(45deg);
    margin-left: .5rem;
    vertical-align: middle;
    opacity: .6;
}

.ct-header .dropdown-menu {
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--ct-radius-lg);
    box-shadow: var(--ct-shadow-lg);
    color: var(--t-text);
    margin-top: .5rem;
}
.ct-body .ct-header .dropdown-item { color: var(--t-text); border-radius: var(--ct-radius-sm); }
.ct-body .ct-header .dropdown-item:hover,
.ct-body .ct-header .dropdown-item:focus { background: var(--t-accent-soft); color: var(--ct-blue); }

.ct-simple-panel { min-width: 230px; padding: .5rem; }
.ct-simple-panel .dropdown-item { padding: .55rem .8rem; }

.ct-mega-panel { left: 50%; transform: translateX(-50%); width: min(1080px, calc(100vw - 2rem)); padding: 1.5rem; }
.ct-mega-panel.show { display: grid; grid-template-columns: 270px 1fr; gap: 1.5rem; }
.ct-mega-intro { padding: 1.25rem; border-radius: var(--ct-radius-md); background: var(--t-tint); position: relative; overflow: hidden; }
.ct-mega-intro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--t-grad); }
.ct-mega-protect { --t-grad: var(--ct-gradient-bloom); }
.ct-mega-hosting { --t-grad: linear-gradient(135deg, var(--ct-cobalt), var(--ct-sky)); }
.ct-mega-intro img { height: 40px; width: auto; margin-bottom: .75rem; }
.ct-mega-intro p { color: var(--t-muted); font-size: .9rem; margin: 0 0 1rem; }
.ct-mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; align-content: start; }
.ct-mega-hosting .ct-mega-grid { grid-template-columns: repeat(3, 1fr); }
.ct-body .ct-header .ct-mega-grid a { display: flex; gap: .8rem; padding: .7rem .8rem; border-radius: var(--ct-radius-md); text-decoration: none; color: var(--t-text); }
.ct-body .ct-header .ct-mega-grid a:hover { background: var(--t-bg); }
.ct-mega-grid i {
    flex: 0 0 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: .95rem;
    color: #fff;
    background: var(--t-grad);
    --fa-primary-color: #fff;
    --fa-secondary-color: #fff;
    --fa-secondary-opacity: .55;
}
.ct-mega-grid strong { display: block; font-family: var(--ct-font-display); font-weight: 600; font-size: .9rem; color: var(--ct-midnight); }
.ct-mega-grid small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--t-muted); font-size: .8rem; line-height: 1.4; }
.ct-mega-addons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; padding-top: 1rem; border-top: 1px solid var(--t-line); }
.ct-mega-addons span { font-family: var(--ct-font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); margin-right: .5rem; }
.ct-body .ct-header .ct-mega-addons a { font-size: .84rem; padding: .3rem .8rem; border-radius: var(--ct-radius-pill); border: 1px solid var(--t-line); color: var(--t-text); text-decoration: none; }
.ct-body .ct-header .ct-mega-addons a:hover { border-color: var(--ct-blue); color: var(--ct-blue); }

.ct-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.ct-body .ct-header .ct-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    border: 0;
}
.ct-body .ct-header .ct-icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ct-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 18px; color: var(--ct-midnight); background: var(--ct-aqua); }

.ct-account { flex-direction: row; }
.ct-body .ct-header .ct-account > li > a { color: rgba(255, 255, 255, .88); padding: .55rem .8rem !important; border-radius: var(--ct-radius-pill); font-family: var(--ct-font-display); font-weight: 500; font-size: .95rem; }
.ct-body .ct-header .ct-account > li > a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ct-account .dropdown-menu { position: absolute; padding: .5rem; }
.ct-account .dropdown-menu li.dropdown-item { padding: 0; background: none; }
.ct-account .dropdown-menu a.dropdown-item { padding: .45rem .75rem !important; }

.ct-burger { flex-direction: column; gap: 4px; }
.ct-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.ct-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ct-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ct-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1200px) {
    .ct-menu.collapse { display: block; }
    .ct-menu-mobile-actions { display: none; }
    .ct-menu-item.dropdown:hover > .dropdown-menu { display: block; }
    .ct-mega:hover > .ct-mega-panel { display: grid; grid-template-columns: 270px 1fr; gap: 1.5rem; }
    .ct-menu-item.dropdown > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
    .ct-menu-item.dropdown:not(.ct-mega) { position: relative; }
    .ct-header .ct-mega-panel { top: 100%; margin-top: 0; }
}

@media (max-width: 1199.98px) {
    .ct-nav { gap: .5rem; min-height: 66px; }
    .ct-logo img { height: 38px; }
    .ct-menu { order: 3; flex-basis: 100%; }
    .ct-menu.show, .ct-menu.collapsing { padding-bottom: 1rem; }
    .ct-menu-list { flex-direction: column; }
    .ct-header .dropdown-menu { position: static !important; transform: none !important; width: auto; margin: .25rem 0 .5rem; box-shadow: none; float: none; border-radius: var(--ct-radius-md); }
    .ct-menu.show, .ct-menu.collapsing { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .5rem; }
    .ct-mega-panel.show { display: block; padding: .75rem; }
    .ct-mega-intro { display: none; }
    .ct-mega-grid, .ct-mega-hosting .ct-mega-grid { grid-template-columns: 1fr; }
    .ct-mega-grid small { display: none; }
    .ct-mega-addons { padding-top: .75rem; }
}
@media (max-width: 575.98px) {
    .ct-logo img { height: 34px; }
    .ct-body .ct-header .ct-account > li > a { padding: .5rem !important; font-size: .88rem; }
}

/* ---------------------------------------------------------------- client-area app bar */

.ct-appbar { background: var(--t-surface); border-bottom: 1px solid var(--t-line); padding: 0; }
.ct-body .ct-appbar .navbar-nav > li > a { display: block; color: var(--t-muted); font-weight: 500; font-size: .92rem; padding: 1rem .9rem !important; border-bottom: 2px solid transparent; }
.ct-body .ct-appbar .navbar-nav > li > a:hover,
.ct-body .ct-appbar .navbar-nav > li.active > a { color: var(--ct-midnight); border-bottom-color: var(--ct-blue); text-decoration: none; }
.ct-appbar .dropdown-menu { border-color: var(--t-line); border-radius: var(--ct-radius-md); box-shadow: var(--ct-shadow-md); padding: .4rem; }
.ct-appbar .dropdown-menu li.dropdown-item { padding: 0; background: none; }
.ct-body .ct-appbar .dropdown-menu a.dropdown-item { padding: .45rem .75rem !important; border-radius: var(--ct-radius-sm); color: var(--t-text); }
.ct-appbar-toggle { margin: .5rem 0; color: var(--t-text); border: 1px solid var(--t-line); border-radius: var(--ct-radius-pill); }
.ct-appbar-search .form-control { border-radius: var(--ct-radius-pill) 0 0 var(--ct-radius-pill); min-width: 220px; }
.ct-appbar-search .btn { border: 1px solid var(--t-line); border-left: 0; border-radius: 0 var(--ct-radius-pill) var(--ct-radius-pill) 0; background: var(--t-surface); color: var(--t-muted); }
@media (max-width: 991.98px) { .ct-appbar-search { padding: .5rem 0 1rem; } .ct-appbar-search .form-control { min-width: 0; } }
.ct-breadcrumb { background: transparent; border: 0; }
.ct-breadcrumb .breadcrumb { background: transparent; }

/* ---------------------------------------------------------------- marketing layout */

.ct-marketing .ct-main { display: block; background: var(--t-bg); }

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--ct-font-display);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ct-blue);
    margin-bottom: .9rem;
}
.ct-highlight { background: var(--t-headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-display { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.25rem; color: var(--ct-midnight); }
.ct-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 40rem; color: var(--ct-grey-800); }

.ct-section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ct-section-tight { padding-top: 3rem; }
.ct-section-alt { background: var(--t-surface); border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.ct-section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; color: var(--ct-midnight); }
.ct-section p { color: var(--t-muted); line-height: 1.6; }
.ct-section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.ct-section-head.text-center { margin-left: auto; margin-right: auto; }
.ct-narrow { max-width: 820px; }

/* hero: bright, airy, pale lavender with soft glows, data waves and star watermark */
.ct-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, var(--t-tint) 0%, #fff 100%);
    border-bottom: 1px solid var(--t-line);
}
.ct-hero-sub { padding: clamp(3rem, 6vw, 5rem) 0; }
.ct-hero .container { position: relative; z-index: 1; }
.ct-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ct-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40rem 26rem at 88% 8%, rgba(249, 138, 254, .22), transparent 65%),
        radial-gradient(36rem 24rem at 4% 96%, rgba(45, 218, 255, .18), transparent 65%);
}
.ct-hero-bg::after {     /* graphic device: cropped soft-grey star mark watermark */
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -170px;
    top: -120px;
    background: url("../img/cloudtria-icon.svg") center / contain no-repeat;
    filter: grayscale(1);
    opacity: .06;
}
.ct-waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 180px; pointer-events: none; opacity: .55; }
.ct-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ct-hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ct-grey-800); font-size: .92rem; font-weight: 500; }
.ct-hero-points i { color: var(--ct-blue); margin-right: .35rem; }
.ct-body a.ct-back { display: inline-block; margin-bottom: 1.25rem; color: var(--t-muted); font-size: .9rem; }
.ct-body a.ct-back:hover { color: var(--ct-blue); }
.ct-hero-art { position: relative; }
.ct-hero-art img { width: 100%; height: auto; display: block; border-radius: var(--ct-radius-lg); box-shadow: var(--ct-shadow-lg); }
.ct-hero-art-plain img { box-shadow: none; border-radius: 0; mix-blend-mode: multiply; }
.ct-hero-badge {
    position: absolute;
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: var(--ct-radius-md);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--ct-shadow-md);
    font-size: .82rem;
    color: var(--t-muted);
    animation: ct-rise .6s ease both;
}
.ct-hero-badge strong { display: block; color: var(--ct-midnight); font-family: var(--ct-font-display); font-weight: 600; font-size: .88rem; }
.ct-hero-badge i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--ct-gradient-aurora); }
.ct-hero-badge-1 { left: -28px; bottom: 18%; }
.ct-hero-badge-2 { right: -18px; top: 12%; animation-delay: .2s; }
.ct-hero-badge-2 i { background: var(--ct-gradient-bloom); }
@media (max-width: 1199.98px) { .ct-hero-badge-1 { left: 8px; } .ct-hero-badge-2 { right: 8px; } }
@keyframes ct-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ct-sublogo { height: 92px; width: auto; margin-bottom: 1.25rem; display: block; }
.ct-hero-icon {
    width: 200px;
    height: 200px;
    border-radius: 48px;
    display: grid;
    place-items: center;
    font-size: 5rem;
    color: #fff;
    background: var(--t-grad);
    box-shadow: var(--ct-shadow-lg);
    --fa-primary-color: #fff;
    --fa-secondary-color: #fff;
    --fa-secondary-opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
    .ct-hero-badge { animation: none; }
    .ct-btn, .ct-card { transition: none; }
}

/* strip */
.ct-strip { background: var(--ct-indigo); padding: 1.1rem 0; }
.ct-partner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; color: rgba(255, 255, 255, .8); font-size: .92rem; text-align: center; }
.ct-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: var(--ct-radius-pill);
    font-family: var(--ct-font-display);
    font-weight: 600;
    font-size: .8rem;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
}
.ct-partner-badge i { color: var(--ct-aqua); }

/* cards & grids */
.ct-grid { display: grid; gap: 1.25rem; }
.ct-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ct-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .ct-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ct-grid-2, .ct-grid-3 { grid-template-columns: 1fr; } }

.ct-card {
    display: block;
    position: relative;
    padding: 1.6rem;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--ct-radius-md);
    box-shadow: var(--ct-shadow-md);
    color: var(--t-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ct-card h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .5rem; color: var(--ct-midnight); }
.ct-card p { color: var(--t-muted); font-size: .95rem; margin-bottom: 1rem; }
.col-lg-5 > .ct-card + .ct-card { margin-top: 1.25rem; }
.ct-body a.ct-service-card { text-decoration: none; color: var(--t-text); }
.ct-body a.ct-service-card:hover { transform: translateY(-3px); border-color: rgba(2, 118, 219, .35); box-shadow: var(--ct-shadow-lg); color: var(--t-text); }
.ct-service-card p { min-height: 3em; }

/* feature icon: gradient fill, white glyph (Imagery & icons) */
.ct-card-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    font-size: 1.25rem;
    color: #fff;
    background: var(--t-grad);
    box-shadow: 0 6px 14px rgba(2, 12, 106, .14);
    --fa-primary-color: #fff;
    --fa-secondary-color: #fff;
    --fa-secondary-opacity: .5;
}
.ct-card-icon-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.7rem; }
.ct-card-icon img { width: 60%; height: 60%; object-fit: contain; filter: brightness(0) invert(1); }

/* dark "feature" cards: Night gradient */
.ct-brand-card {
    height: 100%;
    padding: 2.25rem;
    border-radius: var(--ct-radius-lg);
    color: var(--t-on-dark);
    background: var(--ct-gradient-night);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ct-shadow-lg);
}
.ct-brand-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ct-brand-card-protect::before { background: radial-gradient(34rem 18rem at 100% 0, rgba(249, 138, 254, .28), transparent 60%); }
.ct-brand-card-hosting::before { background: radial-gradient(34rem 18rem at 100% 0, rgba(45, 218, 255, .25), transparent 60%); }
.ct-brand-card > * { position: relative; }
.ct-brand-card .ct-brand-logo { height: 58px; width: auto; align-self: flex-start; margin-bottom: 1.25rem; }
.ct-brand-card p { color: var(--t-on-dark-muted); }
.ct-brand-card .ct-check-list li::before { border-color: var(--ct-mint); }
.ct-body .ct-brand-card .ct-check-list a { color: #fff; }
.ct-body .ct-brand-card .ct-check-list a:hover { color: var(--ct-aqua); }
.ct-brand-card-actions { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.ct-body .ct-brand-card a.ct-link-arrow { color: var(--ct-aqua); }

.ct-check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.ct-check-list li { position: relative; padding-left: 1.75rem; }
.ct-check-list li::before {
    content: "";
    position: absolute;
    left: .2rem;
    top: .3em;
    width: .45rem;
    height: .8rem;
    border-right: 2px solid var(--ct-blue);
    border-bottom: 2px solid var(--ct-blue);
    transform: rotate(45deg);
}
.ct-check-list-lg { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; font-size: 1.05rem; font-weight: 500; color: var(--ct-midnight); }

.ct-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.ct-feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ct-feature-list i {
    flex: 0 0 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    background: var(--t-grad);
    --fa-primary-color: #fff;
    --fa-secondary-color: #fff;
    --fa-secondary-opacity: .5;
}
.ct-feature-list strong { display: block; font-family: var(--ct-font-display); font-weight: 600; margin-bottom: .15rem; color: var(--ct-midnight); }
.ct-feature-list div { color: var(--t-muted); font-size: .95rem; }
.ct-feature-list-sm i { flex-basis: 36px; height: 36px; font-size: .95rem; }

/* steps */
.ct-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ct-steps li { padding: 1.5rem; border-radius: var(--ct-radius-md); background: var(--t-surface); border: 1px solid var(--t-line); box-shadow: var(--ct-shadow-md); }
.ct-section-tint { background: linear-gradient(180deg, var(--t-tint), #fff); border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.ct-steps span { display: inline-block; font-family: var(--ct-font-display); font-weight: 700; font-size: 1.5rem; background: var(--ct-gradient-bloom); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.ct-steps h3 { font-size: 1.12rem; font-weight: 600; color: var(--ct-midnight); }
.ct-steps p { margin: 0; font-size: .93rem; }
@media (max-width: 991.98px) { .ct-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ct-steps { grid-template-columns: 1fr; } }

/* plans */
.ct-plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.ct-plan { display: flex; flex-direction: column; }
.ct-plan-desc { color: var(--t-muted); font-size: .92rem; margin: 1rem 0 1.5rem; flex: 1; }
.ct-plan-desc ul { padding-left: 1.1rem; }
.ct-plan-price { font-family: var(--ct-font-display); font-size: 2.2rem; font-weight: 700; color: var(--ct-midnight); }
.ct-plan-price small { font-size: .95rem; font-weight: 500; color: var(--t-muted); margin-left: .2rem; }
.ct-plan .btn { margin-top: auto; }
.ct-plan-popular { border: 2px solid var(--ct-blue); box-shadow: var(--ct-shadow-lg); }
.ct-plan-flag { position: absolute; top: -12px; left: 1.6rem; padding: .2rem .75rem; border-radius: var(--ct-radius-pill); font-family: var(--ct-font-display); font-size: .74rem; font-weight: 600; color: #fff; background: var(--ct-blue); }
.ct-from { margin: -.25rem 0 1rem; font-size: .9rem; color: var(--t-muted); }
.ct-from strong { font-family: var(--ct-font-display); font-size: 1.2rem; color: var(--ct-midnight); margin: 0 .1rem; }

/* add-ons */
.ct-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ct-body a.ct-addon { display: block; padding: 1.05rem 1.25rem; border-radius: var(--ct-radius-md); background: var(--t-bg); border: 1px solid var(--t-line); color: var(--t-text); text-decoration: none; font-family: var(--ct-font-display); font-weight: 500; }
.ct-body a.ct-addon:hover { border-color: var(--ct-blue); color: var(--ct-blue); }

/* domain search */
.ct-domain-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 640px;
    margin: 1.5rem auto 0;
    padding: .4rem .4rem .4rem 1.1rem;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--ct-radius-pill);
    box-shadow: var(--ct-shadow-md);
}
.ct-strip .ct-domain-search { margin-top: 0; }
.ct-domain-search i { color: var(--t-muted); }
.ct-domain-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; padding: .5rem 0; color: var(--t-text); }
.ct-domain-search .ct-btn { flex: 0 0 auto; }

/* outcomes + FAQ */
.ct-outcomes { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 767.98px) { .ct-outcomes { grid-template-columns: 1fr; } }
.ct-faq details { border-bottom: 1px solid var(--t-line); padding: 1.1rem 0; }
.ct-faq summary { cursor: pointer; font-family: var(--ct-font-display); font-weight: 600; font-size: 1.05rem; color: var(--ct-midnight); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ct-blue); transition: transform .2s ease; }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq p { margin: .75rem 0 0; }

/* CTA band: Night gradient */
.ct-cta-band { padding: 4.5rem 0; }
.ct-cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--ct-radius-lg);
    color: var(--t-on-dark);
    background:
        radial-gradient(36rem 18rem at 100% 0, rgba(249, 138, 254, .3), transparent 60%),
        radial-gradient(36rem 18rem at 0 100%, rgba(71, 235, 224, .22), transparent 60%),
        var(--ct-gradient-night);
    box-shadow: var(--ct-shadow-lg);
}
.ct-cta-inner > * { position: relative; }
.ct-section .ct-cta-inner h2 { color: #fff; margin-bottom: .5rem; }
.ct-section .ct-cta-inner p { color: var(--t-on-dark-muted); margin: 0; max-width: 36rem; }
.ct-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* forms */
.ct-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.ct-form-card label { font-weight: 600; font-size: .9rem; color: var(--ct-midnight); }
.ct-form-card .form-control { padding: .65rem .85rem; height: auto; }
.ct-form-note { font-size: .85rem; color: var(--t-muted); margin: 1rem 0 0; }
.ct-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ct-sent { text-align: center; padding: 2rem 0; }
.ct-sent i { font-size: 3rem; color: var(--ct-blue); margin-bottom: 1rem; }
.ct-alert-card { border-left: 4px solid var(--ct-danger); }
.ct-alert-card h3 i { color: var(--ct-danger); margin-right: .35rem; }

/* ---------------------------------------------------------------- legal (Cloudtria Legal addon) */

.ct-legal { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .ct-legal { grid-template-columns: 1fr; } }
.ct-legal-nav { position: sticky; top: 100px; padding: 1rem; }
.ct-legal-nav h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); margin: .5rem .5rem 1rem; }
.ct-legal-nav ul { list-style: none; margin: 0; padding: 0; }
.ct-body .ct-legal-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--ct-radius-sm); color: var(--t-text); text-decoration: none; font-weight: 500; }
.ct-body .ct-legal-nav a:hover { background: var(--t-bg); color: var(--ct-blue); }
.ct-body .ct-legal-nav a.active { background: var(--t-accent-soft); color: var(--ct-blue); }
.ct-legal-doc { padding: clamp(1.5rem, 4vw, 3rem); }
.ct-legal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--t-line); }
.ct-legal-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .35rem; color: var(--ct-midnight); }
.ct-legal-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-legal-meta span { font-size: .78rem; padding: .2rem .65rem; border-radius: var(--ct-radius-pill); background: var(--t-bg); border: 1px solid var(--t-line); color: var(--t-muted); }
.ct-legal-summary { padding: 1rem 1.25rem; border-radius: var(--ct-radius-md); background: var(--t-tint); border-left: 4px solid var(--ct-blue); margin-bottom: 2rem; color: var(--ct-grey-800); }
.ct-legal-summary > :last-child { margin-bottom: 0; }
.ct-prose { color: var(--ct-grey-800); line-height: 1.7; font-size: 1rem; max-width: 72ch; }
.ct-prose h2 { font-size: 1.4rem; font-weight: 600; margin: 2.25rem 0 .75rem; color: var(--ct-midnight); }
.ct-prose h3 { font-size: 1.15rem; font-weight: 600; margin: 1.75rem 0 .5rem; color: var(--ct-midnight); }
.ct-prose p, .ct-prose li { color: var(--ct-grey-800); }
.ct-prose ul, .ct-prose ol { padding-left: 1.3rem; }
.ct-prose li { margin-bottom: .35rem; }
.ct-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; }
.ct-prose th, .ct-prose td { border: 1px solid var(--t-line); padding: .55rem .75rem; text-align: left; }
.ct-prose th { background: var(--t-bg); }
.ct-prose blockquote { border-left: 4px solid var(--ct-blue); padding-left: 1rem; color: var(--t-muted); }

/* ---------------------------------------------------------------- footer: Night gradient */

.ct-footer { position: relative; overflow: hidden; background: var(--ct-gradient-night); color: var(--t-on-dark-muted); padding: 4.5rem 0 2rem; font-size: .92rem; }
.ct-footer::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -200px; background: url("../img/cloudtria-icon.svg") center / contain no-repeat; filter: grayscale(1) brightness(3); opacity: .05; pointer-events: none; }
.ct-footer .container { position: relative; z-index: 1; }
.ct-body .ct-footer a { color: var(--t-on-dark-muted); }
.ct-body .ct-footer a:hover { color: #fff; text-decoration: none; }
.ct-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.ct-footer h4 { font-family: var(--ct-font-display); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.ct-body .ct-footer h4 a { color: #fff; }
.ct-footer ul { list-style: none; padding: 0; margin: 0; }
.ct-footer ul li { margin-bottom: .5rem; }
.ct-footer-brand .ct-logo img { height: 52px; }
.ct-footer-tagline { font-family: var(--ct-font-display); font-weight: 500; color: #fff; margin: 1rem 0 .25rem; }
.ct-footer-brand p { margin: 0 0 1rem; max-width: 19rem; }
.ct-footer-contact li { display: flex; gap: .55rem; align-items: baseline; }
.ct-footer-contact i { color: var(--ct-aqua); }
.ct-footer-social { margin-top: 1rem; }
.ct-footer-social .list-inline-item a { font-size: 1.15rem; }
.ct-footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--t-dark-line); font-size: .85rem; }
.ct-footer-bottom .list-inline-item:not(:last-child) { margin-right: 1rem; }
.ct-body .ct-locale-btn { color: var(--t-on-dark-muted); padding: 0; font-size: .85rem; }
.ct-body .ct-locale-btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 991.98px) { .ct-footer-grid { grid-template-columns: repeat(2, 1fr); } .ct-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .ct-footer-grid { grid-template-columns: 1fr; } }

.ct-body > .btn-return-to-admin { z-index: 1040; }

/* Full-colour brand mark on white tile (never recolour the mark) */
.ct-card-icon-mark { background: #fff; box-shadow: var(--ct-shadow-md); }
.ct-card-icon-mark img { width: 70%; height: 70%; filter: none; }
.ct-brand-card h3 { font-size: 1.6rem; font-weight: 600; color: #fff; margin-bottom: .75rem; }
.ct-hero-mark { display: grid; place-items: center; }
.ct-hero-mark img { width: 280px; height: 280px; }

/* Logo sizing: lockup must render >= 120px wide (brand minimum size) */
.ct-logo img { height: 66px; }
.ct-footer-brand .ct-logo img { height: 72px; }
@media (max-width: 1199.98px) { .ct-logo img { height: 60px; } }
@media (max-width: 575.98px) { .ct-logo img { height: 56px; } }
/* Soften artwork edges into the hero background */
.ct-hero-art-plain img {
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.ct-plan-price-tbc { font-size: 1.15rem; color: var(--t-muted); margin: .4rem 0 0; }
.ct-plan-quote { display: block; text-align: center; margin-top: .75rem; }

/* ---------------------------------------------------------------- hero slider (homepage) */

.ct-hero-slider { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
/* All slides share one grid cell: height = tallest slide, crossfade in place.
   Without JS (no .ct-js) slides simply stack. */
.ct-js .ct-slides { display: grid; }
.ct-js .ct-slides > .ct-slide { grid-area: 1 / 1; align-self: center; transition: opacity .6s ease, visibility .6s; }
.ct-js .ct-slides > .ct-slide:not(.active) { visibility: hidden; opacity: 0; pointer-events: none; }
.ct-slide + .ct-slide { margin-top: 3rem; }
.ct-js .ct-slide + .ct-slide { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .ct-js .ct-slides > .ct-slide { transition: none; } }
.ct-hero-slider .ct-domain-search { margin: 1.5rem 0 0; }

.ct-slider-controls { display: none; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.25rem; }
.ct-js .ct-slider-controls { display: flex; }
.ct-slider-dots { display: flex; align-items: center; gap: .35rem; padding: .3rem; border-radius: var(--ct-radius-pill); background: rgba(255, 255, 255, .8); border: 1px solid var(--t-line); }
.ct-slider-dot {
    position: relative;
    overflow: hidden;
    border: 0;
    padding: .4rem .9rem;
    border-radius: var(--ct-radius-pill);
    background: transparent;
    font-family: var(--ct-font-display);
    font-weight: 600;
    font-size: .8rem;
    color: var(--ct-grey-600);
    cursor: pointer;
}
.ct-slider-dot:hover { color: var(--ct-midnight); }
.ct-slider-dot.active { background: var(--ct-midnight); color: #fff; }
/* progress bar on the active dot while auto-playing */
.ct-slider-dot.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--ct-aqua);
}
.ct-hero-slider.is-playing .ct-slider-dot.active::after { animation: ct-progress var(--ct-slide-ms, 8000ms) linear forwards; }
.ct-hero-slider.is-held .ct-slider-dot.active::after { animation-play-state: paused; }
@keyframes ct-progress { to { width: 100%; } }
@media (max-width: 479.98px) {
    .ct-slider-dot { padding: .55rem; width: 12px; height: 12px; }
    .ct-slider-dot span { display: none; }
    .ct-slider-dot.active { width: 28px; }
}

/* Hosting showcase: full-colour mark (never recoloured) with feature chips */
.ct-hero-showcase { position: relative; display: grid; place-items: center; min-height: 420px; }
.ct-hero-showcase::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 218, 255, .25), rgba(1, 49, 185, .08) 60%, transparent 70%);
}
.ct-hero-showcase-mark { position: relative; width: 240px; height: 240px; }
.ct-hero-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ct-hero-chips li {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: var(--ct-radius-pill);
    background: #fff;
    box-shadow: var(--ct-shadow-md);
    font-family: var(--ct-font-display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ct-midnight);
}
.ct-hero-chips i { color: var(--ct-cobalt); }
.ct-hero-chips li:nth-child(1) { top: 12%; left: 6%; }
.ct-hero-chips li:nth-child(2) { top: 18%; right: 4%; }
.ct-hero-chips li:nth-child(3) { bottom: 16%; left: 2%; }
.ct-hero-chips li:nth-child(4) { bottom: 10%; right: 8%; }
@media (max-width: 575.98px) {
    .ct-hero-showcase { min-height: 0; padding: 1rem 0; }
    .ct-hero-chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
    .ct-hero-chips li { position: static; }
    .ct-hero-showcase::before { width: 260px; height: 260px; }
    .ct-hero-showcase-mark { width: 180px; height: 180px; }
}

/* Desktop menu hover: top-level items fill the full header height, so the
   dropdown begins exactly where the hover area ends (no dead zone). */
@media (min-width: 1200px) {
    .ct-nav { align-items: stretch; }
    .ct-nav > .ct-logo, .ct-nav > .ct-actions { align-self: center; }
    .ct-menu { display: flex !important; align-items: stretch; }
    .ct-menu-list { align-items: stretch; }
    .ct-menu-item { display: flex; align-items: center; }
    .ct-menu-item.dropdown:not(.ct-mega) > .dropdown-menu { top: 100%; margin-top: 0; }
    .ct-menu-item.dropdown > .dropdown-menu::before { top: -12px; height: 12px; }
}
@media (min-width: 1200px) {
    /* must out-rank the generic ".ct-menu-item.dropdown:hover > .dropdown-menu { display:block }" */
    .ct-menu-item.dropdown.ct-mega:hover > .ct-mega-panel,
    .ct-menu-item.dropdown.ct-mega > .ct-mega-panel.show { display: grid; grid-template-columns: 270px 1fr; gap: 1.5rem; }
}

/* ---------------------------------------------------------------- client area (logged-in pages) */

/* Dashboard welcome band: Night gradient with the faint brand mark */
.ct-dash-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--ct-radius-lg);
    background: var(--ct-gradient-night);
    color: var(--t-on-dark-muted);
    box-shadow: var(--ct-shadow-lg);
}
.ct-dash-welcome::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -70px; background: url("../img/cloudtria-icon.svg") center / contain no-repeat; filter: grayscale(1) brightness(3); opacity: .06; pointer-events: none; }
.ct-dash-welcome > * { position: relative; z-index: 1; }
.ct-dash-eyebrow { margin: 0 0 .35rem; font-family: var(--ct-font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ct-aqua); }
.ct-body .ct-dash-welcome h1 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; color: #fff; }
.ct-dash-lead { margin: 0; max-width: 32rem; }
.ct-dash-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ct-dash-actions .ct-btn { padding: .6rem 1.15rem; font-size: .88rem; }

/* Stat cards */
.ct-tiles .row { row-gap: 1rem; }
.ct-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .9rem;
    align-items: center;
    height: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--t-line);
    border-radius: var(--ct-radius-md);
    background: var(--t-surface);
    box-shadow: var(--ct-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ct-body a.ct-tile, .ct-body a.ct-tile:hover { color: var(--t-text); text-decoration: none; }
.ct-tile:hover { transform: translateY(-2px); box-shadow: var(--ct-shadow-md); border-color: rgba(2, 118, 219, .35); }
.ct-tile-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--ct-radius-md); background: var(--t-grad); color: #fff; font-size: 1.1rem; }
.ct-tile-stat { font-family: var(--ct-font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.ct-tile-title { font-size: .8rem; font-weight: 500; color: var(--t-muted); }
.ct-tile-alert { border-color: rgba(249, 138, 254, .55); }
.ct-tile-alert .ct-tile-icon { background: var(--ct-gradient-bloom); }
@media (prefers-reduced-motion: reduce) { .ct-tile { transition: none; } .ct-tile:hover { transform: none; } }
@media (max-width: 479.98px) { .ct-tile { grid-template-columns: 1fr; row-gap: .4rem; } .ct-tile-icon { grid-row: auto; width: 38px; height: 38px; } }

/* Cards and sidebar panels */
.ct-app .card { overflow: hidden; margin-bottom: 1.25rem; border-radius: var(--ct-radius-md); }
.ct-app .card-header { background: var(--t-surface); border-bottom: 1px solid var(--t-line); padding: .9rem 1.15rem; }
.ct-app .card-title, .ct-app .card-header h3 { font-family: var(--ct-font-display); font-size: 1rem; font-weight: 600; color: var(--t-text); }
.ct-app .card-header .card-title > i,
.ct-app .card-header h3 > i { color: var(--ct-blue); }
.ct-app .card-footer { background: var(--t-surface); border-top: 1px solid var(--t-line); padding: .75rem 1.15rem; }
.ct-app .card-footer:empty { display: none; }
.ct-app .client-home-cards .card { border-top: 0; }
.ct-app .client-home-cards .card::before { content: ""; display: block; height: 3px; background: var(--t-grad); }
.ct-app .client-home-cards .card-accent-gold::before,
.ct-app .client-home-cards .card-accent-red::before { background: var(--ct-gradient-bloom); }
.ct-app .client-home-cards .card-header .btn-xs { border: 0; border-radius: var(--ct-radius-pill); padding: .2rem .7rem; font-size: .75rem; font-weight: 600; color: var(--ct-blue); background: var(--t-accent-soft); }
.ct-app .client-home-cards .card-header .btn-xs:hover { color: #fff; background: var(--ct-blue); }
.ct-app .list-group-item { border-color: var(--t-line); padding: .65rem 1.15rem; }
.ct-app .list-group-item-action:hover { background: var(--t-accent-soft); }
.ct-app .sidebar .list-group-item.active,
.ct-app .sidebar .list-group-item.active:hover { color: #fff; background: var(--ct-blue); border-color: var(--ct-blue); }
.ct-app .sidebar .card-header .card-minimise { color: var(--t-muted); }
.ct-app .sidebar .badge { border-radius: var(--ct-radius-pill); background: var(--t-bg); color: var(--t-muted); font-weight: 600; }

/* Tables, status labels, pagination */
.ct-app .table-container { border: 1px solid var(--t-line); border-radius: var(--ct-radius-md); background: var(--t-surface); box-shadow: var(--ct-shadow-sm); padding: .75rem; }
.ct-app table.table-list thead th { font-family: var(--ct-font-display); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); background: var(--t-surface); border-bottom: 1px solid var(--t-line); }
.ct-app table.table-list tbody tr:hover td { background: var(--t-accent-soft); }
.ct-app .label, .ct-app .status { border-radius: var(--ct-radius-pill); font-weight: 600; letter-spacing: .02em; }
.ct-app .page-item.active .page-link { background: var(--ct-blue); border-color: var(--ct-blue); }
.ct-app .page-link { color: var(--ct-blue); }

/* Primary content headings */
.ct-app .primary-content > h1, .ct-app .header-lined h1 { font-size: 1.6rem; font-weight: 600; }

/* ---------------------------------------------------------------- news / blog (WHMCS announcements) */

.ct-news-archive { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.75rem; }
.ct-news-archive-label { font-family: var(--ct-font-display); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.ct-news-archive ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ct-body .ct-news-archive a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--t-line); border-radius: var(--ct-radius-pill); background: rgba(255, 255, 255, .85); font-size: .82rem; font-weight: 500; color: var(--t-text); }
.ct-body .ct-news-archive a:hover { border-color: var(--ct-blue); color: var(--ct-blue); text-decoration: none; }
.ct-body .ct-news-archive a.active { background: var(--ct-midnight); border-color: var(--ct-midnight); color: #fff; }
.ct-news-archive i { font-size: .8em; }

.ct-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ct-post {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--t-line);
    border-radius: var(--ct-radius-lg);
    background: var(--t-surface);
    box-shadow: var(--ct-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ct-post::before { content: ""; height: 4px; background: var(--t-grad); }
.ct-post:hover { transform: translateY(-3px); box-shadow: var(--ct-shadow-md); }
.ct-post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.4rem; }
.ct-post-date { font-size: .8rem; font-weight: 500; color: var(--t-muted); margin-bottom: .5rem; }
.ct-section .ct-post-title { font-size: 1.2rem; line-height: 1.3; font-weight: 600; margin: 0 0 .75rem; }
.ct-body .ct-post-title a { color: var(--ct-midnight); }
.ct-body .ct-post-title a:hover { color: var(--ct-blue); text-decoration: none; }
/* whole card is clickable via the title link */
.ct-post-title a::after { content: ""; position: absolute; inset: 0; }
.ct-section .ct-post-excerpt { font-size: .93rem; margin: 0 0 1.25rem; }
.ct-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.ct-post-foot a { position: relative; z-index: 1; }
.ct-body a.ct-post-edit { font-size: .82rem; color: var(--t-muted); }

/* Latest post: full-width Night card */
.ct-post-featured { grid-column: 1 / -1; border: 0; background: var(--ct-gradient-night); box-shadow: var(--ct-shadow-lg); }
.ct-post-featured::before { display: none; }
.ct-post-featured::after { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; bottom: -120px; background: url("../img/cloudtria-icon.svg") center / contain no-repeat; filter: grayscale(1) brightness(3); opacity: .07; pointer-events: none; }
.ct-post-featured .ct-post-body { position: relative; z-index: 1; padding: clamp(1.75rem, 4vw, 3rem); max-width: 48rem; }
.ct-post-badge { align-self: flex-start; margin-bottom: 1rem; padding: .25rem .75rem; border-radius: var(--ct-radius-pill); background: var(--ct-gradient-bloom); font-family: var(--ct-font-display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ct-post-featured .ct-post-date { color: var(--ct-aqua); }
.ct-section .ct-post-featured .ct-post-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ct-body .ct-post-featured .ct-post-title a { color: #fff; }
.ct-body .ct-post-featured .ct-post-title a:hover { color: var(--ct-sky); }
.ct-section .ct-post-featured .ct-post-excerpt { color: var(--t-on-dark-muted); font-size: 1rem; }
.ct-body .ct-post-featured .ct-link-arrow { color: var(--ct-aqua); }
.ct-body .ct-post-featured a.ct-post-edit { color: var(--t-on-dark-muted); }

.ct-news-pages { display: flex; justify-content: center; margin-top: 2.5rem; }
.ct-news-pages .pagination { gap: .35rem; margin: 0; }
.ct-body .ct-news-pages .page-link { min-width: 2.4rem; text-align: center; border-radius: var(--ct-radius-pill) !important; border-color: var(--t-line); color: var(--t-text); }
.ct-body .ct-news-pages .page-item.active .page-link { background: var(--ct-midnight); border-color: var(--ct-midnight); color: #fff; }
.ct-news-empty { padding: 2.5rem; text-align: center; }

@media (max-width: 991.98px) { .ct-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ct-news-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct-post { transition: none; } .ct-post:hover { transform: none; } }

/* Single post */
.ct-post-hero .ct-display { max-width: 52rem; font-size: clamp(2rem, 4.2vw, 3rem); }
.ct-body a.ct-post-back { display: inline-block; margin-bottom: 1rem; font-family: var(--ct-font-display); font-weight: 600; font-size: .88rem; }
.ct-post-back::before { content: "\2190"; margin-inline-end: .4rem; }
[dir="rtl"] .ct-post-back::before { content: "\2192"; }
.ct-post-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; color: var(--t-muted); font-size: .92rem; }
.ct-post-article { max-width: 50rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.25rem); }
.ct-post-article .ct-prose { font-size: 1.05rem; line-height: 1.75; }
.ct-post-article .ct-prose img { max-width: 100%; height: auto; border-radius: var(--ct-radius-md); }
.ct-post-article .ct-prose > :first-child { margin-top: 0; }
.ct-post-article .ct-prose > :last-child { margin-bottom: 0; }
.ct-post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--t-line); }
.ct-post-comments { margin-top: 1.5rem; }
.ct-post-nav { max-width: 50rem; margin: 2rem auto 0; }
/* Post content is pasted from editors: normalise headings and inline fonts */
.ct-post-article .ct-prose h1 { font-size: 1.65rem; font-weight: 600; line-height: 1.25; margin: 2.5rem 0 .85rem; color: var(--ct-midnight); }
.ct-post-article .ct-prose h2 { font-size: 1.4rem; }
.ct-post-article .ct-prose h1, .ct-post-article .ct-prose h2, .ct-post-article .ct-prose h3, .ct-post-article .ct-prose h4 { font-family: var(--ct-font-display) !important; }
.ct-post-article .ct-prose p, .ct-post-article .ct-prose li, .ct-post-article .ct-prose span, .ct-post-article .ct-prose td { font-family: var(--ct-font-body) !important; }
.ct-post-article .ct-prose table { display: block; overflow-x: auto; }
.ct-post-article .ct-prose h1, .ct-post-article .ct-prose h1 * { font-size: 1.65rem !important; line-height: 1.25 !important; }
.ct-post-article .ct-prose h2, .ct-post-article .ct-prose h2 * { font-size: 1.4rem !important; line-height: 1.3 !important; }
.ct-post-article .ct-prose h1, .ct-post-article .ct-prose h2, .ct-post-article .ct-prose h3 { color: var(--ct-midnight) !important; letter-spacing: -.01em !important; margin: 2.25rem 0 .85rem !important; }
.ct-post-article .ct-prose img { max-width: 100% !important; height: auto !important; }

/* ---------------------------------------------------------------- language / currency picker */

.ct-body .modal-localisation .modal-content { border: 0; border-radius: var(--ct-radius-lg); background: var(--ct-gradient-night); box-shadow: var(--ct-shadow-lg); overflow: hidden; }
.ct-body .modal-localisation .modal-content::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; bottom: -110px; background: url("../img/cloudtria-icon.svg") center / contain no-repeat; filter: grayscale(1) brightness(3); opacity: .06; pointer-events: none; }
.ct-body .modal-localisation .modal-body { position: relative; z-index: 1; padding: 1.5rem 2rem 2rem; background: none; }
.ct-body .modal-localisation h5,
.ct-body .modal-localisation .h5 { font-family: var(--ct-font-display); font-weight: 600; color: #fff; }
.ct-body .modal-localisation .item-selector { row-gap: .5rem; }
.ct-body .modal-localisation .item-selector .item {
    display: block;
    padding: .5rem .75rem;
    border: 1px solid var(--t-dark-line);
    border-radius: var(--ct-radius-pill);
    background: rgba(255, 255, 255, .04);
    color: var(--t-on-dark-muted);
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
}
.ct-body .modal-localisation .item-selector .item:hover { border-color: var(--ct-aqua); color: #fff; }
.ct-body .modal-localisation .item-selector .item.active { background: #fff; border-color: #fff; color: var(--ct-midnight); font-weight: 600; }
.ct-body .modal-localisation .close { color: #fff; opacity: .8; text-shadow: none; }
.ct-body .modal-localisation .modal-footer { position: relative; z-index: 1; border-top: 1px solid var(--t-dark-line); background: none; padding: 1rem 2rem; }
.ct-body .modal-localisation .modal-footer .btn { border-radius: var(--ct-radius-pill); padding: .5rem 1.5rem; font-family: var(--ct-font-display); font-weight: 600; color: #fff; background: var(--ct-blue); border-color: var(--ct-blue); }
@media (max-width: 575.98px) { .ct-body .modal-localisation .item-selector > [class*="col-"] { flex: 0 0 50%; max-width: 50%; } }

/* Right-to-left languages: arrows point the reading direction */
[dir="rtl"] .ct-link-arrow::after { content: "\2190"; margin-left: 0; margin-right: .35rem; }
[dir="rtl"] a:hover > .ct-link-arrow::after, [dir="rtl"] a.ct-link-arrow:hover::after { transform: translateX(-3px); }
[dir="rtl"] .ct-post-excerpt[dir="auto"], [dir="rtl"] .ct-post-title[dir="auto"] { text-align: start; }

/* ---------------------------------------------------------------- knowledgebase articles (kb/articles/*.html) */

.ct-body .kb-doc { font-size: 1rem; line-height: 1.65; color: var(--t-text); }
.ct-body .kb-doc > :first-child { margin-top: 0; }
.ct-body .kb-doc h2 { font-family: var(--ct-font-display); font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .75rem; }
.ct-body .kb-doc p, .ct-body .kb-doc ul, .ct-body .kb-doc ol { margin-bottom: 1rem; }
.ct-body .kb-doc li { margin-bottom: .35rem; }
.ct-body .kb-doc li > ul { margin: .4rem 0 0; }
.ct-body .kb-doc code { color: var(--ct-midnight); background: var(--t-tint); padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-word; }
.ct-body .kb-doc pre { background: var(--ct-midnight); color: #e6ebf5; padding: 1rem 1.25rem; border-radius: var(--ct-radius-md); overflow-x: auto; font-size: .875rem; }
.ct-body .kb-doc pre code { background: none; color: inherit; padding: 0; }
.ct-body .kb-doc kbd { background: var(--t-surface); color: var(--t-text); border: 1px solid var(--t-line); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; font-size: .85em; }
.ct-body .kb-lead { font-size: 1.1rem; color: var(--t-muted); }

/* Numbered steps with brand counters */
.ct-body .kb-steps { list-style: none; counter-reset: kb-step; padding-left: 0; }
.ct-body .kb-steps[start="2"] { counter-reset: kb-step 1; }
.ct-body .kb-steps[start="3"] { counter-reset: kb-step 2; }
.ct-body .kb-steps[start="4"] { counter-reset: kb-step 3; }
.ct-body .kb-steps > li { counter-increment: kb-step; position: relative; padding-left: 2.6rem; margin-bottom: .8rem; min-height: 1.8rem; }
.ct-body .kb-steps > li::before {
    content: counter(kb-step);
    position: absolute; left: 0; top: -.05rem;
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--t-grad); color: #fff;
    font-family: var(--ct-font-display); font-weight: 600; font-size: .85rem;
}

/* Screenshots */
.ct-body .kb-shot { margin: 1.25rem 0 1.5rem; }
.ct-body .kb-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--t-line); border-radius: var(--ct-radius-md); box-shadow: var(--ct-shadow-sm); background: #fff; }
.ct-body .kb-shot-sm img { max-width: min(100%, 460px); }
.ct-body .kb-shot .kb-caption { margin-top: .5rem; font-size: .85rem; color: var(--t-muted); }
@media (min-width: 992px) { .ct-body .kb-shot.kb-right { float: right; margin: 0 0 1rem 1.5rem; } }
.ct-body .kb-doc h2 { clear: both; }

/* Callouts */
.ct-body .kb-note, .ct-body .kb-tip, .ct-body .kb-warn { margin: 1.25rem 0; padding: .85rem 1.1rem; border-radius: var(--ct-radius-md); border-left: 4px solid; font-size: .95rem; }
.ct-body .kb-note { background: var(--t-accent-soft); border-color: var(--ct-blue); }
.ct-body .kb-tip { background: var(--t-tint); border-color: #8b5cf6; }
.ct-body .kb-warn { background: #fff7ed; border-color: #f59e0b; }
.ct-body .kb-note::before, .ct-body .kb-tip::before, .ct-body .kb-warn::before { font-weight: 700; margin-right: .35rem; }
.ct-body .kb-tip::before { content: "Tip:"; }
.ct-body .kb-warn::before { content: "Important:"; }

/* Tables */
.ct-body .kb-table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .95rem; }
.ct-body .kb-table th, .ct-body .kb-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--t-line); text-align: start; vertical-align: top; }
.ct-body .kb-table th { background: var(--t-bg); font-family: var(--ct-font-display); font-weight: 600; font-size: .85rem; }
@media (max-width: 575.98px) { .ct-body .kb-table { display: block; overflow-x: auto; } }

[dir="rtl"] .ct-body .kb-steps > li { padding-left: 0; padding-right: 2.6rem; }
[dir="rtl"] .ct-body .kb-steps > li::before { left: auto; right: 0; }
[dir="rtl"] .ct-body .kb-note, [dir="rtl"] .ct-body .kb-tip, [dir="rtl"] .ct-body .kb-warn { border-left: 0; border-right: 4px solid; }
