/* =========================================================================
   SynexVM — flat, minimal WHMCS theme
   Design tokens → base → components → header → pages → responsive
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #e57926;
  --brand-600: #cf6a1c;
  --brand-700: #b85a12;
  --brand-50: #fdf4ec;
  --action: #0a0a0b;
  --action-hover: #27272a;
  --brand-100: #fbe6d2;

  --ink: #0a0a0b;
  --text: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --line-soft: #f1f1f3;
  --bg: #fafafa;
  --surface: #ffffff;
  --dark: #09090b;
  --dark-2: #131316;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --header-h: 64px;
  --container: 1200px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. Base ---------- */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.homepage,
body.login,
body.clientregister,
body.pages,
body.contact { background: var(--surface); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-600); text-decoration: none; }
img { max-width: 100%; height: auto; }
small, .small { font-size: 13px; }
.text-muted { color: var(--muted) !important; }
.text-white { color: #fff !important; }
.hidden { display: none !important; }
.container { max-width: var(--container); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.space { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; margin-bottom: .5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 640px; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  box-shadow: none !important;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:focus, .btn.focus, .btn:active:focus { box-shadow: none !important; outline: none; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background: var(--action); border-color: var(--action); color: #fff;
}
.btn-primary:hover, .btn-primary:focus { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.btn-primary:disabled { background: var(--action); border-color: var(--action); opacity: .55; }

.btn-dark, .btn-dark:focus { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }

.btn-secondary, .btn-default, .btn-light,
.btn-secondary:focus, .btn-default:focus, .btn-light:focus {
  background: var(--surface); border-color: var(--line); color: var(--text);
}
.btn-secondary:hover, .btn-default:hover, .btn-light:hover { background: var(--bg); border-color: #d1d5db; color: var(--ink); }

.btn-outline-primary { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); color: #fff; }
.btn-outline-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline-secondary:hover { background: var(--bg); color: var(--ink); border-color: #d1d5db; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.btn-success, .btn-success:hover, .btn-success:focus { background: var(--success); border-color: var(--success); color: #fff; }
.btn-danger, .btn-danger:hover, .btn-danger:focus { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-info, .btn-info:hover, .btn-info:focus { background: var(--info); border-color: var(--info); color: #fff; }
.btn-link { color: var(--brand); padding-left: 0; padding-right: 0; }

/* ---------- 4. Forms ---------- */
label { font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.form-control,
select.form-control,
.custom-select {
  height: 42px !important;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm) !important;
  box-shadow: none !important;
  transition: border-color .15s;
}
textarea.form-control { height: auto !important; padding: 12px 14px; line-height: 1.5; }
.form-control:focus { border-color: var(--brand); background: var(--surface); }
.form-control::placeholder { color: var(--faint); }
.form-control:disabled, .form-control[readonly] { background: var(--bg); color: var(--muted); }
.form-group { margin-bottom: 18px; }
.field-help-text { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

select.form-control, .custom-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-group .form-control { height: 42px !important; }
.input-group-text { background: var(--bg); border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-sm); }
.custom-file, .custom-file-input, .custom-file-label { height: 42px; }
.custom-file-label { line-height: 26px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.custom-file-label::after { height: 40px; line-height: 26px; background: var(--bg); color: var(--text); border-left: 1px solid var(--line); }

/* Checkbox — flat square */
input[type=checkbox]:not(.no-icheck):not(.toggle-switch-success):not(.toggle-switch) {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  margin: 0 8px 0 0 !important;
  border: 1.5px solid #c9ced6;
  border-radius: 4px;
  background: var(--surface);
  vertical-align: -4px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
}
input[type=checkbox]:not(.no-icheck):not(.toggle-switch-success):not(.toggle-switch):hover { border-color: var(--brand); }
input[type=checkbox]:not(.no-icheck):not(.toggle-switch-success):not(.toggle-switch):checked {
  border-color: var(--brand); background: var(--brand);
}
input[type=checkbox]:not(.no-icheck):not(.toggle-switch-success):not(.toggle-switch):checked::after {
  content: "";
  position: absolute; left: 5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox label, .radio label, .form-check-label { font-weight: 400; color: var(--text); cursor: pointer; }
.form-check { padding-left: 0; }

/* ---------- 5. Cards / tables / badges ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: none !important;
  margin-bottom: 24px;
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r) var(--r) 0 0 !important;
}
.card-header .card-title, .card-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink); }
.card-body { padding: 20px; }
.card-body.extra-padding { padding: 32px; }
.card-footer { background: var(--bg); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.card-sidebar .card-header { padding: 14px 18px; }
.card-sidebar .list-group-item { border-color: var(--line-soft); padding: 11px 18px; color: var(--text); font-size: 14px; }
.card-sidebar .list-group-item.active { background: var(--brand-50); color: var(--brand-700); border-color: var(--line-soft); font-weight: 500; }
.card-sidebar .list-group-item:hover { background: var(--bg); }
.card-sidebar .card-minimise { color: var(--faint); font-size: 12px; }

.table { color: var(--text); margin-bottom: 0; }
.table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--bg); border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 16px; vertical-align: middle;
}
.table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover td { background: #fafafa; }
.table-responsive { border-radius: var(--r); }

.badge, .label {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
  border-radius: 999px;
  color: #fff; background: var(--muted);
  vertical-align: middle;
}
.label-hot, .badge-hot { background: var(--danger); }
.label-new, .badge-new { background: var(--info); }
.label-info, .badge-info { background: var(--info); }
.label-danger, .badge-danger { background: var(--danger); }
.label-success, .badge-success { background: var(--success); }
.label-warning, .badge-warning { background: var(--warning); }

/* Status pill (dot + text) */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; border-radius: 0; background: transparent !important;
  color: var(--text) !important; font-size: 13px; font-weight: 500;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status.status-active::before, .status.status-paid::before, .status.status-completed::before, .status.status-open::before, .status.status-answered::before { background: var(--success); }
.status.status-pending::before, .status.status-unpaid::before, .status.status-customer-reply::before { background: var(--warning); }
.status.status-terminated::before, .status.status-fraud::before, .status.status-overdue::before, .status.status-collections::before { background: var(--danger); }
.status.status-suspended::before, .status.status-cancelled::before, .status.status-closed::before, .status.status-refunded::before { background: var(--faint); }

.alert { border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.dropdown-menu {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
  font-size: 14px;
  min-width: 200px;
}
.dropdown-menu > li, .dropdown-item { padding: 0; }
.dropdown-menu > li > a, .dropdown-item > a, .dropdown-link, .dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; color: var(--text); border-radius: var(--r-sm);
}
.dropdown-menu > li > a:hover, .dropdown-link:hover, .dropdown-item:hover, .dropdown-item:focus,
.dropdown-item.active, .dropdown-item:active { background: var(--bg); color: var(--ink); }
.dropdown-divider { margin: 6px 0; border-color: var(--line-soft); }
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-weight: 500; padding: 12px 16px; background: transparent;
}
.nav-tabs .nav-link:hover { color: var(--ink); }
.nav-tabs .nav-link.active { color: var(--brand); border-color: var(--brand); background: transparent; }
.tooltip { position: fixed; }
.popover { border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,24,39,.08); }
.modal-content { border: 0; border-radius: var(--r-lg); }
.modal-header, .modal-footer { border-color: var(--line); }

/* ---------- 6. Header ---------- */
#header.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header .navbar { height: var(--header-h); padding: 0; flex-wrap: nowrap; }
.navbar-brand {
  display: block; padding: 0; margin: 0 36px 0 0;
  width: 156px; height: 38px;
  background: url(../img/logo.svg) no-repeat left center / contain;
  text-indent: -9999px; overflow: hidden;
  flex: none;
}
.navbar-toggler {
  display: none;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); background: var(--surface);
  align-items: center; justify-content: center;
}

.header .navbar-collapse { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.header .navbar-nav { flex-direction: row; align-items: center; }
.header .navbar-nav > li { position: static; }
.header .navbar-nav > li > a.nav-link,
.header .navbar-nav > li > a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  height: var(--header-h);
  padding: 0 14px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  border: 0; background: transparent;
  position: relative;
}
.header .navbar-nav > li > a:hover,
.header .navbar-nav > li.active > a,
.header .navbar-nav > li.show > a,
.header .navbar-nav > li.is-open > a { color: var(--brand); }
.header .navbar-nav > li.active > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--brand); border-radius: 2px 2px 0 0;
}
.header .navbar-nav .badge { margin-left: 4px; }
.header .navbar-nav > li.has-mega > a > i { font-size: 11px; color: var(--faint); transition: transform .2s; }
.header .navbar-nav > li.has-mega.is-open > a > i { transform: rotate(180deg); }

.header .nav-right { margin-left: auto; gap: 4px; }
.header .nav-right > li > a { padding: 0 10px; font-size: 15px; }
.header .nav-right .nav-icon > a {
  width: 40px; height: 40px; padding: 0; justify-content: center;
  border-radius: 50%; color: var(--muted);
}
.header .nav-right .nav-icon > a:hover { background: var(--bg); color: var(--ink); }
.header .nav-right .nav-icon .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
}
.header .nav-right .nav-icon .count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.header .nav-right .nav-cta > a.btn {
  height: 38px; padding: 0 16px; margin-left: 8px;
  font-size: 14px; color: #fff; background: var(--action); border-color: var(--action);
}
.header .nav-right .nav-cta > a.btn:hover { background: var(--action-hover); color: #fff; }
.header .nav-right .dropdown-menu { position: absolute; right: 0; left: auto; top: calc(var(--header-h) - 8px); }
.header .navbar-nav > li.dropdown { position: relative; }
.header .navbar-nav > li.dropdown > .dropdown-menu { top: calc(var(--header-h) - 8px); }
.header .navbar-nav > li.dropdown > a::after { border-top-color: var(--faint); }

/* Mega menu (flat panel) */
.megamenu {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(17,24,39,.08);
}
.header .navbar-nav > li.is-open > .megamenu { display: block; }
.megamenu .megamenu-inner {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  max-width: var(--container); margin: 0 auto; padding: 36px 15px;
}
.megamenu .megamenu-intro h2 { font-size: 1.25rem; margin-bottom: 8px; }
.megamenu .megamenu-intro p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.megamenu .megamenu-intro a { font-size: 14px; font-weight: 500; }
.megamenu .megamenu-intro a i { font-size: 11px; margin-left: 4px; }
.megamenu .megamenu-groups {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.megamenu .group-title {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}
.megamenu .group-links { list-style: none; margin: 0; padding: 0; }
.megamenu .group-links li { margin-bottom: 6px; }
.megamenu .group-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-left: -10px;
  border-radius: var(--r-sm); color: var(--text); font-size: 14px;
}
.megamenu .group-links a:hover { background: var(--bg); color: var(--ink); }
.megamenu .group-links .label { font-size: 10px; padding: 2px 6px; }
.megamenu .megamenu-empty { color: var(--muted); font-size: 14px; }

/* Notifications popover list */
.client-alerts { list-style: none; margin: 0; padding: 0; min-width: 260px; }
.client-alerts li a { display: flex; gap: 10px; padding: 10px 6px; color: var(--text); border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.client-alerts li:last-child a { border-bottom: 0; }
.client-alerts li.none { padding: 12px 6px; color: var(--muted); font-size: 13px; }

/* Mobile drawer overlay */
.nav-backdrop { display: none; position: fixed; inset: 0; z-index: 1029; background: rgba(17,24,39,.4); }
body.nav-open .nav-backdrop { display: block; }
.header .navbar-collapse .drawer-head { display: none; }

/* ---------- 7. Page header / breadcrumb / main body ---------- */
section#main-body { padding: 36px 0 72px; }
.header-lined { padding: 0 0 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.header-lined h1 { font-size: 1.6rem; margin: 0; }
.header-lined h1 small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.breadcrumb { background: transparent; padding: 0; margin: 10px 0 0; font-size: 13px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--faint); content: "/"; }
.main-content .card { margin-bottom: 24px; }
#popup-backdrop .main-content { padding: 0; }

/* ---------- 8. Homepage ---------- */
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }

.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + 88px);
  background: var(--dark); color: #a1a1aa;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 80% -8%, rgba(229,121,38,.30), rgba(229,121,38,0) 68%),
    radial-gradient(620px 380px at 6% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 62% 22%, #000, transparent);
          mask-image: radial-gradient(ellipse 70% 62% at 62% 22%, #000, transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; }

.hero-news {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #d4d4d8; font-size: 13px; transition: border-color .15s, color .15s;
}
.hero-news:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.hero-news .tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.hero-news .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-news i { font-size: 10px; opacity: .6; flex: none; }

.hero h1 {
  margin: 26px 0 22px; color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em;
}
.hero .lead { max-width: 540px; margin: 0 0 34px; font-size: 1.1rem; line-height: 1.7; font-weight: 400; color: #a1a1aa; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary, .cta-panel .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn-primary:hover, .cta-panel .btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--ink); }
.hero .btn-primary i { font-size: 12px; }
.hero .btn-ghost, .cta-panel .btn-ghost { border-color: rgba(255,255,255,.18); color: #fff; }
.hero .btn-ghost:hover, .cta-panel .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.console {
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden;
  background: rgba(19,19,22,.82);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5;
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-bar span { margin-left: 10px; color: #71717a; font-size: 12px; }
.console-body { padding: 22px 24px 24px; }
.console .cmd { margin: 0; color: #e4e4e7; }
.console .cmd b { color: var(--brand); font-weight: 500; margin-right: 4px; }
.console dl { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; margin: 18px 0; }
.console dt { color: #71717a; font-weight: 400; }
.console dd { margin: 0; color: #d4d4d8; }
.console dd em { font-style: normal; color: #f6b27c; }
.console .cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--brand); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .console .cursor { animation: none; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px; border-top: 1px solid rgba(255,255,255,.1); }
.facts > div { padding: 30px 28px 34px; border-left: 1px solid rgba(255,255,255,.1); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts strong { display: block; color: #fff; font-size: 1.9rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.facts span { font-size: 13.5px; color: #8b8b94; }

.home-section { padding: 112px 0; background: var(--surface); }
.home-section-alt { background: var(--bg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.home-section .section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.section-head p { max-width: 620px; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tile-wide { grid-column: span 7; }
.tile-narrow { grid-column: span 5; }
.tile h3 { font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.tile-dark { background: var(--dark); border-color: var(--dark); }
.tile-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 260px at 100% 0, rgba(229,121,38,.32), rgba(229,121,38,0) 70%); }
.tile-dark > * { position: relative; }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: #a1a1aa; }
.big-number { margin-bottom: 44px; color: #fff; font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.big-number small { font-size: .5em; font-weight: 500; margin-left: 2px; color: var(--brand); }
.tile-icon { width: 42px; height: 42px; margin-bottom: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 16px; }

.routes { list-style: none; margin: 28px 0 0; padding: 0; }
.routes li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 13px; color: var(--text); }
.routes span { flex: none; width: 88px; }
.routes i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #d4d4d8 0 4px, transparent 4px 9px); }
.routes b { flex: none; font-weight: 500; color: var(--brand-700); }

.tile-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.control { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13px; }
.control-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); color: var(--ink); }
.control-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.control-head em { margin-left: auto; font-style: normal; font-family: var(--font); font-size: 12px; color: var(--success); }
.control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.control-actions span { padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; color: var(--text); }
.control-actions .on { background: var(--ink); border-color: var(--ink); color: #fff; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.promises > div { padding-top: 22px; border-top: 1px solid var(--ink); }
.promises .index { display: block; margin-bottom: 34px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.promises h3 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 10px; }
.promises p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.news-col .col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.news-col .col-head h3 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0; }
.news-col .col-head a { font-size: 14px; color: var(--muted); }
.news-col .col-head a:hover { color: var(--ink); }
.item-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.item-list li a { color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-list li a:hover { color: var(--ink); }
.item-list li .time { color: var(--faint); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.item-list li.empty { color: var(--muted); justify-content: flex-start; }

.home-cta { padding: 0 0 112px; background: var(--surface); }
.cta-panel {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px; border-radius: 24px; background: var(--dark);
}
.cta-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 320px at 92% 120%, rgba(229,121,38,.38), rgba(229,121,38,0) 70%); }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.03em; margin-bottom: 8px; }
.cta-panel p { margin: 0; color: #a1a1aa; }
.cta-panel .hero-actions { flex: none; }

/* Dark header on the two marketing surfaces */
body.surface-dark { padding-top: 0; }
body #header.header { background: rgba(9,9,11,.74); border-bottom-color: rgba(255,255,255,.08); }
body .navbar-brand { background-image: url(../img/logo-light.svg); }
body .navbar-toggler { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
@media (min-width: 992px) {
  body .header .navbar-nav > li > a { color: #a1a1aa; }
  body .header .navbar-nav > li > a:hover,
  body .header .navbar-nav > li.is-open > a,
  body .header .navbar-nav > li.active > a { color: #fff; }
  body .header .nav-right .nav-cta > a.btn { background: #fff; border-color: #fff; color: var(--ink); }
  body .header .nav-right .nav-cta > a.btn:hover { background: #e4e4e7; border-color: #e4e4e7; }
  body .header .navbar-nav > li.active > a::after { background: #fff; }
}

@media (max-width: 991px) {
  .hero { padding-top: calc(var(--header-h) + 52px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .facts > div { padding: 22px 20px 24px; }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .home-section { padding: 72px 0; }
  .tile-wide, .tile-narrow { grid-column: span 12; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .promises .index { margin-bottom: 16px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-cta { padding-bottom: 72px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .tile-split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. Footer ---------- */
/* box-shadow extends the white footer to the window bottom on short pages, without affecting layout */
footer.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; box-shadow: 0 100vh 0 100vh var(--surface); }
.footer .footer-top { padding: 56px 0 40px; }
.footer .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer .footer-brand .logo {
  display: block; width: 140px; height: 34px;
  background: url(../img/logo.svg) no-repeat left center / contain; margin-bottom: 16px;
}
.footer .footer-brand p { max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: var(--muted); }
.footer ul li a:hover { color: var(--brand); }
.footer .footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--line-soft); font-size: 13px;
}
.footer .footer-bottom p { margin: 0; }
.footer .policy-area { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer .policy-area a { color: var(--muted); }
.footer .policy-area a:hover { color: var(--brand); }
.footer .lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer;
}
.footer .lang-switch:hover { border-color: #d1d5db; }
.footer .lang-switch .iti-flag { transform: scale(.9); }

/* ---------- 10. Auth ---------- */
section.auth { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 56px 0; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 440px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px;
}
.auth-card.wide { max-width: 680px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 14px; }
.auth-card .btn-primary { width: 100%; height: 44px; }
.auth-card .aux { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 14px; }
.auth-card .aux a { color: var(--muted); }
.auth-card .aux a:hover { color: var(--brand); }
.auth-card .foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-card .providerLinkingFeedback { margin-bottom: 12px; }
#registration .prepend-icon { position: relative; }
#registration .prepend-icon .field-icon {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; color: var(--faint); margin: 0; z-index: 2;
}
#registration .prepend-icon .form-control, #registration .prepend-icon .field { padding-left: 42px; }
#registration .field:not(.form-control) {
  width: 100%; height: 42px; padding: 0 14px 0 42px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
#registration .iti { width: 100%; }
#registration .iti .form-control { padding-left: 52px; }
.marketing-email-optin { padding: 16px; margin: 0 0 18px; background: var(--bg); border-radius: var(--r-sm); font-size: 14px; }
.marketing-email-optin h4 { font-size: 14px; }
.password-strength-meter .progress { height: 6px; border-radius: 3px; background: var(--line-soft); margin-top: 18px; }
.bootstrap-switch.bootstrap-switch-small, .bootstrap-switch.bootstrap-switch-mini { min-width: 55px; }

/* ---------- 11. Client area ---------- */
.clientarea-home { padding: 36px 0 72px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.welcome h1 { font-size: 1.6rem; margin-bottom: 4px; }
.welcome .meta { color: var(--muted); font-size: 14px; margin: 0; }
.welcome .actions { display: flex; gap: 10px; flex: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); transition: border-color .15s;
}
.stat:hover { border-color: #d1d5db; color: var(--text); }
.stat .icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--bg); color: var(--muted);
}
.stat.accent .icon { background: var(--brand-50); color: var(--brand); }
.stat .value { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stat .title { font-size: 13px; color: var(--muted); }

.panel-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; }
.panel-flat .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-flat .panel-head h3 { font-size: 15px; margin: 0; }
.panel-flat .panel-head a { font-size: 13px; color: var(--muted); }
.panel-flat .panel-head a:hover { color: var(--brand); }
.panel-flat .panel-body { padding: 20px; }
.panel-flat .info-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.panel-flat .info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.panel-flat .info-list li:last-child { border-bottom: 0; }
.panel-flat .info-list .k { color: var(--muted); flex: none; }
.panel-flat .info-list .v { color: var(--ink); text-align: right; word-break: break-all; }
.panel-flat .news-list { list-style: none; margin: 0; padding: 0; }
.panel-flat .news-list li { padding: 12px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.panel-flat .news-list li:last-child { border-bottom: 0; }
.panel-flat .news-list li a { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-flat .news-list li a:hover { color: var(--brand); }
.panel-flat .news-list li .date { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.panel-flat .news-list li.empty { color: var(--muted); }
.panel-flat .nav-tabs { padding: 0 20px; }
.panel-flat .tab-content { min-height: 200px; overflow-x: auto; }

/* Flat data table used by product/invoices includes */
.w-table { width: 100%; border-collapse: collapse; }
.w-table th, .w-table td { padding: 14px 20px; text-align: left; vertical-align: middle; }
.w-table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line);
}
.w-table tbody td { border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text); }
.w-table tbody tr:last-child td { border-bottom: 0; }
.w-table tbody tr.clickable { cursor: pointer; }
.w-table tbody tr.clickable:hover td { background: #fafafa; }
.w-table td a { color: var(--ink); font-weight: 500; }
.w-table td a:hover { color: var(--brand); }
.w-table td .mono { font-family: var(--mono); font-size: 13px; }
.w-table td.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.w-table td .cell-label { display: none; }

/* DataTables (tablelist.tpl) */
.table-container { position: relative; }
.table-container .listtable { min-height: 300px; }
.view-filter-btns { position: absolute; right: 0; top: 4px; z-index: 2; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { background: transparent; padding: 10px 0; color: var(--muted); font-size: 13px; }
.dataTables_wrapper .dataTables_length label { padding: 0; margin: 0; font-weight: 400; }
.dataTables_wrapper .dataTables_length label .form-control { display: inline-block; width: auto; height: 32px !important; padding: 0 28px 0 10px; margin: 0 6px; font-size: 13px; }
.dataTables_wrapper .dataTables_filter label .form-control { display: none; }
.dataTables_wrapper table.table-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.dataTables_wrapper table.table-list thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; border-top: 0;
  padding: 12px 16px; text-align: left; border-radius: 0 !important;
}
.table-list > tbody > tr > td { padding: 14px 16px; text-align: left !important; color: var(--text); border-top: 1px solid var(--line-soft); font-size: 14px; }
.table-list > tbody > tr > td a { text-decoration: none; }
.table-list > tbody > tr:hover > td { background: #fafafa; }
.table-list tbody tr[onclick] { cursor: pointer; }
table.dataTable > thead .sorting::after, table.dataTable > thead .sorting::before,
table.dataTable > thead .sorting_asc::after, table.dataTable > thead .sorting_asc::before,
table.dataTable > thead .sorting_desc::after, table.dataTable > thead .sorting_desc::before { bottom: 11px; }
.dataTables_wrapper .pagination .page-link { border-color: var(--line); color: var(--text); font-size: 13px; }
.dataTables_wrapper .pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.dataTables_wrapper .pagination .page-item.disabled .page-link { color: var(--faint); }
.table-container .dataTables_empty { height: 160px; vertical-align: middle; color: var(--muted); }

/* Add funds */
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-grid .choice, .gateway-grid .choice {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; cursor: pointer; background: var(--surface);
  transition: border-color .15s, color .15s, background .15s;
}
.amount-grid .choice:hover, .gateway-grid .choice:hover { border-color: #d1d5db; color: var(--ink); }
.amount-grid .choice.is-active, .gateway-grid .choice.is-active {
  border-color: var(--brand); color: var(--brand-700); background: var(--brand-50);
}
.gateway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form-item-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }

/* Affiliates */
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.affiliate-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.affiliate-card .k { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.affiliate-card .v { font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.affiliate-card .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line-soft); }
.affiliate-card .split .v { font-size: 1.1rem; }
.primary-content h2.section-title { font-size: 1.25rem; margin: 32px 0 16px; }

/* Tickets */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-card {
  display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text); transition: border-color .15s;
}
.dept-card:hover { border-color: var(--brand); color: var(--text); }
.dept-card .icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); font-size: 16px;
}
.dept-card h4 { font-size: 15px; margin-bottom: 6px; }
.dept-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- 12. Static pages ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 64px 0 0; }
.page-hero h1 { font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0; }
.page-hero .page-tabs { display: flex; gap: 4px; margin-top: 36px; overflow-x: auto; }
.page-hero .page-tabs a {
  flex: none; padding: 12px 16px; color: var(--muted); font-weight: 500; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.page-hero .page-tabs a:hover { color: var(--ink); }
.page-hero .page-tabs a.active { color: var(--brand); border-color: var(--brand); }
.page-hero.compact { padding-bottom: 48px; }

.prose { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--text); }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3, .prose h4 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose .meta { display: flex; gap: 20px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.prose .meta i { margin-right: 6px; }
.prose.lead-intro p { font-size: 1.1rem; }
.empty-state { text-align: center; padding: 80px 0; color: var(--muted); }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.contact-card .icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); font-size: 18px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; max-width: 820px; margin: 0 auto; }
.contact-form-card h2 { font-size: 1.35rem; margin-bottom: 4px; }

/* ---------- 13. Invoice ---------- */
.invoice-page .card-header { display: flex; align-items: center; justify-content: space-between; }
.invoice-page .card-header .btn { padding: 7px 12px; font-size: 13px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.invoice-head img { max-width: 200px; }
.invoice-head .meta { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 14px; }
.invoice-head .meta li { margin-bottom: 4px; }
.invoice-head .meta .list-label { color: var(--muted); margin-right: 8px; }
.invoice-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-radius: var(--r-sm); margin-bottom: 28px;
  background: var(--bg); border: 1px solid var(--line);
}
.invoice-status .status-id { font-size: 1.25rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.invoice-status .status-label { font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: var(--line); color: var(--text); }
.invoice-status.is-unpaid .status-label { background: #fef2f2; color: #991b1b; }
.invoice-status.is-paid .status-label { background: #f0fdf4; color: #166534; }
.invoice-status.is-refunded .status-label { background: #eff6ff; color: #1e40af; }
.invoice-status.is-collections .status-label { background: #fffbeb; color: #92400e; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; font-size: 14px; }
.invoice-parties strong { display: block; margin-bottom: 6px; color: var(--ink); }
.invoice-parties address { color: var(--muted); margin: 0; line-height: 1.6; }
.invoice-items { margin-bottom: 24px; }
.invoice-items .table tr.grand td { font-size: 1.05rem; color: var(--ink); font-weight: 600; background: var(--bg); }
.payment-btn-container { margin-top: 16px; }
.payment-btn-container .btn, .payment-btn-container input[type=submit] { width: 100%; }

/* ---------- 14. Article addon ---------- */
body.article section#main-body { padding-top: 0; background: transparent; }
.article-content { padding: 32px; border: 1px solid var(--line); border-radius: var(--r); }
.article-sidebar .widget { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 20px; }
.article-sidebar .widget-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.article-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.article-sidebar .widget ul li { padding: 6px 0; font-size: 14px; }
.article-sidebar .widget ul li a { color: var(--text); }
.article-sidebar .widget ul li a:hover { color: var(--brand); }
.pagination-wrapper { display: flex; justify-content: center; padding: 20px 0; }
.pagination-wrapper .number-pagenation { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.pagination-wrapper .number-pagenation a, .pagination-wrapper .number-pagenation span {
  display: inline-block; min-width: 36px; padding: 7px 10px; text-align: center; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); background: var(--surface);
}
.pagination-wrapper .number-pagenation .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination-wrapper .number-pagenation .disabled { color: var(--faint); background: var(--bg); }

/* ---------- 15. Misc WHMCS ---------- */
.panel.card.card-sidebar[menuitemname="Choose Currency"] { display: none !important; }
#fullpage-overlay { background: rgba(255,255,255,.85); }
.tickets-main { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tickets-main:hover { border-color: #d1d5db; }
.tickets-main h4 { font-size: 15px; margin-bottom: 8px; }
.tickets-main p { color: var(--muted); margin: 0; }
.ann-content { font-size: 16px; line-height: 1.7; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1199px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  .section { padding: 56px 0; }
  .space { padding: 48px 0; }

  /* header → drawer (backdrop-filter would trap the fixed drawer inside the 64px bar) */
  #header.header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body #header.header { background: var(--dark); }
  .navbar-toggler { display: inline-flex; margin-left: auto; }
  .header .navbar-collapse {
    display: block !important;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1031;
    width: min(320px, 86vw);
    background: var(--surface);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    padding: 20px 16px 32px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  body.nav-open .header .navbar-collapse { transform: translateX(0); }
  .header .navbar-collapse .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .header .navbar-collapse .drawer-head .drawer-logo { width: 130px; height: 32px; background: url(../img/logo.svg) no-repeat left center / contain; }
  .header .navbar-collapse .drawer-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .header .navbar-nav { flex-direction: column; align-items: stretch; }
  .header .navbar-nav > li { position: relative; }
  .header .navbar-nav > li > a.nav-link, .header .navbar-nav > li > a {
    height: auto; padding: 12px 10px; font-size: 15px; border-radius: var(--r-sm);
  }
  .header .navbar-nav > li.active > a::after { display: none; }
  .header .navbar-nav > li.active > a { background: var(--brand-50); }
  .header .navbar-nav > li.has-mega > a > i { margin-left: auto; }
  .header .nav-right { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); gap: 0; }
  .header .nav-right .nav-icon { display: none; }
  .header .nav-right .nav-cta > a.btn { margin: 8px 0 0; width: 100%; height: 44px; }
  .header .nav-right .dropdown-menu, .header .navbar-nav > li.dropdown > .dropdown-menu {
    position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; float: none;
  }
  .header .navbar-nav > li.dropdown > a::after { margin-left: auto; }
  .megamenu { position: static; display: none; border: 0; box-shadow: none; background: transparent; }
  .header .navbar-nav > li.is-open > .megamenu { display: block; }
  .megamenu .megamenu-inner { display: block; padding: 0 10px 8px; }
  .megamenu .megamenu-intro { display: none; }
  .megamenu .megamenu-groups { grid-template-columns: 1fr; gap: 12px; }
  .megamenu .group-title { margin-bottom: 4px; }
  .megamenu .group-links a { margin-left: 0; }

  .welcome { flex-direction: column; align-items: flex-start; }
  .welcome .actions { width: 100%; }
  .welcome .actions .btn { flex: 1; }
  .contact-grid, .dept-grid, .affiliate-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .gateway-grid { grid-template-columns: repeat(2, 1fr); }
  .invoice-parties { grid-template-columns: 1fr; }
  .page-hero { padding-top: 40px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* flat tables → stacked rows */
  .w-table thead { display: none; }
  .w-table, .w-table tbody, .w-table tr, .w-table td { display: block; width: 100%; }
  .w-table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .w-table tr:last-child { border-bottom: 0; }
  .w-table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; border: 0 !important; }
  .w-table td .cell-label { display: block; color: var(--muted); font-size: 13px; flex: none; }
  .w-table td.empty { display: block; text-align: center; }
  .table-list thead { display: none; }
  .table-list td { display: block; }
  .table-list > tbody > tr > td { border-top: 0; padding: 6px 16px; }
  .table-list > tbody > tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .view-filter-btns { position: static; margin-bottom: 12px; }
}

@media (max-width: 767px) {
  .stat-grid { grid-template-columns: 1fr; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .footer-bottom { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 28px 20px; }
  .card-body.extra-padding { padding: 20px; }
  .prose { font-size: 15px; }
  .section-head h2 { font-size: 1.6rem; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .invoice-head { flex-direction: column; }
  .invoice-head .meta { text-align: left; }
}

@media print {
  body { padding-top: 0; background: #fff; }
  #header, footer.footer, .d-print-none, .nav-backdrop { display: none !important; }
}

/* ---------- 17. layer.js skin used on the services list ---------- */
.notes.layui-layer { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(17,24,39,.18); overflow: hidden; }
.notes .layui-layer-title { height: 52px; line-height: 52px; padding: 0 24px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); }
.notes .layui-layer-content { padding: 24px; }
.notes .layui-layer-setwin { top: 14px; right: 16px; }
.notes .layui-layer-setwin .layui-layer-close1 { background: none; width: 24px; height: 24px; color: var(--faint); font-size: 18px; line-height: 24px; text-align: center; }
.notes .layui-layer-setwin .layui-layer-close1::before { content: "\00d7"; }
.notes .layui-layer-btn { display: flex; gap: 12px; padding: 0 24px 24px; border: 0; background: transparent; }
.notes .layui-layer-btn a { flex: 1; margin: 0; height: 42px; line-height: 40px; border-radius: var(--r-sm); font-weight: 500; font-size: 14px; }
.notes .layui-layer-btn .layui-layer-btn0 { background: var(--brand); border-color: var(--brand); color: #fff; }
.notes .layui-layer-btn .layui-layer-btn1 { background: var(--surface); border-color: var(--line); color: var(--text); }

/* ---------- 18. Store (markup comes from templates/orderforms/SynexVM) ---------- */
.subtop { position: relative; overflow: hidden; padding: 72px 0 60px; background: var(--dark); color: #a1a1aa; }
body.surface-dark .subtop { padding-top: calc(var(--header-h) + 76px); }
.subtop::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(720px 380px at 82% -20%, rgba(229,121,38,.28), rgba(229,121,38,0) 70%); }
.subtop .container { position: relative; }
.subtop .service-name { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.subtop .service-name small { display: table; margin-top: 16px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d4d4d8; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.subtop .sub-info > p { margin: 12px 0 0; color: #a1a1aa; }

.product-wrap > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.product-wrap > .row > [class*="col-"] { display: flex; flex: none; width: auto; max-width: none; padding: 0; }
.product-wrap > .row > [class*="col-"]:has(.btn-outofstock) { order: 2; }

.boxe {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color .15s;
}
.boxe:hover { border-color: var(--ink); }
.boxe .badge.qty, .boxe .badge.deeporange {
  order: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding: 3px 10px; border-radius: 999px;
  background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 500;
}
.boxe .badge.qty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #12b76a; }
.boxe-title { order: 1; }
.boxe .name { display: block; min-height: 2.8em; margin: 0 0 14px; color: var(--ink); font-size: 15px; font-style: normal; font-weight: 600; line-height: 1.4; }
.boxe .cost { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.boxe .cost .big { color: var(--ink); font-size: 2.1rem; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.boxe .cost .big small { font-size: .42em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.boxe .cost .won { color: var(--muted); font-size: 13px; }
.boxe > p { order: 2; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.boxe > ul:empty { display: none; }
.boxe .spec { order: 2; list-style: none; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--text); }
.boxe .spec li { padding: 8px 0; border-top: 1px solid var(--line-soft); line-height: 1.4; }
.boxe .spec li.hl { color: var(--ink); font-weight: 500; }
.boxe .spec li.note { color: var(--muted); }
.boxe > .btn { order: 3; width: 100%; margin-top: auto; }
.boxe .btn-outofstock { background: var(--bg); border-color: var(--line); color: var(--faint); cursor: not-allowed; pointer-events: none; opacity: 1; }
.boxe:has(.btn-outofstock):hover { border-color: var(--line); }
.boxe:has(.btn-outofstock) { background: #fcfcfc; }
.boxe:has(.btn-outofstock) .badge.qty { background: var(--line-soft); color: var(--muted); }
.boxe:has(.btn-outofstock) .badge.qty::before { background: var(--faint); }
.boxe:has(.btn-outofstock) .cost .big, .boxe:has(.btn-outofstock) .name { color: var(--muted); }

.product-os { margin-top: 88px; padding: 0; }
.product-os h3 { margin-bottom: 18px; font-size: 1.2rem; letter-spacing: -.015em; }
.product-os .row { display: flex; flex-wrap: wrap; justify-content: flex-start !important; gap: 10px; margin: 0; }
.product-os .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
.product-os .os { display: inline-flex; align-items: center; height: 44px; padding: 0 18px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) no-repeat 16px center / 18px; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.product-os .os.centos { background-image: url(../img/os/centos.png); }
.product-os .os.ubuntu { background-image: url(../img/os/ubuntu.png); }
.product-os .os.ubuntu > span::before { content: "Ubuntu "; }
.product-os .os.fedora { background-image: url(../img/os/fedora.png); }
.product-os .os.debian { background-image: url(../img/os/debian.png); }
.product-os .os.suse { background-image: url(../img/os/opensuse.png); }
.product-os .os.win { background-image: url(../img/os/windows.png); }
.product-os .os.btpanel { background-image: url(../img/os/btpanel.png); }

.functions-2, .functions { margin-top: 88px; }
.functions { margin-top: 0; }
.functions-2 .sub-title, .functions .sub-title { margin: 0 0 36px; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.functions-2 .row, .functions .row { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line); }
.functions-2 .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.functions .row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.functions-2 .row > [class*="col-"], .functions .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; background: var(--surface); }
.functions-2 .item, .functions .item { height: 100%; padding: 28px; }
.functions-2 .item .title, .functions .item .title { margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
.functions-2 .item p:not(.title), .functions .item p:not(.title) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.functions-2 .item::before, .functions .item .img-thumb::before {
  display: block; margin-bottom: 18px; color: var(--ink); font: 900 18px/1 "Font Awesome 5 Pro", "Font Awesome 5 Free";
}
.functions .item .img-thumb { display: block; }
.functions-2 .icon-1::before { content: "\f0a3"; }
.functions-2 .icon-2::before { content: "\f058"; }
.functions-2 .icon-3::before { content: "\f135"; }
.functions-2 .icon-4::before { content: "\f233"; }
.functions-2 .icon-5::before { content: "\f0c2"; }
.functions-2 .icon-6::before { content: "\f590"; }
.functions .img-thumb.use::before { content: "\f135"; }
.functions .img-thumb.no-agreement::before { content: "\f15c"; }
.functions .img-thumb.vps-freefw::before { content: "\f3ed"; }
.functions .img-thumb.vps-remote-power::before { content: "\f2db"; }

.recommend.space { padding: 96px 0; }
.recommend.orange { background: var(--bg) !important; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.recommend.blue { background: var(--dark) !important; }
.recommend .title-s { margin: 0 0 24px; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.recommend.blue .title-s { color: #fff; }
.recommend .item { height: calc(100% - 16px); margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.recommend .item .gt-btn-txt { display: block; color: var(--ink); font-size: 15px; font-weight: 600; pointer-events: none; }
.recommend .item .gt-btn-txt i { display: none; }
.recommend .item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.recommend.blue .item { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.recommend.blue .item .gt-btn-txt { color: #fff; }
.recommend.blue .item p { color: #a1a1aa; }

.faq-area.space { padding: 96px 0 112px; }
.faq-area h3 { margin: 0 0 28px; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; }
.faq-area .item-collapse { margin: 0; border-top: 1px solid var(--line); }
.faq-area .collapse-item { border-bottom: 1px solid var(--line); }
.faq-area .icon { display: none; }
.faq-area .collapse-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; }
.faq-area .collapse-header::after { content: "\2212"; flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.faq-area .collapse-header.collapsed::after { content: "+"; }
.faq-area .collapse-content { padding: 0 40px 22px 0; color: var(--muted); font-size: 15px; }
.faq-area .collapse-content p { margin: 0; }

@media (max-width: 1199px) { .product-wrap > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .product-wrap > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .functions-2 .row, .functions .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.surface-dark .subtop { padding-top: calc(var(--header-h) + 48px); }
  .product-os, .functions-2 { margin-top: 64px; }
  .recommend.space, .faq-area.space { padding: 64px 0; }
}
@media (max-width: 575px) {
  .product-wrap > .row, .functions-2 .row, .functions .row { grid-template-columns: minmax(0, 1fr); }
  .boxe .name { min-height: 0; }
}

/* ---------- 19. Cart (templates/orderforms/SynexVM, whose stylesheet loads after this one) ---------- */
#order-standard_cart .btn-success { background: var(--ink) !important; border-color: var(--ink) !important; border-radius: var(--r-sm); color: #fff !important; }
#order-standard_cart .btn-success:hover { background: #27272a !important; border-color: #27272a !important; }
#order-standard_cart .order-summary { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; background: var(--surface) !important; }
#order-standard_cart .order-summary h2 { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.panel-form, .panel-infos { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; background: var(--surface) !important; }
.panel-check { border: 1px solid var(--line) !important; border-radius: var(--r) !important; background: var(--surface) !important; }
.panel-check.checked { border-color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink) !important; }

/* ---------- 20. Refinements: one accent, quiet links, consistent surfaces ---------- */
::selection { background: var(--brand); color: #fff; }
a { color: var(--ink); }
a:hover { color: var(--brand-700); }
.prose a, .auth-card .foot a, .form-check-label a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }

.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,11,.07) !important; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > .input-group-prepend + .form-control { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group-prepend .input-group-text { border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group-append .btn { height: 100%; border-top-left-radius: 0; border-bottom-left-radius: 0; }

.btn-success, .btn-success:hover, .btn-success:focus, .btn-info, .btn-info:focus { background: var(--action); border-color: var(--action); color: #fff; }
.btn-success:hover, .btn-info:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }

.badge, .label { background: var(--line-soft); color: var(--text); font-weight: 500; }
.badge-info, .label-info { background: var(--line-soft); color: var(--text); }
.badge-success, .label-success { background: #ecfdf3; color: #067647; }
.badge-warning, .label-warning { background: #fffaeb; color: #b54708; }
.badge-danger, .label-danger, .label-hot, .badge-hot { background: #fef3f2; color: #b42318; }
.label-new, .badge-new { background: var(--brand-50); color: var(--brand-700); }
.header .nav-right .nav-icon .count { background: var(--ink); }

.header .navbar-nav > li > a:hover, .header .navbar-nav > li.active > a, .header .navbar-nav > li.show > a, .header .navbar-nav > li.is-open > a { color: var(--ink); }
.header .navbar-nav > li.active > a::after { background: var(--ink); }
.nav-tabs .nav-link.active { color: var(--ink); border-color: var(--ink); }
.card-sidebar .list-group-item.active { background: var(--bg); color: var(--ink); }

/* Icon tiles share one treatment */
.contact-card .icon, .dept-card .icon, .stat .icon, .stat.accent .icon, .channel .icon {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.dept-card:hover, .stat:hover { border-color: var(--ink); }

/* Inner page heading */
section#main-body { padding: 48px 0 96px; }
.header-lined { display: flex; flex-direction: column-reverse; padding: 0; margin-bottom: 28px; border: 0; }
.header-lined h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.03em; }
.header-lined h1 small { font-size: 15px; letter-spacing: 0; margin-top: 8px; }
.breadcrumb { margin: 0 0 12px; }
.card { border-radius: var(--r-lg); }
.card-header { border-radius: var(--r-lg) var(--r-lg) 0 0 !important; }

/* Announcements and knowledgebase (parent theme markup) */
body.announcements .main-content .card-body > .card-title { display: none; }
.announcements .announcement { padding: 4px 0 28px; }
.announcements .announcement + .announcement { padding-top: 28px; border-top: 1px solid var(--line-soft); }
.announcements .announcement:last-child { padding-bottom: 4px; }
.announcements .announcement h1 { margin-bottom: 8px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.announcements .announcement h1 a { color: var(--ink); }
.announcements .announcement h1 a:hover { color: var(--brand-700); }
.announcements .announcement article { margin: 12px 0 18px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1.75; }
.kb-search .form-control { height: 52px !important; font-size: 15px; }
.kb-search.input-group-lg > .input-group-append > .btn { min-width: 96px; font-size: 15px; }
.kb-category { transition: border-color .15s; }
.kb-category:hover { border-color: var(--ink); }
.kb-category a, .kb-category a:hover { display: block; color: var(--ink); }
.kb-category .h5 { font-size: 15px; font-weight: 600; }
.kb-article-item { padding: 14px 20px; color: var(--ink); border-color: var(--line-soft); }
.kb-article-item small { display: block; margin: 4px 0 0 28px; color: var(--muted); }

/* Password reset */
.mw-540 { width: 100%; max-width: 460px; }
.mw-540 .h3 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; }
.mw-540 .form-group.text-center .btn { width: 100%; height: 44px; }

/* Dark page hero for marketing and legal pages */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 0; border: 0; background: var(--dark); }
body.surface-dark .page-hero { padding-top: calc(var(--header-h) + 72px); }
.page-hero.compact { padding-bottom: 64px; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(720px 380px at 82% -20%, rgba(229,121,38,.28), rgba(229,121,38,0) 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.page-hero p { color: #a1a1aa; }
.page-hero .page-tabs { margin-top: 44px; }
.page-hero .page-tabs a { margin-bottom: 0; color: #a1a1aa; }
.page-hero .page-tabs a:hover { color: #fff; }
.page-hero .page-tabs a.active { color: #fff; border-color: #fff; }

/* Long documents get a sticky contents list */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.doc .prose { max-width: 740px; margin: 0; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow-y: auto; font-size: 13.5px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.toc a:hover { color: var(--ink); }
.toc a.active { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.prose h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; scroll-margin-top: 96px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 820px; margin: 56px auto 0; border-top: 1px solid var(--ink); }
.about-facts > div { padding: 22px 16px 0 0; }
.about-facts strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.5rem; font-weight: 650; letter-spacing: -.03em; }
.about-facts span { color: var(--muted); font-size: 13.5px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-form-card { max-width: none; margin: 0; padding: 36px; border-radius: var(--r-lg); }
.contact-form-card h2 { font-weight: 650; letter-spacing: -.025em; }
.contact-channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); transition: border-color .15s; }
.channel:hover { border-color: var(--ink); color: var(--ink); }
.channel .icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.channel .body { flex: 1; min-width: 0; }
.channel strong { display: block; font-size: 15px; font-weight: 600; }
.channel small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.channel .arrow { flex: none; color: var(--faint); font-size: 12px; transition: transform .15s, color .15s; }
.channel:hover .arrow { color: var(--ink); transform: translateX(3px); }

/* Sign in and register: brand panel beside the form */
body.login #header.header, body.clientregister #header.header { background: var(--dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
section.auth.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 100vh; padding: 0; background: var(--surface); }
.auth-panel { position: relative; overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-h) + 56px) 64px 64px; background: var(--dark); }
.auth-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 420px at 100% 0, rgba(229,121,38,.30), rgba(229,121,38,0) 70%); }
.auth-panel-inner { position: relative; width: 100%; max-width: 480px; margin-left: auto; }
.auth-panel h2 { margin: 0 0 56px; color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
.auth-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.auth-facts strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; }
.auth-facts span { color: #8b8b94; font-size: 13px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 48px) 40px 64px; }
.auth-card { padding: 0; border: 0; border-radius: 0; background: none; max-width: 400px; }
.auth-card.wide { max-width: 600px; }
.auth-card h1 { font-size: 2rem; font-weight: 650; letter-spacing: -.03em; }
.auth-card .btn-primary { height: 46px; }
#registration .iti input[type=tel], #registration .intl-tel-input input[type=tel] { padding-left: 100px !important; }
#registration .intl-tel-input { display: block; width: 100%; }
#registration .prepend-icon:has(.iti) .field-icon, #registration .prepend-icon:has(.intl-tel-input) .field-icon { display: none; }
#registration .iti__selected-flag, #registration .selected-flag { background: transparent !important; }

/* Cart leftovers from the order form stylesheet */
#order-standard_cart .view-cart-items-header { padding: 0 0 10px; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent !important; color: var(--muted) !important; font-size: 13px; }
#order-standard_cart .view-cart-items { border-bottom: 1px solid var(--line) !important; }
#order-standard_cart .view-cart-tabs .tab-content { padding: 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--surface) !important; }
#order-standard_cart .view-cart-tabs .nav-tabs > li.active > a, #order-standard_cart .view-cart-tabs .nav-link.active { background: transparent !important; color: var(--ink); }

/* Dashboard */
.welcome h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.03em; }
.panel-flat { border-radius: var(--r-lg); }
.stat { border-radius: var(--r-lg); }
.w-table thead th { background: transparent; }

/* Footer */
.footer .footer-top { padding: 72px 0 48px; }
.footer h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.footer ul li a:hover, .footer .policy-area a:hover { color: var(--ink); }

.tile { transition: border-color .15s; }
.tile:not(.tile-dark):hover { border-color: #d4d4d8; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .hero .console, .hero .facts { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero .console { animation-delay: .22s; }
.hero .facts { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .hero-copy > *, .hero .console, .hero .facts { animation: none; } }

@media (max-width: 991px) {
  section.auth.auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-panel { display: none; }
  .auth-main { padding: calc(var(--header-h) + 40px) 20px 56px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .about-facts { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .page-hero .page-tabs { margin-top: 28px; }
  section#main-body { padding: 32px 0 64px; }
  .contact-form-card { padding: 24px; }
}

/* ---------- 21. Tighter rhythm and richer homepage ---------- */
.hero { padding-top: calc(var(--header-h) + 60px); }
.hero-inner { gap: 56px; }
.hero .lead { margin-bottom: 28px; }
.facts { margin-top: 56px; }
.facts > div { padding: 24px 28px 26px; }

.marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span { display: flex; align-items: center; padding: 16px 28px; color: #71717a; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 4px; height: 4px; margin-left: 56px; border-radius: 50%; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.home-section { padding: 72px 0; }
.home-section .section-head { margin-bottom: 32px; }
.section-head h2 { margin-bottom: 8px; line-height: 1.2; }

.bento { gap: 14px; }
.tile { padding: 28px; }
.routes { margin-top: 18px; }
.routes li { padding: 10px 0; }
.routes span { width: 92px; }
.routes b { color: var(--ink); }
.tile-stack { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-stack .big-number { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { padding: 3px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d4d4d8; font-size: 12px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 14px; }
.checks i { color: var(--brand); font-size: 12px; }
.control-actions span { font-size: 13px; }

.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.use { padding: 22px 24px; border-left: 1px solid var(--line); }
.use:first-child { border-left: 0; }
.use i { display: block; margin-bottom: 14px; color: var(--ink); font-size: 16px; }
.use strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.use span { color: var(--muted); font-size: 13px; line-height: 1.6; }

.steps { position: relative; overflow: hidden; padding: 64px 0; background: var(--dark); }
.steps::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 340px at 8% 110%, rgba(229,121,38,.24), rgba(229,121,38,0) 70%); }
.steps .container { position: relative; }
.steps .section-head { margin-bottom: 28px; }
.steps .section-head h2 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); background: rgba(255,255,255,.035); }
.step .index { display: block; margin-bottom: 18px; color: var(--brand); font-family: var(--mono); font-size: 13px; }
.step h3 { margin-bottom: 6px; color: #fff; font-size: 1.15rem; letter-spacing: -.015em; }
.step p { margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.65; }
.os-row { display: flex; gap: 10px; margin-top: 14px; }
.os-row img { width: 22px; height: 22px; object-fit: contain; }

.promises { gap: 32px; margin-bottom: 56px; }
.promises > div { padding-top: 16px; }
.promises h3 { font-size: 1.15rem; margin-bottom: 6px; }
.news-grid { gap: 48px; }
.item-list li { padding: 12px 0; }
.item-list li > i.time { font-size: 11px; }
.home-cta { padding-bottom: 72px; }
.cta-panel { padding: 40px 44px; }

/* Store and inner pages */
.subtop, body.surface-dark .subtop { padding-bottom: 40px; }
body.surface-dark .subtop { padding-top: calc(var(--header-h) + 48px); }
section.space { padding: 48px 0; }
.product-os, .functions-2 { margin-top: 52px; }
.functions-2 .sub-title, .functions .sub-title { margin-bottom: 24px; }
.functions-2 .item, .functions .item { padding: 22px; }
.recommend.space { padding: 56px 0; }
.faq-area.space { padding: 56px 0 72px; }
section#main-body { padding: 36px 0 64px; }
.page-hero.compact { padding-bottom: 44px; }
body.surface-dark .page-hero { padding-top: calc(var(--header-h) + 48px); }
.page-hero .page-tabs { margin-top: 28px; }
.section { padding: 56px 0; }
.footer .footer-top { padding: 48px 0 32px; }
.clientarea-home { padding: 32px 0 56px; }

.channel-note { padding: 22px; border-radius: var(--r-lg); background: var(--dark); color: #a1a1aa; font-size: 13.5px; line-height: 1.65; }
.channel-note strong { display: block; margin-bottom: 6px; color: #fff; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; }

@media (max-width: 991px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .facts { margin-top: 40px; }
  .home-section, .steps { padding: 52px 0; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use:nth-child(odd) { border-left: 0; }
  .use:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .promises { gap: 20px; margin-bottom: 40px; }
  .home-cta { padding-bottom: 52px; }
  .cta-panel { padding: 30px 24px; }
}

/* ---------- 22. One dark header everywhere, network topology ---------- */
body #header.header { border-bottom-color: rgba(255,255,255,.08); }
@media (min-width: 992px) {
  body #header.header { background: rgba(9,9,11,.94); }
  .header .navbar-nav > li.dropdown > .dropdown-menu { position: absolute; left: 0; right: auto; float: none; }
  .header .nav-right > li.dropdown > .dropdown-menu { left: auto; right: 0; }
  body .header .navbar-nav > li > a.nav-link { color: #a1a1aa; }
  body .header .navbar-nav > li > a.nav-link:hover,
  body .header .navbar-nav > li.active > a.nav-link,
  body .header .navbar-nav > li.is-open > a.nav-link,
  body .header .navbar-nav > li.show > a.nav-link,
  body .header .navbar-nav > li.show > a { color: #fff; }
  body .header .nav-right .nav-icon > a:hover { background: rgba(255,255,255,.08); color: #fff; }
  body .header .nav-right .nav-icon .dot { border-color: var(--dark); }
  body .header .nav-right .nav-icon .count { background: var(--brand); }
}

/* Title band shared by the client area and inner pages */
.page-hero-inner.compact { padding-bottom: 36px; }
.page-hero .header-lined { margin: 0; }
.page-hero .header-lined h1 { color: #fff; }
.page-hero .header-lined h1 small { color: #a1a1aa; }
.page-hero .breadcrumb-item a { color: #a1a1aa; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: #d4d4d8; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #52525b; }
.page-hero .welcome { margin: 0; }
.page-hero .welcome h1 { color: #fff; margin-bottom: 6px; }
.page-hero .welcome .meta { color: #a1a1aa; }
.page-hero .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.page-hero .btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--ink); }
.page-hero .btn-secondary { background: transparent; border-color: rgba(255,255,255,.18); color: #fff; }
.page-hero .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.mw-540 .mb-4 > .h3 { display: none; }
@media print { .page-hero { display: none !important; } }

/* Network topology */
.topology { display: grid; grid-template-columns: minmax(0, 1fr) 96px 132px; align-items: center; margin-top: 20px; }
.topology-nodes { display: grid; grid-template-rows: repeat(4, 50px); gap: 8px; list-style: none; margin: 0; padding: 0; }
.topology-nodes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.topology-nodes strong { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.topology-nodes span { overflow: hidden; color: var(--muted); font-size: 12.5px; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.topology-nodes li.featured { border-color: rgba(229,121,38,.45); background: var(--brand-50); }
.topology-nodes li.featured span { color: var(--brand-700); font-weight: 500; }
.topology svg { display: block; width: 100%; height: 224px; }
.topology .link { fill: none; stroke: #e4e4e7; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.topology .pulse { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 200; vector-effect: non-scaling-stroke; animation: pulse-flow 3.2s linear infinite; }
.topology .pulse:nth-of-type(6) { animation-delay: -.8s; }
.topology .pulse:nth-of-type(7) { animation-delay: -1.6s; }
.topology .pulse:nth-of-type(8) { animation-delay: -2.4s; }
@keyframes pulse-flow { from { stroke-dashoffset: 208; } to { stroke-dashoffset: 0; } }
.topology-hub { position: relative; padding: 20px 12px; border-radius: 14px; background: var(--dark); text-align: center; color: #fff; }
.topology-hub::before { content: ""; display: block; width: 10px; height: 10px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(229,121,38,.22); }
.topology-hub strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.topology-hub span { display: block; margin-top: 2px; color: #a1a1aa; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .topology .pulse { display: none; } }
@media (max-width: 575px) {
  .topology { grid-template-columns: minmax(0, 1fr); }
  .topology svg, .topology-hub { display: none; }
  .topology-nodes { grid-template-rows: none; }
}

/* ---------- 23. Client dashboard ---------- */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.dash-stats a { display: block; padding: 18px 24px 0; border-left: 1px solid rgba(255,255,255,.1); color: #a1a1aa; transition: color .15s; }
.dash-stats a:first-child { padding-left: 0; border-left: 0; }
.dash-stats a:hover { color: #fff; }
.dash-stats strong { display: block; margin-bottom: 2px; color: #fff; font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dash-stats span { font-size: 13px; }
.dash-stats a.is-alert strong { color: #fb923c; }

.attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.attention:not(:has(.attn:not([hidden]))) { display: none; }
.attn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 18px; border: 1px solid rgba(229,121,38,.35); border-radius: var(--r-lg); background: var(--brand-50); color: var(--ink); font-size: 14px; font-weight: 500; }
.attn[hidden] { display: none; }
.attn > i { flex: none; color: var(--brand-700); }
.attn > span { flex: 1; min-width: 0; }
.attn .btn { flex: none; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.dash-head h2 { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.dash-head a { color: var(--muted); font-size: 13px; }
.dash-head a:hover { color: var(--ink); }
.dash-invoices { margin: 20px 0 0; }
.table-scroll { overflow-x: auto; }

.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.servers:has(.server) .servers-empty { display: none; }
.servers-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; color: var(--muted); }
.server { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s; }
.server:hover { border-color: var(--ink); }
.server-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-bottom: 14px; }
.due-chip { padding: 2px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.due-chip[hidden] { display: none; }
.due-chip.is-soon { background: var(--brand-50); color: var(--brand-700); }
.due-chip.is-over { background: #fef3f2; color: #b42318; }
.server h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; word-break: break-word; }
.server-sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.server-ip { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 6px 8px 6px 14px; border-radius: 10px; background: var(--dark); }
.server-ip code { padding: 0; background: none; color: #fff; font-family: var(--mono); font-size: 15px; letter-spacing: .01em; word-break: break-all; }
.copy-ip { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #a1a1aa; cursor: pointer; transition: background .15s, color .15s; }
.copy-ip:hover { background: rgba(255,255,255,.1); color: #fff; }
.copy-ip.is-done { color: #4ade80; }
.server-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.server-foot b { margin-left: 8px; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.dash-side .panel-flat { margin-bottom: 14px; }
.balance { position: relative; overflow: hidden; margin-bottom: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--dark); color: #a1a1aa; font-size: 13px; }
.balance::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px 180px at 100% 0, rgba(229,121,38,.32), rgba(229,121,38,0) 70%); }
.balance > * { position: relative; }
.balance strong { display: block; margin: 6px 0 16px; color: #fff; font-size: 1.7rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; word-break: break-word; }
.balance .btn { background: #fff; border-color: #fff; color: var(--ink); }
.balance .btn:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--ink); }
.dash-verify { margin-bottom: 14px; }
.quick-links { list-style: none; margin: 0; padding: 6px; }
.quick-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.quick-links a:hover { background: var(--bg); color: var(--ink); }
.quick-links i { width: 16px; color: var(--muted); text-align: center; }

@media (max-width: 991px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-stats a { padding: 14px 14px 0; }
}
@media (max-width: 575px) {
  .servers { grid-template-columns: minmax(0, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .dash-stats a:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- 24. Product details (parent theme markup) ---------- */
.alert:has(> .float-right) { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; }
.alert > .float-right { float: none !important; flex: none; }
/* The parent's connector contains a .channel element, which would pick up the contact page's .channel styling */
.responsive-tabs-sm-connector { display: none !important; }
.btn-xs { padding: 6px 12px; font-size: 13px; line-height: 1.2; border-radius: 8px; }
.product-details-tab-container, div.product-details-tab-container { padding: 22px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 767px) {
  .product-details-tab-container .text-right { text-align: left !important; }
  .responsive-tabs-sm { width: 100%; border-color: var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
  .responsive-tabs-sm .nav-item { margin-left: 0; border-bottom-color: var(--line-soft) !important; }
  .product-details-tab-container, div.product-details-tab-container { border-top: 1px solid var(--line); padding: 18px; }
  .alert:has(> .float-right) { flex-wrap: wrap-reverse; }
}

/* ---------- 25. Services list ---------- */
.dataTables_wrapper table.table-list { border-radius: var(--r-lg); }
.table-list .mono { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.table-list td strong { color: var(--ink); font-weight: 600; }
.ip-cell { display: inline-flex; align-items: center; gap: 6px; }
.table-list .copy-ip { width: 26px; height: 26px; color: var(--faint); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.table-list tr:hover .copy-ip, .table-list .copy-ip:focus-visible { opacity: 1; }
.table-list .copy-ip:hover { background: var(--line-soft); color: var(--ink); }
.table-list .copy-ip.is-done { opacity: 1; color: var(--success); }
.table-list tbody tr:has(.status-cancelled) td, .table-list tbody tr:has(.status-terminated) td { color: var(--faint); }
.table-list tbody tr:has(.status-cancelled) strong, .table-list tbody tr:has(.status-terminated) strong { color: var(--muted); font-weight: 500; }
.table-list .btn-sm { padding: 6px 10px; }
@media (hover: none) { .table-list .copy-ip { opacity: 1; } }
.dataTables_wrapper .pagination .page-item.active .page-link { background: var(--action); border-color: var(--action); }
.dataTables_wrapper .listtable { overflow-x: auto; }
@media (min-width: 992px) {
  #tableServicesList th, #tableServicesList td:nth-child(n+3) { white-space: nowrap; }
  #tableServicesList td:nth-child(6) a { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
}

/* ---------- 26. Service details ---------- */
.page-hero .header-lined h1, .page-hero .welcome h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.page-hero .header-lined h1 small { display: block; }

.svc-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; margin-bottom: 28px; }
.svc-summary { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--dark); color: #a1a1aa; }
.svc-summary::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 260px at 100% 0, rgba(229,121,38,.3), rgba(229,121,38,0) 70%); }
.svc-summary > * { position: relative; }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.svc-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font-size: 16px; }
.svc-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #e4e4e7; font-size: 13px; font-weight: 500; }
.svc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
.svc-status-active::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.svc-status-pending::before, .svc-status-suspended::before { background: #fbbf24; }
.svc-status-terminated::before, .svc-status-fraud::before { background: #f87171; }
.svc-summary h2 { margin: 0 0 6px; color: #fff; font-size: 1.55rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; word-break: break-word; }
.svc-group { margin: 0; font-size: 14px; }
.svc-domain { margin: 8px 0 0; color: #d4d4d8; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 28px; }
.svc-actions .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.svc-actions .btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; color: var(--ink); }
.svc-actions .btn-ghost { border-color: rgba(255,255,255,.18); color: #fff; }
.svc-actions .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.svc-cancel { margin-left: auto; color: #8b8b94; font-size: 13px; }
.svc-cancel:hover { color: #fca5a5; }
.svc-cancel.disabled { color: #52525b; pointer-events: none; }

.svc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line-soft); }
.svc-fact { padding: 18px 22px; background: var(--surface); }
.svc-fact dt { margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.svc-fact dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; word-break: break-word; }
.svc-fact-lead { grid-column: 1 / -1; padding: 22px; }
.svc-fact-lead dd { font-size: 1.9rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.svc-fact-alert { grid-column: 1 / -1; background: #fef3f2; }
.svc-fact-alert dd { color: #b42318; }

@media (max-width: 991px) {
  .svc-overview { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 27. Audit fixes ---------- */
@media (min-width: 992px) { body #header.header { background: var(--dark); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Mega menu reads as a floating panel */
.megamenu { top: calc(var(--header-h) + 6px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.megamenu::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; }
.megamenu .megamenu-inner { padding: 28px; }
@media (max-width: 991px) { .megamenu { top: auto; border: 0; border-radius: 0; } .megamenu .megamenu-inner { padding: 0 10px 8px; } }

/* Replace Bootstrap's default blue with the theme palette */
.text-primary { color: var(--ink) !important; }
a.text-primary:hover { color: var(--brand-700) !important; }
.bg-primary { background-color: var(--ink) !important; }
.border-primary { border-color: var(--ink) !important; }
.page-link { color: var(--text); border-color: var(--line); }
.page-link:hover { color: var(--ink); background: var(--bg); border-color: var(--line); }
.page-item.active .page-link { background: var(--action); border-color: var(--action); color: #fff; }
.list-group-item.active { background: var(--bg); border-color: var(--line-soft); color: var(--ink); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--ink); border-color: var(--ink); }
.progress-bar { background-color: var(--ink); }
.display-1 { font-size: clamp(3rem, 8vw, 5rem); letter-spacing: -.04em; }
i.display-1 { display: block; margin-bottom: 12px; font-size: 2.5rem; color: var(--faint) !important; }

.table-container .listtable { min-height: 120px; }

/* Ticket conversation */
.ticket-reply { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ticket-reply .posted-by { padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--bg); color: var(--muted); font-size: 13px; }
.ticket-reply .posted-by-name { color: var(--ink); font-weight: 600; }
.ticket-reply.staff { border-color: rgba(229,121,38,.35); }
.ticket-reply.staff .posted-by { border-bottom-color: rgba(229,121,38,.2); background: var(--brand-50); }
.ticket-reply .message { color: var(--text); font-size: 15px; line-height: 1.75; }
.ticket-reply .message p:last-child { margin-bottom: 0; }

/* Cart text was inheriting very small sizes from the order form stylesheet */
#order-standard_cart .summary-container { font-size: 14px; }
#order-standard_cart .order-summary .subtotal { font-size: 14px; border-bottom-color: var(--line-soft); }
#order-standard_cart .order-summary .btn-continue-shopping { color: var(--muted); font-size: 13px; }
#order-standard_cart .order-summary .total-due-today .amt { color: var(--ink); font-size: 2rem; font-weight: 650; letter-spacing: -.03em; }
#order-standard_cart .view-cart-tabs .nav-tabs { padding-left: 0; font-size: 14px; }
#order-standard_cart .btn-checkout:disabled, #order-standard_cart .btn-checkout.disabled { background: var(--line) !important; border-color: var(--line) !important; color: var(--muted) !important; opacity: 1; }
.card-body:has(> .ticket-reply) { padding: 7px 20px; }
.card-body:has(> .ticket-reply):last-of-type { padding-bottom: 20px; }
