/* ============================================================
   ChicagoServers WHMCS Theme — Dark Luxury
   Primary: GMod Blue #4D8FE0 | Surface: #0E0F11 / #141519
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:        #0996e8;
  --blue-dim:    #0775B8;
  --blue-glow:   rgba(9, 150, 232, 0.18);
  --blue-glow2:  rgba(9, 150, 232, 0.10);

  --bg-base:     #15171D;
  --bg-surface:  #1A1D24;
  --bg-card:     #20232C;
  --bg-card2:    #272B36;
  --bg-input:    #181B22;
  --bg-hover:    #2A2E3B;

  --border:      rgba(255,255,255,0.09);
  --border-blue: rgba(9, 150, 232, 0.35);

  --text-primary:   #F0F2F8;
  --text-secondary: #A2A8BC;
  --text-muted:     #6A6F84;
  --text-blue:      #8AB8EA;

  --font-display: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-blue: 0 0 30px rgba(9, 150, 232, 0.25);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15.5px; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.005em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-blue); }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(9,150,232,0.30); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(77,143,224,0.45); }

/* ── Layout Shell ── */
.cs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  /* min-height removed in v20 — body flex layout handles vertical fill so footer is visible */
}

/* ── Sidebar ── */
.cs-sidebar {
  grid-area: sidebar;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.cs-sidebar__logo {
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--border);
}
.cs-sidebar__logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.cs-sidebar__logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(77, 143, 224, 0.18));
}
.cs-sidebar__logo-fallback {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.cs-sidebar__logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

.cs-sidebar__user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), #1a2d50);
  border: 1.5px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.cs-sidebar__user-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
}
.cs-sidebar__user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.cs-nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.cs-nav__section { padding: 0 12px; margin-bottom: 6px; }
.cs-nav__label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px 12px 6px;
  display: block;
}
.cs-nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.cs-nav__item:hover { background: var(--bg-hover); color: var(--text-primary); }
.cs-nav__item.active { background: var(--blue-glow); color: var(--text-blue); font-weight: 400; }
.cs-nav__item.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.cs-nav__icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.cs-nav__item.active .cs-nav__icon, .cs-nav__item:hover .cs-nav__icon { opacity: 1; }
.cs-nav__badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  line-height: 1.4;
}
.cs-nav__badge--warn { background: rgba(224,160,60,0.2); color: #E0A03C; }

.cs-sidebar__footer { padding: 16px; border-top: 1px solid var(--border); }
.cs-sidebar__footer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem; font-weight: 400;
  cursor: pointer;
  transition: all var(--transition);
}
.cs-sidebar__footer-link:hover { background: var(--bg-hover); color: var(--text-secondary); }

/* ── Top Header ── */
.cs-header {
  grid-area: header;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.cs-header__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cs-header__breadcrumb span.sep { color: var(--border); }
.cs-header__breadcrumb span.current, .cs-header__breadcrumb a { color: var(--text-secondary); }
.cs-header__breadcrumb a:hover { color: var(--text-primary); }
.cs-header__actions { display: flex; align-items: center; gap: 6px; }
.cs-header__btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  position: relative;
}
.cs-header__btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: rgba(255,255,255,0.12); }
.cs-header__notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  border: 1.5px solid var(--bg-surface);
}

/* ── Main ── */
.cs-main { grid-area: main; padding: 28px; overflow-y: auto; }
.cs-page-header { margin-bottom: 26px; }
.cs-page-header__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.cs-page-header__sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 450;
}

