/* ==========================================================================
   TCAdmin client area theme
   Loaded after all.min.css (Bootstrap 3 + the stock Six styles). It restyles
   WHMCS to match www.tcadmin.com: the same palette, type, HUD cut corners,
   header and footer, in both the dark and the light theme.
   The theme is chosen by <html data-theme="dark|light"> (set before paint in header.tpl).
   ========================================================================== */

/* Fonts (self-hosted, latin subsets, same files as the main site) */
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/saira-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/saira-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/saira-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

/* Tokens: identical to src/styles/global.css on the main site */
:root {
  --bg: #051327;
  --bg-deep: #030c1d;
  --surface: #091f3c;
  --surface-2: #0d2a4f;
  --line: #1a3a64;
  --line-soft: #102a4a;
  --text: #eaf1fa;
  --text-dim: #a3b6cf;
  --text-faint: #7189aa;
  --brand: #004b82;
  --accent: #01a5df;
  --accent-hot: #2bbcf0;
  --accent-ink: #021428;
  --online: #1fc77e;
  --offline: #f0454f;
  --starting: #f5a524;
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --grid-line: rgb(120 170 230 / 0.045);
  --logo-filter: brightness(0) invert(1);
  --shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f2f5fa;
  --bg-deep: #e6ecf5;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --line: #c9d5e5;
  --line-soft: #dce4ef;
  --text: #0a1a30;
  --text-dim: #3f5473;
  --text-faint: #5a6d89;
  --accent: #0072b0;
  --accent-hot: #005f94;
  --accent-ink: #ffffff;
  --online: #0f8a52;
  --offline: #c9303a;
  --starting: #a86a12;
  --grid-line: rgb(0 75 130 / 0.06);
  --logo-filter: none;
  --shadow: 0 24px 50px -24px rgb(10 26 48 / 0.35);
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { background: var(--bg); -webkit-text-size-adjust: 100%; height: auto; }
body {
  height: auto; min-height: 100vh; margin: 0;
  display: flex; flex-direction: column;
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* The faint HUD grid that sits behind every page of the main site */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
}
input, button, select, textarea { font-family: var(--font-body); color: var(--text); }
a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-hot); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
hr { border-top-color: var(--line-soft); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; color: var(--text); letter-spacing: 0; }
h1, .h1 { font-size: 2.6em; }
h2, .h2 { font-size: 2.1em; }
h3, .h3 { font-size: 1.6em; }
h4, .h4 { font-size: 1.3em; }
small, .small { color: var(--text-faint); }
.text-muted { color: var(--text-faint); }
label { font-weight: 500; color: var(--text); }
legend { color: var(--text); border-bottom-color: var(--line-soft); font-family: var(--font-display); font-weight: 700; }
code, kbd, pre, samp { font-family: var(--font-mono); }
code { color: var(--accent-hot); background: var(--bg-deep); border-radius: 3px; }
pre { color: var(--text); background: var(--bg-deep); border-color: var(--line); }
blockquote { border-left-color: var(--accent); color: var(--text-dim); }
.well { background: var(--surface); border-color: var(--line-soft); box-shadow: none; }
.close { color: var(--text); opacity: 0.6; text-shadow: none; }
.close:hover, .close:focus { color: var(--text); opacity: 1; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.container { width: auto; max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }
section#main-body { flex: 1 0 auto; margin: 0; padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); min-height: 0; background: transparent; }
section#main-content { padding: 0; }

/* HUD corners: clip the top-left and bottom-right corners like a game UI panel. */
.tca-cut {
  --cut: 14px; position: relative;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.tca-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.tca-skip:focus { top: 12px; color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Header (mirrors Header.astro on the main site)
   -------------------------------------------------------------------------- */
.tca-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.tca-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.tca-bar { display: flex; align-items: center; gap: 36px; height: 72px; white-space: nowrap; }
.tca-home { flex: none; display: block; line-height: 0; }
.tca-logo { display: block; height: 44px; width: auto; filter: var(--logo-filter); }
.tca-primary { margin-right: auto; }
.tca-primary > ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.tca-primary > ul > li > a, .tca-dd-btn {
  text-decoration: none; color: var(--text-dim); font-weight: 500; font-size: 16px; line-height: 1.4;
  transition: color 0.15s; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.tca-primary > ul > li > a:hover, .tca-primary > ul > li > a:focus, .tca-dd-btn:hover, .tca-dd-btn[aria-expanded='true'] { color: var(--text); text-decoration: none; }
.tca-dd { position: relative; }
.tca-dd-btn { display: inline-flex; align-items: center; gap: 6px; }
.tca-dd-btn svg { width: 14px; height: 14px; flex: none; transition: transform 0.15s; }
.tca-dd-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.tca-dd-menu {
  --cut: 14px; position: absolute; top: calc(100% + 18px); left: -18px; width: 300px; padding: 8px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tca-dd-menu[hidden] { display: none; }
.tca-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.tca-dd-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tca-dd-menu a {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; gap: 2px 12px;
  padding: 10px 12px; text-decoration: none; color: var(--text); white-space: normal;
}
.tca-dd-menu a:hover, .tca-dd-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); outline: none; color: var(--text); text-decoration: none; }
.tca-dd-icon {
  grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent);
  background: var(--bg-deep); border: 1px solid var(--line-soft);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.tca-dd-icon svg { width: 18px; height: 18px; }
.tca-dd-icon.discord { color: #fff; background: #5865f2; border-color: #5865f2; }
.tca-dd-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tca-dd-label svg { width: 12px; height: 12px; color: var(--text-faint); }
.tca-dd-note { color: var(--text-faint); font-size: 14px; }

.tca-actions { display: flex; align-items: center; gap: 6px; }
.tca-icon {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--text-dim); transition: color 0.15s; text-decoration: none;
}
.tca-icon:hover, .tca-icon:focus { color: var(--text); text-decoration: none; }
.tca-icon svg { width: 22px; height: 22px; }
.tca-pip { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--offline); box-shadow: 0 0 0 2px var(--bg); }
.tca-actions .tca-text { color: var(--text-dim); font-weight: 500; text-decoration: none; padding: 0 10px; }
.tca-actions .tca-text:hover { color: var(--text); }
.tca-actions .tca-btn { margin-left: 8px; }
.tca-admin-return { color: var(--starting); }
/* Show the icon for the theme you would switch to. */
.tca-theme .t-moon, :root[data-theme='light'] .tca-theme .t-sun { display: none; }
:root[data-theme='light'] .tca-theme .t-moon { display: grid; }
.tca-theme .t-sun { display: grid; }

/* Site buttons (used by the header, hero and footer; Bootstrap .btn is restyled separately below) */
.tca-btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 42px; padding: 0 1.1rem;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border: 1px solid transparent; position: relative; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.tca-btn:hover, .tca-btn:focus { text-decoration: none; }
.tca-btn-primary { background: var(--accent); color: var(--accent-ink); }
.tca-btn-primary:hover, .tca-btn-primary:focus { background: var(--accent-hot); color: var(--accent-ink); }
.tca-btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tca-btn-ghost:hover, .tca-btn-ghost:focus { border-color: var(--accent); color: var(--text); }

.tca-icon-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.tca-icon-btn svg { width: 22px; height: 22px; }
.tca-icon-btn .i-close { display: none; }
.tca-menu-btn[aria-expanded='true'] .i-open { display: none; }
.tca-menu-btn[aria-expanded='true'] .i-close { display: block; }
.tca-menu-btn[aria-expanded='true'] { border-color: var(--accent); color: var(--accent); }

.tca-mobile {
  border-top: 1px solid var(--line-soft); max-height: calc(100dvh - 72px); overflow-y: auto;
  background: radial-gradient(80% 50% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--bg);
}
.tca-mobile[hidden] { display: none; }
.tca-mobile ul { list-style: none; margin: 0 auto; padding: 8px var(--gutter) 24px; display: grid; }
.tca-mobile .m-main {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  color: var(--text); border-bottom: 1px solid var(--line-soft);
}
.tca-mobile .m-sub { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 0 20px; }
.tca-mobile .m-sub a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); text-decoration: none; font-weight: 500; }
.tca-mobile .m-sub a svg { width: 12px; height: 12px; }
.tca-mobile .tca-btn { width: 100%; }

/* Client-area navigation bar (WHMCS's own menus, under the site header) */
section#main-menu { background: color-mix(in srgb, var(--surface) 70%, transparent); border-bottom: 1px solid var(--line-soft); }
.tca-subnav.navbar { min-height: 0; margin: 0; border: 0; border-radius: 0; background: transparent; font-family: var(--font-body); font-size: 14px; box-shadow: none; }
.tca-subnav .tca-subnav-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
#main-menu .tca-subnav .navbar-nav, .tca-subnav .navbar-nav { display: flex; flex-wrap: wrap; align-items: center; float: none !important; margin: 0 !important; }
.tca-subnav .navbar-right { margin-left: auto !important; }
.tca-subnav .navbar-nav > li { float: none; }
.navbar-main.tca-subnav .navbar-nav > li > a, .navbar-main.tca-subnav .navbar-nav > li > a:focus {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; line-height: 20px;
  color: var(--text-dim); background: transparent; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s;
}
.navbar-main.tca-subnav .navbar-nav > li > a:hover, .navbar-main.tca-subnav .navbar-nav > .open > a, .navbar-main.tca-subnav .navbar-nav > .open > a:hover, .navbar-main.tca-subnav .navbar-nav > .open > a:focus { color: var(--text); background: transparent; }
.navbar-main.tca-subnav .navbar-nav > .active > a, .navbar-main.tca-subnav .navbar-nav > .active > a:hover, .navbar-main.tca-subnav .navbar-nav > .active > a:focus { color: var(--text); background: transparent; border-bottom-color: var(--accent); }
.navbar-main.tca-subnav li.account { background: transparent; }
.navbar-main.tca-subnav .navbar-nav > li > a .caret { margin-left: 2px; opacity: 0.7; }
.navbar-main.tca-subnav .navbar-nav > li > a .badge { background: var(--accent); color: var(--accent-ink); }
.tca-subnav .navbar-nav .dropdown-menu, .tca-subnav .navbar-nav .open .dropdown-menu {
  position: absolute; float: left; width: auto; min-width: 220px; margin-top: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.tca-subnav .navbar-right .dropdown-menu { right: 0; left: auto; }
.tca-subnav .navbar-nav .dropdown-menu > li > a, .tca-subnav .navbar-nav .open .dropdown-menu > li > a { padding: 8px 12px; color: var(--text); line-height: 20px; }
.tca-subnav .navbar-nav .dropdown-menu > li > a:hover, .tca-subnav .navbar-nav .dropdown-menu > li > a:focus,
.tca-subnav .navbar-nav .open .dropdown-menu > li > a:hover, .tca-subnav .navbar-nav .open .dropdown-menu > li > a:focus,
.tca-subnav .navbar-nav .dropdown-menu > .active > a, .tca-subnav .navbar-nav .dropdown-menu > .active > a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.tca-subnav .navbar-nav .dropdown-menu .divider { background: var(--line-soft); }
.tca-subnav .navbar-nav .dropdown-menu > li > a i { color: var(--accent); width: 1.25em; }

/* --------------------------------------------------------------------------
   Client area home banner (templatefile == homepage)
   -------------------------------------------------------------------------- */
section#home-banner { position: relative; isolation: isolate; margin: 0; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); background: transparent; }
section#home-banner::before {
  content: ''; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 70% at 10% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(35% 60% at 80% 10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%);
}
section#home-banner h1 {
  margin: 0 0 12px; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; letter-spacing: 0.005em;
  text-shadow: 0 0 48px color-mix(in srgb, var(--accent) 28%, transparent);
}
section#home-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 16px; }
section#home-banner .lede { font-size: 18px; color: var(--text-dim); max-width: 60ch; margin: 0 auto; }
section#home-banner .form-control { height: 48px; }
.home-shortcuts { margin: 0; padding: 0 0 clamp(24px, 4vw, 40px); background: transparent; color: var(--text); }
.home-shortcuts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.home-shortcuts li {
  float: none; width: auto; padding: 0; border: 1px solid var(--line-soft); background: var(--surface); font-size: 15px; text-align: left; white-space: normal;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 0.15s;
}
.home-shortcuts li:first-child { border-left: 1px solid var(--line-soft); }
.home-shortcuts li:hover { border-color: var(--accent); }
.home-shortcuts li a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--text); text-decoration: none; }
.home-shortcuts li i { font-size: 22px; color: var(--accent); width: 32px; text-align: center; }
.home-shortcuts li p { margin: 0; text-transform: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.home-shortcuts li span { display: inline-block; color: var(--accent); margin-left: 4px; }
.home-shortcuts .lead { display: none; }

/* --------------------------------------------------------------------------
   Page header and breadcrumb
   -------------------------------------------------------------------------- */
div.header-lined { margin-bottom: 24px; }
div.header-lined h1 {
  margin: 0 0 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; color: var(--text);
}
div.header-lined h1 small { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 400; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text-dim); white-space: normal; line-height: 1.5; }
div.header-lined .breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 13px; border-radius: 0; }
.breadcrumb { background: var(--surface); border-radius: 0; }
.breadcrumb > li + li::before { color: var(--text-faint); }
div.header-lined .breadcrumb li a { color: var(--text-faint); text-decoration: none; }
div.header-lined .breadcrumb li a:hover { color: var(--accent); }
div.header-lined .breadcrumb > .active, .breadcrumb > .active { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Bootstrap components
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
  --cut: 8px;
  position: relative; overflow: visible;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 0; box-shadow: none !important; text-shadow: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active, .btn.active { box-shadow: none; }
.btn-lg, .btn-group-lg > .btn { font-size: 18px; padding: 12px 22px; --cut: 10px; }
.btn-sm, .btn-group-sm > .btn { font-size: 13px; padding: 6px 12px; --cut: 6px; }
.btn-xs, .btn-group-xs > .btn { font-size: 12px; padding: 3px 9px; --cut: 5px; letter-spacing: 0.03em; }
.btn-block + .btn-block { margin-top: 8px; }
.btn-default, .btn-default:focus { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); border-color: var(--line); }
.btn-default:hover, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: var(--text); background: var(--surface-2); border-color: var(--accent); }
.btn-primary, .btn-primary:focus { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: var(--accent-ink); background: var(--accent-hot); border-color: var(--accent-hot); }
.btn-success, .btn-success:focus { color: #fff; background: color-mix(in srgb, var(--online) 85%, #000); border-color: transparent; }
.btn-success:hover, .btn-success:active, .btn-success.active { color: #fff; background: var(--online); border-color: transparent; }
.btn-info, .btn-info:focus { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.btn-info:hover, .btn-info:active, .btn-info.active { color: var(--text); background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); border-color: var(--accent); }
.btn-warning, .btn-warning:focus { color: #1a1200; background: var(--starting); border-color: transparent; }
.btn-warning:hover, .btn-warning:active, .btn-warning.active { color: #1a1200; background: color-mix(in srgb, var(--starting) 85%, #fff); border-color: transparent; }
.btn-danger, .btn-danger:focus { color: #fff; background: var(--offline); border-color: transparent; }
.btn-danger:hover, .btn-danger:active, .btn-danger.active { color: #fff; background: color-mix(in srgb, var(--offline) 85%, #fff); border-color: transparent; }
.btn-link { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); clip-path: none; }
.btn-link:hover, .btn-link:focus { color: var(--accent-hot); }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: 0.45; }
.btn .fa, .btn .fas, .btn .far { font-size: 0.95em; }
/* Buttons glued to an input keep square inner corners */
.input-group-btn .btn { --cut: 0; padding-top: 0; padding-bottom: 0; height: 40px; }
.input-group-btn:last-child > .btn { margin-left: 0; }
.btn-group > .btn:not(:first-child):not(:last-child) { --cut: 0; }
.btn-group > .btn:first-child:not(:last-child) { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.btn-group > .btn:last-child:not(:first-child) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.btn-group > .btn + .btn { margin-left: 0; }
/* Stock Six paints these buttons with brand-colour utility classes; keep them on the accent */
.btn.bg-color-blue, .btn.bg-color-green, .btn.bg-color-red, .btn.bg-color-gold, .btn.bg-color-orange, .btn.bg-color-purple, .btn.bg-color-pink, .btn.bg-color-teal, .btn.bg-color-turquoise, .btn.bg-color-emerald, .btn.bg-color-asbestos, .btn.bg-color-silver, .btn.bg-color-magenta, .btn.bg-color-lime, .btn.bg-color-amethyst, .btn.bg-color-wet-asphalt, .btn.bg-color-midnight-blue, .btn.bg-color-sun-flower, .btn.bg-color-pomegranate {
  background-color: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--accent);
}

/* Forms */
.form-control {
  height: 40px; padding: 7px 12px; font-size: 15px; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 0; box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); outline: none; }
.form-control::placeholder { color: var(--text-faint); opacity: 1; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: var(--surface); color: var(--text-faint); opacity: 0.8; }
textarea.form-control { height: auto; min-height: 96px; }
select.form-control { padding-right: 32px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%237189aa'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
select.form-control[multiple], select.form-control[size] { background-image: none; padding-right: 12px; height: auto; }
select option { background: var(--surface); color: var(--text); }
.input-lg, .form-group-lg .form-control { height: 48px; font-size: 17px; }
.input-sm, .form-group-sm .form-control { height: 32px; font-size: 13px; }
.input-group-addon { color: var(--text-dim); background: var(--surface); border-color: var(--line); border-radius: 0; }
.help-block { color: var(--text-faint); }
.checkbox label, .radio label { color: var(--text-dim); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); }
.has-error .form-control { border-color: var(--offline); box-shadow: none; }
.has-error .form-control:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--offline) 25%, transparent); }
.has-error .control-label, .has-error .help-block, .has-error .checkbox, .has-error .radio, .form-group .field-error-msg { color: var(--offline); }
.has-success .form-control { border-color: var(--online); box-shadow: none; }
.has-success .control-label, .has-success .help-block { color: var(--online); }
.has-warning .form-control { border-color: var(--starting); box-shadow: none; }
.has-warning .control-label, .has-warning .help-block { color: var(--starting); }
.form-control-feedback { color: var(--text-faint); }
.has-error .form-control-feedback { color: var(--offline); }
.has-success .form-control-feedback { color: var(--online); }
.iti input, .intl-tel-input input { background: var(--bg-deep); }
.iti__country-list, .country-list { background: var(--surface) !important; border-color: var(--line) !important; color: var(--text); }
.iti__country.iti__highlight, .country.highlight { background: var(--surface-2) !important; }