/* ── Stat Cards ── */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.cs-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.cs-stat::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.cs-stat:hover { border-color: var(--border-blue); transform: translateY(-1px); }
.cs-stat--accent {
  background: linear-gradient(135deg, rgba(9,150,232,0.14) 0%, rgba(9,150,232,0.05) 100%);
  border-color: var(--border-blue);
}
.cs-stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.cs-stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.cs-stat--accent .cs-stat__value { color: var(--text-blue); }
.cs-stat__change {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.cs-stat__change--up { color: #5BAB7A; }
.cs-stat__change--down { color: #B85B5B; }
.cs-stat__icon {
  position: absolute; right: 18px; top: 18px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

/* ── Grid Layouts ── */
.cs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) {
  .cs-grid-2, .cs-grid-3 { grid-template-columns: 1fr; }
}

/* ── Panels ── */
.cs-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.cs-panel::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  pointer-events: none;
}
.cs-panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cs-panel__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.cs-panel__body { padding: 22px; }
.cs-panel__body--flush { padding: 0; }

/* ── Tables ── */
.cs-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cs-table thead tr { border-bottom: 1px solid var(--border); }
.cs-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.cs-table td {
  padding: 13px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.cs-table tbody tr { transition: background var(--transition); }
.cs-table tbody tr:hover { background: var(--bg-hover); }
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-table td.primary { color: var(--text-primary); font-weight: 400; }

/* ── Badges ── */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cs-badge--active, .cs-badge--paid {
  background: rgba(91,171,122,0.12);
  color: #5BAB7A;
  border: 1px solid rgba(91,171,122,0.2);
}
.cs-badge--pending, .cs-badge--unpaid {
  background: rgba(224,160,60,0.1);
  color: #D4964A;
  border: 1px solid rgba(224,160,60,0.18);
}
.cs-badge--suspended, .cs-badge--overdue, .cs-badge--cancelled {
  background: rgba(184,91,91,0.1);
  color: #C06B6B;
  border: 1px solid rgba(184,91,91,0.18);
}
.cs-badge--info {
  background: var(--blue-glow);
  color: var(--text-blue);
  border: 1px solid var(--border-blue);
}
.cs-badge--default {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cs-badge__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Buttons ── */
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
}
.cs-btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(9,150,232,0.30);
}
.cs-btn--primary:hover {
  background: #5A9AE8;
  color: #fff;
  box-shadow: 0 4px 20px rgba(9,150,232,0.45);
  transform: translateY(-1px);
}
.cs-btn--primary:active { transform: translateY(0); }
.cs-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cs-btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}
.cs-btn--danger {
  background: rgba(184,91,91,0.15);
  color: #C06B6B;
  border: 1px solid rgba(184,91,91,0.25);
}
.cs-btn--danger:hover { background: rgba(184,91,91,0.25); color: #C06B6B; }
.cs-btn--sm { padding: 6px 12px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.cs-btn--lg { padding: 13px 28px; font-size: 0.9rem; }
.cs-btn--icon { padding: 8px; width: 34px; height: 34px; border-radius: var(--radius-sm); }

/* ── Forms ── */
.cs-form-group { margin-bottom: 18px; }
.cs-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: none;
}
.cs-input, .cs-select, .cs-textarea {
  width: 100%;
  background: var(--bg-input, #161A23);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 450;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cs-input::placeholder { color: var(--text-muted); }
.cs-input:focus, .cs-select:focus, .cs-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(9,150,232,0.06);
  box-shadow: 0 0 0 3px var(--blue-glow2);
}
.cs-input:hover, .cs-select:hover { border-color: rgba(255,255,255,0.12); }
.cs-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B90A8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.cs-select option { background: var(--bg-card); color: var(--text-primary); }
.cs-textarea { resize: vertical; min-height: 100px; }
.cs-form-hint { font-size: 0.73rem; color: var(--text-muted); margin-top: 5px; }
.cs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Service / Product Cards ── */
.cs-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cs-service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cs-service-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.cs-service-card:hover::before { opacity: 1; }
.cs-service-card__type {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cs-service-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cs-service-card__detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}
.cs-service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cs-service-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
}
.cs-service-card__price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Tickets ── */
.cs-ticket {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius-sm);
}
.cs-ticket:last-child { border-bottom: none; }
.cs-ticket:hover { background: var(--bg-hover); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.cs-ticket__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.cs-ticket__info { flex: 1; min-width: 0; }
.cs-ticket__subject {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-ticket__meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 3px; }
.cs-ticket__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ── Alerts ── */
.cs-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid;
}
.cs-alert--info { background: var(--blue-glow); border-color: var(--border-blue); color: var(--text-blue); }
.cs-alert--warning { background: rgba(224,160,60,0.08); border-color: rgba(224,160,60,0.2); color: #C8943E; }
.cs-alert--danger { background: rgba(184,91,91,0.08); border-color: rgba(184,91,91,0.2); color: #B87070; }
.cs-alert--success { background: rgba(91,171,122,0.08); border-color: rgba(91,171,122,0.2); color: #5BAB7A; }
.cs-alert__icon { flex-shrink: 0; margin-top: 1px; }

/* ── Progress ── */
.cs-progress {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.cs-progress__bar {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.cs-progress__bar--warn { background: #D4964A; }
.cs-progress__bar--danger { background: #C06B6B; }

.cs-usage { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.cs-usage__header { display: flex; justify-content: space-between; align-items: center; }
.cs-usage__label { font-size: 0.78rem; color: var(--text-secondary); }
.cs-usage__value { font-size: 0.75rem; color: var(--text-muted); }

/* ── Tabs ── */
.cs-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin-bottom: 22px;
}
.cs-tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 400;
  white-space: nowrap;
}
.cs-tab:hover { color: var(--text-secondary); }
.cs-tab.active {
  background: var(--bg-card2);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Domain Card ── */
.cs-domain {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cs-domain:last-child { border-bottom: none; }
.cs-domain__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cs-domain__name { font-size: 0.9rem; font-weight: 400; color: var(--text-primary); }
.cs-domain__meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.cs-domain__actions { margin-left: auto; display: flex; gap: 6px; }

/* ── Announcement ── */
.cs-announce {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.cs-announce:last-child { border-bottom: none; }
.cs-announce:hover { background: var(--bg-hover); }
.cs-announce__date {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.cs-announce__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cs-announce__preview { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Empty State ── */
.cs-empty { text-align: center; padding: 50px 24px; color: var(--text-muted); }
.cs-empty__icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.cs-empty__title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 6px; }
.cs-empty__body { font-size: 0.82rem; }

/* ── Auth (Login / Register) ── */
.cs-auth {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.cs-auth__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(9,150,232,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 100% 80%, rgba(77,100,200,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cs-auth__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(9,150,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,150,232,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.cs-auth__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06) inset;
  position: relative;
  z-index: 1;
}
.cs-auth__logo { text-align: center; margin-bottom: 30px; }
.cs-auth__logo img {
  height: 50px; width: auto; max-width: 220px;
  margin: 0 auto 18px; display: block;
  filter: drop-shadow(0 0 18px rgba(9, 150, 232, 0.30));
}
.cs-auth__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.cs-auth__sub { font-size: 0.8rem; color: var(--text-muted); }
.cs-auth__submit { width: 100%; margin-top: 6px; }
.cs-auth__links { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }
.cs-auth__divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 20px 0;
}
.cs-auth__divider::before, .cs-auth__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Footer ── */
.cs-footer {
  grid-area: footer;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 28px 28px 20px;
  position: relative;
}
.cs-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cs-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-footer__nav li { display: flex; align-items: center; }
.cs-footer__nav li:not(:last-child)::after {
  content: '·';
  color: var(--text-muted);
  margin: 0 8px;
  font-size: 0.8rem;
  opacity: 0.5;
}
.cs-footer__nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}
.cs-footer__nav a:hover { color: var(--text-blue); }

.cs-footer__tagline {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.cs-footer__tagline span.heart { color: #B85B7A; font-style: normal; }
.cs-footer__tagline span.coffee { color: #C8943E; font-style: normal; }

.cs-footer__badge {
  margin: 4px 0 6px;
  display: flex;
  justify-content: center;
}
.cs-footer__badge img {
  height: 90px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}
.cs-footer__badge img:hover { opacity: 1; }

.cs-footer__copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
  margin-top: 4px;
}

/* ── Invoice rows ── */
.cs-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cs-invoice-row:last-child { border-bottom: none; }
.cs-invoice-row__desc { font-size: 0.875rem; color: var(--text-secondary); }
.cs-invoice-row__amount { font-size: 0.875rem; color: var(--text-primary); font-weight: 400; }

/* ── Ticket conversation ── */
.cs-msg {
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 14px;
}
.cs-msg--staff {
  background: rgba(9,150,232,0.06);
  border-color: var(--border-blue);
}
.cs-msg__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cs-msg__author { font-size: 0.85rem; font-weight: 400; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.cs-msg__date { font-size: 0.74rem; color: var(--text-muted); }
.cs-msg__body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cs-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "header" "main" "footer";
  }
  .cs-sidebar { display: none; }
  .cs-main { padding: 18px; }
}

/* ── Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--text-muted); font-size: 0.8rem; }
.text-sm { font-size: 0.82rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ────────────────────────────────────────────────────────────
   BOOTSTRAP / SIX THEME DARK OVERRIDES
   These rules dark-mode any Six-theme page (cart, knowledgebase,
   etc.) that we haven't manually templated. Scoped to .cs-main
   so the auth pages aren't affected.
   ──────────────────────────────────────────────────────────── */

/* Reset Six's default container padding inside our main */
.cs-main .container,
.cs-main .container-fluid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Generic content text */
.cs-main p, .cs-main li, .cs-main span:not([class*="cs-"]):not([class*="badge"]) {
  color: var(--text-secondary);
}
.cs-main h1, .cs-main h2 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.01em;
}
.cs-main h3, .cs-main h4, .cs-main h5, .cs-main h6 {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
}
.cs-main h2 { font-size: 1.4rem; margin-bottom: 12px; }
.cs-main h3 { font-size: 1.1rem; margin-bottom: 10px; margin-top: 18px; }
.cs-main h4 { font-size: 0.98rem; margin-bottom: 8px; }
/* Order form section dividers (Six's "Configurable Options" "Additional Information") */
.cs-main h2.text-center, .cs-main h3.text-center {
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  padding: 14px 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.cs-main em, .cs-main i { font-style: normal; }
.cs-main em.small-info, .cs-main i.small-info { color: var(--text-muted); font-size: 0.85rem; }
.cs-main strong, .cs-main b { color: var(--text-primary); font-weight: 600; }

.cs-main .text-muted { color: var(--text-muted) !important; }
.cs-main .text-dark { color: var(--text-primary) !important; }
.cs-main .text-secondary { color: var(--text-secondary) !important; }
.cs-main .text-primary { color: var(--blue) !important; }
.cs-main .text-success { color: #5BAB7A !important; }
.cs-main .text-danger { color: #C06B6B !important; }
.cs-main .text-warning { color: #D4964A !important; }
.cs-main .text-info { color: var(--text-blue) !important; }

/* Background overrides */
.cs-main .bg-white,
.cs-main .bg-light,
.cs-main .bg-default { background: var(--bg-card) !important; color: var(--text-secondary) !important; }
.cs-main .bg-primary { background: var(--blue) !important; color: #fff !important; }
.cs-main .bg-secondary { background: var(--bg-card2) !important; }
.cs-main .bg-dark { background: var(--bg-base) !important; }

/* ── Cards / Panels (Bootstrap 4+) ── */
.cs-main .card,
.cs-main .panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.cs-main .card-header,
.cs-main .panel-heading,
.cs-main .panel-title {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cs-main .card-body,
.cs-main .panel-body { background: transparent !important; color: var(--text-secondary) !important; }
.cs-main .card-footer,
.cs-main .panel-footer {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}
.cs-main .card-title { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; }
.cs-main .card-subtitle { color: var(--text-muted); }

/* Well */
.cs-main .well {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
}

/* ── Buttons ── */
.cs-main .btn { border-radius: var(--radius-md); font-weight: 500; transition: all var(--transition); }
.cs-main .btn-primary,
.cs-main button.btn-primary,
.cs-main a.btn-primary {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(9,150,232,0.30);
}
.cs-main .btn-primary:hover {
  background: #5A9AE8 !important;
  border-color: #5A9AE8 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(9,150,232,0.45);
  transform: translateY(-1px);
}
.cs-main .btn-default,
.cs-main .btn-secondary,
.cs-main .btn-light {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}
.cs-main .btn-default:hover,
.cs-main .btn-secondary:hover,
.cs-main .btn-light:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.cs-main .btn-success {
  background: rgba(91,171,122,0.2) !important;
  border-color: rgba(91,171,122,0.3) !important;
  color: #5BAB7A !important;
}
.cs-main .btn-danger {
  background: rgba(184,91,91,0.15) !important;
  border-color: rgba(184,91,91,0.25) !important;
  color: #C06B6B !important;
}
.cs-main .btn-warning {
  background: rgba(224,160,60,0.15) !important;
  border-color: rgba(224,160,60,0.25) !important;
  color: #D4964A !important;
}
.cs-main .btn-info {
  background: var(--blue-glow) !important;
  border-color: var(--border-blue) !important;
  color: var(--text-blue) !important;
}
.cs-main .btn-link { color: var(--blue) !important; }
.cs-main .btn-link:hover { color: var(--text-blue) !important; }
.cs-main .btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--blue) !important;
  color: var(--blue) !important;
}
.cs-main .btn-outline-primary:hover {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ── Forms ── */
.cs-main .form-control,
.cs-main input.form-control,
.cs-main select.form-control,
.cs-main textarea.form-control,
.cs-main input[type=text],
.cs-main input[type=email],
.cs-main input[type=password],
.cs-main input[type=tel],
.cs-main input[type=number],
.cs-main input[type=url],
.cs-main input[type=search],
.cs-main input[type=date],
.cs-main select,
.cs-main textarea {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
}
.cs-main .form-control:focus,
.cs-main input:focus, .cs-main select:focus, .cs-main textarea:focus {
  border-color: var(--blue) !important;
  background: rgba(9,150,232,0.06) !important;
  box-shadow: 0 0 0 3px var(--blue-glow2) !important;
  outline: none !important;
  color: var(--text-primary) !important;
}
.cs-main .form-control::placeholder { color: var(--text-muted) !important; }
.cs-main .form-control[readonly],
.cs-main .form-control[disabled] {
  background: var(--bg-base) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}
.cs-main label, .cs-main .control-label, .cs-main .form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
}
.cs-main .form-text, .cs-main small.form-text { color: var(--text-muted); }
.cs-main .input-group-addon, .cs-main .input-group-text {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}

/* Checkboxes & radios */
.cs-main input[type=checkbox], .cs-main input[type=radio] { accent-color: var(--blue); }

/* ── Tables ── */
.cs-main table.table,
.cs-main .table {
  color: var(--text-secondary) !important;
  background: transparent !important;
  border-color: var(--border) !important;
}
/* Only apply uppercase header styling to tables WITH a thead element (data tables) */
.cs-main table.table thead th,
.cs-main .table thead th {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600 !important;
  border-color: var(--border) !important;
  background: transparent !important;
}
/* Form-style tables: th is a label, keep it readable */
.cs-main table:not(.table) th,
.cs-main table.form th,
.cs-main table.formtable th,
.cs-main form table th {
  color: var(--text-primary) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  padding: 10px 14px 10px 0 !important;
  vertical-align: middle !important;
  border: none !important;
  width: auto;
}
/* Form-style table cells */
.cs-main table:not(.table) td,
.cs-main table.form td,
.cs-main form table td {
  padding: 6px 0 6px 0 !important;
  vertical-align: middle !important;
  border: none !important;
  color: var(--text-primary);
}
.cs-main table.table td,
.cs-main .table td {
  border-color: rgba(255,255,255,0.04) !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
}
.cs-main table.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255,255,255,0.015) !important;
}
.cs-main table.table-hover tbody tr:hover,
.cs-main .table-hover tbody tr:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary);
}

/* ── List groups ── */
.cs-main .list-group { border-radius: var(--radius-lg); overflow: hidden; }
.cs-main .list-group-item {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
  padding: 12px 18px;
}
.cs-main .list-group-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
.cs-main .list-group-item.active {
  background: var(--blue-glow) !important;
  border-color: var(--border-blue) !important;
  color: var(--text-blue) !important;
}
.cs-main .list-group-item-action { color: var(--text-secondary) !important; }

/* ── Alerts ── */
.cs-main .alert {
  border-radius: var(--radius-md) !important;
  font-size: 0.85rem;
  padding: 14px 18px;
  border: 1px solid;
}
.cs-main .alert-info { background: var(--blue-glow) !important; border-color: var(--border-blue) !important; color: var(--text-blue) !important; }
.cs-main .alert-warning { background: rgba(224,160,60,0.08) !important; border-color: rgba(224,160,60,0.2) !important; color: #C8943E !important; }
.cs-main .alert-danger { background: rgba(184,91,91,0.08) !important; border-color: rgba(184,91,91,0.2) !important; color: #B87070 !important; }
.cs-main .alert-success { background: rgba(91,171,122,0.08) !important; border-color: rgba(91,171,122,0.2) !important; color: #5BAB7A !important; }

/* ── Modals ── */
.cs-main .modal-content, body .modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-secondary);
}
body .modal-header { border-bottom: 1px solid var(--border) !important; color: var(--text-primary); }
body .modal-footer { border-top: 1px solid var(--border) !important; }
body .modal-title { color: var(--text-primary) !important; font-family: var(--font-display); font-weight: 600; }
body .close, body .btn-close { color: var(--text-secondary); opacity: 0.7; text-shadow: none; }

/* ── Dropdowns ── */
.cs-main .dropdown-menu, body .dropdown-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
}
.cs-main .dropdown-item, body .dropdown-item {
  color: var(--text-secondary) !important;
}
.cs-main .dropdown-item:hover, body .dropdown-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
.cs-main .dropdown-divider, body .dropdown-divider { border-color: var(--border) !important; }

/* ── Nav tabs ── */
.cs-main .nav-tabs {
  border-bottom: 1px solid var(--border);
}
.cs-main .nav-tabs .nav-link {
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
}
.cs-main .nav-tabs .nav-link:hover {
  color: var(--text-secondary);
  border-color: transparent;
}
.cs-main .nav-tabs .nav-link.active {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) var(--border) var(--bg-card) !important;
}
.cs-main .nav-pills .nav-link {
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.cs-main .nav-pills .nav-link.active {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ── Pagination ── */
.cs-main .pagination .page-link {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
.cs-main .pagination .page-item.active .page-link {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}

/* ── Badges (Bootstrap) ── */
.cs-main .badge { border-radius: 99px; padding: 3px 9px; font-weight: 500; }
.cs-main .badge-primary { background: var(--blue) !important; color: #fff !important; }
.cs-main .badge-success { background: rgba(91,171,122,0.15) !important; color: #5BAB7A !important; }
.cs-main .badge-warning { background: rgba(224,160,60,0.15) !important; color: #D4964A !important; }
.cs-main .badge-danger { background: rgba(184,91,91,0.15) !important; color: #C06B6B !important; }
.cs-main .badge-info { background: var(--blue-glow) !important; color: var(--text-blue) !important; }
.cs-main .badge-default, .cs-main .badge-secondary { background: rgba(255,255,255,0.05) !important; color: var(--text-secondary) !important; }

/* ── Progress bars ── */
.cs-main .progress {
  background: rgba(255,255,255,0.07) !important;
  border-radius: 99px;
  height: 6px;
}
.cs-main .progress-bar {
  background: var(--blue) !important;
}

/* ── Six theme: cart / order form specific ── */

/* Hero section that some order forms use */
.cs-main .hero-section,
.cs-main .header-lined { color: var(--text-primary); }

/* Cart product grid — Six's standard cart */
.cs-main .product-card,
.cs-main .product-pricing,
.cs-main .pricing-card,
.cs-main .package {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  margin-bottom: 18px;
}
.cs-main .product-card:hover,
.cs-main .product-pricing:hover,
.cs-main .pricing-card:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.cs-main .product-card .price,
.cs-main .product-pricing .price {
  color: var(--text-blue) !important;
  font-family: var(--font-display);
  font-weight: 600;
}
.cs-main .product-desc, .cs-main .product-details { color: var(--text-secondary) !important; }

/* Order summary sidebar */
.cs-main .order-summary, .cs-main .cart-summary {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px;
}
.cs-main .order-summary h2, .cs-main .order-summary h3 { color: var(--text-primary); font-family: var(--font-display); }
.cs-main .order-summary .total { color: var(--text-blue) !important; font-weight: 600; }

/* Shopping cart category sidebar */
.cs-main .order-categories,
.cs-main .order-sidebar {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px;
}
.cs-main .order-categories ul,
.cs-main .order-sidebar ul { list-style: none; padding: 0; margin: 0; }
.cs-main .order-categories ul li a,
.cs-main .order-sidebar ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.cs-main .order-categories ul li a:hover,
.cs-main .order-sidebar ul li a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Configurable options & form rows */
.cs-main .config-option, .cs-main .config-options { background: transparent !important; }
.cs-main .panel-configurable-options,
.cs-main .panel-product { background: var(--bg-card) !important; border: 1px solid var(--border) !important; }

/* Domain checker results */
.cs-main .domain-checker-result,
.cs-main .domain-result {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
}
.cs-main .domain-result.available { border-color: rgba(91,171,122,0.3) !important; }
.cs-main .domain-result.unavailable { border-color: rgba(184,91,91,0.3) !important; }

/* Generic Six elements */
.cs-main hr { border-color: var(--border) !important; }
.cs-main code, .cs-main pre {
  background: var(--bg-input) !important;
  color: var(--text-blue) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.85em;
}
.cs-main blockquote {
  border-left: 3px solid var(--border-blue);
  padding-left: 16px;
  color: var(--text-secondary);
}

/* Knowledgebase article cards */
.cs-main .kb-article, .cs-main .kbarticle, .cs-main .kbcategory {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  transition: all var(--transition);
}
.cs-main .kb-article:hover, .cs-main .kbcategory:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-1px);
}

/* Domain availability cells */
.cs-main td.availability-available { color: #5BAB7A !important; }
.cs-main td.availability-unavailable { color: #C06B6B !important; }

/* Six "Powered By" footer label hide */
.cs-main .powered-by, .cs-main .copyright-info { color: var(--text-muted) !important; font-size: 0.75rem; }

/* Make the page-header (h1.page-header) match our look */
.cs-main h1.page-header,
.cs-main .page-header {
  border: none;
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* Breadcrumb (six's bootstrap one) — hide since we have our own */
.cs-main .breadcrumb {
  display: none;
}

/* Generic links */
.cs-main a { color: var(--blue); }
.cs-main a:hover { color: var(--text-blue); }

/* Tooltips */
body .tooltip-inner {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* Captcha border */
.cs-main .g-recaptcha { display: inline-block; }

/* Make sure cart page top "Continue Shopping" / "Checkout" buttons stand out */
.cs-main .checkout-btn,
.cs-main .continue-shopping {
  margin: 6px 4px;
}

/* ────────────────────────────────────────────────────────────
   FIXES FOR SIX THEME EDGE CASES
   ──────────────────────────────────────────────────────────── */

/* Six's .header-lined sections (configureproduct.tpl uses these) */
.cs-main h2.header-lined,
.cs-main h3.header-lined,
.cs-main h4.header-lined,
.cs-main .header-lined {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: left !important;
  padding: 0 0 12px !important;
  margin: 28px 0 18px !important;
  font-family: var(--font-display) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.01em !important;
  position: relative;
  background: transparent !important;
}
.cs-main h2.header-lined::before,
.cs-main h3.header-lined::before,
.cs-main h4.header-lined::before,
.cs-main h2.header-lined::after,
.cs-main h3.header-lined::after,
.cs-main h4.header-lined::after,
.cs-main .header-lined::before,
.cs-main .header-lined::after { display: none !important; content: none !important; }
.cs-main h2.header-lined span,
.cs-main h3.header-lined span,
.cs-main h4.header-lined span,
.cs-main .header-lined span {
  background: transparent !important;
  padding: 0 !important;
  color: var(--text-primary) !important;
  font-style: normal !important;
}

/* Catch any rogue italic/blue rendering on Six headings inside cs-main */
.cs-main em,
.cs-main i {
  font-style: italic;
  color: inherit;
}
.cs-main h1, .cs-main h2, .cs-main h3, .cs-main h4, .cs-main h5, .cs-main h6 {
  font-style: normal !important;
}

/* "(required fields are marked with *)" type copy */
.cs-main p.required-fields,
.cs-main small.required-fields,
.cs-main .required-fields,
.cs-main .text-center em {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}

/* DDoS / addon vendor pills inside select/options */
.cs-main img[src*="logo"] { max-height: 30px; }

/* ── Quick-action grid in dashboard ── */
.cs-quick-actions {
  display: flex !important;
  gap: 10px;
  flex-wrap: wrap;
}
.cs-quick-actions > a,
.cs-quick-actions > button {
  flex: 1 1 calc(25% - 8px);
  min-width: 150px;
  white-space: nowrap;
}

/* Make sure cs-btn primary always shows its text label */
.cs-btn--primary, .cs-btn--ghost, .cs-btn--danger {
  color: inherit;
}
.cs-btn--primary { color: #fff !important; }
.cs-btn--ghost { color: var(--text-secondary) !important; }
.cs-btn--ghost:hover { color: var(--text-primary) !important; }
.cs-btn--danger { color: #C06B6B !important; }
.cs-btn span, .cs-btn { font-weight: 500; }

/* Custom scoped "{$selecteddepartment} >>" type breadcrumb fixes */
.cs-main .breadcrumb,
.cs-main ol.breadcrumb,
.cs-main ul.breadcrumb { display: none !important; }

/* Bootstrap row/col fixes inside our main */
.cs-main .row { margin-left: -8px; margin-right: -8px; }
.cs-main .row > [class^="col-"], .cs-main .row > [class*=" col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

/* DDoS protection brand-row (image + select) */
.cs-main .brand-row, .cs-main .form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Invoice-specific styles (custom viewinvoice.tpl) ── */
.cs-invoice-doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.cs-invoice-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.cs-invoice-doc__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-invoice-doc__brand img { height: 40px; width: auto; }
.cs-invoice-doc__brand-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cs-invoice-doc__meta {
  text-align: right;
}
.cs-invoice-doc__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cs-invoice-doc__dates {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.cs-invoice-doc__addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 26px;
}
.cs-invoice-doc__addr-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.cs-invoice-doc__addr-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.cs-invoice-doc__addr-name {
  color: var(--text-primary);
  font-weight: 500;
}
.cs-invoice-doc__items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.cs-invoice-doc__items th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.cs-invoice-doc__items th:last-child,
.cs-invoice-doc__items td:last-child { text-align: right; }
.cs-invoice-doc__items td {
  padding: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
  vertical-align: top;
}
.cs-invoice-doc__items td.primary { color: var(--text-primary); }
.cs-invoice-doc__totals {
  display: flex;
  justify-content: flex-end;
  padding: 18px 14px 0;
}
.cs-invoice-doc__totals-table {
  width: 320px;
  border-collapse: collapse;
}
.cs-invoice-doc__totals-table td {
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.cs-invoice-doc__totals-table td:last-child {
  text-align: right;
  color: var(--text-primary);
  font-weight: 500;
}
.cs-invoice-doc__totals-table tr.total td {
  border-top: 2px solid var(--border-blue);
  padding-top: 14px;
  margin-top: 8px;
  font-size: 1.1rem;
}
.cs-invoice-doc__totals-table tr.total td:last-child {
  color: var(--text-blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}

@media print {
  .cs-sidebar, .cs-header, .cs-footer, .cs-page-header, .cs-stats { display: none !important; }
  .cs-shell { display: block !important; }
  .cs-main { padding: 0 !important; }
  body { background: white !important; color: black !important; }
  .cs-invoice-doc { box-shadow: none; border: 1px solid #ccc; background: white; color: black; }
}

/* ════════════════════════════════════════════════════════════
   ADDITIONAL FIXES — order forms, addfunds, ticket forms,
   invoice view, and other Six theme pages.
   ════════════════════════════════════════════════════════════ */

/* === Order form / cart configuration === */
.cs-main #order-product-summary,
.cs-main .product-info-row,
.cs-main .cart-product-row,
.cs-main .product-detail {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* Cart "Choose Billing Cycle" / "Configurable Options" section dividers */
.cs-main hr,
.cs-main .order-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Domain checker / order form sections */
.cs-main .order-form-section,
.cs-main .form-section,
.cs-main .panel-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px !important;
  margin-bottom: 20px;
}

/* Configurable option rows */
.cs-main .config-option,
.cs-main .config-options-row,
.cs-main .row.configurable-option {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cs-main .config-option:last-child,
.cs-main .config-options-row:last-child { border-bottom: none; }

/* Order form labels */
.cs-main .product-name,
.cs-main .package-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* "These can always be changed later" tagline-style text */
.cs-main p.text-center em,
.cs-main p em {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Required fields marker */
.cs-main .required-marker, .cs-main .required {
  color: #C06B6B;
  font-weight: 500;
}

/* === Add Funds page === */
.cs-main .addfunds-form,
.cs-main #frmAddFunds {
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0 auto;
}
.cs-main .addfunds-form table,
.cs-main #frmAddFunds table { width: 100%; }
.cs-main #frmAddFunds td:first-child { width: 35%; padding-right: 16px; }

/* === Submit ticket / Open ticket page === */
.cs-main .ticket-departments,
.cs-main .department-list,
.cs-main .deptselection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.cs-main .ticket-department,
.cs-main .department-card,
.cs-main .deptselection > a,
.cs-main .deptselection > div > a {
  display: block;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px 22px !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: all var(--transition);
  cursor: pointer;
}
.cs-main .ticket-department:hover,
.cs-main .department-card:hover,
.cs-main .deptselection > a:hover,
.cs-main .deptselection > div > a:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-2px);
  background: rgba(9,150,232,0.06) !important;
  box-shadow: var(--shadow-blue);
}

/* Ticket reply / message blocks */
.cs-main .ticket-replies > div,
.cs-main .ticket-message,
.cs-main .reply,
.cs-main .response {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px 22px !important;
  margin-bottom: 14px;
}
.cs-main .ticket-message.staff,
.cs-main .reply.staff,
.cs-main .response.staff {
  background: rgba(9,150,232,0.05) !important;
  border-color: var(--border-blue) !important;
}

/* === Invoice view === */
.cs-main .invoice {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 32px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.cs-main .invoice h1,
.cs-main .invoice h2,
.cs-main .invoice h3 {
  color: var(--text-primary) !important;
}
.cs-main .invoice-items table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cs-main .invoice-total,
.cs-main .invoice-summary {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 16px 20px !important;
  margin-top: 16px;
}
.cs-main .invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
}
.cs-main .invoice-status.paid {
  background: rgba(91,171,122,0.12);
  color: #5BAB7A;
  border: 1px solid rgba(91,171,122,0.25);
}
.cs-main .invoice-status.unpaid {
  background: rgba(224,160,60,0.12);
  color: #D4964A;
  border: 1px solid rgba(224,160,60,0.25);
}

/* === Contact / generic paragraph blocks === */
.cs-main p { color: var(--text-secondary); line-height: 1.65; }
.cs-main p.lead { font-size: 1.05rem; color: var(--text-primary); }

/* Grid spacing tweaks for Bootstrap rows inside our main */
.cs-main .row { margin-left: -10px; margin-right: -10px; }
.cs-main .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }

/* Make sure default body text in Six pages reads bold-enough */
.cs-main { font-weight: 450; }
.cs-main label { font-weight: 600; }

/* Stat/header labels stay uppercase + tighter */
.cs-stat__label { font-weight: 600 !important; }

/* Footer tagline a touch bigger */
.cs-footer__tagline { font-size: 1.02rem; }

/* Nav badge a hair bigger */
.cs-nav__badge { font-size: 0.7rem; padding: 2px 8px; }

/* Ensure cs-main is always rendered with sensible padding even on Six pages */
.cs-main > * { box-sizing: border-box; }
.cs-main > .container,
.cs-main > .container-fluid { padding: 0; max-width: none; }

/* Button text alignment fix - avoid invisible text */
.cs-btn { min-width: 0; }
.cs-btn span { white-space: nowrap; }

/* "Powered by WHMCS" footer text */
.copyright-info { color: var(--text-muted) !important; font-size: 0.72rem; }

/* ════════════════════════════════════════════════════════════
   V5 FIXES — cart overrides, notification dropdown,
   close account hide, focus rings, knowledgebase, and
   misc Six-theme aggressive overrides.
   ════════════════════════════════════════════════════════════ */

/* ── Remove default browser focus ring on links/buttons inside main ── */
.cs-main a:focus, .cs-main button:focus, .cs-main .btn:focus {
  outline: none !important;
  box-shadow: none !important;
}
.cs-main a:focus-visible, .cs-main button:focus-visible, .cs-main .btn:focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* ── Hide "Close Account" section across known Six markup variants ── */
.cs-main .panel-danger,
.cs-main .panel.panel-danger,
.cs-main .card.border-danger,
.cs-main .card-danger,
.cs-main #closeAccountModal,
.cs-main #closeAccount,
.cs-main .closeAccount,
.cs-main form[action*="closeaccount"],
.cs-main .panel:has([href*="cancel.php"]),
.cs-main .panel:has([href*="closeaccount"]),
.cs-main .card:has([href*="cancel.php"]),
.cs-main .card:has([href*="closeaccount"]),
.cs-main .panel:has(button[name*="closeaccount"]),
.cs-main .card:has(button[name*="closeaccount"]) {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   ORDER FORM (Six standard_cart) — AGGRESSIVE OVERRIDES
   The order form ships its own stylesheet that paints products
   with white backgrounds. We hit every known class with high
   specificity to force dark theming.
   ════════════════════════════════════════════════════════════ */

/* Reset the white product cards */
.cs-main #order-standard_cart,
.cs-main #order-form,
.cs-main #orderForm,
.cs-main #order-products,
.cs-main #products,
.cs-main #order-summary,
.cs-main .product-listing,
.cs-main .order-form-container {
  background: transparent !important;
}

/* Each product row in product list */
.cs-main #order-standard_cart .package,
.cs-main #order-form .package,
.cs-main #products .package,
.cs-main .package,
.cs-main .product,
.cs-main .product-info,
.cs-main .pricing-table,
.cs-main .product-row,
.cs-main .product-listing-row,
.cs-main .product-card,
.cs-main #order-form > div > .row,
.cs-main #products > div > .row,
body .cs-main .package {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  padding: 22px !important;
  margin-bottom: 16px !important;
  box-shadow: var(--shadow-card) !important;
  transition: all var(--transition);
}

.cs-main #order-form .package:hover,
.cs-main #products .package:hover,
.cs-main .package:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue) !important;
}

/* Product names within cards */
.cs-main .package h3, .cs-main .package h4, .cs-main .package .name, .cs-main .package .product-name,
.cs-main .package-name, .cs-main .product .name {
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  margin-bottom: 6px;
}

/* Product descriptions */
.cs-main .package p, .cs-main .package .description, .cs-main .product-desc,
.cs-main .package-desc, .cs-main .pricing-table p {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
}

/* Price area */
.cs-main .package .price, .cs-main .package-price, .cs-main .product-price,
.cs-main .price, .cs-main .pricing-table .price {
  color: var(--text-blue) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.2rem;
}
.cs-main .package .priceLabel, .cs-main .price-label {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* "Order Now" buttons in the product list */
.cs-main #order-form .btn-success, .cs-main #products .btn-success,
.cs-main .package .btn-success, .cs-main a.btn-success {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 12px rgba(9,150,232,0.30) !important;
}
.cs-main #order-form .btn-success:hover, .cs-main #products .btn-success:hover,
.cs-main .package .btn-success:hover {
  background: #5A9AE8 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(9,150,232,0.45) !important;
}

/* Product configure page hero */
.cs-main #order-standard_cart h1,
.cs-main #order-form h1,
.cs-main .order-product-title,
.cs-main #productInfo h2,
.cs-main #productInfo h1 {
  color: var(--text-primary) !important;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  background: transparent !important;
}

/* Product info card on configure page (the white "Valheim Server Hosting" box) */
.cs-main #productInfo,
.cs-main .product-info-box,
.cs-main .product-detail,
.cs-main .product-details,
.cs-main #productInfoBox,
.cs-main .product-banner {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  text-align: center;
  color: var(--text-primary) !important;
}

/* Order summary right rail */
.cs-main #orderSummary, .cs-main #order-summary,
.cs-main .order-summary, .cs-main .summary-container,
.cs-main #cart-totals, .cs-main .cart-summary,
.cs-main #orderSummary .panel-body, .cs-main #order-summary .panel-body {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px !important;
  color: var(--text-primary) !important;
}
.cs-main #orderSummary .panel-heading, .cs-main #order-summary .panel-heading,
.cs-main .order-summary .panel-heading {
  background: transparent !important;
  border: none !important;
  padding: 0 0 14px 0 !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
}
/* Inner "loading" or empty area in summary */
.cs-main #orderSummary > div, .cs-main #order-summary > div,
.cs-main .order-summary > div {
  background: transparent !important;
  color: var(--text-secondary);
}

/* Continue / Checkout buttons in cart */
.cs-main #checkoutBtn, .cs-main .checkoutBtn,
.cs-main button[type="submit"][value*="checkout"],
.cs-main a.checkout-btn, .cs-main a.continue-shopping {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 11px 24px !important;
  border-radius: var(--radius-md) !important;
}

/* Categories sidebar in cart */
.cs-main .order-form-categories,
.cs-main .product-list-categories,
.cs-main #order-cart .well,
.cs-main #order-form > .col-md-3 > div {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}
.cs-main .order-form-categories ul,
.cs-main .product-list-categories ul { list-style: none; padding: 8px; margin: 0; }
.cs-main .order-form-categories ul li a,
.cs-main .product-list-categories ul li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 500;
}
.cs-main .order-form-categories ul li a:hover,
.cs-main .product-list-categories ul li a:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
.cs-main .order-form-categories ul li.active a,
.cs-main .product-list-categories ul li.active a {
  background: var(--blue-glow) !important;
  color: var(--text-blue) !important;
}
/* Section dividers in cart sidebar */
.cs-main .order-form-categories h4,
.cs-main .product-list-categories h4,
.cs-main #order-cart h4 {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.02) !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

/* Promo / Trial info banners (alerts) on configure page */
.cs-main .promo-banner, .cs-main .trial-info,
.cs-main .alert-promo, .cs-main .alert-trial {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-blue) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
  margin-bottom: 14px;
  color: var(--text-secondary) !important;
}

/* Generic NUCLEAR overrides — catch any remaining white-backed elements
   inside the order form (last resort for elements with inline styles) */
.cs-main #order-standard_cart [style*="background:#fff"],
.cs-main #order-standard_cart [style*="background: #fff"],
.cs-main #order-standard_cart [style*="background-color:#fff"],
.cs-main #order-standard_cart [style*="background-color: #fff"],
.cs-main #order-standard_cart [style*="background:rgb(255"],
.cs-main #order-standard_cart [style*="background: rgb(255"],
.cs-main #order-form [style*="background:#fff"],
.cs-main #order-form [style*="background: #fff"],
.cs-main #order-form [style*="background-color:#fff"],
.cs-main #order-form [style*="background-color: #fff"],
.cs-main [class*="package"] [style*="white"],
.cs-main [class*="product"] [style*="white"] {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* ════════════════════════════════════════════════════════════
   KNOWLEDGEBASE
   ════════════════════════════════════════════════════════════ */
.cs-main #knowledgebase, .cs-main .knowledgebase-page {
  background: transparent !important;
}
.cs-main .kb-search, .cs-main #kbsearch, .cs-main .kbsearch {
  margin: 24px 0;
}
.cs-main .kb-categories,
.cs-main .knowledgebase-categories,
.cs-main .kb-articles,
.cs-main .knowledgebase-articles {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}
.cs-main .kb-categories:empty::after,
.cs-main .knowledgebase-categories:empty::after,
.cs-main .kb-articles:empty::after,
.cs-main .knowledgebase-articles:empty::after,
.cs-main #knowledgebase .well:empty::after {
  content: "No articles available yet — check back soon.";
  display: block;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.cs-main .kbcategory, .cs-main .kb-category-item {
  display: block;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all var(--transition);
}
.cs-main .kbcategory:hover, .cs-main .kb-category-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text-blue) !important;
}
.cs-main .kbcategory:last-child, .cs-main .kb-category-item:last-child {
  border-bottom: none;
}

/* ════════════════════════════════════════════════════════════
   NOTIFICATION DROPDOWN PANEL
   ════════════════════════════════════════════════════════════ */
.cs-notif-wrap { position: relative; display: inline-block; }

.cs-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.05) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
  overflow: hidden;
}
.cs-notif-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cs-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cs-notif-panel__head-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.cs-notif-panel__head-count {
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.cs-notif-panel__body {
  max-height: 360px;
  overflow-y: auto;
}
.cs-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.cs-notif-item:hover {
  background: var(--bg-hover);
}
.cs-notif-item:last-child { border-bottom: none; }
.cs-notif-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-blue);
}
.cs-notif-item__icon--warn { background: rgba(224,160,60,0.15); border-color: rgba(224,160,60,0.3); color: #D4964A; }
.cs-notif-item__icon--success { background: rgba(91,171,122,0.12); border-color: rgba(91,171,122,0.25); color: #5BAB7A; }
.cs-notif-item__title { color: var(--text-primary); font-weight: 500; font-size: 0.92rem; margin-bottom: 2px; }
.cs-notif-item__sub { font-size: 0.78rem; color: var(--text-muted); }
.cs-notif-panel__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.cs-notif-panel__foot a {
  font-size: 0.82rem;
  color: var(--text-blue);
  font-weight: 500;
}
.cs-notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}
.cs-notif-empty__icon { font-size: 30px; opacity: 0.4; margin-bottom: 8px; }
.cs-notif-empty__text { font-size: 0.88rem; }

/* Bell button - active state when panel open */
.cs-header__btn.is-active { background: var(--bg-hover); color: var(--text-primary); border-color: rgba(255,255,255,0.12); }

/* Spacing fix for cs-main on Six pages so the sidebar doesn't overlap */
.cs-main { min-height: calc(100vh - 60px - 200px); }

/* Better default link color in cart breadcrumb area */
.cs-header__breadcrumb a { color: var(--text-secondary); }
.cs-header__breadcrumb a:hover { color: var(--text-primary); }

/* Card-deck/card-columns inside main */
.cs-main .card-deck .card,
.cs-main .card-columns .card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

/* ════════════════════════════════════════════════════════════
   V6 — STANDARD_CART AGGRESSIVE OVERRIDES
   Targets actual classes from WHMCS/orderforms-standard_cart.
   Uses body-prefix + html-prefix for max specificity to win
   over the order form's own stylesheet.
   ════════════════════════════════════════════════════════════ */

/* The whole standard_cart wrapper has these IDs/classes */
html body #order-standard_cart,
html body .order-standard-cart,
html body #order-form,
html body #orderForm {
  background: transparent !important;
  color: var(--text-primary) !important;
}

/* Bootstrap panels (standard_cart wraps EVERY product in .panel.panel-default.panel-product) */
html body .cs-main .panel,
html body .cs-main .panel.panel-default,
html body .cs-main .panel-product,
html body .cs-main .panel-addon,
html body .cs-main .panel-cart,
html body .cs-main .panel-summary,
html body .cs-main .panel-info,
html body .cs-main .card,
html body .cs-main .card.panel,
html body .cs-main .card.panel-default,
html body .cs-main .card.panel-product,
html body .cs-main .card.panel-addon {
  background-color: var(--bg-card) !important;
  background-image: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-card) !important;
}

html body .cs-main .panel > .panel-body,
html body .cs-main .panel > .card-body,
html body .cs-main .panel-product > .panel-body,
html body .cs-main .panel-product > .card-body,
html body .cs-main .panel-product .panel-body,
html body .cs-main .panel-addon .panel-body,
html body .cs-main .panel-addon .card-body,
html body .cs-main .panel-default > .panel-body,
html body .cs-main .panel-default > .card-body {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
}

html body .cs-main .panel > .panel-heading,
html body .cs-main .panel > .card-header,
html body .cs-main .panel-default > .panel-heading,
html body .cs-main .panel-default > .card-header {
  background: rgba(255,255,255,0.02) !important;
  background-color: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

html body .cs-main .panel > .panel-footer,
html body .cs-main .panel > .card-footer {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}

/* Hover state */
html body .cs-main .panel-product:hover,
html body .cs-main .card.panel-product:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue) !important;
  transition: all var(--transition);
}

/* Product NAME inside panel */
html body .cs-main .panel-product h3,
html body .cs-main .panel-product .panel-heading,
html body .cs-main .panel-product .card-header,
html body .cs-main .panel-product .package-name,
html body .cs-main .panel-product .product-name {
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.15rem !important;
  background: transparent !important;
}

/* Product description */
html body .cs-main .panel-product p,
html body .cs-main .panel-product .package-description,
html body .cs-main .panel-product .product-desc {
  color: var(--text-secondary) !important;
}

/* Pricing */
html body .cs-main .panel-product .price,
html body .cs-main .panel-product .package-price,
html body .cs-main .pricing-cycle,
html body .cs-main .price,
html body .cs-main .package-price {
  color: var(--text-blue) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.3rem !important;
}
html body .cs-main .package-price-from,
html body .cs-main .package-price-cycle,
html body .cs-main .from-pricing,
html body .cs-main .pricing-cycle small {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Order Now button */
html body .cs-main .panel-product .btn,
html body .cs-main .panel-product .btn-success,
html body .cs-main .panel-product a.btn,
html body .cs-main .panel-product .btn-default,
html body .cs-main .panel-product button[type="submit"] {
  background: var(--blue) !important;
  background-color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  padding: 9px 22px !important;
  box-shadow: 0 2px 12px rgba(9,150,232,0.30) !important;
}
html body .cs-main .panel-product .btn:hover,
html body .cs-main .panel-product a.btn:hover,
html body .cs-main .panel-product button:hover {
  background: #5A9AE8 !important;
  background-color: #5A9AE8 !important;
  color: #fff !important;
}

/* Sidebar categories within cart */
html body .cs-main .sidebar-categories,
html body .cs-main #sidebar-categories,
html body .cs-main .order-summary,
html body .cs-main #orderSummary,
html body .cs-main .cart-summary {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--text-primary) !important;
}
html body .cs-main .sidebar-categories .panel-heading,
html body .cs-main .sidebar-categories h3,
html body .cs-main .sidebar-categories h4 {
  background: rgba(255,255,255,0.03) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 18px !important;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  margin: 0 !important;
}
html body .cs-main .sidebar-categories .list-group,
html body .cs-main .sidebar-categories ul {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 6px !important;
}
html body .cs-main .sidebar-categories .list-group-item,
html body .cs-main .sidebar-categories ul li,
html body .cs-main .sidebar-categories ul li a {
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary) !important;
  padding: 9px 14px !important;
  border-radius: var(--radius-sm) !important;
}
html body .cs-main .sidebar-categories .list-group-item:hover,
html body .cs-main .sidebar-categories ul li a:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
html body .cs-main .sidebar-categories .list-group-item.active,
html body .cs-main .sidebar-categories .list-group-item.active a,
html body .cs-main .sidebar-categories ul li.active a {
  background: var(--blue-glow) !important;
  color: var(--text-blue) !important;
  border: none !important;
}

/* Configure product page top header */
html body .cs-main .header-lined,
html body .cs-main #productHeader,
html body .cs-main .product-header {
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  padding: 24px 0 !important;
}
html body .cs-main .header-lined h1,
html body .cs-main #productHeader h1,
html body .cs-main .product-header h1 {
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 2rem !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
}

/* Trial / promo info banner on configure page */
html body .cs-main .alert-info,
html body .cs-main .panel-info,
html body .cs-main .promo-banner {
  background: var(--blue-glow) !important;
  background-color: var(--blue-glow) !important;
  border: 1px solid var(--border-blue) !important;
  color: var(--text-blue) !important;
  border-radius: var(--radius-md) !important;
}
html body .cs-main .alert-info strong,
html body .cs-main .alert-info b,
html body .cs-main .alert-info p,
html body .cs-main .panel-info p {
  color: var(--text-blue) !important;
}

/* Trial info specifically (orange) */
html body .cs-main .alert-warning,
html body .cs-main .panel-warning {
  background: rgba(224,160,60,0.08) !important;
  border: 1px solid rgba(224,160,60,0.2) !important;
  color: #D4964A !important;
}

/* Remove white container backgrounds (the big `<div>` that wraps the whole product card) */
html body .cs-main [class*="-container"]:not(.cs-stat),
html body .cs-main .container-fluid {
  background: transparent !important;
}

/* WHMCS sometimes uses .pull-right or float-right with a colored bg for button rails */
html body .cs-main .pull-right, html body .cs-main .float-right { background: transparent !important; }

/* Captcha and similar embedded widgets - leave their own styling */
html body .cs-main .g-recaptcha, html body .cs-main iframe { background: initial !important; }

/* Prevent panel inner shadow */
html body .cs-main .panel { box-shadow: var(--shadow-card) !important; }

/* The `panel-success` (green) sometimes used for "Available" boxes */
html body .cs-main .panel-success,
html body .cs-main .panel-success > .panel-body,
html body .cs-main .panel-success > .panel-heading {
  background: rgba(91,171,122,0.06) !important;
  border-color: rgba(91,171,122,0.25) !important;
  color: #5BAB7A !important;
}

/* Ensure white SVGs / images don't show up oddly */
html body .cs-main img.product-image-circle,
html body .cs-main .product-image-circle,
html body .cs-main .product-thumb,
html body .cs-main .product-thumb img {
  background: transparent !important;
}

/* Product banner image area on configure page (the "V" Valheim logo white bg) */
html body .cs-main .text-center > img,
html body .cs-main .product-image-container,
html body .cs-main .product-banner,
html body .cs-main .product-image {
  background: transparent !important;
}

/* Generic bg-white kill switch */
html body .cs-main .bg-white,
html body .cs-main .bg-light,
html body .cs-main *[class*="bg-white"] {
  background: var(--bg-card) !important;
  background-color: var(--bg-card) !important;
}

/* Some carts use raw <div style="background-color:#fff"> or :white; we kill those too */
html body .cs-main div[style*="#fff"],
html body .cs-main div[style*="#FFF"],
html body .cs-main div[style*="white"],
html body .cs-main div[style*="rgb(255"] {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* Prevent any remaining .container width clamp inside our main grid */
html body .cs-main > .container { max-width: 100% !important; padding: 0 !important; }

/* ════════════════════════════════════════════════════════════
   KNOWLEDGEBASE — BLANK STATE FIX
   ════════════════════════════════════════════════════════════ */
html body .cs-main .well,
html body .cs-main .well-sm,
html body .cs-main .well-lg {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-secondary) !important;
  box-shadow: var(--shadow-card);
  padding: 24px !important;
}

/* A genuinely empty kb container shows fallback message */
html body .cs-main #knowledgebase .well:empty,
html body .cs-main .knowledgebase .well:empty,
html body .cs-main .kb-articles:empty,
html body .cs-main .kb-categories:empty {
  min-height: 100px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
html body .cs-main #knowledgebase .well:empty::before,
html body .cs-main .knowledgebase .well:empty::before,
html body .cs-main .kb-articles:empty::before,
html body .cs-main .kb-categories:empty::before {
  content: "No knowledgebase articles available yet.";
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   TICKET SUBMIT — DEPARTMENT GRID
   ════════════════════════════════════════════════════════════ */
/* Submitticket page uses panels in a specific layout */
html body .cs-main .submit-ticket-page .panel,
html body .cs-main #frmDepartmentSelection .panel,
html body .cs-main form[action*="submitticket"] .panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  cursor: pointer;
  transition: all var(--transition);
}
html body .cs-main .submit-ticket-page .panel:hover,
html body .cs-main #frmDepartmentSelection .panel:hover {
  border-color: var(--border-blue) !important;
  transform: translateY(-1px);
}

/* Department picker cards */
html body .cs-main a.department-card,
html body .cs-main .deptselection a {
  display: block;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 22px !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  transition: all var(--transition);
}
html body .cs-main a.department-card:hover,
html body .cs-main .deptselection a:hover {
  border-color: var(--border-blue) !important;
  background: rgba(9,150,232,0.06) !important;
}

/* Force all submit ticket form inputs visible */
html body .cs-main #submitTicketForm input,
html body .cs-main #submitTicketForm select,
html body .cs-main #submitTicketForm textarea,
html body .cs-main form[action*="submitticket"] input,
html body .cs-main form[action*="submitticket"] select,
html body .cs-main form[action*="submitticket"] textarea {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

/* ════════════════════════════════════════════════════════════
   V7 — DATATABLES / TABLELIST.TPL DARK OVERRIDES
   Six's tablelist.tpl wraps all tables in jQuery DataTables.
   The invoice/service/domain filter tabs call column().search().draw()
   These styles fix the DataTables chrome so filtering works visually.
   ════════════════════════════════════════════════════════════ */

/* DataTables wrapper */
.cs-main .dataTables_wrapper,
.cs-main .dataTables_wrapper * { color: var(--text-secondary) !important; }

/* Kill the sorted column highlight (the "Total" column box) */
.cs-main table.dataTable tbody tr.odd,
.cs-main table.dataTable tbody tr.even { background-color: transparent !important; }

.cs-main table.dataTable tbody td.sorting_1,
.cs-main table.dataTable tbody td.sorting_2,
.cs-main table.dataTable tbody td.sorting_3,
.cs-main table.dataTable tbody th.sorting_1,
.cs-main table.dataTable tbody th.sorting_2,
.cs-main table.dataTable tbody th.sorting_3 {
  background-color: transparent !important;
}

/* Sorted column header indicator */
.cs-main table.dataTable thead th.sorting,
.cs-main table.dataTable thead th.sorting_asc,
.cs-main table.dataTable thead th.sorting_desc {
  color: var(--text-muted) !important;
  background-color: transparent !important;
  background-image: none !important;
  cursor: pointer;
}
.cs-main table.dataTable thead th.sorting::after,
.cs-main table.dataTable thead th.sorting_asc::after,
.cs-main table.dataTable thead th.sorting_desc::after {
  color: var(--text-muted) !important;
}

/* DataTables filter input (top-right search box) */
.cs-main .dataTables_filter input,
.cs-main .dataTables_filter input[type="search"] {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 0.875rem !important;
}
.cs-main .dataTables_filter label {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* DataTables length select */
.cs-main .dataTables_length select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
}
.cs-main .dataTables_length label { color: var(--text-muted) !important; font-weight: 400 !important; }

/* DataTables info ("Showing 1-10 of 50") */
.cs-main .dataTables_info { color: var(--text-muted) !important; font-size: 0.82rem !important; }

/* DataTables pagination */
.cs-main .dataTables_paginate .paginate_button {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 5px 10px !important;
  margin: 0 2px !important;
  cursor: pointer;
}
.cs-main .dataTables_paginate .paginate_button:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
.cs-main .dataTables_paginate .paginate_button.current,
.cs-main .dataTables_paginate .paginate_button.current:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}
.cs-main .dataTables_paginate .paginate_button.disabled,
.cs-main .dataTables_paginate .paginate_button.disabled:hover {
  color: var(--text-muted) !important;
  cursor: default;
}

/* DataTables empty state */
.cs-main table.dataTable tbody td.dataTables_empty {
  text-align: center !important;
  color: var(--text-muted) !important;
  padding: 40px 20px !important;
  font-size: 0.95rem !important;
  font-style: italic;
  background: transparent !important;
}

/* Six's tablelist filter row - hidden input row at bottom of thead */
.cs-main table.dataTable thead tr.filter-row th,
.cs-main table.dataTable thead tr.filter-row td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.cs-main table.dataTable thead tr.filter-row input,
.cs-main table.dataTable thead tr.filter-row select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-sm) !important;
  padding: 4px 8px !important;
  width: 100%;
}

/* Tab filter buttons (All / Unpaid / Paid / Cancelled) */
/* Six renders these as .btn-group or .nav.nav-pills above the table */
.cs-main .btn-group .btn.btn-filter,
.cs-main .btn-group [data-filter],
.cs-main .invoice-filter-btn,
.cs-main .list-filter-btn,
.cs-main .filter-btns .btn,
.cs-main [data-column-filter] {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 16px !important;
  font-weight: 500;
  transition: all var(--transition);
}
.cs-main .btn-group .btn.btn-filter:hover,
.cs-main .btn-group [data-filter]:hover,
.cs-main .filter-btns .btn:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}
.cs-main .btn-group .btn.btn-filter.active,
.cs-main .btn-group [data-filter].active,
.cs-main .btn-group .btn.active,
.cs-main .filter-btns .btn.active,
.cs-main .btn-group > .btn.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(9,150,232,0.30) !important;
}

/* Generic .nav-pills filter tabs (used on some Six pages) */
.cs-main .nav.nav-pills > li > a {
  color: var(--text-muted) !important;
  background: transparent !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 16px !important;
  font-weight: 500;
}
.cs-main .nav.nav-pills > li.active > a,
.cs-main .nav.nav-pills > li > a.active {
  background: var(--blue) !important;
  color: #fff !important;
}
.cs-main .nav.nav-pills > li > a:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}

/* Ensure JS-hidden rows (display:none injected by DataTables) stay hidden */
.cs-main table.dataTable tbody tr[style*="display: none"],
.cs-main table.dataTable tbody tr[style*="display:none"] {
  display: none !important;
}

/* Make sure visible rows after filtering are fully visible */
.cs-main table.dataTable tbody tr[style*="display: table-row"],
.cs-main table.dataTable tbody tr:not([style*="display: none"]) {
  display: table-row !important;
}

/* ════════════════════════════════════════════════════════════
   KNOWLEDGEBASE FIX — custom rendering (Six uses tablelist here too)
   The KB uses tablelist.tpl which renders categories as a DataTable.
   The blank box is likely the DataTable loading state.
   Fix: make the loading indicator and the table visible.
   ════════════════════════════════════════════════════════════ */
.cs-main .dataTables_processing {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
}

/* KB categories table rows */
.cs-main .knowledgebase table.dataTable tbody tr {
  cursor: pointer;
}
.cs-main .knowledgebase table.dataTable tbody tr:hover {
  background: var(--bg-hover) !important;
}

/* If KB uses panel-accordion or list-group */
.cs-main .kb-category-list,
.cs-main .knowledgebase .list-group {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}
.cs-main .kb-category-list a,
.cs-main .knowledgebase .list-group-item {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
  padding: 14px 18px !important;
  display: block;
  text-decoration: none;
}
.cs-main .kb-category-list a:hover,
.cs-main .knowledgebase .list-group-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text-blue) !important;
}
.cs-main .knowledgebase .list-group-item .badge {
  background: var(--bg-card2) !important;
  color: var(--text-muted) !important;
}

/* ════════════════════════════════════════════════════════════
   SUBMIT TICKET - the blank page is likely because Six's
   submitticket.tpl shows a department picker via specific
   markup we need to ensure is styled correctly
   ════════════════════════════════════════════════════════════ */

/* Department selection grid */
.cs-main .submitticket-departments,
.cs-main #departmentList,
.cs-main .department-list-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

/* Individual department cards */
.cs-main .submitticket-department,
.cs-main #departmentList .list-group-item,
.cs-main .department-select-item,
.cs-main .departmentoption {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 22px !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: all var(--transition);
  cursor: pointer;
  display: block !important;
}
.cs-main .submitticket-department:hover,
.cs-main #departmentList .list-group-item:hover,
.cs-main .department-select-item:hover,
.cs-main .departmentoption:hover {
  border-color: var(--border-blue) !important;
  background: rgba(9,150,232,0.06) !important;
  transform: translateY(-1px);
  color: var(--text-blue) !important;
}
.cs-main .departmentoption h3,
.cs-main .departmentoption .dept-name,
.cs-main #departmentList .list-group-item h3,
.cs-main #departmentList .list-group-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: inherit !important;
  margin-bottom: 4px;
}
.cs-main .departmentoption p,
.cs-main #departmentList .list-group-item p {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  margin: 0;
}

/* Ticket submit form itself */
.cs-main #submitTicketForm,
.cs-main form.submitticket-form {
  max-width: 800px;
}
.cs-main #submitTicketForm .form-group,
.cs-main form.submitticket-form .form-group {
  margin-bottom: 18px;
}

/* ════════════════════════════════════════════════════════════
   FOCUS RING FIX — remove browser default red/orange focus
   outline that was showing on the invoice tab buttons
   ════════════════════════════════════════════════════════════ */
.cs-main *:focus,
.cs-main *:focus-within,
html body .cs-main button:focus,
html body .cs-main a:focus,
html body .cs-main input:focus,
html body .cs-main select:focus,
html body .cs-main textarea:focus {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body .cs-main button:focus-visible,
html body .cs-main a:focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* ════════════════════════════════════════════════════════════
   V8 — TYPOGRAPHY FIXES + NEW COMPONENT STYLES
   - Empty state was using thin Cormorant Garamond; switch to bolder DM Sans
   - New styles for KB rows, KB cats, dept cards, service rows, back links
   ════════════════════════════════════════════════════════════ */

/* Empty state — bolder, NO display serif */
.cs-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.cs-empty__icon {
  font-size: 32px;
  margin-bottom: 14px;
  opacity: 0.6;
}
.cs-empty__title {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
  letter-spacing: 0;
  font-style: normal !important;
}
.cs-empty__body {
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.cs-empty__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Section labels — small uppercase eyebrow text above panels */
.cs-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 4px;
}

/* Back link — used at top of detail pages */
.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}
.cs-back-link:hover { color: var(--text-blue) !important; }

/* KB category cards */
.cs-kb-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cs-kb-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  color: inherit;
}
.cs-kb-cat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cs-kb-cat:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.cs-kb-cat:hover::before { opacity: 1; }
.cs-kb-cat__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  color: var(--text-blue);
  margin-bottom: 14px;
}
.cs-kb-cat__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cs-kb-cat__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 450;
}
.cs-kb-cat__count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* KB row (article in a list) */
.cs-kb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none !important;
  transition: background var(--transition);
  color: inherit;
}
.cs-kb-row:last-child { border-bottom: none; }
.cs-kb-row:hover { background: var(--bg-hover); }
.cs-kb-row__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cs-kb-row:hover .cs-kb-row__icon { color: var(--text-blue); border-color: var(--border-blue); background: var(--blue-glow); }
.cs-kb-row__title {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cs-kb-row__sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 450;
}