/* Panels */
.panel { font-size: inherit; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; margin-bottom: 20px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.panel-body { padding: 16px 18px; }
.panel > .panel-heading { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); border-radius: 0; color: var(--text); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.panel-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: inherit; }
.panel-title > a { color: inherit; }
.panel-footer { background: color-mix(in srgb, var(--bg-deep) 50%, var(--surface)); border-top: 1px solid var(--line-soft); border-radius: 0; padding: 12px 18px; }
.panel-default > .panel-heading { color: var(--text); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border-color: var(--line-soft); }
.panel-primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.panel-primary > .panel-heading { color: var(--text); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.panel-primary > .panel-heading .panel-title { color: var(--accent-hot); }
.panel-info { border-color: var(--line); }
.panel-info > .panel-heading { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.panel-success { border-color: color-mix(in srgb, var(--online) 45%, var(--line)); }
.panel-success > .panel-heading { color: var(--online); background: color-mix(in srgb, var(--online) 12%, var(--surface)); border-color: color-mix(in srgb, var(--online) 45%, var(--line)); }
.panel-warning { border-color: color-mix(in srgb, var(--starting) 45%, var(--line)); }
.panel-warning > .panel-heading { color: var(--starting); background: color-mix(in srgb, var(--starting) 12%, var(--surface)); border-color: color-mix(in srgb, var(--starting) 45%, var(--line)); }
.panel-danger { border-color: color-mix(in srgb, var(--offline) 45%, var(--line)); }
.panel-danger > .panel-heading { color: var(--offline); background: color-mix(in srgb, var(--offline) 12%, var(--surface)); border-color: color-mix(in srgb, var(--offline) 45%, var(--line)); }
.panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0 0; }
.panel > .table, .panel > .table-responsive > .table { margin-bottom: 0; }
.panel > .panel-body + .table, .panel > .panel-body + .table-responsive { border-top-color: var(--line-soft); }
.panel-group .panel-heading + .panel-collapse > .panel-body { border-top-color: var(--line-soft); }
/* Colour-accented home panels keep a single brand accent */
.panel.panel-accent-gold, .panel.panel-accent-green, .panel.panel-accent-red, .panel.panel-accent-blue, .panel.panel-accent-orange, .panel.panel-accent-pink, .panel.panel-accent-purple, .panel.panel-accent-lime, .panel.panel-accent-magenta, .panel.panel-accent-teal, .panel.panel-accent-turquoise, .panel.panel-accent-emerald, .panel.panel-accent-amethyst, .panel.panel-accent-wet-asphalt, .panel.panel-accent-midnight-blue, .panel.panel-accent-sun-flower, .panel.panel-accent-pomegranate, .panel.panel-accent-silver, .panel.panel-accent-asbestos, .panel.panel-accent-brand-cpanel-orange, .panel.panel-accent-brand-xovinow-blue {
  border-top: 2px solid var(--accent); border-right-color: var(--line-soft); border-bottom-color: var(--line-soft); border-left-color: var(--line-soft);
}
.client-home-panels .panel > .panel-heading { background: transparent; border-bottom: 0; padding-bottom: 6px; }
.client-home-panels .panel > .panel-heading .panel-title .btn { color: var(--accent-ink); }
.client-home-panels .panel > .panel-heading .panel-title .btn:hover { color: var(--accent-ink); }
.client-home-panels .panel > .panel-footer { background: transparent; border-top: 1px solid var(--line-soft); }
.client-home-panels .panel > .list-group .list-group-item { padding: 9px 18px; }
.client-home-panels .panel small { color: var(--text-faint); }

/* Sidebar panels */
.panel-sidebar { border-color: var(--line-soft); }
.panel-sidebar > .panel-heading { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); border-color: var(--line-soft); }
.panel-sidebar > .panel-heading .panel-title, .panel-sidebar .panel-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 26px; color: var(--text); }
.panel-sidebar > .panel-footer { color: var(--text); background: color-mix(in srgb, var(--bg-deep) 50%, var(--surface)); border-top: 1px solid var(--line-soft); }
.panel-sidebar .list-group-item i:not(.fa-circle):not(.fa-dot-circle):not(.no-transform) { color: var(--text-faint); }
.panel-sidebar a.list-group-item:hover i.fas, .panel-sidebar a.list-group-item:hover i.far { color: var(--accent) !important; }
.panel-sidebar a.list-group-item.active, .panel-sidebar a.list-group-item.active:focus, .panel-sidebar a.list-group-item.active:hover,
.panel-sidebar.view-filter-btns .list-group-item.active, .panel-sidebar.view-filter-btns .list-group-item.active:focus, .panel-sidebar.view-filter-btns .list-group-item.active:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--line-soft); }
.panel-sidebar a.list-group-item.active i, .panel-sidebar a.list-group-item.active:focus i, .panel-sidebar a.list-group-item.active:hover i { color: var(--accent); }
.panel-sidebar .panel-minimise { color: var(--text-faint); cursor: pointer; transition: transform 0.2s; }
.panel-sidebar .panel-minimise.minimised { transform: rotate(180deg); }
.list-group { font-size: inherit; }
.list-group-item { background: transparent; border-color: var(--line-soft); color: var(--text-dim); padding: 9px 18px; }
a.list-group-item, button.list-group-item { color: var(--text-dim); }
a.list-group-item:hover, a.list-group-item:focus, button.list-group-item:hover, button.list-group-item:focus { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus, .list-group-item.active { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--accent); }
a.list-group-item.active .list-group-item-text, .list-group-item.active .badge { color: var(--text); background: transparent; }
.list-group-item.disabled, .list-group-item.disabled:hover { background: transparent; color: var(--text-faint); }
.list-group-item .badge { background: transparent; color: var(--text-faint); font-weight: 500; }
div.sidebar .list-group-item-selected { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
div.sidebar .list-group-item-selected .badge { color: var(--text); }
.list-group-item > i.far.fa-circle, .list-group-item > i.fas.fa-circle { color: var(--text-faint); }
.list-group-item .sidebar-menu-item-icon, .list-group-item > i { color: var(--accent); }
.list-group-item-info { background: var(--surface-2); color: var(--text); }
.list-group-item-success { background: color-mix(in srgb, var(--online) 15%, var(--surface)); color: var(--text); }
.list-group-item-warning { background: color-mix(in srgb, var(--starting) 15%, var(--surface)); color: var(--text); }
.list-group-item-danger { background: color-mix(in srgb, var(--offline) 15%, var(--surface)); color: var(--text); }
.list-group-item-heading { color: var(--text); }
.list-group-item-text { color: var(--text-dim); }
.sidebar .panel.hidden-lg.hidden-md .panel-body { padding: 12px 18px; }

/* Tables */
.table { color: var(--text); }
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { border-top-color: var(--line-soft); vertical-align: middle; padding: 10px 12px; }
.table > thead > tr > th { border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.table-striped > tbody > tr:nth-of-type(odd) { background: color-mix(in srgb, var(--bg-deep) 50%, transparent); }
.table-hover > tbody > tr:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border-color: var(--line-soft); }
.table > tbody > tr.active > td, .table > tbody > tr > td.active { background: var(--surface-2); }
.table > tbody > tr.success > td { background: color-mix(in srgb, var(--online) 12%, var(--surface)); }
.table > tbody > tr.info > td { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.table > tbody > tr.warning > td { background: color-mix(in srgb, var(--starting) 12%, var(--surface)); }
.table > tbody > tr.danger > td { background: color-mix(in srgb, var(--offline) 12%, var(--surface)); }
.table-responsive { border-color: var(--line-soft); }
.table-container { background: transparent; }
table.table-list thead th, .dataTables_wrapper table.table-list thead th, .dataTables_wrapper table.table-list thead th:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border-bottom: 1px solid var(--line); color: var(--text); text-align: left; }
.dataTables_wrapper table.table-list thead th.sorting_asc, .dataTables_wrapper table.table-list thead th.sorting_desc { color: var(--accent-hot); }
.table-list > tbody > tr > td, .table-list > tbody > tr:nth-child(even) > td { background: transparent; }
.table-list > tbody > tr:hover > td { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.table-list > tbody > tr > td a.border-left { border-left-color: var(--line-soft); }
table.table-list tbody td { color: var(--text); }
.dataTables_wrapper .dataTables_info, div.dataTables_wrapper div.dataTables_info { margin: 0; padding: 14px 0 !important; background: transparent; border: 0; color: var(--text-faint); font-size: 14px; font-weight: 400; }
.dataTables_wrapper .dataTables_length { background: transparent; color: var(--text-dim); font-size: 14px; }
.dataTables_wrapper .dataTables_length label { padding: 8px 0; }
.dataTables_wrapper .dataTables_length label .form-control { height: 32px; padding: 2px 28px 2px 8px; border: 1px solid var(--line); background-color: var(--bg-deep); color: var(--text); margin: 0 4px; }
.dataTables_wrapper .dataTables_filter label { padding: 4px 0; color: var(--text-dim); }
.dataTables_wrapper .dataTables_filter label .form-control { background: var(--bg-deep); border: 1px solid var(--line); padding: 6px 10px !important; height: 36px; width: 220px; font-size: 14px; border-radius: 0; color: var(--text); margin-left: 6px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 8px; }
.table-list .status { display: inline-block; min-width: 96px; text-align: center; }
table.dataTable.dtr-inline.collapsed tbody td:first-child::before, table.dataTable.dtr-inline.collapsed tbody th:first-child::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after { color: var(--text-faint); }
.status { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 12px; padding: 0 8px;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.status-active, .status-open, .status-completed, .status-paid, .status-delivered, .status-accepted { color: var(--online); border-color: color-mix(in srgb, var(--online) 50%, var(--line)); }
.status-pending, .status-unpaid, .status-inprogress, .status-customer-reply, .status-suspended, .status-pending-transfer, .status-grace, .status-redemption, .status-pending-registration { color: var(--starting); border-color: color-mix(in srgb, var(--starting) 50%, var(--line)); }
.status-cancelled, .status-terminated, .status-closed, .status-expired, .status-fraud, .status-transferred-away, .status-lost, .status-dead { color: var(--text-faint); }
.status-collections, .status-refunded { color: var(--offline); border-color: color-mix(in srgb, var(--offline) 50%, var(--line)); }
.status-answered, .status-onhold { color: var(--accent-hot); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.status-custom { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* Pagination */
.pagination { font-size: 14px; }
.pagination > li > a, .pagination > li > span { color: var(--text-dim); background: var(--surface); border-color: var(--line-soft); }
.pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.pagination > .disabled > span, .pagination > .disabled > a, .pagination > .disabled > a:hover { color: var(--text-faint); background: var(--surface); border-color: var(--line-soft); }
.pagination > li:first-child > a, .pagination > li:first-child > span, .pagination > li:last-child > a, .pagination > li:last-child > span { border-radius: 0; }

/* Alerts */
.alert { border-radius: 0; border-width: 1px; border-left-width: 3px; }
.alert-info { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); border-left-color: var(--accent); }
.alert-success { color: var(--text); background: color-mix(in srgb, var(--online) 12%, var(--surface)); border-color: color-mix(in srgb, var(--online) 45%, var(--line)); border-left-color: var(--online); }
.alert-warning { color: var(--text); background: color-mix(in srgb, var(--starting) 12%, var(--surface)); border-color: color-mix(in srgb, var(--starting) 45%, var(--line)); border-left-color: var(--starting); }
.alert-danger { color: var(--text); background: color-mix(in srgb, var(--offline) 12%, var(--surface)); border-color: color-mix(in srgb, var(--offline) 45%, var(--line)); border-left-color: var(--offline); }
.alert a, .alert .alert-link { color: var(--accent-hot); font-weight: 600; }
.alert-bordered-left { border-left-width: 3px; }

/* Labels and badges */
.label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 0; padding: 0.2em 0.6em 0.15em; }
.label-default { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line); }
.label-primary, .label-info { background: var(--accent); color: var(--accent-ink); }
.label-success { background: var(--online); color: #04210f; }
.label-warning { background: var(--starting); color: #1a1200; }
.label-danger { background: var(--offline); color: #fff; }
.badge { background: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: 10px; }

/* Tabs and pills */
.nav-tabs { border-bottom-color: var(--line-soft); }
.nav-tabs > li > a { color: var(--text-dim); border-radius: 0; border: 1px solid transparent; margin-right: 4px; font-weight: 500; }
.nav-tabs > li > a:hover, .nav-tabs > li > a:focus { color: var(--text); background: var(--surface-2); border-color: var(--line-soft) var(--line-soft) var(--line-soft); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: var(--text); background: var(--surface); border-color: var(--line) var(--line) var(--surface); box-shadow: inset 0 2px 0 var(--accent); }
.nav-tabs.nav-justified > li > a, .nav-tabs.nav-justified > .active > a { border-radius: 0; }
.nav-pills > li > a { color: var(--text-dim); border-radius: 0; }
.nav-pills > li > a:hover { color: var(--text); background: var(--surface-2); }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: var(--accent-ink); background: var(--accent); }
.nav > li > a:hover, .nav > li > a:focus { background: var(--surface-2); }
.tab-content { color: var(--text); }
.tab-content > .tab-pane .panel { clip-path: none; }

/* Dropdowns, popovers, tooltips, modals */
.dropdown-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 6px; }
.dropdown-menu > li > a { color: var(--text); padding: 7px 12px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.dropdown-menu .divider { background: var(--line-soft); }
.dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover { color: var(--text-faint); }
.dropdown-header { color: var(--text-faint); }
.caret { border-top-color: currentColor; }
.popover { background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); color: var(--text); font-family: var(--font-body); font-size: 14px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.popover-title { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border-bottom-color: var(--line-soft); color: var(--text); border-radius: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.popover > .arrow { display: none; }
.popover.bottom { margin-top: 6px; }
.popover-user-notifications ul li { border-bottom-color: var(--line-soft); }
.popover-user-notifications ul li a { color: var(--text); }
.popover-user-notifications ul li a:hover { background: var(--surface-2); }
.popover-user-notifications ul li .message { color: var(--text-dim); }
.popover-user-notifications ul li.none { color: var(--text-faint); }
.language-popover ul { list-style: none; margin: 0; padding: 0; }
.language-popover ul li a { display: block; padding: 6px 10px; color: var(--text); text-decoration: none; }
.language-popover ul li a:hover { background: var(--surface-2); }
.tooltip-inner { background: var(--bg-deep); color: var(--text); border: 1px solid var(--line); border-radius: 0; }
.tooltip.top .tooltip-arrow { border-top-color: var(--line); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--line); }
.tooltip.left .tooltip-arrow { border-left-color: var(--line); }
.tooltip.right .tooltip-arrow { border-right-color: var(--line); }
.modal-backdrop { background: #020916; }
.modal-backdrop.in { opacity: 0.75; }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); color: var(--text); }
.modal-header { border-bottom-color: var(--line-soft); }
.modal-header.panel-heading { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); border-radius: 0; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.modal-footer { border-top-color: var(--line-soft); }
.modal-footer.panel-footer { background: transparent; }
.modal-content.panel-primary > .modal-header { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
#fullpage-overlay { background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--text); }
#fullpage-overlay .msg { color: var(--text); }
.progress { background: var(--bg-deep); border-radius: 0; box-shadow: none; }
.progress-bar { background: var(--accent); box-shadow: none; }
.progress-bar-success { background: var(--online); }
.progress-bar-warning { background: var(--starting); }
.progress-bar-danger { background: var(--offline); }
.thumbnail { background: var(--surface); border-color: var(--line-soft); border-radius: 0; }
.img-thumbnail { background: var(--surface); border-color: var(--line-soft); border-radius: 0; }
.img-rounded { border-radius: 0; }

/* --------------------------------------------------------------------------
   WHMCS pages
   -------------------------------------------------------------------------- */
/* Login */
.logincontainer { margin: 24px auto 48px; }
.logincontainer .login-form { padding: 28px; background: var(--surface); border: 1px solid var(--line-soft);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.logincontainer .social-signin-btns { padding: 23px 0; }
.logincontainer div[align='center'] .btn + .btn, .logincontainer div[align='center'] .btn + a { margin-left: 8px; }
.providerLinkingFeedback .alert { margin-bottom: 16px; }

/* Client area home: stat tiles */
.tiles { margin: 0 0 20px; }
.tiles .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.tiles .row::before, .tiles .row::after { display: none; }
.tiles .tile { float: none; width: auto; padding: 0; background: var(--surface); border: 1px solid var(--line-soft);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: border-color 0.15s; }
.tiles .tile:hover { background: var(--surface); border-color: var(--accent); }
.tiles .tile:last-child { border: 1px solid var(--line-soft); }
.tiles .tile:last-child:hover { border-color: var(--accent); }
.tiles .tile a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; color: var(--text); }
.tile .icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: var(--bg-deep); border: 1px solid var(--line-soft); font-size: 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.tile .stat { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--text); }
.tile .title { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.tiles .tile .highlight { display: none; }
.home-kb-search { position: relative; margin-bottom: 20px; }
.home-kb-search .form-control { padding-left: 44px; height: 48px; font-size: 16px; font-weight: 400; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); }
.home-kb-search .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.home-kb-search i { float: none; position: absolute; left: 31px; top: 16px; margin: 0; color: var(--text-faint); }
.home-kb-search .form-control:focus + i { color: var(--accent); }

/* Announcements */
div.announcement-single, .announcement-single { border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 20px; }
div.announcement-single blockquote { border-left-color: var(--accent); color: var(--text-dim); }
.announcement-single .title a { color: var(--text); }
.announcement-single .label { margin-right: 6px; }

/* Tickets */
.ticket-reply { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.ticket-reply.staff { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ticket-reply .date { color: var(--text-faint); }
.ticket-reply .user .name { color: var(--text); }
.ticket-reply .user .type { color: var(--text-faint); }
.ticket-reply .user i { color: var(--accent); }
.ticket-reply .message { color: var(--text); }
.ticket-reply .attachments { border-top: 1px solid var(--line-soft); }
.ticket-reply .rating-done span.star::before, .ticket-reply .rating span.star::before { color: var(--text-faint); }
.ticket-reply .rating-done span.star.active::before, .ticket-reply .rating span.star:hover::before { color: var(--starting); }
.ticket-subject.unread { font-weight: 600; color: var(--text); }
.ticket-number { color: var(--text-faint); }
.ticket-attachments-message { color: var(--text-faint); }
.panel > .list-group .ticket-details-children { color: var(--text-dim); }
.panel > .list-group .ticket-details-children .title { color: var(--text-faint); }
.markdown-editor-status { color: var(--text-faint); }
.CodeMirror, .editor-toolbar { background: var(--bg-deep) !important; color: var(--text) !important; border-color: var(--line) !important; }
.editor-toolbar a { color: var(--text-dim) !important; }
.editor-toolbar a:hover, .editor-toolbar a.active { background: var(--surface-2) !important; border-color: var(--line) !important; }
.CodeMirror-cursor { border-left-color: var(--text) !important; }
.editor-preview, .editor-preview-side { background: var(--surface) !important; color: var(--text); }
.editor-statusbar { color: var(--text-faint) !important; }

/* Products and services */
div.product-details { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); padding: 20px 20px 8px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.product-status { background: transparent; border: 1px solid var(--line-soft); border-radius: 0; color: var(--text); }
div.product-details div.product-icon { background: var(--bg-deep); border-radius: 0; color: var(--text); }
div.product-details div.product-icon .fa-stack-2x { color: var(--accent); }
div.product-details div.product-icon .fa-stack-1x { color: var(--accent-ink); }
div.product-details div.product-icon h3 { margin: 24px 0 6px; font-size: 26px; line-height: 1.1; color: var(--text); }
div.product-details div.product-icon h4 { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--text-dim); }
.product-status-text { padding: 7px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; color: var(--text); background: var(--surface-2); }
.product-status-active .product-status-text { background: color-mix(in srgb, var(--online) 22%, var(--surface)); color: var(--online); }
.product-status-pending .product-status-text, .product-status-suspended .product-status-text { background: color-mix(in srgb, var(--starting) 22%, var(--surface)); color: var(--starting); }
.product-status-cancelled .product-status-text, .product-status-terminated .product-status-text, .product-status-fraud .product-status-text { background: var(--surface-2); color: var(--text-faint); }
div.product-details .row > div > strong, div.product-details .text-right strong { color: var(--text); }
div.product-details .text-center > .row { margin-bottom: 4px; }
div.product-details .nav-tabs { margin-top: 10px; }
div.product-details-tab-container { background: transparent; border-color: var(--line-soft); }
.module-client-area { background: transparent; }
.affiliate-stat { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); }
.affiliate-stat span { color: var(--accent); }
.affiliate-stat i { color: var(--text-faint); }
.affiliate-referral-link { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); }

/* Invoices and payment */
.invoice-summary { color: var(--text); }
.invoice-summary-table td { color: var(--text); border-color: var(--line-soft); }
.invoice-summary-table td.total-row { background: var(--surface-2); }
div.credit-card { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); }
div.credit-card div.card-number, div.credit-card div.card-expiry, div.credit-card div.card-start { color: var(--text); }
div.credit-card div.card-type { color: var(--text-faint); }
#frmPayment .paymethod-info { background: var(--surface); border-color: var(--line-soft); }
#payMethodList tr { border-color: var(--line-soft); }
.auth3d-area { background: var(--surface); border-color: var(--line-soft); }
.iframe-input-container { background: var(--surface); border-color: var(--line); }
.masspay-total, .total-due { color: var(--text); }

/* Knowledgebase and downloads */
.kb-article-content, .downloads-item { color: var(--text); }
.kb-tags a, .kbtag { color: var(--accent); }
.kb-article-content a { color: var(--accent); }
.article-items a { color: var(--text); }
.article-items a:hover { color: var(--accent); }
.flags-sprite-container { background: var(--surface-2); }

/* Store (index.php/store/*) */
.store-order-container { background: var(--surface); border: 1px solid var(--line-soft); padding: 28px; color: var(--text);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.store-order-container h2 { margin-top: 0; }
.store-order-container .payment-term { background: var(--bg-deep); border: 1px solid var(--line-soft); padding: 16px; }
.store-order-container .payment-term h4 { margin-top: 0; }
.store-domain-tabs + .store-domain-tab-content { background: transparent; border: 1px solid var(--line-soft); border-top: 0; padding: 20px; }
.domain-validation { color: var(--text-dim); }
.domain-validation.ok { color: var(--online); }
.domain-validation.error { color: var(--offline); }
.landing-page { color: var(--text); }
.landing-page h2, .landing-page h3, .landing-page h4, .landing-page h6 { color: var(--text); }
.landing-page .hero { background: transparent; color: var(--text); }
.landing-page .hero h2, .landing-page .hero h3 { color: var(--text); }
.landing-page .light-grey-bg, .landing-page .content-block, .landing-page .get-started, .landing-page .tab-content, .landing-page .text13, .landing-page .text20 { background: transparent; color: var(--text); }
.landing-page .product-options .item, .landing-page .pricing-item, .landing-page .features .feature { background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); border-radius: 0; box-shadow: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.landing-page .pricing-item .header { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); border-bottom: 1px solid var(--line-soft); }
.landing-page .pricing-item .header h4, .landing-page .product-options h4 { color: var(--text); }
.landing-page .product-options .price, .landing-page .pricing-item .price, .landing-page .get-started .price { color: var(--accent-hot); font-family: var(--font-display); font-weight: 800; }
.landing-page .product-options span, .landing-page .product-options p, .landing-page .tab-content p { color: var(--text-dim); }
.landing-page .pricing-item ul li { border-color: var(--line-soft); color: var(--text-dim); }
.landing-page .pricing-item .feature-heading { color: var(--text); }
.landing-page .navbar { background: transparent; border: 0; }
.landing-page .navbar .navbar-nav > li > a { color: var(--text-dim); }
.landing-page .navbar .navbar-nav > li.active > a, .landing-page .navbar .navbar-nav > li > a:hover { color: var(--text); background: transparent; }
.landing-page .nav-tabs > li > a { color: var(--text-dim); }
.landing-page .nav-tabs > li.active > a, .landing-page .nav-tabs > li.active > a:hover { color: var(--text); background: var(--surface); }
.landing-page .currency-selector { color: var(--text-dim); }
.landing-page .faq h3 { color: var(--text); }
.landing-page .image-standout { background: transparent; }
.landing-page .trusted-by { background: transparent; }
.landing-page .get-started .btn-order-now { margin-top: 12px; }
.promo-container, #mc-promo-widgets { background: transparent; }
.mc-promo-login .panel { background: var(--surface); }
.cart-product-list .panel { clip-path: none; }

/* Order form (templates/orderforms/standard_cart). Its stylesheet is loaded after this one and keys
   everything off #order-standard_cart, so these selectors add one element to outrank it. */
body #order-standard_cart label, body #order-standard_cart p.domain-renewal-desc, body .service-renewals .div-renewal-period-label { color: var(--text); }
body #order-standard_cart .cart-sidebar .panel-sidebar .list-group-item { border-top: 1px solid var(--line-soft); }
body #order-standard_cart .sidebar-collapsed .panel { clip-path: none; }
body #order-standard_cart .header-lined h1.font-size-36 { font-size: clamp(2rem, 4.5vw, 3rem); }
body #order-standard_cart .sub-heading { border-top-color: var(--line-soft); }
body #order-standard_cart .sub-heading span, body #order-standard_cart .sub-heading-borderless span { color: var(--text); background: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
body #order-standard_cart .products .product { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 0; color: var(--text);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
body #order-standard_cart .products .product header { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border-radius: 0; border-bottom: 1px solid var(--line-soft); }
body #order-standard_cart .products .product header span { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
body #order-standard_cart .products .product header .qty { color: var(--text-faint); }
body #order-standard_cart .products .product div.product-desc, body #order-standard_cart .products .product div.product-desc-full-width { color: var(--text-dim); }
body #order-standard_cart .products .product div.product-desc ul li { color: var(--text-dim); }
body #order-standard_cart .products .product span.feature-value { color: var(--text); }
body #order-standard_cart .products .product div.product-pricing { color: var(--text-dim); }
body #order-standard_cart .products .product div.product-pricing span.price { color: var(--accent-hot); font-family: var(--font-display); font-weight: 800; }
body #order-standard_cart .products .product footer { color: var(--text-faint); }
body #order-standard_cart .product-info { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border-color: var(--line-soft); color: var(--text); }
body #order-standard_cart .product-info .product-title { color: var(--text); }
body #order-standard_cart .panel-addon { background: var(--surface); }
body #order-standard_cart .panel-addon .panel-body label { color: var(--text); }
body #order-standard_cart .panel-addon .panel-price { background: var(--surface-2); color: var(--text); }
body #order-standard_cart .panel-addon .panel-add, body #order-standard_cart .panel-addon-selected .panel-add { background: var(--accent); color: var(--accent-ink); border-radius: 0; }
body #order-standard_cart .panel-addon-selected { border-color: var(--accent); }
body #order-standard_cart .domain-selection-options .option { background: var(--surface); border-radius: 0; border: 1px solid var(--line-soft); }
body #order-standard_cart .domain-selection-options .option-selected { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); }
body #order-standard_cart .order-summary { background: var(--surface); border: 1px solid var(--line-soft); border-bottom: 3px solid var(--accent); border-radius: 0; color: var(--text); }
body #order-standard_cart .order-summary h2 { color: var(--text); }
body #order-standard_cart .summary-container { background: var(--bg-deep); border-radius: 0; color: var(--text); }
body #order-standard_cart .order-summary .summary-totals, body #order-standard_cart .order-summary .subtotal, body #order-standard_cart .order-summary .bordered-totals { border-color: var(--line); }
body #order-standard_cart .order-summary .product-name, body #order-standard_cart .order-summary .product-group { color: var(--text); }
body #order-standard_cart .order-summary .recurring-charges { color: var(--text-faint); }
body #order-standard_cart .order-summary .btn-continue-shopping { color: var(--text); }
body #order-standard_cart .order-summary .total-due-today .amt { color: var(--accent-hot); }
body #order-standard_cart .order-summary .loader { color: var(--text-faint); }
body #order-standard_cart .apply-credit-container { background: var(--surface-2); color: var(--text); }
body #order-standard_cart .cc-input-container { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 0; }
body #order-standard_cart .cc-input-container .existing-cc-grid { color: var(--text-dim); }
body #order-standard_cart .field, body #order-standard_cart .form-control { border: 1px solid var(--line); color: var(--text); background: var(--bg-deep); border-radius: 0; }
body #order-standard_cart .input-group-lg > .form-control { border-radius: 0; }
body #order-standard_cart .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
body #order-standard_cart .field-icon i { color: var(--text-faint); }
body #order-standard_cart .field[disabled], body #order-standard_cart .field[readonly], body #order-standard_cart .form-control[disabled], body #order-standard_cart .form-control[readonly] { background: var(--surface); color: var(--text-faint); }
body #order-standard_cart .field-help-text { color: var(--text-faint); }
body #order-standard_cart .view-cart-items-header { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); border-radius: 0; border: 1px solid var(--line-soft); border-bottom: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
body #order-standard_cart .view-cart-items { border-bottom: 2px solid var(--accent); }
body #order-standard_cart .view-cart-items .item { background: var(--surface); color: var(--text); border-color: var(--line-soft); }
body #order-standard_cart .view-cart-items .item:nth-child(even) { background: color-mix(in srgb, var(--bg-deep) 50%, var(--surface)); }
body #order-standard_cart .view-cart-items .item-domain { color: var(--accent); }
body #order-standard_cart .btn-remove-from-cart { color: var(--text-dim); }
body #order-standard_cart .btn-remove-from-cart:hover { color: var(--offline); }
body #order-standard_cart .empty-cart .btn { background: var(--accent); color: var(--accent-ink); border-radius: 0; }
body #order-standard_cart .view-cart-tabs .nav-tabs a[aria-expanded=true], body #order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected=true] { border-color: var(--line) var(--line) var(--surface); background: var(--surface); color: var(--text); }
body #order-standard_cart .view-cart-tabs .tab-content { background: var(--surface); border: 1px solid var(--line-soft); border-top: 0; color: var(--text); }
body #order-standard_cart .view-cart-promotion-code { background: var(--surface); border: 1px dashed var(--line); }
body #order-standard_cart .view-cart-gateway-checkout { background: var(--surface-2); border-radius: 0; color: var(--text); }
body #order-standard_cart .default-captcha { background: var(--surface); border-color: var(--line); color: var(--text-dim); box-shadow: none; border-radius: 0; }
body #order-standard_cart .account-select-container { border-right-color: var(--line-soft); }
body #order-standard_cart .account-select-container div.account { background: var(--surface); border-color: var(--line-soft); color: var(--text); }
body #order-standard_cart .account-select-container div.account.active { background: var(--surface-2); }
body #order-standard_cart .checkout-security-msg { color: var(--text-dim); }
body #order-standard_cart .checkout-security-msg i { color: var(--online); }
body #order-standard_cart .transfer-eligible { color: var(--online); background: color-mix(in srgb, var(--online) 12%, var(--surface)); border-color: color-mix(in srgb, var(--online) 45%, var(--line)); }
body #order-standard_cart .transfer-not-eligible { color: var(--text-dim); background: var(--surface-2); }
body #order-standard_cart .domain-checker-available { color: var(--online); }
body #order-standard_cart .domain-checker-invalid, body #order-standard_cart .domain-checker-unavailable { color: var(--offline); }
body #order-standard_cart .btn-success, body #order-standard_cart .btn-success:focus { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
body #order-standard_cart .btn-success:hover, body #order-standard_cart .btn-success:active { color: var(--accent-ink); background: var(--accent-hot); border-color: var(--accent-hot); }
body #order-standard_cart .mc-promo, body .product-recommendations .product-recommendation { background: var(--surface); border-color: var(--line); color: var(--text); }
body #order-standard_cart .mc-promo .body, body .product-recommendations .product-recommendation .body { background: var(--bg-deep); border-top-color: var(--line-soft); }
body .addon-renewals .service-renewal, body .domain-renewals, body .service-renewals { background: var(--surface); border-color: var(--line-soft); color: var(--text); }
body .addon-renewals .service-renewal:nth-child(even), body .domain-renewals .domain-renewal:nth-child(even), body .service-renewals .service-renewal:nth-child(even) { background: color-mix(in srgb, var(--bg-deep) 50%, var(--surface)); }
body .domain-renewals .domain-renewal, body .service-renewals .service-renewal { border-bottom-color: var(--line-soft); }
body .service-renewals .div-renewal-ineligible { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Footer (mirrors Footer.astro on the main site)
   -------------------------------------------------------------------------- */
.tca-footer { position: relative; margin-top: auto; border-top: 1px solid var(--line-soft); background: var(--bg); padding-top: 64px; }
.tca-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent); }
.tca-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.tca-footer-brand p { margin: 16px 0 0; max-width: 30ch; font-size: 15px; color: var(--text-dim); }
.tca-footer h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin: 0 0 14px; line-height: 1.4; }
.tca-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tca-footer ul a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.tca-footer ul a:hover { color: var(--text); }
.tca-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--text-faint); }
.tca-legal p { margin: 0; }
.tca-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tca-legal ul li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); padding: 4px 10px; background: var(--surface); border: 1px solid var(--line-soft);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.tca-legal ul li a { color: inherit; text-decoration: none; }
.tca-legal ul li a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .tca-primary, .tca-actions { display: none; }
  .tca-icon-btn { display: inline-flex; }
  .tca-bar { gap: 10px; }
  .tca-home { margin-right: auto; }
}
@media (min-width: 1061px) { .tca-mobile { display: none !important; } }
@media (max-width: 991px) {
  .tiles .row { grid-template-columns: repeat(2, 1fr); }
  .navbar-main.tca-subnav .navbar-nav > li > a { padding: 10px 10px; }
  .tca-subnav .navbar-nav .open .dropdown-menu > li > a { padding: 8px 12px; }
}
@media (max-width: 767px) {
  .tca-subnav .navbar-right .dropdown-menu { right: auto; left: 0; }
  .tca-subnav .navbar-nav .open .dropdown-menu > li > a:hover, .tca-subnav .navbar-nav .open .dropdown-menu > li > a:focus { color: var(--text); }
  .tca-subnav .navbar-right { margin-left: 0 !important; }
  .home-shortcuts ul { grid-template-columns: 1fr; }
  .tca-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .tca-footer-brand { grid-column: 1 / -1; }
  div.header-lined h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  .tca-logo { height: 36px; }
  .tiles .row { grid-template-columns: 1fr; }
  .tca-footer-grid { grid-template-columns: 1fr; }
  .logincontainer .login-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tca-dd-btn svg, .panel-sidebar .panel-minimise, .btn, .form-control, .tca-primary > ul > li > a { transition: none; }
}
@media (prefers-contrast: more) { body::before { display: none; } }
/* Light mode keeps type crisp: no neon glows behind dark text */
:root[data-theme='light'] body * { text-shadow: none !important; }

/* Printing (invoices): plain white page */
@media print {
  html, body { background: #fff; color: #000; }
  body::before, .tca-header, #main-menu, .tca-footer, .tca-skip { display: none !important; }
  .panel, .btn, .status { clip-path: none; }
}