/* KB article body — content from rich-text editor */
.cs-kb-article {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 450;
}
.cs-kb-article h1, .cs-kb-article h2, .cs-kb-article h3, .cs-kb-article h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 22px 0 10px;
  font-family: var(--font-body);
  font-style: normal;
}
.cs-kb-article h1 { font-size: 1.4rem; }
.cs-kb-article h2 { font-size: 1.2rem; }
.cs-kb-article h3 { font-size: 1.05rem; }
.cs-kb-article h4 { font-size: 0.95rem; }
.cs-kb-article p { margin-bottom: 14px; }
.cs-kb-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cs-kb-article a:hover { color: var(--text-blue); }
.cs-kb-article strong, .cs-kb-article b { color: var(--text-primary); font-weight: 600; }
.cs-kb-article code {
  background: var(--bg-input);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--text-blue);
  border: 1px solid var(--border);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}
.cs-kb-article pre {
  background: var(--bg-input);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border);
  margin: 12px 0;
}
.cs-kb-article pre code { background: transparent; border: none; padding: 0; }
.cs-kb-article img { max-width: 100%; border-radius: var(--radius-md); margin: 14px 0; border: 1px solid var(--border); }
.cs-kb-article ul, .cs-kb-article ol { padding-left: 26px; margin-bottom: 14px; }
.cs-kb-article li { margin-bottom: 6px; color: var(--text-secondary); }
.cs-kb-article blockquote {
  border-left: 3px solid var(--border-blue);
  padding: 6px 0 6px 18px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 14px 0;
}
.cs-kb-article hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.cs-kb-article table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.cs-kb-article table th, .cs-kb-article table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.cs-kb-article table th { background: var(--bg-input); color: var(--text-primary); font-weight: 600; }

/* Department selection grid */
.cs-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.cs-dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.cs-dept-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cs-dept-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  background: rgba(9,150,232,0.05);
}
.cs-dept-card:hover::before { opacity: 1; }
.cs-dept-card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  color: var(--text-blue);
  margin-bottom: 14px;
}
.cs-dept-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cs-dept-card__desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 450;
}

/* Service row (used in dashboard active products panel) */
.cs-svc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: inherit;
  transition: background var(--transition);
}
.cs-svc-row:last-child { border-bottom: none; }
.cs-svc-row:hover { background: var(--bg-hover); padding-left: 8px; padding-right: 8px; margin: 0 -8px; border-radius: var(--radius-sm); }
.cs-svc-row__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cs-svc-row:hover .cs-svc-row__icon { color: var(--text-blue); border-color: var(--border-blue); background: var(--blue-glow); }
.cs-svc-row__name {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cs-svc-row__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 450;
}

/* Patch: anywhere we use Cormorant for small body labels → don't */
.cs-empty__title,
.cs-kb-cat__name,
.cs-kb-row__title,
.cs-dept-card__name,
.cs-svc-row__name {
  font-family: var(--font-body) !important;
  font-style: normal !important;
}

/* ════════════════════════════════════════════════════════════
   V9 — VISUAL RICHNESS: less bleak, more contrast & depth
   ════════════════════════════════════════════════════════════ */

/* Body — subtle ambient blue glow at top for atmosphere */
body {
  background:
    radial-gradient(ellipse 100% 50% at 50% -10%, rgba(9, 150, 232, 0.06) 0%, transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
}

/* Panel — add subtle inner highlight + better shadow depth */
.cs-panel {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(36, 41, 54, 0.97) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.cs-panel::after {
  background: linear-gradient(90deg, transparent, rgba(9, 150, 232, 0.35), transparent);
  opacity: 0.5;
}

/* Stat tiles — colored accent line at the bottom */
.cs-stat {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(36, 41, 54, 0.96) 100%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
}
.cs-stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-accent, var(--blue));
  opacity: 0.85;
}
.cs-stat--blue { --stat-accent: #0996e8; }
.cs-stat--green { --stat-accent: #5BAB7A; }
.cs-stat--amber { --stat-accent: #D4964A; }
.cs-stat--red { --stat-accent: #C06B6B; }

.cs-stat--blue .cs-stat__value { color: #4FB1F0; }
.cs-stat--green .cs-stat__value { color: #6FC290; }
.cs-stat--amber .cs-stat__value { color: #E0A35A; }
.cs-stat--red .cs-stat__value { color: #D38080; }

.cs-stat__icon-fancy {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stat-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--stat-border, var(--border));
  color: var(--stat-accent, var(--text-muted));
}
.cs-stat--blue .cs-stat__icon-fancy { background: rgba(9, 150, 232, 0.12); border-color: rgba(9, 150, 232, 0.3); }
.cs-stat--green .cs-stat__icon-fancy { background: rgba(91, 171, 122, 0.12); border-color: rgba(91, 171, 122, 0.3); }
.cs-stat--amber .cs-stat__icon-fancy { background: rgba(212, 150, 74, 0.12); border-color: rgba(212, 150, 74, 0.3); }
.cs-stat--red .cs-stat__icon-fancy { background: rgba(192, 107, 107, 0.12); border-color: rgba(192, 107, 107, 0.3); }

/* Sidebar — subtle gradient for depth */
.cs-sidebar {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(28, 32, 48, 0.96) 100%);
}

/* Header — matching gradient */
.cs-header {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(28, 32, 48, 0.94) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Footer too */
.cs-footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

/* Buttons — punchier blue */
.cs-btn--primary {
  background: linear-gradient(180deg, #0aa3f8 0%, #0996e8 100%);
  box-shadow: 0 2px 14px rgba(9, 150, 232, 0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.cs-btn--primary:hover {
  background: linear-gradient(180deg, #1aaffa 0%, #0aa3f8 100%);
  box-shadow: 0 6px 20px rgba(9, 150, 232, 0.5), 0 1px 0 rgba(255,255,255,0.2) inset;
}

/* Active nav item — punchier glow */
.cs-nav__item.active {
  background: linear-gradient(90deg, rgba(9, 150, 232, 0.18), rgba(9, 150, 232, 0.06));
  box-shadow: 0 1px 0 rgba(9, 150, 232, 0.1) inset;
}
.cs-nav__item.active::before { box-shadow: 0 0 12px rgba(9, 150, 232, 0.5); }

/* Avatar — brighter glow */
.cs-avatar {
  background: linear-gradient(135deg, rgba(9, 150, 232, 0.4), rgba(9, 150, 232, 0.15));
  border: 1.5px solid rgba(9, 150, 232, 0.5);
  color: #4FB1F0;
  box-shadow: 0 0 12px rgba(9, 150, 232, 0.15);
}

/* Recent ticket list — bold for unread/answered */
.cs-recent-tickets .cs-ticket-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background var(--transition);
}
.cs-recent-tickets .cs-ticket-row:last-child { border-bottom: none; }
.cs-recent-tickets .cs-ticket-row:hover { background: var(--bg-hover); }
.cs-ticket-row__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}
.cs-ticket-row.is-unread .cs-ticket-row__indicator {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(9, 150, 232, 0.6);
}
.cs-ticket-row.is-unread .cs-ticket-row__title {
  font-weight: 600;
  color: var(--text-primary);
}
.cs-ticket-row__title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cs-ticket-row__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 450;
}
.cs-ticket-row__num {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  margin-right: 5px;
}

/* Active products row */
.cs-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background var(--transition);
  color: inherit;
}
.cs-product-row:last-child { border-bottom: none; }
.cs-product-row:hover { background: var(--bg-hover); }
.cs-product-row__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(9, 150, 232, 0.12);
  border: 1px solid rgba(9, 150, 232, 0.3);
  color: var(--text-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-product-row__name {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cs-product-row__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 450;
}

/* Welcome heading — bigger, more presence */
.cs-page-header__title {
  font-size: 2rem !important;
}

/* Quick Action button polish — better contrast on ghost variant */
.cs-btn--ghost {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cs-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(9, 150, 232, 0.3);
  color: #4FB1F0;
}

/* Card hover — subtle blue lift */
.cs-stat:hover {
  border-color: var(--border-blue);
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(9, 150, 232, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* News item card */
.cs-news-item {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background var(--transition);
  display: block;
  color: inherit;
}
.cs-news-item:last-child { border-bottom: none; }
.cs-news-item:hover { background: var(--bg-hover); }
.cs-news-item__date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cs-news-item__title {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cs-news-item__preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 450;
}

/* Action grid for Quick Actions */
.cs-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

/* Two-column responsive grid */
.cs-grid-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .cs-grid-3-2 { grid-template-columns: 1fr; }
}

/* Re-style any homePagePanels rendered output */
.cs-main .panel.panel-default .panel-heading,
.cs-main .panel.panel-default > .panel-heading {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent) !important;
}

/* Dashboard stats row spacing tighter */
.cs-stats { gap: 16px; margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════
   V9 — Style the rendered WHMCS dashboard panels
   These render in Six's Bootstrap 3 panel markup. We style
   them to look beautiful in our dark theme.
   ════════════════════════════════════════════════════════════ */

/* The .row that contains rendered panels */
.cs-main .cs-home-panels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  margin-bottom: 24px;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 1100px) {
  .cs-main .cs-home-panels { grid-template-columns: 1fr; }
}

/* Each panel inside the home panels grid */
.cs-main .cs-home-panels > .col-md-6,
.cs-main .cs-home-panels > .col-md-12,
.cs-main .cs-home-panels > .col-md-4,
.cs-main .cs-home-panels > .col-md-8,
.cs-main .cs-home-panels > [class*="col-"] {
  width: 100%;
  padding: 0 !important;
  flex: none;
}

/* Auto-grid the panels into 2 columns regardless of their col-md-* */
.cs-main .cs-home-panels > [class*="col-"]:nth-child(odd) { grid-column: 1; }
.cs-main .cs-home-panels > [class*="col-"]:nth-child(even) { grid-column: 2; }
@media (max-width: 1100px) {
  .cs-main .cs-home-panels > [class*="col-"] { grid-column: 1 !important; }
}

/* Style the rendered panel boxes */
.cs-main .cs-home-panels .panel,
.cs-main .cs-home-panels .panel-default {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(36, 41, 54, 0.97) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.cs-main .cs-home-panels .panel-heading {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 22px !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.02em;
  border-top-left-radius: var(--radius-lg) !important;
  border-top-right-radius: var(--radius-lg) !important;
}
.cs-main .cs-home-panels .panel-heading h3,
.cs-main .cs-home-panels .panel-heading .panel-title,
.cs-main .cs-home-panels .panel-heading h4 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
  margin: 0;
}

.cs-main .cs-home-panels .panel-body {
  padding: 4px 0 !important;
  background: transparent !important;
}

/* List-group-item rows inside panels (active products, tickets, news) */
.cs-main .cs-home-panels .list-group {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.cs-main .cs-home-panels .list-group-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 0 !important;
  padding: 14px 22px !important;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--transition);
  position: relative;
}
.cs-main .cs-home-panels .list-group-item:last-child { border-bottom: none !important; }
.cs-main .cs-home-panels .list-group-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text-blue) !important;
  text-decoration: none !important;
}
.cs-main .cs-home-panels .list-group-item .badge {
  margin-left: auto;
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-muted) !important;
  font-weight: 500;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 0.72rem;
}

/* Status labels inside panels (Active, Pending, etc) */
.cs-main .cs-home-panels .label,
.cs-main .cs-home-panels .label-success,
.cs-main .cs-home-panels .label-warning,
.cs-main .cs-home-panels .label-danger,
.cs-main .cs-home-panels .label-info,
.cs-main .cs-home-panels .label-default {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px !important;
  border-radius: 99px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  margin-right: 8px;
}
.cs-main .cs-home-panels .label-success { background: rgba(91,171,122,0.15) !important; color: #6FC290 !important; border: 1px solid rgba(91,171,122,0.3); }
.cs-main .cs-home-panels .label-warning { background: rgba(212,150,74,0.15) !important; color: #E0A35A !important; border: 1px solid rgba(212,150,74,0.3); }
.cs-main .cs-home-panels .label-danger { background: rgba(192,107,107,0.15) !important; color: #D38080 !important; border: 1px solid rgba(192,107,107,0.3); }
.cs-main .cs-home-panels .label-info { background: rgba(9,150,232,0.15) !important; color: #4FB1F0 !important; border: 1px solid rgba(9,150,232,0.3); }
.cs-main .cs-home-panels .label-default { background: rgba(255,255,255,0.06) !important; color: var(--text-secondary) !important; border: 1px solid var(--border); }

/* "View More" / footer links in panels */
.cs-main .cs-home-panels .panel-footer,
.cs-main .cs-home-panels a.text-center {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid var(--border) !important;
  padding: 12px 22px !important;
  text-align: center;
  display: block;
  font-size: 0.85rem !important;
  font-weight: 500;
  color: var(--text-blue) !important;
  text-decoration: none !important;
  border-bottom-left-radius: var(--radius-lg) !important;
  border-bottom-right-radius: var(--radius-lg) !important;
}
.cs-main .cs-home-panels .panel-footer:hover,
.cs-main .cs-home-panels a.text-center:hover {
  background: rgba(9, 150, 232, 0.06) !important;
  color: var(--text-primary) !important;
}

/* "Recent Support Tickets" — make Open/Answered status BOLD (unread look) */
.cs-main .cs-home-panels .list-group-item:has(.label-warning),
.cs-main .cs-home-panels .list-group-item:has(.label-info),
.cs-main .cs-home-panels .list-group-item.unread {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}
.cs-main .cs-home-panels .list-group-item:has(.label-warning)::before,
.cs-main .cs-home-panels .list-group-item:has(.label-info)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(9, 150, 232, 0.5);
}

/* "Closed" / muted tickets — slightly dimmer */
.cs-main .cs-home-panels .list-group-item:has(.label-default) {
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* Icons inside list items */
.cs-main .cs-home-panels .list-group-item i,
.cs-main .cs-home-panels .list-group-item .fa,
.cs-main .cs-home-panels .list-group-item .fas,
.cs-main .cs-home-panels .list-group-item .far {
  color: var(--text-muted);
  margin-right: 6px;
}
.cs-main .cs-home-panels .list-group-item:hover i,
.cs-main .cs-home-panels .list-group-item:hover .fa,
.cs-main .cs-home-panels .list-group-item:hover .fas { color: var(--text-blue); }

/* Tables inside panels */
.cs-main .cs-home-panels table {
  background: transparent !important;
  width: 100%;
}
.cs-main .cs-home-panels table tr { background: transparent !important; }
.cs-main .cs-home-panels table td {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  padding: 12px 22px !important;
}
.cs-main .cs-home-panels table tr:last-child td { border-bottom: none !important; }
.cs-main .cs-home-panels table td:first-child { color: var(--text-primary) !important; font-weight: 500; }

/* btn-block inside panels (Add Funds, etc) */
.cs-main .cs-home-panels .btn-block,
.cs-main .cs-home-panels .btn {
  border-radius: var(--radius-md) !important;
  font-weight: 500;
}

/* "Empty" panel message */
.cs-main .cs-home-panels .panel-body > p:only-child,
.cs-main .cs-home-panels .panel-body > em:only-child {
  padding: 40px 22px !important;
  text-align: center;
  color: var(--text-muted) !important;
  font-style: normal;
  font-size: 0.92rem;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   V10 — Product Details, Service List, Invoice Filter Components
   ════════════════════════════════════════════════════════════ */

/* Product header — logo + title + status */
.cs-product-header {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.cs-product-header__text { flex: 1; min-width: 0; }
.cs-product-header__text .cs-page-header__title { margin-bottom: 4px; font-size: 1.8rem !important; }
.cs-product-header__text .cs-page-header__sub { margin: 0; }
.cs-product-header__status { flex-shrink: 0; }

/* Product logo image — round corners, contained */
.cs-product-logo {
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 6px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.cs-product-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(9,150,232,0.08), rgba(255,255,255,0.02));
  border: 1px dashed var(--border);
}

/* Two-column info grid for service / config / custom fields */
.cs-info-grid {
  display: flex;
  flex-direction: column;
}
.cs-info-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
}
.cs-info-row:last-child { border-bottom: none; }
.cs-info-row__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.cs-info-row__value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}
.cs-info-row__value a { color: var(--text-blue); text-decoration: none; }
.cs-info-row__value a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 600px) {
  .cs-info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Module action buttons grid */
.cs-module-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cs-module-buttons:first-child { margin-top: 0; }
#moduleClientAreaContainer .row,
#moduleClientAreaContainer .col-md-6,
#moduleClientAreaContainer .col-md-12,
#moduleClientAreaContainer [class*="col-"] {
  padding: 0;
  margin: 0;
  width: 100%;
}
#moduleClientAreaContainer .panel,
#moduleClientAreaContainer .well {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 14px;
  padding: 14px 18px;
}
#moduleClientAreaContainer .panel-heading {
  background: transparent !important;
  border: none !important;
  padding: 0 0 8px 0 !important;
  font-weight: 600;
  color: var(--text-primary);
}
#moduleClientAreaContainer table {
  background: transparent !important;
  width: 100%;
}
#moduleClientAreaContainer td, #moduleClientAreaContainer th {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  padding: 10px 14px !important;
}
#moduleClientAreaContainer th { color: var(--text-primary) !important; font-weight: 600; }
#moduleClientAreaContainer .btn {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 7px 14px !important;
  font-weight: 500;
}

/* Service cards grid (clientareaproducts) */
.cs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.cs-svc-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(36, 41, 54, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-decoration: none !important;
  color: inherit;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cs-svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cs-svc-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5), 0 0 24px rgba(9,150,232,0.1), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.cs-svc-card:hover::before { opacity: 1; }

.cs-svc-card__logo {
  padding: 22px 22px 16px 22px;
  display: flex;
  justify-content: center;
}
.cs-svc-card__logo .cs-product-logo {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.cs-svc-card__body {
  padding: 0 22px 16px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-svc-card__group {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cs-svc-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.cs-svc-card__domain {
  font-size: 0.82rem;
  color: var(--text-blue);
  font-weight: 500;
  margin-bottom: 12px;
  word-break: break-all;
}
.cs-svc-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.cs-svc-card__price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.cs-svc-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cs-svc-card__footer {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-svc-card__manage {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-svc-card:hover .cs-svc-card__manage { color: #4FB1F0; }
.cs-svc-card:hover .cs-svc-card__manage svg { transform: translateX(2px); }
.cs-svc-card__manage svg { transition: transform var(--transition); }

/* Filter tab pills (used on services list + invoices list) */
.cs-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 2px;
}
.cs-tab {
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: calc(var(--radius-md) - 4px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.cs-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.cs-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(9,150,232,0.3);
}
.cs-tab:focus { outline: none; }

/* Danger button variant for cancellation */
.cs-btn--danger {
  background: rgba(192, 107, 107, 0.1);
  border: 1px solid rgba(192, 107, 107, 0.3);
  color: #D38080;
}
.cs-btn--danger:hover {
  background: rgba(192, 107, 107, 0.18);
  border-color: rgba(192, 107, 107, 0.5);
  color: #DA9595;
}

/* SAFETY OVERRIDE: any leftover Six-rendered <select> filter in invoices
   should not show its options as visible text. This catches the case
   where DataTables filter row selects render weirdly. */
html body .cs-main select.dataTables-filter,
html body .cs-main thead select,
html body .cs-main tr.filter-row select,
html body .cs-main .dataTables_wrapper select:not(.cs-select):not(.form-control) {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}
html body .cs-main select option,
html body .cs-main select optgroup {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  display: list-item;
}

/* When a select has display issues, hide it entirely if we have our own filters */
.cs-main #invoiceFilterTabs ~ * select.dataTables-filter,
.cs-main #invoiceFilterTabs ~ table.dataTable thead tr.filter-row {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   V12 — WYSIWYG ARTICLE CONTENT FIX
   WHMCS WYSIWYG editor saves content with inline color styles
   like color:#000000 or color:rgb(0,0,0) which are invisible
   on dark backgrounds. Override all black/dark inline text colors.
   ════════════════════════════════════════════════════════════ */

/* Kill WYSIWYG black text in article content */
html body .cs-main .cs-kb-article [style*="color: #000000"],
html body .cs-main .cs-kb-article [style*="color:#000000"],
html body .cs-main .cs-kb-article [style*="color: black"],
html body .cs-main .cs-kb-article [style*="color:black"],
html body .cs-main .cs-kb-article [style*="color: rgb(0, 0, 0)"],
html body .cs-main .cs-kb-article [style*="color:rgb(0,0,0)"],
html body .cs-main .cs-kb-article [style*="color: #333"],
html body .cs-main .cs-kb-article [style*="color:#333"],
html body .cs-main .cs-kb-article [style*="color: #444"],
html body .cs-main .cs-kb-article [style*="color:#444"],
html body .cs-main .cs-kb-article [style*="color: #555"],
html body .cs-main .cs-kb-article [style*="color:#555"],
html body .cs-main .cs-kb-article [style*="color: #222"],
html body .cs-main .cs-kb-article [style*="color:#222"] {
  color: var(--text-secondary) !important;
}
/* Kill white/light backgrounds */
html body .cs-main .cs-kb-article [style*="background: white"],
html body .cs-main .cs-kb-article [style*="background:white"],
html body .cs-main .cs-kb-article [style*="background-color: white"],
html body .cs-main .cs-kb-article [style*="background-color:white"],
html body .cs-main .cs-kb-article [style*="background: #fff"],
html body .cs-main .cs-kb-article [style*="background:#fff"],
html body .cs-main .cs-kb-article [style*="background: #ffffff"],
html body .cs-main .cs-kb-article [style*="background:#ffffff"],
html body .cs-main .cs-kb-article [style*="background-color: #fff"],
html body .cs-main .cs-kb-article [style*="background-color:#fff"],
html body .cs-main .cs-kb-article [style*="background-color: #ffffff"],
html body .cs-main .cs-kb-article [style*="background-color:#ffffff"],
html body .cs-main .cs-kb-article [style*="background-color: rgb(255"],
html body .cs-main .cs-kb-article [style*="background: rgb(255"] {
  background: transparent !important;
  background-color: transparent !important;
}
/* Ensure all text in article is readable */
html body .cs-main .cs-kb-article p,
html body .cs-main .cs-kb-article li,
html body .cs-main .cs-kb-article span,
html body .cs-main .cs-kb-article div:not([class]),
html body .cs-main .cs-kb-article td,
html body .cs-main .cs-kb-article th {
  color: var(--text-secondary);
}
html body .cs-main .cs-kb-article h1,
html body .cs-main .cs-kb-article h2,
html body .cs-main .cs-kb-article h3,
html body .cs-main .cs-kb-article h4,
html body .cs-main .cs-kb-article strong,
html body .cs-main .cs-kb-article b {
  color: var(--text-primary) !important;
}
/* Force the article section itself to have correct bg */
html body .cs-main .cs-kb-article {
  background: transparent !important;
  color: var(--text-secondary);
}

/* (login page shell hide rules removed in v20 — login form renders inside cs-main like any other page) */


/* ════════════════════════════════════════════════════════════
   V20 — FOOTER & LAYOUT FIXES
   Footer must always be visible. Body uses natural flow so
   sidebar (sticky inside shell) doesn't push footer off-screen.
   ════════════════════════════════════════════════════════════ */

body.cs-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cs-shell {
  flex: 1 0 auto; /* Allow shell to grow but footer stays at bottom */
}

.cs-footer {
  flex-shrink: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 32px 40px 24px;
  margin-left: 240px; /* Match sidebar width so footer aligns with main content */
}
@media (max-width: 768px) {
  .cs-footer { margin-left: 0; padding: 24px 16px; }
}

.cs-footer__inner {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.cs-footer__nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.cs-footer__nav li { margin: 0; }
.cs-footer__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 0.2s;
}
.cs-footer__nav a:hover { color: var(--text-blue); }

.cs-footer__tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.cs-footer__tagline .heart { color: #d36280; }
.cs-footer__tagline .coffee { display: inline-block; }

.cs-footer__badge {
  margin-top: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.cs-footer__badge:hover { opacity: 1; }
.cs-footer__badge img { max-height: 38px; display: block; }


/* ── Account settings tabs ─────────────────────────── */
.cs-account-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 0;
}
.cs-account-tabs .cs-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.cs-account-tabs .cs-tab:hover {
  background: var(--bg-surface);
  border-color: var(--border-blue);
  color: var(--text-primary);
}
.cs-account-tabs .cs-tab.active {
  background: linear-gradient(135deg, #0aa3f8, #0996e8);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(9,150,232,0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   LOGIN / REGISTER PAGE STYLES
   These render inside cs-main, NOT as a full-viewport overlay. They work
   alongside the sidebar/header so the user keeps the limited public nav.
   ═══════════════════════════════════════════════════════════════════════ */

.cs-login-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px 40px;
  width: 100%;
  background: transparent;
}
.cs-login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(36,41,54,0.98) 0%, rgba(28,32,48,0.97) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 60px rgba(9,150,232,0.06);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.cs-login-card--wide { max-width: 560px; }
.cs-login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0996e8, transparent);
  opacity: 0.8;
}
.cs-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  text-decoration: none;
}
.cs-login-logo {
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(9,150,232,0.4));
}
.cs-login-card__heading {
  text-align: center;
  margin-bottom: 28px;
}
.cs-login-card__heading h1 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #F0F2F8;
  margin: 0 0 6px 0;
  letter-spacing: 0.01em;
}
.cs-login-card__heading p {
  font-size: 0.92rem;
  color: #7A809A;
  font-weight: 450;
  margin: 0;
}
.cs-login-field { margin-bottom: 18px; }
.cs-login-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #7A809A;
}
.cs-login-input-wrap { position: relative; }
.cs-login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7A809A;
  pointer-events: none;
}
.cs-login-input {
  width: 100%;
  background: #161A23;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #F0F2F8;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 450;
  padding: 12px 16px 12px 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cs-login-input--plain { padding-left: 16px; }
.cs-login-input::placeholder { color: #7A809A; }
.cs-login-input:focus {
  outline: none;
  border-color: #0996e8;
  box-shadow: 0 0 0 3px rgba(9,150,232,0.15);
}
.cs-login-forgot {
  font-size: 0.78rem;
  color: #7A809A;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.cs-login-forgot:hover { color: #4FB1F0; text-decoration: none; }
.cs-login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
  font-size: 0.86rem;
  color: #B0B5C9;
  font-weight: 450;
}
.cs-login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0996e8;
  cursor: pointer;
  flex-shrink: 0;
}
.cs-login-btn {
  width: 100%;
  background: linear-gradient(180deg, #0aa3f8 0%, #0996e8 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 20px rgba(9,150,232,0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
  letter-spacing: 0.01em;
}
.cs-login-btn:hover {
  background: linear-gradient(180deg, #1aaffa 0%, #0aa3f8 100%);
  box-shadow: 0 6px 28px rgba(9,150,232,0.5), 0 1px 0 rgba(255,255,255,0.2) inset;
  transform: translateY(-1px);
}
.cs-login-btn:active { transform: translateY(0); }
.cs-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.8rem;
  color: #7A809A;
  text-align: center;
}
.cs-login-divider::before, .cs-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.cs-login-divider span { padding: 0 4px; }
.cs-login-register {
  text-align: center;
  font-size: 0.88rem;
  color: #7A809A;
}
.cs-login-register a {
  color: #4FB1F0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.cs-login-register a:hover { color: #6FC4F5; }
.cs-login-tos {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.75rem;
  color: #7A809A;
}
.cs-login-tos a {
  color: #7A809A;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-login-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .cs-login-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .cs-login-card { padding: 28px 22px; }
}

/* Form action bar - used on account settings, contact forms */
.cs-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  margin: 24px -24px -24px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
}
@media (max-width: 600px) {
  .cs-form-actions { flex-direction: column; }
  .cs-form-actions .cs-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v66 ADDITIONS — alert/panel/modal helper classes for new includes
   ═══════════════════════════════════════════════════════════════════════ */

/* Alert helper */
.cs-alert {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-radius: 10px;
  margin: 0 0 16px 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.94rem; line-height: 1.55;
}
.cs-alert--center { text-align: center; justify-content: center; }
.cs-alert__icon { flex-shrink: 0; margin-top: 1px; }
.cs-alert__body { flex: 1; min-width: 0; }
.cs-alert__title { display: block; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
.cs-alert__list { margin: 0; padding-left: 20px; }
.cs-alert--success { background: rgba(111, 194, 144, 0.08); border-color: rgba(111, 194, 144, 0.3); color: #6FC290; }
.cs-alert--success .cs-alert__title, .cs-alert--success .cs-alert__icon { color: #6FC290; }
.cs-alert--info { background: rgba(9, 150, 232, 0.08); border-color: rgba(9, 150, 232, 0.25); color: #4FB1F0; }
.cs-alert--info .cs-alert__title, .cs-alert--info .cs-alert__icon { color: #4FB1F0; }
.cs-alert--warning { background: rgba(224, 168, 83, 0.08); border-color: rgba(224, 168, 83, 0.3); color: #E0A853; }
.cs-alert--warning .cs-alert__title, .cs-alert--warning .cs-alert__icon { color: #E0A853; }
.cs-alert--danger { background: rgba(224, 83, 83, 0.08); border-color: rgba(224, 83, 83, 0.3); color: #E05353; }
.cs-alert--danger .cs-alert__title, .cs-alert--danger .cs-alert__icon { color: #E05353; }
.cs-alert--secondary { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* Panel typed variants */
.cs-panel--success .cs-panel__head { background: rgba(111, 194, 144, 0.06); }
.cs-panel--info .cs-panel__head { background: rgba(9, 150, 232, 0.06); }
.cs-panel--warning .cs-panel__head { background: rgba(224, 168, 83, 0.06); }
.cs-panel--danger .cs-panel__head { background: rgba(224, 83, 83, 0.06); }
.cs-panel__body--center { text-align: center; }

/* Modal helpers (Six/Nexus uses Bootstrap modals — we provide a lightweight equivalent) */
.cs-modal { position: fixed; inset: 0; z-index: 1050; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); }
.cs-modal.show, .cs-modal[style*="display:flex"] { display: flex !important; }
.cs-modal__dialog { width: 90%; max-width: 480px; }
.cs-modal__content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); overflow: hidden; }
.cs-modal__header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.02); }
.cs-modal__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); margin: 0; font-weight: 600; }
.cs-modal__close { background: transparent; border: 0; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; padding: 0 6px; line-height: 1; }
.cs-modal__close:hover { color: var(--text-primary); }
.cs-modal__body { padding: 22px; color: var(--text-secondary); }
.cs-modal__footer { padding: 14px 22px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); display: flex; justify-content: flex-end; gap: 8px; }

/* Block button */
.cs-btn--block { display: block; width: 100%; }

/* Breadcrumb (page-level, distinct from header breadcrumb) */
.cs-breadcrumb-nav { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 18px; }
.cs-breadcrumb-nav a { color: var(--text-secondary); text-decoration: none; }
.cs-breadcrumb-nav a:hover { color: var(--text-blue); }

/* Spinner keyframes (used by forwardpage.tpl) */
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* Form help text */
.cs-form-help { color: var(--text-muted); font-size: 0.82rem; margin: 4px 0 0 0; }

/* Auth card (used by password reset flow) */
.cs-auth-card { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

/* KB suggestion items */
.cs-kb-suggestion-item:hover { background: rgba(9,150,232,0.08); border-color: rgba(9,150,232,0.25); color: var(--text-blue); }




/* ═══════════════════════════════════════════════════════════════════════
   v73 — Dashboard panels — full width grid + proper data display
   ═══════════════════════════════════════════════════════════════════════ */

/* Two-column grid that uses full horizontal space */
.cs-home-panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 991px) {
  .cs-home-panels-grid { grid-template-columns: 1fr; }
}

.cs-home-panel {
  background: var(--bg-card, #1C2030);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
}
.cs-home-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4FB1F0, transparent);
  opacity: 0.6;
}
.cs-home-panel[data-color="green"]::before { background: linear-gradient(90deg, transparent, #6FC290, transparent); }
.cs-home-panel[data-color="red"]::before   { background: linear-gradient(90deg, transparent, #E05353, transparent); }
.cs-home-panel[data-color="gold"]::before,
.cs-home-panel[data-color="amber"]::before { background: linear-gradient(90deg, transparent, #E0A853, transparent); }

/* Panel header */
.cs-home-panel__head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.cs-home-panel__title {
  font-family: 'DM Sans', -apple-system, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: var(--text-primary, #F0F2F8) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: 0.005em !important;
  flex: 1 !important;
  min-width: 0 !important;
}
/* Icons in panel headers - constrained sizing, never overlap text */
.cs-home-panel__icon {
  color: var(--text-blue, #4FB1F0) !important;
  font-size: 0.95rem !important;
  width: 18px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  display: inline-block !important;
  line-height: 1 !important;
}
.cs-home-panel[data-color="red"] .cs-home-panel__icon   { color: #E05353 !important; }
.cs-home-panel[data-color="gold"] .cs-home-panel__icon,
.cs-home-panel[data-color="amber"] .cs-home-panel__icon { color: #E0A853 !important; }
.cs-home-panel[data-color="green"] .cs-home-panel__icon { color: #6FC290 !important; }

.cs-home-panel__title span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-home-panel__badge {
  background: rgba(9, 150, 232, 0.15);
  color: var(--text-blue, #4FB1F0);
  border: 1px solid rgba(9, 150, 232, 0.25);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Action button (e.g. "Open New Ticket") */
.cs-home-panel__action {
  background: rgba(9, 150, 232, 0.08) !important;
  border: 1px solid rgba(9, 150, 232, 0.25) !important;
  color: var(--text-blue, #4FB1F0) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.cs-home-panel__action:hover {
  background: rgba(9, 150, 232, 0.18) !important;
  border-color: rgba(9, 150, 232, 0.4) !important;
  color: #6cc4ff !important;
  text-decoration: none !important;
}
.cs-home-panel__action i {
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

/* Body — for any HTML WHMCS injects */
.cs-home-panel__body {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary, #B0B5C9);
  line-height: 1.6;
}
.cs-home-panel__body, .cs-home-panel__body * {
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
.cs-home-panel__body p { margin: 0 0 8px 0; color: var(--text-secondary); }
.cs-home-panel__body p:last-child { margin-bottom: 0; }
.cs-home-panel__body a { color: var(--text-blue, #4FB1F0); text-decoration: none; }
.cs-home-panel__body a:hover { color: #6cc4ff; text-decoration: underline; }
.cs-home-panel__body strong { color: var(--text-primary, #F0F2F8); font-weight: 600; }

/* Service / ticket list rows */
.cs-home-panel__list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cs-home-panel__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: var(--text-secondary, #B0B5C9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  transition: background 0.15s ease, padding-left 0.15s ease;
  position: relative;
}
.cs-home-panel__list-item:last-child { border-bottom: 0; }
.cs-home-panel__list-item:hover {
  background: rgba(9, 150, 232, 0.05);
  color: var(--text-primary, #F0F2F8);
  text-decoration: none;
  padding-left: 24px;
}
.cs-home-panel__list-item.active {
  background: rgba(9, 150, 232, 0.08);
  color: var(--text-blue, #4FB1F0);
  font-weight: 600;
}

/* Icons in list rows */
.cs-home-panel__list-icon {
  width: 18px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  color: var(--text-blue, #4FB1F0) !important;
  font-size: 0.92rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cs-home-panel__list-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-primary, #F0F2F8);
}

.cs-home-panel__list-chevron {
  flex-shrink: 0;
  color: var(--text-muted, #7A809A);
  opacity: 0.4;
  transition: opacity 0.15s, transform 0.15s;
}
.cs-home-panel__list-item:hover .cs-home-panel__list-chevron {
  opacity: 1;
  transform: translateX(2px);
  color: var(--text-blue, #4FB1F0);
}

/* "View More..." footer-style row at bottom of services panel */
.cs-home-panel__list-item[data-child-name*="view-more"],
.cs-home-panel__list-item[data-child-name="More Services"] {
  background: rgba(255, 255, 255, 0.02) !important;
  font-weight: 600 !important;
  color: var(--text-blue, #4FB1F0) !important;
  justify-content: center;
}
.cs-home-panel__list-item[data-child-name*="view-more"] .cs-home-panel__list-label,
.cs-home-panel__list-item[data-child-name="More Services"] .cs-home-panel__list-label {
  flex: 0 0 auto;
  color: var(--text-blue, #4FB1F0) !important;
}

/* Status pills (when WHMCS includes them via getBadge or in body html) */
.cs-home-panel__body .label,
.cs-home-panel__body .badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-left: 6px;
}
.cs-home-panel__body .label-success,
.cs-home-panel__body .badge-success { background: rgba(111, 194, 144, 0.12) !important; color: #6FC290 !important; border-color: rgba(111, 194, 144, 0.25) !important; }
.cs-home-panel__body .label-info,
.cs-home-panel__body .badge-info    { background: rgba(79, 177, 240, 0.12) !important; color: #4FB1F0 !important; border-color: rgba(79, 177, 240, 0.25) !important; }
.cs-home-panel__body .label-warning,
.cs-home-panel__body .badge-warning { background: rgba(224, 168, 83, 0.12) !important; color: #E0A853 !important; border-color: rgba(224, 168, 83, 0.25) !important; }
.cs-home-panel__body .label-danger,
.cs-home-panel__body .badge-danger  { background: rgba(224, 83, 83, 0.12) !important; color: #E05353 !important; border-color: rgba(224, 83, 83, 0.25) !important; }
.cs-home-panel__body .label-default,
.cs-home-panel__body .badge-default { background: rgba(255, 255, 255, 0.04) !important; color: var(--text-muted) !important; border-color: rgba(255, 255, 255, 0.08) !important; }

/* Recent tickets specific styling - format as proper list with structure */
.cs-home-panel[data-panel-name="Recent Support Tickets"] .cs-home-panel__body,
.cs-home-panel[data-panel-name="recent-support-tickets"] .cs-home-panel__body {
  padding: 0;
}
.cs-home-panel[data-panel-name="Recent Support Tickets"] .cs-home-panel__body p,
.cs-home-panel[data-panel-name="recent-support-tickets"] .cs-home-panel__body p {
  padding: 13px 20px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cs-home-panel[data-panel-name="Recent Support Tickets"] .cs-home-panel__body p:last-child,
.cs-home-panel[data-panel-name="recent-support-tickets"] .cs-home-panel__body p:last-child {
  border-bottom: 0;
}
.cs-home-panel[data-panel-name="Recent Support Tickets"] .cs-home-panel__body a,
.cs-home-panel[data-panel-name="recent-support-tickets"] .cs-home-panel__body a {
  font-weight: 600;
  color: var(--text-primary, #F0F2F8) !important;
}
.cs-home-panel[data-panel-name="Recent Support Tickets"] .cs-home-panel__body a:hover,
.cs-home-panel[data-panel-name="recent-support-tickets"] .cs-home-panel__body a:hover {
  color: var(--text-blue, #4FB1F0) !important;
}

/* Footer in panel */
.cs-home-panel__footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
  color: var(--text-muted, #7A809A);
  margin-top: auto;
}
.cs-home-panel__footer:empty { display: none; }
.cs-home-panel__footer a { color: var(--text-blue, #4FB1F0); }

/* Panel link helper */
.cs-panel__link {
  font-size: 0.82rem;
  color: var(--text-blue, #4FB1F0);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.cs-panel__link:hover {
  color: #6cc4ff;
  text-decoration: none;
}

.cs-panel.mt-4 { margin-top: 18px; }

/* ═══════════════════════════════════════════════════════════════════════
   v73 — Global FontAwesome icon constraints
   Prevent icons from rendering on top of text everywhere
   ═══════════════════════════════════════════════════════════════════════ */

/* Default sizing for FA icons inline in text */
.cs-main i.fas,
.cs-main i.far,
.cs-main i.fab,
.cs-main i.fal {
  font-size: inherit;
  line-height: 1;
  vertical-align: -0.0625em;
}

/* Inside buttons/badges/labels: prevent oversized icons */
.cs-btn i.fas, .cs-btn i.far, .cs-btn i.fab,
.btn i.fas, .btn i.far, .btn i.fab,
.label i.fas, .badge i.fas {
  font-size: 0.92em !important;
  width: auto !important;
  margin-right: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════
   v74 — Payment methods list rows + confirm modal
   ═══════════════════════════════════════════════════════════════════════ */

.cs-paymethod-list {
  display: flex;
  flex-direction: column;
}

.cs-paymethod-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}
.cs-paymethod-row:last-child { border-bottom: 0; }
.cs-paymethod-row:hover { background: rgba(9, 150, 232, 0.03); }

.cs-paymethod-row--default {
  background: linear-gradient(90deg, rgba(9, 150, 232, 0.05), transparent);
}

.cs-paymethod-row__icon {
  flex-shrink: 0;
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1C2030, #161A23);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-blue, #4FB1F0);
  font-size: 1.2rem;
}
.cs-paymethod-row__icon i { line-height: 1; }

.cs-paymethod-row__main {
  flex: 1;
  min-width: 0;
}
.cs-paymethod-row__name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary, #F0F2F8);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.cs-paymethod-row__desc {
  font-size: 0.84rem;
  color: var(--text-secondary, #B0B5C9);
  margin-bottom: 2px;
}
.cs-paymethod-row__status {
  font-size: 0.78rem;
  color: var(--text-muted, #7A809A);
}

.cs-paymethod-row__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.cs-paymethod-row__actions .cs-btn {
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.cs-paymethod-row__actions .cs-btn--danger {
  color: #E05353 !important;
}
.cs-paymethod-row__actions .cs-btn--danger:hover {
  background: rgba(224, 83, 83, 0.1) !important;
  border-color: rgba(224, 83, 83, 0.3) !important;
  color: #f57777 !important;
}
.cs-paymethod-row__actions .cs-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* Hide action labels on small screens (icon only) */
@media (max-width: 768px) {
  .cs-paymethod-action-label { display: none; }
  .cs-paymethod-row { flex-wrap: wrap; }
}

/* Confirm modal (delete confirmation) */
.cs-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.cs-confirm-modal[style*="display:flex"],
.cs-confirm-modal[style*="display: flex"] {
  display: flex !important;
}
.cs-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.cs-confirm-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: var(--bg-card, #1C2030);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.cs-confirm-modal__header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}
.cs-confirm-modal__close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.cs-confirm-modal__close:hover { color: var(--text-primary); }
.cs-confirm-modal__body {
  padding: 22px;
  color: var(--text-secondary);
}
.cs-confirm-modal__footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


/* ═══════════════════════════════════════════════════════════════════════
   v76 — Dashboard rewrite: Nexus-parity Bootstrap cards in dark theme
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Top stat tiles ── */
.cs-tiles { margin-bottom: 24px; }
.cs-tiles .row { display: flex; flex-wrap: wrap; margin: 0; }
.cs-tiles .row.no-gutters > [class*="col-"] { padding: 0; }
.cs-tiles .col-6 { flex: 0 0 50%; max-width: 50%; }
@media (min-width: 1200px) {
  .cs-tiles .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}

.cs-tiles .tile {
  display: block;
  position: relative;
  padding: 18px 22px;
  background: var(--bg-card, #242936);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none !important;
  transition: all 0.2s ease;
  height: 100%;
  min-height: 110px;
  margin: 0 4px;
  border-radius: 12px;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
.cs-tiles .tile:hover {
  background: var(--bg-surface, #1C2030);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.cs-tiles .tile:hover i {
  font-size: 70px;
  color: rgba(255, 255, 255, 0.18);
}

/* CRITICAL — force DM Sans on the stat numbers */
.cs-tiles .tile .stat,
.cs-tiles .tile div.stat {
  margin-top: 22px;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-primary, #F0F2F8);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.02em;
}
.cs-tiles .tile .title {
  font-weight: 700;
  color: var(--text-muted, #7A809A);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
.cs-tiles .tile .highlight {
  margin-top: 10px;
  height: 2px;
  border-radius: 2px;
}
.cs-tiles .tile i {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 48px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

/* Highlight underline accent colors */
.cs-tiles .bg-color-blue   { background-color: #4FB1F0; }
.cs-tiles .bg-color-green  { background-color: #6FC290; }
.cs-tiles .bg-color-red    { background-color: #E05353; }
.cs-tiles .bg-color-gold   { background-color: #E0A853; }
.cs-tiles .bg-color-orange { background-color: #E0A853; }

/* ── Bootstrap layout (we don't load Bootstrap on dashboard) ── */
.client-home-cards .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.client-home-cards .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
.client-home-cards .col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
@media (min-width: 768px) {
  .client-home-cards .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .client-home-cards .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 1200px) {
  .client-home-cards .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
}
.client-home-cards .float-right { float: right; }

/* ── Bootstrap card themed for dark ── */
.client-home-cards .card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #242936);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9em;
  overflow: hidden;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}
.client-home-cards .card,
.client-home-cards .card * {
  font-family: 'DM Sans', -apple-system, sans-serif !important;
}

/* Top accent border per panel color */
.client-home-cards .card-accent-blue   { border-top: 3px solid #4FB1F0; }
.client-home-cards .card-accent-green  { border-top: 3px solid #6FC290; }
.client-home-cards .card-accent-red    { border-top: 3px solid #E05353; }
.client-home-cards .card-accent-gold   { border-top: 3px solid #E0A853; }
.client-home-cards .card-accent-orange { border-top: 3px solid #E0A853; }
.client-home-cards .card-accent-pink   { border-top: 3px solid #C580E5; }
.client-home-cards .card-accent-purple { border-top: 3px solid #9F7AEA; }
.client-home-cards .card-accent-lime   { border-top: 3px solid #6FC290; }

/* Card header */
.client-home-cards .card-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.client-home-cards .card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #F0F2F8);
  display: flex;
  align-items: center;
  flex: 1;
}
.client-home-cards .card-title i {
  color: var(--text-blue, #4FB1F0);
  font-size: 1.1em;
  margin-right: 6px;
}

/* Card header button (View More / + Open Ticket / etc) */
.client-home-cards .card-header .btn,
.client-home-cards .card-title .btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.client-home-cards .card-header .btn:hover,
.client-home-cards .card-title .btn:hover {
  background: rgba(9, 150, 232, 0.12) !important;
  border-color: rgba(9, 150, 232, 0.3) !important;
  color: var(--text-blue, #4FB1F0) !important;
}
/* Override colored button backgrounds in header (bg-color-X) */
.client-home-cards .card-header .btn[class*="bg-color-"] {
  background: rgba(9, 150, 232, 0.1) !important;
}

/* Card body */
.client-home-cards .card-body {
  padding: 16px 20px;
  color: var(--text-secondary, #B0B5C9);
  font-size: 0.92rem;
  line-height: 1.55;
}
.client-home-cards .card-body p {
  margin: 0 0 8px 0;
}
.client-home-cards .card-body p:last-child {
  margin-bottom: 0;
}
.client-home-cards .card-body a {
  color: var(--text-blue, #4FB1F0);
  text-decoration: none;
}
.client-home-cards .card-body a:hover {
  color: #6cc4ff;
  text-decoration: underline;
}
.client-home-cards .card-body strong {
  color: var(--text-primary, #F0F2F8);
  font-weight: 600;
}

/* List group (children) */
.client-home-cards .list-group {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}
.client-home-cards .list-group-item {
  position: relative;
  display: block;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-primary, #F0F2F8);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none !important;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.client-home-cards .list-group-item:first-child {
  border-top: 0;
}
.client-home-cards .list-group-item:hover {
  background: rgba(9, 150, 232, 0.04);
}
.client-home-cards .list-group-item.active {
  background: rgba(9, 150, 232, 0.1);
  color: var(--text-blue, #4FB1F0);
}
.client-home-cards .list-group-item i {
  color: var(--text-muted, #7A809A);
  margin-right: 8px;
  font-size: 0.95em;
}
.client-home-cards .list-group-item .badge {
  float: right;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #B0B5C9);
  font-size: 0.72rem;
  font-weight: 600;
}

/* WHMCS Six theme injects .div-service-item etc. into list-group-items
   for "Active Products/Services" panel — we style those for dark theme */
.client-home-cards div[menuItemName="Active Products/Services"] .list-group-item,
.client-home-cards div[menuitemname="Active Products/Services"] .list-group-item {
  padding: 14px 20px;
}
.client-home-cards .div-service-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.client-home-cards .div-service-status {
  text-align: center;
  flex-shrink: 0;
}
.client-home-cards .div-service-status .label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  min-width: 3.5rem;
  text-align: center;
}
.client-home-cards .div-service-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.client-home-cards .div-service-name > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary, #F0F2F8);
  font-weight: 500;
}
.client-home-cards .div-service-buttons {
  margin-left: auto;
  flex-shrink: 0;
}
.client-home-cards .div-service-buttons .btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
}
.client-home-cards .div-service-buttons .btn:hover {
  background: rgba(9, 150, 232, 0.12) !important;
  border-color: rgba(9, 150, 232, 0.3) !important;
  color: var(--text-blue, #4FB1F0) !important;
}
.client-home-cards .div-service-buttons .dropdown-toggle::after { display: none; }
.client-home-cards .div-service-buttons .btn-group-secondary,
.client-home-cards .div-service-buttons .btn-view-details span:not(.sr-only) { display: none; }
@media (min-width: 768px) {
  .client-home-cards .div-service-buttons .btn-group-primary,
  .client-home-cards .div-service-buttons .btn-view-details i { display: none; }
  .client-home-cards .div-service-buttons .btn-group-secondary { display: inline-flex; }
  .client-home-cards .div-service-buttons .btn-view-details span:not(.sr-only):not(.caret) { display: initial !important; }
}

/* Limit Active Products list to 4 items + show View More button */
.client-home-cards div[menuItemName="Active Products/Services"] .list-group,
.client-home-cards div[menuitemname="Active Products/Services"] .list-group {
  overflow: initial !important;
  max-height: initial !important;
}
.client-home-cards div[menuItemName="Active Products/Services"] .list-group .list-group-item:nth-child(n+5),
.client-home-cards div[menuitemname="Active Products/Services"] .list-group .list-group-item:nth-child(n+5) {
  display: none;
}

/* Status label colors (WHMCS injects these classes) */
.client-home-cards .label-success,
.client-home-cards .status-active,
.client-home-cards .status-completed,
.client-home-cards .status-open,
.client-home-cards .status-paid { background-color: #6FC290 !important; }
.client-home-cards .label-info,
.client-home-cards .status-onhold { background-color: #4FB1F0 !important; }
.client-home-cards .label-warning,
.client-home-cards .status-pending,
.client-home-cards .status-customer-reply,
.client-home-cards .status-inprogress { background-color: #E0A853 !important; }
.client-home-cards .label-danger,
.client-home-cards .status-fraud,
.client-home-cards .status-unpaid { background-color: #E05353 !important; }
.client-home-cards .label-default,
.client-home-cards .status-closed,
.client-home-cards .status-cancelled,
.client-home-cards .status-terminated { background-color: #6c757d !important; }
.client-home-cards .status-suspended { background-color: #E0A853 !important; }
.client-home-cards .status-answered { background-color: #C580E5 !important; }

/* Ticket badges in Recent Tickets card-body */
.client-home-cards .card-body .label,
.client-home-cards .card-body .badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-left: 4px;
}

/* Card footer */
.client-home-cards .card-footer {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 12px 12px;
  font-size: 0.85rem;
}
.client-home-cards .card-footer:empty { display: none; }
.client-home-cards .card-footer a,
.client-home-cards .card-footer .btn-view-more {
  color: var(--text-blue, #4FB1F0);
  text-decoration: none;
  font-weight: 500;
}
.client-home-cards .card-footer a:hover { color: #6cc4ff; text-decoration: underline; }
.client-home-cards .btn-view-more.disabled {
  cursor: default;
  text-decoration: none;
  color: var(--text-muted) !important;
  pointer-events: none;
}

/* m-0 utility */
.client-home-cards .m-0 { margin: 0 !important; }

/* Hide news panel in case it slips through */
.client-home-cards div[menuItemName="Recent News"],
.client-home-cards div[menuitemname="Recent News"],
.client-home-cards div[menuItemName="recent-news"],
.client-home-cards div[menuitemname="recent-news"] { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════════
   v77 — Knowledgebase article + KB visitor banner + reply form Bootstrap
   ═══════════════════════════════════════════════════════════════════════ */

/* Visitor (logged-out) banner above the article */
.cs-kb-visitor-banner {
  background: linear-gradient(135deg, rgba(9,150,232,0.08), rgba(9,150,232,0.02));
  border: 1px solid rgba(9,150,232,0.18);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-secondary);
}
.cs-kb-visitor-banner__heading {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
}
.cs-kb-visitor-banner__trustpilot {
  display: inline-flex;
  align-items: center;
}
.cs-kb-visitor-banner__trustpilot img {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.cs-kb-visitor-banner__cta {
  font-size: 1rem;
  margin: 10px 0;
  color: var(--text-primary);
}
.cs-kb-visitor-banner__cta a,
.cs-kb-visitor-banner__feature a,
.cs-kb-visitor-banner__promo a {
  color: var(--text-blue, #4FB1F0);
  text-decoration: none;
}
.cs-kb-visitor-banner__cta a:hover,
.cs-kb-visitor-banner__feature a:hover,
.cs-kb-visitor-banner__promo a:hover { text-decoration: underline; }
.cs-kb-visitor-banner__feature {
  font-size: 0.92rem;
  margin: 8px 0;
  color: var(--text-secondary);
  line-height: 1.55;
}
.cs-kb-visitor-banner__promo {
  font-size: 1.02rem;
  margin: 14px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(9,150,232,0.12);
  color: var(--text-primary);
}
.cs-kb-visitor-banner__promo strong { color: #6FC290; }
.cs-kb-visitor-banner__promo u { text-decoration: underline; text-underline-offset: 3px; }

/* KB article body — make sure it has proper rendering */
.cs-kb-article {
  color: var(--text-secondary, #B0B5C9);
  font-size: 0.95rem;
  line-height: 1.75;
  font-family: 'DM Sans', -apple-system, sans-serif;
}
.cs-kb-article h1,
.cs-kb-article h2,
.cs-kb-article h3,
.cs-kb-article h4,
.cs-kb-article h5,
.cs-kb-article h6 {
  color: var(--text-primary, #F0F2F8);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.cs-kb-article h1 { font-size: 1.6rem; }
.cs-kb-article h2 { font-size: 1.3rem; }
.cs-kb-article h3 { font-size: 1.12rem; }
.cs-kb-article h4 { font-size: 1rem; }
.cs-kb-article p { margin: 0 0 14px 0; }
.cs-kb-article a { color: var(--text-blue, #4FB1F0); text-decoration: underline; }
.cs-kb-article a:hover { color: #6cc4ff; }
.cs-kb-article strong, .cs-kb-article b { color: var(--text-primary, #F0F2F8); font-weight: 600; }
.cs-kb-article ul, .cs-kb-article ol { margin: 10px 0 14px 0; padding-left: 24px; }
.cs-kb-article li { margin: 4px 0; }
.cs-kb-article code {
  background: rgba(255,255,255,0.06);
  color: var(--text-blue, #4FB1F0);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.cs-kb-article pre {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.cs-kb-article pre code {
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
}
.cs-kb-article blockquote {
  border-left: 3px solid var(--blue, #0996e8);
  padding: 6px 16px;
  margin: 14px 0;
  color: var(--text-muted);
  background: rgba(9,150,232,0.04);
  border-radius: 0 8px 8px 0;
}
.cs-kb-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.cs-kb-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
}
.cs-kb-article table th, .cs-kb-article table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.cs-kb-article table th {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-weight: 600;
}
.cs-kb-article hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 18px 0;
}

.cs-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 18px 0;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: rgba(9,150,232,0.1);
  border: 1px solid rgba(9,150,232,0.25);
  border-radius: 999px;
  color: var(--text-blue, #4FB1F0);
  font-size: 0.78rem;
  font-weight: 500;
}

.cs-kb-related-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none !important;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.cs-kb-related-item:last-child { border-bottom: 0; }
.cs-kb-related-item:hover { background: rgba(9,150,232,0.04); }
.cs-kb-related-item svg { margin-top: 3px; }
.cs-kb-related-item__title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cs-kb-related-item__excerpt {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── Reply form: Bootstrap class theming for ticket reply ── */
#frmReply { color: var(--text-primary); }
#frmReply .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
#frmReply .col-md-4 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
#frmReply .col-md-5 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
@media (min-width: 768px) {
  #frmReply .col-md-4 { flex: 0 0 33.33%; max-width: 33.33%; }
  #frmReply .col-md-5 { flex: 0 0 41.66%; max-width: 41.66%; }
}
#frmReply .form-group { margin-bottom: 16px; }
#frmReply label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#frmReply .form-control {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: 'DM Sans', -apple-system, sans-serif;
  transition: all 0.15s ease;
}
#frmReply .form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(9, 150, 232, 0.5);
  box-shadow: 0 0 0 3px rgba(9, 150, 232, 0.12);
}
#frmReply textarea.form-control {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
  padding: 14px;
  font-size: 0.95rem;
}

/* Bootstrap input-group + custom-file-input for attachments */
#frmReply .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}
#frmReply .input-group.mb-1 { margin-bottom: 6px; }
#frmReply .custom-file {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
#frmReply .custom-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
#frmReply .custom-file-label {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px 0 0 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#frmReply .custom-file-input:focus + .custom-file-label,
#frmReply .custom-file:hover .custom-file-label {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(9, 150, 232, 0.4);
}
#frmReply .input-group-append {
  display: flex;
}
#frmReply .input-group-append .btn {
  padding: 11px 16px;
  background: rgba(9, 150, 232, 0.1);
  border: 1px solid rgba(9, 150, 232, 0.3);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--text-blue, #4FB1F0);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
#frmReply .input-group-append .btn:hover {
  background: rgba(9, 150, 232, 0.2);
  color: #6cc4ff;
}
#frmReply .input-group-append .btn i { line-height: 1; }
#frmReply .file-upload.w-hidden { display: none; }
#frmReply .text-muted {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
}
#frmReply .text-muted small { font-size: inherit; }

#frmReply .form-group.text-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  text-align: right;
  margin-top: 8px;
}
#frmReply .form-group.text-center .btn,
#frmReply input.btn {
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'DM Sans', -apple-system, sans-serif;
}
#frmReply input.btn-primary {
  background: linear-gradient(135deg, #0aa3f8, #0776c9);
  border-color: rgba(9,150,232,0.5);
  color: #fff;
}
#frmReply input.btn-primary:hover {
  background: linear-gradient(135deg, #14b1ff, #088ee0);
  box-shadow: 0 4px 12px rgba(9,150,232,0.3);
}
#frmReply input.btn-default {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
#frmReply input.btn-default:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════════════
   v77 — Layout safety: prevent sidebar/main collapsing if grid fails
   ═══════════════════════════════════════════════════════════════════════ */

/* Fallback flex layout if browser doesn't grok grid (highly unlikely but cheap insurance) */
@supports not (display: grid) {
  .cs-shell {
    display: flex !important;
    flex-direction: row !important;
  }
  .cs-sidebar { width: 240px; flex-shrink: 0; }
  .cs-main { flex: 1; }
}

/* Force sidebar to stay confined to its grid area on guest pages (knowledgebase, login, etc.)
   When nav is short, sidebar shouldn't collapse height or push main below. */
.cs-sidebar {
  min-height: 100vh;  /* even with few items, fill the viewport */
}
.cs-sidebar nav.cs-nav {
  flex: 1; /* push the footer to bottom even with sparse nav */
}


/* ═══════════════════════════════════════════════════════════════════════
   v78 — LAYOUT OVERHAUL: switch to bulletproof Flexbox
   The grid-based layout was unreliable on certain pages (KB logged-out
   especially). Flexbox with explicit widths is more bulletproof.
   These rules use higher specificity (body.cs-body .cs-shell) to win.
   ═══════════════════════════════════════════════════════════════════════ */

body.cs-body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0;
}

body.cs-body .cs-shell {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex: 1 0 auto !important;
  width: 100% !important;
  /* override any grid-template-* */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
}

body.cs-body .cs-sidebar {
  flex: 0 0 240px !important;
  width: 240px !important;
  max-width: 240px !important;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  /* Override grid-area */
  grid-area: auto !important;
}

/* Right column container — wraps header + main vertically */
body.cs-body .cs-shell > .cs-header,
body.cs-body .cs-shell > .cs-main {
  /* grid-area override so flex flow takes over */
  grid-area: auto !important;
}

/* Wrap header+main into a column on the right of sidebar via CSS only —
   since the HTML has them as siblings of sidebar, we use a flex trick:
   make the right side fill remaining space using flex-flow in cs-shell as wrap. */
body.cs-body .cs-shell {
  flex-wrap: wrap !important;
}
body.cs-body .cs-shell > .cs-header {
  flex: 1 1 calc(100% - 240px) !important;
  width: calc(100% - 240px) !important;
  max-width: calc(100% - 240px) !important;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  order: 2;
}
body.cs-body .cs-shell > .cs-main {
  flex: 1 1 calc(100% - 240px) !important;
  width: calc(100% - 240px) !important;
  max-width: calc(100% - 240px) !important;
  margin-left: 240px;  /* push main to the right of sticky sidebar */
  margin-top: -60px;   /* compensate for header order */
  padding-top: 88px;   /* 60px header + 28px padding */
  order: 3;
}

/* Sidebar order: first */
body.cs-body .cs-shell > .cs-sidebar {
  order: 1;
}

/* Actually, the simpler pattern: just use a wrapper. But since the HTML
   structure is fixed, use absolute positioning of sidebar instead. */

body.cs-body .cs-shell {
  position: relative;
  display: block !important;  /* simpler: just block, sidebar absolute */
  flex: 1 0 auto !important;
  flex-wrap: nowrap !important;
}
body.cs-body .cs-shell > .cs-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  height: 100% !important;
  min-height: 100vh;
  flex: none !important;
  align-self: auto !important;
  order: 0;
}
body.cs-body .cs-shell > .cs-header {
  margin-left: 240px !important;
  width: calc(100% - 240px) !important;
  max-width: none !important;
  flex: none !important;
  order: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
}
body.cs-body .cs-shell > .cs-main {
  margin-left: 240px !important;
  width: calc(100% - 240px) !important;
  max-width: none !important;
  flex: none !important;
  margin-top: 0 !important;
  padding-top: 28px !important;
  padding: 28px !important;
  order: 0;
  min-height: calc(100vh - 60px - 200px); /* viewport minus header minus footer estimate */
}

/* Sidebar: keep it sticky AND absolute by using `position: fixed` on scroll */
body.cs-body .cs-sidebar {
  position: fixed !important;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  height: 100vh !important;
  overflow-y: auto;
  z-index: 100;
}

/* Footer must align with main content (offset by sidebar width) */
.cs-footer {
  margin-left: 240px !important;
  width: calc(100% - 240px);
}

/* Mobile — collapse sidebar */
@media (max-width: 900px) {
  body.cs-body .cs-sidebar { display: none !important; }
  body.cs-body .cs-shell > .cs-header,
  body.cs-body .cs-shell > .cs-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .cs-footer {
    margin-left: 0 !important;
    width: 100%;
  }
}

/* ── Active Products rich rendering (v78) ── */
.cs-svc-row-rich {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 14px 20px !important;
}
.cs-svc-status {
  flex-shrink: 0;
  min-width: 88px;
}
.cs-svc-status-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cs-svc-status--active .cs-svc-status-pill {
  background: rgba(111, 194, 144, 0.15);
  color: #6FC290;
  border: 1px solid rgba(111, 194, 144, 0.3);
}
.cs-svc-status--pending .cs-svc-status-pill {
  background: rgba(224, 168, 83, 0.15);
  color: #E0A853;
  border: 1px solid rgba(224, 168, 83, 0.3);
}
.cs-svc-status--suspended .cs-svc-status-pill {
  background: rgba(224, 168, 83, 0.15);
  color: #E0A853;
  border: 1px solid rgba(224, 168, 83, 0.3);
}
.cs-svc-status--cancelled .cs-svc-status-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cs-svc-status--default .cs-svc-status-pill {
  background: rgba(79, 177, 240, 0.15);
  color: #4FB1F0;
  border: 1px solid rgba(79, 177, 240, 0.3);
}
.cs-svc-info {
  flex: 1;
  min-width: 0;
}
.cs-svc-info-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-svc-info-domain {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-svc-action {
  flex-shrink: 0;
}
.cs-svc-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.cs-svc-link:hover .cs-svc-view {
  background: rgba(9, 150, 232, 0.12);
  border-color: rgba(9, 150, 232, 0.3);
  color: var(--text-blue, #4FB1F0);
}


/* ═══════════════════════════════════════════════════════════════════════
   v79 — Fix horizontal scroll + footer alignment
   ═══════════════════════════════════════════════════════════════════════ */

/* 1) Prevent horizontal scroll at the body level.
      The -8px negative margins on Bootstrap grid rows inside cs-main
      were spilling out and making 100% references wider than viewport. */
html, body.cs-body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* 2) cs-main must also clip horizontal overflow so ticket cards
      and panels never extend beyond the content area. */
body.cs-body .cs-shell > .cs-main {
  overflow-x: hidden !important;
  /* Ensure width never exceeds right edge */
  box-sizing: border-box !important;
}

/* 3) Fix negative margin overflow from Bootstrap grid inside dashboard */
.client-home-cards .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.client-home-cards .col-md-6,
.client-home-cards .col-12,
.client-home-cards .col-lg-12,
.client-home-cards .col-xl-6 {
  padding-left: 8px;
  padding-right: 8px;
}

/* 4) Ticket cards must not overflow their container */
.cs-tk-msg,
.cs-tk-msg--client,
.cs-tk-msg--staff {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.cs-tk-thread {
  min-width: 0;
  max-width: 100%;
}

/* 5) FOOTER — full-width, visually clean
      Remove the calc(100% - 240px) approach which was fragile.
      Footer spans full page width. Since sidebar is position:fixed
      and sits ON TOP, the footer background naturally appears full-width.
      The footer's inner content uses padding-left to clear the sidebar. */
.cs-footer {
  margin-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: calc(240px + 32px) !important;
  padding-right: 40px !important;
}
@media (max-width: 900px) {
  .cs-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* 6) Tile row on dashboard also had potential overflow */
.cs-tiles .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.cs-tiles .col-6,
.cs-tiles .col-xl-3 {
  box-sizing: border-box;
}


/* ═══════════════════════════════════════════════════════════════════════
   v80 — Input icon fixes, quotes table, dropdown indicator, promo icon
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1) Login: preserve left padding even when .cs-main override fires ── */
/* The global .cs-main input[type=email/password] sets padding:9px 14px.
   .cs-login-input needs !important on the left padding to win. 
   (Already added !important to inline style in login.tpl itself.) */
.cs-login-input {
  padding-left: 42px !important;
}
.cs-login-input--plain {
  padding-left: 16px !important;
}

/* ── 2) Promo code icon: make the input-group-prepend truly separate,
         not overlapping the input. Force display:flex on the group. ── */
#order-standard_cart .input-group,
.cart-body .input-group,
.secondary-cart-body .input-group {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}
/* If the .cs-main override is flattening the input-group layout: */
#order-standard_cart .input-group > .form-control,
.cart-body .input-group > .form-control {
  /* Don't let the global .cs-main input reset interfere with the group */
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ── 3) Dropdown/select: always show a chevron indicator ── */
/* Target native <select> elements throughout the app */
.cs-main select,
.cs-main select.form-control,
select.cs-select,
select.form-control,
.cs-main .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238B90A8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
}

/* ── 4) Quotes table — dark theme DataTables styling ── */
.cs-quotes-wrap table.dataTable,
#tableQuotesList {
  width: 100% !important;
  border-collapse: collapse !important;
  color: var(--text-primary) !important;
  font-family: 'DM Sans', sans-serif !important;
}
.cs-quotes-wrap table.dataTable thead th,
#tableQuotesList thead th {
  background: rgba(255,255,255,0.03) !important;
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  white-space: nowrap;
}
.cs-quotes-wrap table.dataTable thead th.sorting,
.cs-quotes-wrap table.dataTable thead th.sorting_asc,
.cs-quotes-wrap table.dataTable thead th.sorting_desc {
  cursor: pointer;
}
.cs-quotes-wrap table.dataTable thead th.sorting::after,
.cs-quotes-wrap table.dataTable thead th.sorting_asc::after,
.cs-quotes-wrap table.dataTable thead th.sorting_desc::after {
  color: rgba(255,255,255,0.3);
}
.cs-quotes-wrap table.dataTable tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  transition: background 0.12s ease !important;
}
.cs-quotes-wrap table.dataTable tbody tr:hover {
  background: rgba(9,150,232,0.04) !important;
}
.cs-quotes-wrap table.dataTable tbody td {
  padding: 13px 16px !important;
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  vertical-align: middle !important;
  border: 0 !important;
}

/* DataTables controls (show entries, search, pagination) */
.dataTables_wrapper {
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg-input, rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
}
.dataTables_wrapper .dataTables_length select {
  padding-right: 28px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238B90A8' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
  color: var(--text-secondary) !important;
  padding: 5px 12px !important;
  margin: 0 2px !important;
  cursor: pointer;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(9,150,232,0.12) !important;
  border-color: rgba(9,150,232,0.3) !important;
  color: var(--text-blue, #4FB1F0) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: rgba(9,150,232,0.15) !important;
  border-color: rgba(9,150,232,0.4) !important;
  color: var(--text-blue, #4FB1F0) !important;
  font-weight: 600 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}
.dataTables_wrapper .dataTables_info {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: rgba(9,150,232,0.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(9,150,232,0.1) !important;
}

/* w-hidden utility (Nexus uses this to hide elements that DataTables shows) */
.w-hidden { display: none; }


/* ═══════════════════════════════════════════════════════════════════════
   v81 — Service detail page + upgrade templates
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Service detail layout ── */
.cs-svc-overview { padding: 0; overflow: hidden; }
.cs-svc-overview__inner {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.cs-svc-left {
  flex: 0 0 240px;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cs-svc-billing {
  flex: 1;
  padding: 24px 28px;
}
.cs-svc-billing__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}
.cs-svc-billing__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  align-items: baseline;
}
.cs-svc-billing__grid dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.cs-svc-billing__grid dd {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}
.cs-svc-due--ok { color: #6FC290 !important; }
.cs-svc-due--warn { color: #E0A853 !important; }

/* Product logo */
.cs-svc-logo-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 4px;
}
.cs-svc-logo {
  max-width: 130px;
  max-height: 130px;
  object-fit: contain;
}
.cs-svc-logo-placeholder {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* Status badge */
.cs-svc-status-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cs-svc-status-active { background: rgba(111,194,144,0.15); color: #6FC290; border: 1px solid rgba(111,194,144,0.3); }
.cs-svc-status-pending,
.cs-svc-status-suspended { background: rgba(224,168,83,0.15); color: #E0A853; border: 1px solid rgba(224,168,83,0.3); }
.cs-svc-status-terminated,
.cs-svc-status-cancelled,
.cs-svc-status-fraud { background: rgba(224,83,83,0.12); color: #E05353; border: 1px solid rgba(224,83,83,0.3); }

/* Action buttons column */
.cs-svc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.cs-svc-actions .cs-btn--block {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.cs-btn--success {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  color: #fff !important;
  border-color: rgba(46,204,113,0.4) !important;
}
.cs-btn--success:hover {
  background: linear-gradient(135deg, #3de07e, #2ebd6a) !important;
  box-shadow: 0 4px 14px rgba(46,204,113,0.3) !important;
}

/* Switch game type button — distinct blue gradient */
.cs-svc-switcher-btn {
  background: linear-gradient(135deg, #1a56db, #2563eb) !important;
  color: #fff !important;
  border-color: rgba(26,86,219,0.5) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  gap: 6px;
}
.cs-svc-switcher-btn:hover {
  background: linear-gradient(135deg, #1e64f5, #2d6ef7) !important;
  box-shadow: 0 4px 14px rgba(26,86,219,0.35) !important;
  transform: translateY(-1px);
}

/* ── Upgrade page grid ── */
.cs-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.cs-upgrade-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.18s ease;
}
.cs-upgrade-card:hover {
  border-color: rgba(9,150,232,0.3);
  background: rgba(9,150,232,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cs-upgrade-card--current {
  border-color: rgba(111,194,144,0.3);
  background: rgba(111,194,144,0.04);
}
.cs-upgrade-card--recommended {
  border-color: rgba(9,150,232,0.4);
  background: rgba(9,150,232,0.06);
}
.cs-upgrade-card__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cs-upgrade-card__badge--current {
  background: rgba(111,194,144,0.15);
  color: #6FC290;
}
.cs-upgrade-card__badge--recommended {
  background: rgba(9,150,232,0.15);
  color: #4FB1F0;
}
.cs-upgrade-card__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.cs-upgrade-card__price {
  font-weight: 600;
  color: var(--text-blue, #4FB1F0);
  font-size: 1rem;
  margin-bottom: 12px;
}
.cs-upgrade-card__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.cs-upgrade-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}
.cs-upgrade-card__features li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.84rem;
}
.cs-upgrade-card__features li:last-child { border-bottom: 0; }

/* CS table (upgrade/quotes) */
.cs-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.cs-table thead th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cs-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.cs-table tbody tr:hover { background: rgba(9,150,232,0.03); }
.cs-table tbody tr:last-child td { border-bottom: 0; }

/* Addon management actions theming */
.cs-addon-actions .btn,
.cs-addon-actions a.btn {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-size: 0.84rem !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .cs-svc-overview__inner { flex-direction: column; }
  .cs-svc-left { width: 100%; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .cs-svc-billing__grid { grid-template-columns: 1fr 1fr; }
  .cs-upgrade-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v82 — Affiliates page + credit balance + button padding + captcha fix
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Global button padding increase ── */
.cs-btn {
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
}
.cs-btn--sm {
  padding: 7px 14px !important;
  font-size: 0.8rem !important;
}
.cs-btn--lg {
  padding: 13px 28px !important;
  font-size: 0.95rem !important;
}
.cs-btn--block {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
}

/* ── Sidebar credit balance ── */
.cs-sidebar__credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 16px 2px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(9,150,232,0.1), rgba(9,150,232,0.04));
  border: 1px solid rgba(9,150,232,0.2);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
}
.cs-sidebar__credit:hover {
  background: linear-gradient(135deg, rgba(9,150,232,0.16), rgba(9,150,232,0.08));
  border-color: rgba(9,150,232,0.35);
}
.cs-sidebar__credit-label {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.cs-sidebar__credit-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4FB1F0;
  font-variant-numeric: tabular-nums;
}

/* ── Affiliate stat tiles ── */
.cs-aff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 4px;
}
.cs-aff-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-aff-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cs-aff-stat--gold {
  background: linear-gradient(135deg, rgba(224,168,83,0.1), rgba(224,168,83,0.03));
  border-color: rgba(224,168,83,0.25);
}
.cs-aff-stat--blue {
  background: linear-gradient(135deg, rgba(9,150,232,0.1), rgba(9,150,232,0.03));
  border-color: rgba(9,150,232,0.25);
}
.cs-aff-stat--green {
  background: linear-gradient(135deg, rgba(111,194,144,0.1), rgba(111,194,144,0.03));
  border-color: rgba(111,194,144,0.25);
}
.cs-aff-stat__icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}
.cs-aff-stat--gold .cs-aff-stat__icon { color: #E0A853; }
.cs-aff-stat--blue  .cs-aff-stat__icon { color: #4FB1F0; }
.cs-aff-stat--green .cs-aff-stat__icon { color: #6FC290; }
.cs-aff-stat__body {
  min-width: 0;
}
.cs-aff-stat__num {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-family: 'DM Sans', -apple-system, sans-serif;
  letter-spacing: -0.03em;
}
.cs-aff-stat--gold .cs-aff-stat__num { color: #E0A853; }
.cs-aff-stat--blue  .cs-aff-stat__num { color: #4FB1F0; }
.cs-aff-stat--green .cs-aff-stat__num { color: #6FC290; }
.cs-aff-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Commission rows ── */
.cs-aff-commission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cs-aff-commission-row:last-child { border-bottom: 0; }
.cs-aff-commission-row--highlight {
  background: rgba(9,150,232,0.04);
}
.cs-aff-commission-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.cs-aff-commission-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.cs-aff-commission-val--green { color: #6FC290; }

/* ── Affiliates referrals table — reuse cs-quotes-wrap styles ── */
/* (already defined in v80) */

/* ── cs-status-pill variants ── */
.cs-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-status-pill--active,
.cs-status-pill--complete,
.cs-status-pill--completed { background: rgba(111,194,144,0.15); color: #6FC290; border: 1px solid rgba(111,194,144,0.3); }
.cs-status-pill--pending { background: rgba(224,168,83,0.15); color: #E0A853; border: 1px solid rgba(224,168,83,0.3); }
.cs-status-pill--cancelled,
.cs-status-pill--terminated,
.cs-status-pill--refunded { background: rgba(224,83,83,0.1); color: #E05353; border: 1px solid rgba(224,83,83,0.25); }
.cs-status-pill--info,
.cs-status-pill--inprogress { background: rgba(9,150,232,0.12); color: #4FB1F0; border: 1px solid rgba(9,150,232,0.3); }

@media (max-width: 640px) {
  .cs-aff-stats { grid-template-columns: 1fr; }
  .cs-aff-stat__num { font-size: 2rem; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v83 — DEFINITIVE LAYOUT RULES (append last, win all)
   Position-fixed sidebar. Simple margin-left offset. No grid/flex tricks.
   ═══════════════════════════════════════════════════════════════════════ */

/* Sidebar: always fixed, always 240px wide */
.cs-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 240px !important;
  height: 100vh !important;
  z-index: 100 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Shell: block container, not grid or flex */
.cs-shell {
  display: block !important;
  min-height: 100vh;
}

/* Header and main: offset right of fixed sidebar */
.cs-header {
  margin-left: 240px !important;
  width: auto !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

.cs-main {
  margin-left: 240px !important;
  width: auto !important;
  box-sizing: border-box !important;
  padding: 28px !important;
  overflow-x: hidden !important;
}

/* Footer: full width, inner content offset past sidebar */
.cs-footer {
  margin-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: calc(240px + 40px) !important;
  padding-right: 40px !important;
}

/* Mobile: hide sidebar, remove offsets */
@media (max-width: 900px) {
  .cs-sidebar { display: none !important; }
  .cs-header { margin-left: 0 !important; }
  .cs-main { margin-left: 0 !important; padding: 18px !important; }
  .cs-footer { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ── Tab-pane visibility — hide inactive panes (Bootstrap not loaded) ── */
/* Our cs-svc-tabpane system handles product detail tabs with JS.
   The outer WHMCS tab-content system uses these classes: */
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.show.active,
.tab-content > .tab-pane.active { display: block; }


/* ═══════════════════════════════════════════════════════════════════════
   v83.2 — FINAL LAYOUT NUKE — Reset every conflicting margin-top/order/flex
   from prior versions. This is the LAST word on the layout.
   ═══════════════════════════════════════════════════════════════════════ */

/* Body: simple block layout, not flex column */
body.cs-body {
  display: block !important;
  flex-direction: unset !important;
  margin: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Shell: simple block container */
.cs-shell {
  display: block !important;
  flex: none !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  position: relative;
  min-height: calc(100vh - 60px);
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
}

/* Sidebar: fixed, full viewport height, on left */
.cs-sidebar,
body.cs-body .cs-shell > .cs-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 240px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 100 !important;
  overflow-y: auto !important;
  flex: none !important;
  order: unset !important;
  margin: 0 !important;
  grid-area: auto !important;
}

/* Header: top of main area, offset right of sidebar, sticky on scroll */
.cs-header,
body.cs-body .cs-shell > .cs-header {
  display: flex !important;
  margin: 0 0 0 240px !important;
  padding-top: 0 !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  order: unset !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  grid-area: auto !important;
  box-sizing: border-box !important;
}

/* Main: below header, offset right of sidebar, NO negative margins */
.cs-main,
body.cs-body .cs-shell > .cs-main {
  display: block !important;
  margin: 0 0 0 240px !important;     /* RESET: kill margin-top:-60px */
  margin-top: 0 !important;           /* explicit override */
  padding: 28px !important;            /* RESET: kill padding-top:88px */
  padding-top: 28px !important;       /* explicit override */
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  order: unset !important;
  grid-area: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-height: 0 !important;
}

/* Footer: full-width band, content offset past sidebar */
.cs-footer {
  margin: 0 !important;
  padding: 32px calc(240px + 40px) 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex: none !important;
}

/* Mobile: hide sidebar, no offsets */
@media (max-width: 900px) {
  .cs-sidebar { display: none !important; }
  .cs-header,
  body.cs-body .cs-shell > .cs-header { margin-left: 0 !important; }
  .cs-main,
  body.cs-body .cs-shell > .cs-main { margin-left: 0 !important; padding: 18px !important; }
  .cs-footer { padding: 24px 20px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   FINAL LAYOUT — CSS Grid (v84.1)
   Back to grid: it explicitly places sidebar/header/main by area name,
   unaffected by what renders before cs-shell in DOM order.
   All prior layout blocks are overridden by this final block.
   ═══════════════════════════════════════════════════════════════════════ */

/* Body: normal block, no flex tricks */
body.cs-body {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

/* Shell: CSS Grid with sidebar in left column, header+main stacked in right */
.cs-shell,
body.cs-body .cs-shell {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas:
    "sidebar header"
    "sidebar main" !important;
  min-height: 100vh !important;
  /* Reset all prior flex/position junk */
  position: static !important;
  flex: none !important;
  flex-direction: unset !important;
}

/* Sidebar: left grid column, sticky so it doesn't scroll away */
.cs-sidebar,
body.cs-body .cs-shell > .cs-sidebar {
  grid-area: sidebar !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  z-index: 100 !important;
  /* Reset prior block/fixed positioning */
  left: auto !important;
  flex: none !important;
  margin: 0 !important;
  width: auto !important;
}

/* Header: top of right column, sticky */
.cs-header,
body.cs-body .cs-shell > .cs-header {
  grid-area: header !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  /* Reset prior margin-left tricks */
  margin: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  width: auto !important;
  flex: none !important;
  order: unset !important;
}

/* Main: content area, bottom of right column */
.cs-main,
body.cs-body .cs-shell > .cs-main {
  grid-area: main !important;
  padding: 28px !important;
  /* Reset ALL prior positioning hacks */
  margin: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding-top: 28px !important;
  width: auto !important;
  flex: none !important;
  order: unset !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-height: 0 !important;
}

/* Footer: full-width below the grid, inner content offset past sidebar */
.cs-footer {
  margin: 0 !important;
  padding: 32px 40px 24px calc(240px + 40px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile */
@media (max-width: 900px) {
  .cs-shell,
  body.cs-body .cs-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto 1fr !important;
    grid-template-areas:
      "header"
      "main" !important;
  }
  .cs-sidebar,
  body.cs-body .cs-shell > .cs-sidebar {
    display: none !important;
  }
  .cs-header,
  body.cs-body .cs-shell > .cs-header {
    margin: 0 !important;
  }
  .cs-main,
  body.cs-body .cs-shell > .cs-main {
    margin: 0 !important;
    padding: 18px !important;
  }
  .cs-footer {
    padding: 24px 20px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   v84.3 — Fix: sidebar height:100vh was forcing grid row 1 to expand
   to 100vh, pushing cs-main below viewport on short-content pages.
   Use min-height instead so sidebar fills at least viewport but doesn't
   force grid track heights.
   ═══════════════════════════════════════════════════════════════════════ */
.cs-sidebar,
body.cs-body .cs-shell > .cs-sidebar {
  height: auto !important;
  min-height: 100vh !important;
  align-self: start !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   v84.4 — Position-fixed sidebar layout (matches inline styles in HTML)
   The inline styles on cs-shell, cs-sidebar, cs-header, cs-main are the
   authoritative source. These rules just keep CSS-only consumers consistent.
   ═══════════════════════════════════════════════════════════════════════ */

/* Footer aligned with main content */
.cs-footer {
  margin-left: 240px !important;
  width: calc(100% - 240px) !important;
  padding: 32px 40px 24px !important;
}

/* Mobile */
@media (max-width: 900px) {
  .cs-sidebar { display: none !important; }
  .cs-header { left: 0 !important; }
  .cs-main { margin-left: 0 !important; padding: 78px 18px 18px !important; }
  .cs-footer { margin-left: 0 !important; width: 100% !important; padding: 24px 20px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v85.2 — DEFINITIVE LAYOUT — restores original working CSS Grid
   This mirrors the line 68 cs-shell rule that worked for logged-in users
   throughout v1-v77. The orphan </div> bug in sidebar.tpl was the actual
   cause of the guest user issue (fixed in template). All later layout
   "fixes" introduced new bugs without addressing the real problem.
   ═══════════════════════════════════════════════════════════════════════ */

body.cs-body { display: block !important; margin: 0 !important; }

.cs-shell {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas: "sidebar header" "sidebar main" !important;
}

.cs-sidebar {
  grid-area: sidebar !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
}

.cs-header {
  grid-area: header !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  margin: 0 !important;
}

.cs-main {
  grid-area: main !important;
  padding: 28px !important;
  margin: 0 !important;
  overflow-y: auto !important;
}

.cs-footer {
  margin-left: 0 !important;
  width: 100% !important;
  padding-left: calc(240px + 40px) !important;
  padding-right: 40px !important;
}

@media (max-width: 900px) {
  .cs-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas: "header" "main" !important;
  }
  .cs-sidebar { display: none !important; }
  .cs-main { padding: 18px !important; }
  .cs-footer { padding-left: 20px !important; padding-right: 20px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v85.3 — FIX: remove overflow-y:auto from cs-main
   The original line 270 rule made cs-main a scroll container. Combined
   with autofocus on login email input (and similar on other guest pages),
   the browser was auto-scrolling cs-main internally to bring the focused
   input into view — making the page LOOK like content was below the fold.
   Remove cs-main's internal scroll; let the document scroll naturally.
   ═══════════════════════════════════════════════════════════════════════ */

.cs-main {
  overflow-y: visible !important;
  overflow-x: hidden !important;
}



/* ═══════════════════════════════════════════════════════════════════════
   v86.3 — Sidebar fills full column height; inner wrapper sticks
   Outer .cs-sidebar fills its grid row span (extends to footer).
   Inner .cs-sidebar__inner sticks at top:0 with viewport height,
   keeping the nav visible while scrolling.
   ═══════════════════════════════════════════════════════════════════════ */

.cs-sidebar {
  height: auto !important;
  min-height: 100% !important;
  position: relative !important;
  top: auto !important;
  align-self: stretch !important;
  overflow: visible !important;
  display: block !important;
}

.cs-sidebar__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Inner sidebar inherits the column flex layout that was on .cs-sidebar */
.cs-sidebar__inner .cs-sidebar__logo { flex-shrink: 0; }
.cs-sidebar__inner .cs-sidebar__user { flex-shrink: 0; }
.cs-sidebar__inner nav.cs-nav { flex: 1; overflow-y: auto; }
.cs-sidebar__inner .cs-sidebar__footer { flex-shrink: 0; }

@media (max-width: 900px) {
  .cs-sidebar__inner { position: static; height: auto; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v86.3 — Browse Game Servers CTA button on KB visitor banner
   ═══════════════════════════════════════════════════════════════════════ */

.cs-kb-visitor-banner__btnwrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px 0;
}

.cs-kb-visitor-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #0aa3f8, #0776c9);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(9, 150, 232, 0.4);
  box-shadow: 0 4px 16px rgba(9, 150, 232, 0.3),
              0 0 0 1px rgba(9, 150, 232, 0.15) inset;
  transition: all 0.18s ease;
}

.cs-kb-visitor-banner__btn:hover {
  background: linear-gradient(135deg, #14b1ff, #088ee0);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(9, 150, 232, 0.4),
              0 0 0 1px rgba(9, 150, 232, 0.25) inset;
  color: #fff !important;
}

.cs-kb-visitor-banner__btn:active {
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   v86.5 — KB CTA button: force white text on all children + ambient glow
   ═══════════════════════════════════════════════════════════════════════ */

.cs-kb-visitor-banner__btn,
.cs-kb-visitor-banner__btn span,
.cs-kb-visitor-banner__btn svg {
  color: #ffffff !important;
}

.cs-kb-visitor-banner__btn svg {
  stroke: #ffffff !important;
}

.cs-kb-visitor-banner__btn {
  /* Add an outer ambient glow that pulses subtly on hover */
  box-shadow:
    0 4px 16px rgba(9, 150, 232, 0.35),
    0 0 28px rgba(9, 150, 232, 0.22),
    0 0 0 1px rgba(9, 150, 232, 0.18) inset !important;
}

.cs-kb-visitor-banner__btn:hover {
  box-shadow:
    0 8px 26px rgba(9, 150, 232, 0.5),
    0 0 40px rgba(9, 150, 232, 0.4),
    0 0 0 1px rgba(9, 150, 232, 0.28) inset !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.1 — Ticket reply form polish
   ═══════════════════════════════════════════════════════════════════════ */

/* File upload styling for ticket attachments */
#frmReply .attachment-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 8px;
}
#frmReply .custom-file {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
#frmReply .custom-file-label {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px;
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  margin: 0 !important;
  display: flex;
  align-items: center;
}
#frmReply .custom-file-label::before {
  content: '📎';
  margin-right: 8px;
  opacity: 0.6;
}
#frmReply .custom-file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#frmReply .input-group-append {
  display: flex;
  align-items: stretch;
}
#frmReply .input-group-append .btn {
  padding: 9px 14px !important;
  border-radius: 0 8px 8px 0 !important;
  background: rgba(9,150,232,0.08) !important;
  border: 1px solid rgba(9,150,232,0.25) !important;
  color: #4FB1F0 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}
#frmReply .input-group-append .btn:hover {
  background: rgba(9,150,232,0.14) !important;
}
#frmReply .input-group-append .btn i {
  margin-right: 4px;
}
#frmReply .cs-attach-remove {
  background: rgba(224,83,83,0.08) !important;
  border-color: rgba(224,83,83,0.25) !important;
  color: #E05353 !important;
}
#frmReply .cs-attach-remove:hover {
  background: rgba(224,83,83,0.14) !important;
}

/* Reply form submit/cancel buttons */
#frmReply .form-group.text-center input[type="submit"] {
  background: linear-gradient(135deg, #1a56db, #2563eb) !important;
  color: #fff !important;
  border: 1px solid rgba(26,86,219,0.5) !important;
  padding: 11px 28px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  cursor: pointer;
  margin: 0 6px;
}
#frmReply .form-group.text-center input[type="submit"]:hover {
  box-shadow: 0 4px 14px rgba(26,86,219,0.35) !important;
  transform: translateY(-1px);
}
#frmReply .form-group.text-center input[type="reset"] {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  padding: 11px 28px !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  cursor: pointer;
}

/* Hide any markdown editor preview/word-count widgets if WHMCS injects them anyway */
#frmReply .markdown-editor-preview,
#frmReply .markdown-editor-controls,
#frmReply .word-count,
#frmReply .line-count,
#frmReply [class*="counter"],
.markdown-editor-preview,
.editor-toolbar {
  display: none !important;
}

/* Form labels in reply form */
#frmReply label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* Allowed extensions help text */
#frmReply .text-muted small {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.4 — Style WHMCS-provided $clientcountriesdropdown / state dropdown
   inside cs-form-group containers so they match our dark theme
   ═══════════════════════════════════════════════════════════════════════ */

.cs-form-group select,
.cs-form-group select#country,
.cs-form-group select[name="country"],
.cs-form-group select[name="state"],
.cs-form-group select[name="currency"] {
  width: 100%;
  background: #1c2030 !important;
  color: var(--text-primary, #F0F2F8) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  padding: 9px 14px !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: auto;
  cursor: pointer;
}
.cs-form-group select:focus {
  border-color: rgba(9, 150, 232, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(9, 150, 232, 0.15) !important;
}
.cs-form-group select option {
  background: #1c2030 !important;
  color: var(--text-primary, #F0F2F8) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.5 — KB category navigation bar (article view)
   ═══════════════════════════════════════════════════════════════════════ */

.cs-kb-catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  margin: 18px 0 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cs-kb-catnav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--text-secondary, #B0B5C9) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cs-kb-catnav__item:hover {
  background: rgba(9,150,232,0.08);
  border-color: rgba(9,150,232,0.25);
  color: var(--text-primary, #F0F2F8) !important;
  transform: translateY(-1px);
}

.cs-kb-catnav__item[data-active="1"] {
  background: linear-gradient(135deg, rgba(9,150,232,0.18), rgba(9,150,232,0.08));
  border-color: rgba(9,150,232,0.4);
  color: #4FB1F0 !important;
  box-shadow: 0 0 0 1px rgba(9,150,232,0.1) inset;
}

.cs-kb-catnav__home {
  font-weight: 600;
}
.cs-kb-catnav__home svg {
  opacity: 0.8;
}

.cs-kb-catnav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #7A809A);
  font-variant-numeric: tabular-nums;
}

.cs-kb-catnav__item[data-active="1"] .cs-kb-catnav__count {
  background: rgba(9,150,232,0.18);
  color: #4FB1F0;
}

@media (max-width: 700px) {
  .cs-kb-catnav { padding: 10px 12px; gap: 4px; }
  .cs-kb-catnav__item { padding: 6px 12px; font-size: 0.8rem; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.6 — Restored markdown-editor class for admin notification firing.
   Hide the WHMCS markdown editor toolbar/preview/counter aggressively so
   it doesn't add ugly UI artifacts.
   ═══════════════════════════════════════════════════════════════════════ */

#frmReply .editor-toolbar,
#frmReply .CodeMirror-statusbar,
#frmReply .editor-statusbar,
#frmReply .CodeMirror-fullscreen .editor-statusbar,
#frmReply .editor-preview,
#frmReply .editor-preview-side,
#frmReply .markdown-editor-controls,
#frmReply .markdown-editor-preview,
#frmReply .word-count,
#frmReply .line-count,
#frmReply [class*="counter"]:not(.cs-tk-msg__counter),
.editor-toolbar,
.editor-statusbar {
  display: none !important;
}

/* If WHMCS's CodeMirror wraps the textarea, hide the wrapper too */
#frmReply .CodeMirror,
#frmReply .CodeMirror-wrap {
  display: none !important;
}

/* Force the textarea to remain visible (WHMCS scripts.min.js sometimes
   sets display:none on it once CodeMirror takes over) */
#frmReply textarea#inputMessage {
  display: block !important;
  visibility: visible !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.7 — Hide coupon icon on cart promo code input
   The standard_cart orderform renders a Font Awesome icon (typically
   fa-ticket-alt or fa-tag) inside the promo code input or label.
   We hide it without affecting layout.
   ═══════════════════════════════════════════════════════════════════════ */

/* Common wrappers used by standard_cart for the promo input */
#order-standard_cart .promotion-code i,
#order-standard_cart .promo-code i,
#order-standard_cart [class*="promotion"] i,
#order-standard_cart .secondary-cart-body i.fas,
#order-standard_cart .secondary-cart-body i.fa,
#order-standard_cart .secondary-cart-body label i,
#order-standard_cart label[for="inputPromotionCode"] i,
#order-standard_cart label[for*="romotion"] i,
.cart-body .promotion-code i,
.cart-body .promo-code i,
.cart-body label[for*="romotion"] i,

/* Hide FontAwesome icons specifically attached to promo elements */
#order-standard_cart .promo-code .fa-tag,
#order-standard_cart .promo-code .fa-ticket,
#order-standard_cart .promo-code .fa-ticket-alt,
#order-standard_cart .promotion-code .fa-tag,
#order-standard_cart .promotion-code .fa-ticket,
#order-standard_cart .promotion-code .fa-ticket-alt,
#order-standard_cart .secondary-cart-body .fa-tag,
#order-standard_cart .secondary-cart-body .fa-ticket,
#order-standard_cart .secondary-cart-body .fa-ticket-alt,

/* Common Six pattern: input-group-prepend with icon */
#order-standard_cart .input-group-prepend .fa-tag,
#order-standard_cart .input-group-prepend .fa-ticket,
#order-standard_cart .input-group-prepend .fa-ticket-alt,
#order-standard_cart .input-group-prepend .input-group-text:has(.fa-tag),
#order-standard_cart .input-group-prepend .input-group-text:has(.fa-ticket),
#order-standard_cart .input-group-prepend .input-group-text:has(.fa-ticket-alt),

/* prepend-icon pattern */
#order-standard_cart .promo-code .prepend-icon,
#order-standard_cart .promotion-code .prepend-icon,
#order-standard_cart .promo-code .field-icon,
#order-standard_cart .promotion-code .field-icon {
  display: none !important;
}

/* If the icon is a pseudo-element on the input or label */
#order-standard_cart .promotion-code label::before,
#order-standard_cart .promo-code label::before,
#order-standard_cart label[for="inputPromotionCode"]::before,
#order-standard_cart input[name="promocode"]::before,
#order-standard_cart .promo-code::before,
#order-standard_cart .promotion-code::before {
  display: none !important;
  content: none !important;
}

/* If the input itself has padding-left for an icon, reset it */
#order-standard_cart input[name="promocode"],
#order-standard_cart #inputPromotionCode,
.cart-body input[name="promocode"] {
  padding-left: 14px !important;
  background-image: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.8 — Style $moduleclientarea output (TCAdmin / Pterodactyl / cPanel)
   These modules emit raw HTML with their own buttons. Theme them so they
   match our dark UI without requiring module-side changes.
   ═══════════════════════════════════════════════════════════════════════ */

.module-client-area {
  color: var(--text-secondary, #B0B5C9);
}

/* TCAdmin-style action buttons */
.module-client-area .btn,
.module-client-area button,
.module-client-area input[type="button"],
.module-client-area input[type="submit"],
.module-client-area .modulebutton,
.module-client-area a.modulebutton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(9, 150, 232, 0.08);
  border: 1px solid rgba(9, 150, 232, 0.25);
  color: #4FB1F0 !important;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  margin: 4px 6px 4px 0;
  transition: all 0.15s ease;
}
.module-client-area .btn:hover,
.module-client-area button:hover,
.module-client-area input[type="button"]:hover,
.module-client-area input[type="submit"]:hover,
.module-client-area .modulebutton:hover,
.module-client-area a.modulebutton:hover {
  background: rgba(9, 150, 232, 0.16);
  border-color: rgba(9, 150, 232, 0.4);
  color: #6BC1F4 !important;
  transform: translateY(-1px);
}

/* Color-code common action verbs */
.module-client-area .btn-success,
.module-client-area .btn-start,
.module-client-area button[name*="start" i],
.module-client-area input[value*="start" i],
.module-client-area a[href*="start" i] {
  background: rgba(111,194,144,0.1) !important;
  border-color: rgba(111,194,144,0.3) !important;
  color: #6FC290 !important;
}
.module-client-area .btn-danger,
.module-client-area .btn-stop,
.module-client-area button[name*="stop" i],
.module-client-area input[value*="stop" i],
.module-client-area a[href*="stop" i] {
  background: rgba(224,83,83,0.1) !important;
  border-color: rgba(224,83,83,0.3) !important;
  color: #E05353 !important;
}
.module-client-area .btn-warning,
.module-client-area button[name*="restart" i],
.module-client-area input[value*="restart" i],
.module-client-area a[href*="restart" i] {
  background: rgba(224,168,83,0.1) !important;
  border-color: rgba(224,168,83,0.3) !important;
  color: #E0A853 !important;
}

/* Tables emitted by modules */
.module-client-area table,
.module-client-area .table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.88rem;
}
.module-client-area th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted, #7A809A);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.module-client-area td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary, #B0B5C9);
}
.module-client-area tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Form inputs inside module output */
.module-client-area input[type="text"],
.module-client-area input[type="number"],
.module-client-area input[type="password"],
.module-client-area select,
.module-client-area textarea {
  background: #1c2030 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--text-primary, #F0F2F8) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}

/* Headings */
.module-client-area h1,
.module-client-area h2,
.module-client-area h3,
.module-client-area h4 {
  color: var(--text-primary, #F0F2F8) !important;
  font-family: var(--font-display, inherit);
  margin: 14px 0 10px;
}
.module-client-area h3 { font-size: 1.05rem; }
.module-client-area h4 { font-size: 0.95rem; }

/* Status indicators / labels */
.module-client-area .label,
.module-client-area .badge,
.module-client-area .tcadmin-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Online/Running status — green */
.module-client-area .label-success,
.module-client-area .badge-success,
.module-client-area .label[class*="online" i],
.module-client-area .label[class*="running" i] {
  background: rgba(111,194,144,0.15) !important;
  color: #6FC290 !important;
}
/* Offline/Stopped — red */
.module-client-area .label-danger,
.module-client-area .badge-danger,
.module-client-area .label[class*="offline" i],
.module-client-area .label[class*="stopped" i] {
  background: rgba(224,83,83,0.15) !important;
  color: #E05353 !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v87.9 — Checkout page customer details / billing / cards override
   The order/checkout flow has multiple .card and .well containers that
   inherit white backgrounds from Bootstrap. Force dark on every common
   selector that wraps customer info, billing, payment, and signup.
   ═══════════════════════════════════════════════════════════════════════ */

/* Top-level body BG enforcement on ALL cart/checkout pages */
body.cs-page-cart,
body.cs-page-checkout,
body.cs-page-configureproduct,
body[class*="page-cart"],
body[class*="page-checkout"] {
  background: var(--bg-base, #161A23) !important;
}

/* ANY card / panel / well inside cart pages — kill white BG */
#order-standard_cart .card,
#order-standard_cart .card-body,
#order-standard_cart .well,
#order-standard_cart .signup-container,
#order-standard_cart .signup-form,
#order-standard_cart #containerNewUserSignup,
#order-standard_cart #containerExistingUserSignin,
#order-standard_cart #containerExistingUserSelectAccount,
#order-standard_cart #containerNewCustomer,
#order-standard_cart .order-summary,
#order-standard_cart .order-summary-inner,
#order-standard_cart .secondary-cart-body,
#order-standard_cart .checkout-container,
#order-standard_cart .checkout-body,
#order-standard_cart .checkout-payment-method,
#order-standard_cart .login-form,
#order-standard_cart .login-container,
#order-standard_cart fieldset,
.cart-body .card,
.cart-body .card-body,
.cart-body .well,
.cart-body fieldset {
  background: var(--bg-card, #242936) !important;
  background-color: var(--bg-card, #242936) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  color: var(--text-primary, #F0F2F8) !important;
}

/* Card headers / titles */
#order-standard_cart .card-header,
#order-standard_cart .card-title,
#order-standard_cart .panel-heading,
#order-standard_cart fieldset legend,
.cart-body .card-header,
.cart-body .card-title {
  background: rgba(255,255,255,0.03) !important;
  color: var(--text-primary, #F0F2F8) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 11px 11px 0 0 !important;
}

/* Inner card (cards-within-cards on checkout) */
#order-standard_cart .card .card,
#order-standard_cart .card-body .card,
.cart-body .card .card {
  background: var(--bg-surface, #1C2030) !important;
  background-color: var(--bg-surface, #1C2030) !important;
  border-color: rgba(255,255,255,0.06) !important;
}

/* Customer details specifics on checkout */
#order-standard_cart #personalInformation,
#order-standard_cart #billingAddress,
#order-standard_cart #accountSecurity,
#order-standard_cart #additionalRequiredInfo,
#order-standard_cart .checkout-customer-details,
#order-standard_cart [id*="customerInformation" i],
#order-standard_cart [id*="billing" i],
#order-standard_cart [class*="customer-details" i] {
  background: var(--bg-card, #242936) !important;
  color: var(--text-primary, #F0F2F8) !important;
}

/* All text inside checkout forms — force readable color */
#order-standard_cart .card-body,
#order-standard_cart .card-body p,
#order-standard_cart .card-body label,
#order-standard_cart .card-body span,
#order-standard_cart .card-body div,
#order-standard_cart .card-body small,
#order-standard_cart .well,
#order-standard_cart .well p,
#order-standard_cart .well label,
.cart-body .card-body label {
  color: var(--text-secondary, #B0B5C9) !important;
}

#order-standard_cart .card-body strong,
#order-standard_cart .card-body b,
#order-standard_cart .card-title,
.cart-body .card-title {
  color: var(--text-primary, #F0F2F8) !important;
}

/* Form fields inside cards */
#order-standard_cart .card input[type="text"],
#order-standard_cart .card input[type="email"],
#order-standard_cart .card input[type="tel"],
#order-standard_cart .card input[type="password"],
#order-standard_cart .card input[type="number"],
#order-standard_cart .card input[type="search"],
#order-standard_cart .card select,
#order-standard_cart .card textarea,
#order-standard_cart .well input,
#order-standard_cart .well select,
#order-standard_cart .well textarea,
.cart-body .card input,
.cart-body .card select,
.cart-body .card textarea {
  background: var(--bg-base, #161A23) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  color: var(--text-primary, #F0F2F8) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}
#order-standard_cart .card input:focus,
#order-standard_cart .card select:focus,
#order-standard_cart .card textarea:focus,
.cart-body .card input:focus,
.cart-body .card select:focus,
.cart-body .card textarea:focus {
  border-color: rgba(9, 150, 232, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(9, 150, 232, 0.15) !important;
  outline: none !important;
}

/* Field-icon (envelope / user / building icons next to inputs) */
#order-standard_cart .field-icon,
#order-standard_cart .prepend-icon .field-icon {
  color: var(--text-muted, #7A809A) !important;
  background: transparent !important;
}

/* prepend-icon group wrapper — make the whole input look unified */
#order-standard_cart .form-group.prepend-icon,
#order-standard_cart .prepend-icon {
  position: relative;
}
#order-standard_cart .prepend-icon input,
#order-standard_cart .prepend-icon select {
  padding-left: 38px !important;
}
#order-standard_cart .prepend-icon .field-icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2;
}

/* Order summary right-rail card */
#order-standard_cart .order-summary,
#order-standard_cart .order-summary-inner,
#order-standard_cart .order-summary-content,
#order-standard_cart .order-summary-container,
#order-standard_cart aside .card,
.cart-body .order-summary {
  background: var(--bg-card, #242936) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  color: var(--text-primary, #F0F2F8) !important;
}

#order-standard_cart .order-summary h3,
#order-standard_cart .order-summary h4,
#order-standard_cart .order-summary .summary-totals strong,
#order-standard_cart .order-summary .summary-totals b {
  color: var(--text-primary, #F0F2F8) !important;
}
#order-standard_cart .order-summary p,
#order-standard_cart .order-summary li,
#order-standard_cart .order-summary span:not(.label):not(.badge),
#order-standard_cart .order-summary div:not([class*="btn"]) {
  color: var(--text-secondary, #B0B5C9) !important;
}

/* Subtotal / tax / total rows */
#order-standard_cart .summary-totals,
#order-standard_cart .summary-totals .total-due-today {
  background: rgba(255,255,255,0.02) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  color: var(--text-primary, #F0F2F8) !important;
}

/* Total row prominent */
#order-standard_cart .total-due-today {
  font-weight: 700 !important;
  color: #4FB1F0 !important;
  font-size: 1.05rem !important;
}

/* "Cards on file" / saved payment methods list */
#order-standard_cart .saved-card,
#order-standard_cart .pay-method,
#order-standard_cart [class*="paymentmethod" i] {
  background: var(--bg-surface, #1C2030) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  color: var(--text-primary, #F0F2F8) !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
}

/* ToS checkbox area */
#order-standard_cart #termsCheckbox,
#order-standard_cart .accept-tos,
#order-standard_cart [class*="tos" i] label {
  color: var(--text-secondary, #B0B5C9) !important;
}

/* "Required field" notes */
#order-standard_cart .required-field-note,
#order-standard_cart .text-muted,
#order-standard_cart small.text-muted,
.cart-body small.text-muted {
  color: var(--text-muted, #7A809A) !important;
}

/* Hard kill any remaining white backgrounds inside cart pages */
#order-standard_cart [style*="background:#fff"],
#order-standard_cart [style*="background: #fff"],
#order-standard_cart [style*="background-color:#fff"],
#order-standard_cart [style*="background-color: #fff"],
#order-standard_cart [style*="background:white"],
#order-standard_cart [style*="background: white"] {
  background: var(--bg-card, #242936) !important;
  background-color: var(--bg-card, #242936) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v88.0 — "Choose Account" and signup wizard step panels
   Cart's signup flow has its own cards/panels not covered by the prior
   override. These show when checking out as a logged-out user.
   ═══════════════════════════════════════════════════════════════════════ */

/* The "Choose Account" panel after entering credentials */
#containerExistingUserSelectAccount,
#containerChooseAccount,
.choose-account-container,
.checkout-choose-account,
[id*="ChooseAccount" i],
[id*="chooseAccount" i],
[class*="choose-account" i],
#order-standard_cart .signup-step,
#order-standard_cart .signup-options,
#order-standard_cart .signup-option,
#order-standard_cart .step-1,
#order-standard_cart .step-2,
#order-standard_cart .step-3,
#order-standard_cart [class*="step-" i] {
  background: var(--bg-card, #242936) !important;
  background-color: var(--bg-card, #242936) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  color: var(--text-primary, #F0F2F8) !important;
}

/* Account list rows inside Choose Account panel */
#containerExistingUserSelectAccount label,
#containerChooseAccount label,
.account-option,
.choose-account-row {
  background: var(--bg-surface, #1C2030) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  color: var(--text-secondary, #B0B5C9) !important;
  transition: all 0.15s ease;
}
#containerExistingUserSelectAccount label:hover,
#containerChooseAccount label:hover,
.account-option:hover,
.choose-account-row:hover {
  background: rgba(9,150,232,0.06) !important;
  border-color: rgba(9,150,232,0.25) !important;
  color: var(--text-primary, #F0F2F8) !important;
}

/* "or" divider sometimes shown between options */
#order-standard_cart .or-divider,
#order-standard_cart hr.or {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-muted, #7A809A) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   v88.0 — Final hard kill on any remaining white panels in cart
   These are universal selectors that match anything still rendering as
   white. Last line of defense.
   ═══════════════════════════════════════════════════════════════════════ */

#order-standard_cart > div:not([class*="cart-error"]),
#order-standard_cart > section,
.cart-body > div:not([class*="cart-error"]),
.cart-body > section,
#order-standard_cart .container > div,
#order-standard_cart .container > section,
#order-standard_cart .container-fluid > div,
#order-standard_cart .row > [class*="col-"] > .card,
#order-standard_cart .row > [class*="col-"] > .well,
#order-standard_cart .row > [class*="col-"] > div[class*="container"],
#order-standard_cart [class*="bg-white"],
#order-standard_cart [class*="bg-light"] {
  background-color: transparent;
}

/* If background is white-ish, force transparent */
#order-standard_cart *[style*="background-color: #fff" i],
#order-standard_cart *[style*="background-color:#fff" i],
#order-standard_cart *[style*="background-color: white" i],
#order-standard_cart *[style*="background:#fff" i],
#order-standard_cart *[style*="background: #fff" i],
#order-standard_cart *[style*="background: white" i],
#order-standard_cart *[style*="background:white" i] {
  background: var(--bg-card, #242936) !important;
  background-color: var(--bg-card, #242936) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v88.1 — "Choose Account" panel — TARGETED selectors based on actual
   standard_cart-cs/checkout.tpl markup
   ═══════════════════════════════════════════════════════════════════════ */

/* Outer row container */
#containerExistingAccountSelect,
.account-select-container {
  background: transparent !important;
  margin: 14px 0 !important;
}

/* Each .account card holding one address option */
#containerExistingAccountSelect .account,
.account-select-container .account {
  background: var(--bg-card, #242936) !important;
  background-color: var(--bg-card, #242936) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  color: var(--text-primary, #F0F2F8) !important;
  transition: all 0.18s ease;
  cursor: pointer;
}

/* Active (selected) account card — blue accent */
#containerExistingAccountSelect .account.active,
.account-select-container .account.active {
  background: linear-gradient(135deg, rgba(9,150,232,0.10), rgba(9,150,232,0.04)) !important;
  border-color: rgba(9,150,232,0.4) !important;
  box-shadow: 0 0 0 1px rgba(9,150,232,0.15) inset, 0 4px 14px rgba(9,150,232,0.08) !important;
}

#containerExistingAccountSelect .account:hover,
.account-select-container .account:hover {
  border-color: rgba(9,150,232,0.3) !important;
  background: rgba(255,255,255,0.04) !important;
}

#containerExistingAccountSelect .account.active:hover,
.account-select-container .account.active:hover {
  background: linear-gradient(135deg, rgba(9,150,232,0.14), rgba(9,150,232,0.06)) !important;
}

/* Border-bottom variant on the "Create New" tile */
#containerExistingAccountSelect .account.border-bottom,
.account-select-container .account.border-bottom {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* The radio label fills the card */
#containerExistingAccountSelect .account label.radio-inline,
.account-select-container .account label.radio-inline {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  cursor: pointer !important;
  color: var(--text-primary, #F0F2F8) !important;
  font-weight: 400 !important;
}

/* Radio input */
#containerExistingAccountSelect .account-select,
.account-select-container .account-select {
  accent-color: #0996e8 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 4px 0 0 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

/* Address text block */
#containerExistingAccountSelect .account .address,
.account-select-container .account .address {
  flex: 1 !important;
  color: var(--text-secondary, #B0B5C9) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}
#containerExistingAccountSelect .account .address strong,
.account-select-container .account .address strong {
  color: var(--text-primary, #F0F2F8) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
}
#containerExistingAccountSelect .account .address .small,
.account-select-container .account .address .small {
  color: var(--text-muted, #7A809A) !important;
  font-size: 0.82rem !important;
  display: block !important;
  margin-top: 4px !important;
}

/* Currency / status labels */
#containerExistingAccountSelect .account .label,
.account-select-container .account .label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
}
#containerExistingAccountSelect .account .label-info,
.account-select-container .account .label-info {
  background: rgba(9,150,232,0.15) !important;
  color: #4FB1F0 !important;
}
#containerExistingAccountSelect .account .label-default,
.account-select-container .account .label-default {
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-muted, #7A809A) !important;
}

/* Disabled account (closed / no permission) */
#containerExistingAccountSelect .account-select.disabled,
.account-select-container .account-select.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
#containerExistingAccountSelect .account label.radio-inline:has(.disabled),
.account-select-container .account label.radio-inline:has(.disabled) {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
}

/* Sub-heading "primary-bg-color" pill (already defined elsewhere — reinforce) */
.sub-heading {
  margin: 18px 0 12px !important;
}
.sub-heading .primary-bg-color {
  display: inline-block !important;
  background: rgba(9,150,232,0.12) !important;
  color: #4FB1F0 !important;
  border: 1px solid rgba(9,150,232,0.3) !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v88.3 — Hide all input field-icons in cart/order flow
   The standard_cart templates use <label class="field-icon"><i class="fas..."></i></label>
   inside .form-group.prepend-icon wrappers. Hide the icon labels and
   reset the input's padding-left so text isn't squashed/blocked.
   ═══════════════════════════════════════════════════════════════════════ */

#order-standard_cart .field-icon,
#order-standard_cart .prepend-icon .field-icon,
#order-standard_cart .form-group.prepend-icon .field-icon,
#order-standard_cart .form-group.prepend-icon > label.field-icon,
#order-standard_cart .form-group.prepend-icon > i,
.cart-body .field-icon,
.cart-body .prepend-icon .field-icon {
  display: none !important;
}

/* Also hide standalone Font Awesome icons sitting alongside inputs */
#order-standard_cart .form-group > i.fas,
#order-standard_cart .form-group > i.far,
#order-standard_cart .form-group > i.fa,
#order-standard_cart .input-group-prepend i.fas,
#order-standard_cart .input-group-prepend i.far,
#order-standard_cart .input-group-prepend i.fa,
.cart-body .form-group > i.fas,
.cart-body .form-group > i.far {
  display: none !important;
}

/* Reset the input padding so text starts at the left edge */
#order-standard_cart .prepend-icon input,
#order-standard_cart .prepend-icon select,
#order-standard_cart .prepend-icon textarea,
#order-standard_cart .form-group.prepend-icon input,
#order-standard_cart .form-group.prepend-icon select,
#order-standard_cart .form-group.prepend-icon textarea,
.cart-body .prepend-icon input,
.cart-body .prepend-icon select {
  padding-left: 14px !important;
}

/* Hide input-group-prepend wrappers entirely on cart pages */
#order-standard_cart .input-group-prepend:has(i.fas),
#order-standard_cart .input-group-prepend:has(i.far),
#order-standard_cart .input-group-prepend:has(i.fa),
#order-standard_cart .input-group-prepend .input-group-text:has(i.fas),
#order-standard_cart .input-group-prepend .input-group-text:has(i.far) {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v88.5 — Marketing email opt-in: convert checkbox → real slider
   The standard_cart-cs renders a <input type="checkbox" class="toggle-switch-success">
   expecting a 3rd-party JS library to upgrade it. We render a pure-CSS
   slider using a wrapper label. Sources its checked state from the input.
   ═══════════════════════════════════════════════════════════════════════ */

.marketing-email-optin {
  background: var(--bg-card, #242936) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
  margin: 18px 0 !important;
  position: relative;
}

.marketing-email-optin h4 {
  color: var(--text-primary, #F0F2F8) !important;
  font-family: var(--font-display, inherit) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin: 0 0 8px !important;
  padding-right: 70px;  /* room for slider */
}

.marketing-email-optin p {
  color: var(--text-secondary, #B0B5C9) !important;
  font-size: 0.88rem !important;
  margin: 0 !important;
  padding-right: 70px;
  line-height: 1.5;
}

/* The actual checkbox: make it the slider */
.marketing-email-optin input[type="checkbox"][name="marketingoptin"],
.marketing-email-optin input.toggle-switch-success {
  /* Anchor to top-right of the panel */
  position: absolute !important;
  top: 22px !important;
  right: 22px !important;
  /* Reset native appearance */
  appearance: none !important;
  -webkit-appearance: none !important;
  /* Slider track */
  width: 50px !important;
  height: 26px !important;
  margin: 0 !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  position: absolute !important;  /* re-assert against !important */
  outline: none !important;
  display: block !important;
  flex: none !important;
}

/* Slider thumb (knob) — drawn with ::before */
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]::before,
.marketing-email-optin input.toggle-switch-success::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checked state — green track, thumb slides right */
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]:checked,
.marketing-email-optin input.toggle-switch-success:checked {
  background: linear-gradient(135deg, #6FC290, #5BAD7B) !important;
  border-color: rgba(111,194,144,0.5) !important;
}
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]:checked::before,
.marketing-email-optin input.toggle-switch-success:checked::before {
  left: 26px;
}

/* Hover affordance */
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]:hover,
.marketing-email-optin input.toggle-switch-success:hover {
  border-color: rgba(255,255,255,0.25) !important;
}
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]:checked:hover,
.marketing-email-optin input.toggle-switch-success:checked:hover {
  border-color: rgba(111,194,144,0.7) !important;
}

/* Focus ring for keyboard accessibility */
.marketing-email-optin input[type="checkbox"][name="marketingoptin"]:focus-visible,
.marketing-email-optin input.toggle-switch-success:focus-visible {
  box-shadow: 0 0 0 3px rgba(111,194,144,0.25) !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v88.5 — Checkout security message: themed alert (not yellow Bootstrap)
   <div class="alert alert-warning checkout-security-msg">
     <i class="fas fa-lock"></i> {ordersecure} ({ipaddress}) {ordersecure2}
   </div>
   ═══════════════════════════════════════════════════════════════════════ */

.checkout-security-msg,
#order-standard_cart .checkout-security-msg,
.cart-body .checkout-security-msg {
  background: linear-gradient(135deg, rgba(9,150,232,0.10), rgba(9,150,232,0.04)) !important;
  border: 1px solid rgba(9,150,232,0.25) !important;
  color: var(--text-secondary, #B0B5C9) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin: 18px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
}

.checkout-security-msg i.fas,
.checkout-security-msg i.fa-lock,
#order-standard_cart .checkout-security-msg i {
  color: #4FB1F0 !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
  background: rgba(9,150,232,0.12) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(9,150,232,0.25) !important;
}

.checkout-security-msg strong {
  color: #4FB1F0 !important;
  font-weight: 700 !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   v89.4 — Ticket attachments display
   ═══════════════════════════════════════════════════════════════════════ */

.cs-tk-attachments {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.cs-tk-attachments__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted, #7A809A);
  margin-bottom: 10px;
}

.cs-tk-attachments__head svg {
  opacity: 0.7;
}

.cs-tk-attachments__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-tk-attach {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(9,150,232,0.06);
  border: 1px solid rgba(9,150,232,0.2);
  border-radius: 8px;
  color: var(--text-primary, #F0F2F8) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  width: fit-content;
  max-width: 100%;
}

.cs-tk-attach:hover {
  background: rgba(9,150,232,0.12);
  border-color: rgba(9,150,232,0.4);
  transform: translateY(-1px);
  color: #4FB1F0 !important;
}

.cs-tk-attach > svg:first-child {
  color: #4FB1F0;
  flex-shrink: 0;
}

.cs-tk-attach__name {
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cs-tk-attach__dl {
  opacity: 0.6;
  flex-shrink: 0;
}
.cs-tk-attach:hover .cs-tk-attach__dl {
  opacity: 1;
}

.cs-tk-attach--removed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(224,83,83,0.05);
  border: 1px dashed rgba(224,83,83,0.2);
  border-radius: 8px;
  color: var(--text-muted, #7A809A);
  font-size: 0.86rem;
  font-style: italic;
  width: fit-content;
}
.cs-tk-attach--removed svg {
  color: #E05353;
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════════════
   v89.6 — Image attachment thumbnails + lightbox
   ═══════════════════════════════════════════════════════════════════════ */

/* Mixed list: images flow as grid, files stack as rows */
.cs-tk-attachments__list--mixed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.cs-tk-attachments__list--mixed .cs-tk-attach:not(.cs-tk-attach--image) {
  width: 100%;
}

/* Image thumbnail */
.cs-tk-attach--image {
  position: relative;
  display: block;
  width: 110px;
  height: 110px;
  padding: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  cursor: zoom-in;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs-tk-attach--image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-tk-attach--image:hover {
  transform: translateY(-2px);
  border-color: rgba(9,150,232,0.5);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 1px rgba(9,150,232,0.3);
}
.cs-tk-attach--image:hover img {
  transform: scale(1.06);
}

.cs-tk-attach__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(9,150,232,0.25));
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.cs-tk-attach--image:hover .cs-tk-attach__overlay {
  opacity: 1;
}

/* ── Lightbox ───────────────────────────────────────────────────── */
.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cs-lightbox[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.cs-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cs-lightbox__inner {
  position: relative;
  width: min(92vw, 1400px);
  height: min(92vh, 950px);
  display: flex;
  flex-direction: column;
}
.cs-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  background: #1a1d27;
}
.cs-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 12px;
  background: rgba(20, 24, 36, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #F0F2F8;
  font-size: 0.88rem;
}
.cs-lightbox__bar span {
  word-break: break-word;
}
.cs-lightbox__count {
  color: var(--text-muted, #7A809A);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cs-lightbox__dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(9,150,232,0.15);
  border: 1px solid rgba(9,150,232,0.4);
  color: #4FB1F0 !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.cs-lightbox__dl:hover {
  background: rgba(9,150,232,0.25);
  color: #6BC1F4 !important;
}
.cs-lightbox__btn {
  position: absolute;
  background: rgba(20, 24, 36, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #F0F2F8;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 1;
}
.cs-lightbox__btn:hover {
  background: rgba(9,150,232,0.2);
  border-color: rgba(9,150,232,0.4);
  color: #4FB1F0;
}
.cs-lightbox__btn--close { top: 0; right: 0; }
.cs-lightbox__btn--prev  { left: -22px; top: 50%; transform: translateY(-50%); }
.cs-lightbox__btn--next  { right: -22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .cs-tk-attach--image { width: 90px; height: 90px; }
  .cs-lightbox__btn--prev  { left: 6px; }
  .cs-lightbox__btn--next  { right: 6px; }
  .cs-lightbox__btn { width: 38px; height: 38px; }
  .cs-lightbox__bar { flex-wrap: wrap; }
}

