@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   GhostRDP - "Spectral Premium" theme for WHMCS (twenty-one base)
   Client area restyle. Loaded LAST via includes/head.tpl {assetExists custom.css}.
   Mirrors the marketing site design language (../GHOSTRDP/docs/DESIGN.md).
   ============================================================ */

:root {
  --gr-ink:        #07070d;
  --gr-surface:    #0e0e17;
  --gr-surface-2:  #141422;
  --gr-surface-3:  #1b1b2b;
  --gr-primary:    #7b3dff;
  --gr-primary-2:  #6d28d9;
  --gr-secondary:  #a78bfa;
  --gr-ecto:       #5eead4;
  --gr-text:       #f5f4ff;
  --gr-body:       rgba(245, 244, 255, 0.66);
  --gr-muted:      rgba(245, 244, 255, 0.42);
  --gr-border:     rgba(255, 255, 255, 0.08);
  --gr-border-2:   rgba(255, 255, 255, 0.12);
  --gr-font:       "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --gr-display:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --gr-mono:       "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------------- Base ---------------- */
html { font-size: 15px; scroll-behavior: smooth; }

body,
body.primary-bg-color {
  background-color: var(--gr-ink) !important;
  color: var(--gr-body) !important;
  font-family: var(--gr-font) !important;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  position: relative;
  min-height: 100vh;
}

/* Atmospheric spectral glow + faint dot grid, fixed behind everything */
body.primary-bg-color::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(123, 61, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, rgba(167, 139, 250, 0.10), transparent 70%),
    radial-gradient(45% 45% at 50% 100%, rgba(94, 234, 212, 0.05), transparent 70%);
}
body.primary-bg-color::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
#main-body, #footer, .footer { position: relative; z-index: 1; }
.master-breadcrumb { position: relative; z-index: 2; }
/* header must sit ABOVE main body so nav dropdowns are not covered (bug fix) */
#header, .header { position: relative; z-index: 1030; }
#header .dropdown-menu, .navbar .dropdown-menu { z-index: 1050; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--gr-display) !important;
  color: var(--gr-text) !important;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p { color: var(--gr-body); }
small, .small { color: var(--gr-muted); }
strong, b { color: var(--gr-text); }

a { color: var(--gr-secondary); transition: color .2s ease; }
a:hover, a:focus { color: #c4b5fd; text-decoration: none; }

hr { border-top: 1px solid var(--gr-border) !important; }

.text-muted { color: var(--gr-muted) !important; }
.text-dark { color: var(--gr-text) !important; }
.text-body { color: var(--gr-body) !important; }

::selection { background: rgba(123, 61, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gr-ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gr-primary), var(--gr-primary-2));
  border-radius: 6px; border: 2px solid var(--gr-ink);
}

/* ---------------- Signature utilities ---------------- */
.gr-kicker {
  font-family: var(--gr-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(94, 234, 212, 0.85); display: inline-flex; align-items: center; gap: .6em;
}
.gr-kicker::before { content: "//"; color: rgba(123, 61, 255, 0.9); }

.gr-tag {
  display: inline-flex; align-items: baseline; font-family: var(--gr-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gr-body);
}
.gr-tag::before { content: "["; color: rgba(94,234,212,.9); margin-right: .5em; font-weight: 600; }
.gr-tag::after  { content: "]"; color: rgba(94,234,212,.9); margin-left: .5em;  font-weight: 600; }

/* ---------------- Header / navbar ---------------- */
.header, #header { background: transparent !important; }

.topbar {
  background: var(--gr-surface) !important;
  border-bottom: 1px solid var(--gr-border) !important;
}
.topbar .btn, .topbar .input-group-text, .topbar .btn-active-client { color: var(--gr-body) !important; }
.topbar .input-group-text { background: transparent !important; border-color: var(--gr-border) !important; }

.navbar.navbar-light {
  background: rgba(14, 14, 23, 0.82) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gr-border) !important;
}
.main-navbar-wrapper {
  background: rgba(10, 10, 18, 0.72) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gr-border) !important;
}

/* Brand wordmark (see header.tpl edit) */
.navbar-brand, .navbar-light .navbar-brand { color: var(--gr-text) !important; }
.gr-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--gr-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.gr-brand .fa-ghost {
  color: var(--gr-primary);
  filter: drop-shadow(0 0 10px rgba(123, 61, 255, 0.65));
  font-size: 1.25rem;
}
.gr-brand .gr-wordmark { color: var(--gr-text); }
.gr-word-accent {
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-img { max-height: 40px; width: auto; }

.navbar-light .navbar-nav .nav-link,
#nav .nav-link {
  color: var(--gr-body) !important;
  font-weight: 500;
  transition: color .2s ease;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-item.active > .nav-link,
#nav .nav-link:hover { color: var(--gr-text) !important; }

.navbar .cart-btn { color: var(--gr-body) !important; }
.navbar .cart-btn .badge, .badge-info {
  background: var(--gr-primary) !important; color: #fff !important;
}

/* Nav dropdowns */
.dropdown-menu {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(123,61,255,.06) !important;
  padding: .4rem;
}
.dropdown-item, .dropdown-menu .dropdown-item a, .dropdown-menu li > a {
  color: var(--gr-body) !important; border-radius: .5rem;
}
.dropdown-item:hover, .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover, .dropdown-menu li > a:hover {
  background: rgba(123, 61, 255, 0.14) !important; color: var(--gr-text) !important;
}
.dropdown-divider { border-top-color: var(--gr-border) !important; }

/* Knowledgebase search box in header */
.navbar .search .form-control,
.navbar .form-control {
  background: var(--gr-surface-2) !important;
  border-color: var(--gr-border) !important;
  color: var(--gr-text) !important;
}
.navbar .search .btn, .navbar .btn-default {
  background: var(--gr-surface-2) !important;
  border-color: var(--gr-border) !important;
  color: var(--gr-body) !important;
}

/* ---------------- Breadcrumb ---------------- */
.master-breadcrumb {
  background: rgba(20, 20, 34, 0.5) !important;
  border-bottom: 1px solid var(--gr-border) !important;
}
.master-breadcrumb .breadcrumb { background: transparent !important; }
.master-breadcrumb, .breadcrumb, .breadcrumb-item, .breadcrumb a {
  color: var(--gr-muted) !important; font-family: var(--gr-mono); font-size: 12px; letter-spacing: .04em;
}
.breadcrumb a { color: var(--gr-secondary) !important; }
.breadcrumb-item.active { color: var(--gr-body) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(94, 234, 212, 0.7) !important; content: "/"; }

/* ---------------- Buttons ---------------- */
.btn { border-radius: 0.7rem; font-weight: 600; letter-spacing: .01em; transition: all .25s ease; }

.btn-primary, .btn-primary:not(:disabled):not(.disabled) {
  color: #fff !important;
  border: none !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, var(--gr-primary), var(--gr-primary-2)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 22px -6px rgba(123,61,255,0.55) !important;
}
.btn-primary:hover, .btn-primary:focus {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 34px -6px rgba(123,61,255,0.85) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--gr-secondary), var(--gr-primary)) !important;
  border: none !important;
}

.btn-outline-primary {
  color: var(--gr-secondary) !important;
  border: 1px solid rgba(123, 61, 255, 0.45) !important;
  background: rgba(123, 61, 255, 0.06) !important;
}
.btn-outline-primary:hover {
  background: rgba(123, 61, 255, 0.16) !important;
  border-color: rgba(123, 61, 255, 0.75) !important;
  color: var(--gr-text) !important;
  transform: translateY(-1px);
}

.btn-default, .btn-light, .btn-outline-secondary {
  color: var(--gr-body) !important;
  border: 1px solid var(--gr-border-2) !important;
  background: var(--gr-surface-2) !important;
}
.btn-default:hover, .btn-light:hover, .btn-outline-secondary:hover {
  background: var(--gr-surface-3) !important; color: var(--gr-text) !important;
  border-color: rgba(123,61,255,.4) !important;
}

.btn-success { background: linear-gradient(135deg, #10b981, #059669) !important; border: none !important; color: #fff !important; }
.btn-danger  { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; border: none !important; color: #fff !important; }
.btn-info    { background: linear-gradient(135deg, var(--gr-ecto), #22c3ad) !important; border: none !important; color: #04231f !important; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border: none !important; color: #241704 !important; }
.btn-link    { color: var(--gr-secondary) !important; }

.btn:focus, .btn.focus, .form-control:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(123, 61, 255, 0.35) !important;
}

/* ---------------- Forms ---------------- */
.form-control, .custom-select, textarea, select, .custom-file-label {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  color: var(--gr-text) !important;
  border-radius: 0.6rem !important;
}
.form-control::placeholder { color: var(--gr-muted) !important; }
.form-control:focus, .custom-select:focus {
  background: var(--gr-surface-2) !important;
  border-color: var(--gr-primary) !important;
  color: var(--gr-text) !important;
}
.form-control-label, .col-form-label, label { color: var(--gr-body) !important; }

.input-group-text {
  background: var(--gr-surface-3) !important;
  border: 1px solid var(--gr-border-2) !important;
  color: var(--gr-muted) !important;
}
.input-group-merge .input-group-text { border-right: 0 !important; }

.custom-control-label::before { background: var(--gr-surface-2) !important; border-color: var(--gr-border-2) !important; }
.custom-control-input:checked ~ .custom-control-label::before,
.form-check-input:checked { background: var(--gr-primary) !important; border-color: var(--gr-primary) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gr-primary); }

.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #f43f5e !important; }
.invalid-feedback { color: #fb7185 !important; }

/* ---------------- Cards & panels ---------------- */
.card, .panel {
  background: var(--gr-surface) !important;
  border: 1px solid var(--gr-border) !important;
  border-radius: 1rem !important;
  color: var(--gr-body) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset;
}
.card-header, .panel-heading {
  background: var(--gr-surface-2) !important;
  border-bottom: 1px solid var(--gr-border) !important;
  color: var(--gr-text) !important;
  border-radius: 1rem 1rem 0 0 !important;
}
.card-footer { background: var(--gr-surface-2) !important; border-top: 1px solid var(--gr-border) !important; }
.card-title, .panel-title, .card-title.pricing-card-title { color: var(--gr-text) !important; }
.card-body, .panel-body { color: var(--gr-body) !important; }

/* subtle lift for interactive cards (portal + home) */
.card-columns.home .card, .action-icon-btns .card, .client-home-cards .card {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card-columns.home .card:hover, .client-home-cards .card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 61, 255, 0.32) !important;
  box-shadow: 0 16px 44px -20px rgba(123, 61, 255, 0.5) !important;
}

/* Left accent stripe using named accent classes -> unify to spectral palette */
.card-accent-teal, .card-accent-green { border-left: 3px solid var(--gr-ecto) !important; }
.card-accent-blue, .card-accent-midnight-blue, .card-accent-belize-hole,
.card-accent-peter-river, .card-accent-wet-asphalt { border-left: 3px solid var(--gr-primary) !important; }
.card-accent-sun-flower, .card-accent-orange, .card-accent-carrot { border-left: 3px solid var(--gr-secondary) !important; }
.card-accent-pomegranate, .card-accent-alizarin, .card-accent-red { border-left: 3px solid #f43f5e !important; }
.card-accent-asbestos, .card-accent-concrete, .card-accent-silver { border-left: 3px solid var(--gr-border-2) !important; }

/* Portal "how can we help" icon buttons */
.action-icon-btns a {
  display: block; text-align: center; padding: 1.4rem 0.75rem;
  background: var(--gr-surface) !important;
  border: 1px solid var(--gr-border) !important;
  border-radius: 1rem !important;
  color: var(--gr-body) !important;
  transition: all .3s ease;
}
.action-icon-btns a:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 61, 255, 0.35) !important;
  box-shadow: 0 14px 40px -20px rgba(123, 61, 255, 0.55) !important;
  color: var(--gr-text) !important;
}
.action-icon-btns .ico-container { margin-bottom: .5rem; }
.action-icon-btns .ico-container i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Client area stat tiles */
.tiles .tile {
  display: block; background: var(--gr-surface) !important;
  border: 1px solid var(--gr-border) !important; border-radius: 1rem;
  padding: 1.25rem; color: var(--gr-body) !important; position: relative; overflow: hidden;
  transition: all .3s ease; margin: .35rem;
}
.tiles .tile:hover { transform: translateY(-3px); border-color: rgba(123,61,255,.32) !important; background: var(--gr-surface-2) !important; }
/* decorative watermark icon: keep it subtle, no giant jump on hover (bug fix) */
.tiles .tile i {
  position: absolute; top: 14px; right: 16px;
  font-size: 40px !important; line-height: 1;
  color: rgba(167, 139, 250, 0.20) !important;
  transition: color .25s ease, font-size .25s ease, transform .25s ease;
}
.tiles .tile:hover i { font-size: 44px !important; color: rgba(167, 139, 250, 0.36) !important; }
.tiles .tile .stat { font-family: var(--gr-display); font-size: 2rem; font-weight: 700; color: var(--gr-text) !important; }
.tiles .tile .title { color: var(--gr-muted) !important; font-family: var(--gr-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.tiles .tile .highlight { position: absolute; top: 0; left: 0; height: 3px; width: 100%; }
.bg-color-blue   { background: var(--gr-primary) !important; }
.bg-color-green  { background: var(--gr-ecto) !important; }
.bg-color-red    { background: #f43f5e !important; }
.bg-color-gold   { background: var(--gr-secondary) !important; }

/* ---------------- Tables ---------------- */
.table { color: var(--gr-body) !important; }
.table thead th {
  background: var(--gr-surface-2) !important; color: var(--gr-text) !important;
  border-bottom: 1px solid var(--gr-border-2) !important; border-top: none !important;
  font-family: var(--gr-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.table td, .table th { border-top: 1px solid var(--gr-border) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.015) !important; }
.table-hover tbody tr:hover { background: rgba(123, 61, 255, 0.06) !important; color: var(--gr-text) !important; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--gr-border) !important; }

/* Tables sit on a surface panel; cells transparent (overrides `.table td{background:#fff!important}`) */
.table, table.table-list, .dataTable {
  background: var(--gr-surface) !important; border-radius: .75rem;
}
.table td, .table th, .table tbody, .table tbody tr, .table tbody td, .table tbody th,
table.table-list td, table.table-list th, table.table-list tbody tr,
.dataTable td, .dataTable th, .dataTable tbody tr {
  background-color: transparent !important;
}
.table tbody td, .table tbody th, table.table-list td, table.table-list th {
  color: var(--gr-body) !important; border-color: var(--gr-border) !important;
}
.dataTables_empty, td.dataTables_empty, .table .dataTables_empty {
  background: var(--gr-surface) !important; color: var(--gr-muted) !important;
}
/* DataTables controls */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { color: var(--gr-body) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--gr-body) !important; background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border) !important; border-radius: .4rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gr-primary) !important; color: #fff !important; border-color: var(--gr-primary) !important;
}

.list-group-item {
  background: var(--gr-surface) !important; border-color: var(--gr-border) !important; color: var(--gr-body) !important;
}

/* ---------------- Nav tabs / pills (client area) ---------------- */
.nav-tabs { border-bottom: 1px solid var(--gr-border) !important; }
.nav-tabs .nav-link { color: var(--gr-muted) !important; border: none !important; }
.nav-tabs .nav-link:hover { color: var(--gr-text) !important; }
.nav-tabs .nav-link.active {
  color: var(--gr-text) !important; background: transparent !important;
  border-bottom: 2px solid var(--gr-primary) !important;
}
.nav-pills .nav-link.active { background: var(--gr-primary) !important; color: #fff !important; }
.tab-content { color: var(--gr-body); }

/* ---------------- Alerts / badges / progress ---------------- */
.alert { border-radius: .75rem !important; border: 1px solid var(--gr-border-2) !important; }
.alert-success { background: rgba(16, 185, 129, 0.12) !important; color: #6ee7b7 !important; border-color: rgba(16,185,129,.3) !important; }
.alert-info    { background: rgba(94, 234, 212, 0.10) !important; color: var(--gr-ecto) !important; border-color: rgba(94,234,212,.3) !important; }
.alert-warning { background: rgba(245, 158, 11, 0.12) !important; color: #fcd34d !important; border-color: rgba(245,158,11,.3) !important; }
.alert-danger  { background: rgba(244, 63, 94, 0.12) !important; color: #fda4af !important; border-color: rgba(244,63,94,.3) !important; }
.alert-primary { background: rgba(123, 61, 255, 0.12) !important; color: var(--gr-secondary) !important; border-color: rgba(123,61,255,.3) !important; }

.badge-primary { background: var(--gr-primary) !important; }
.badge-success { background: #10b981 !important; }
.badge-danger  { background: #f43f5e !important; }
.badge-warning { background: #f59e0b !important; color: #241704 !important; }
.badge-secondary { background: var(--gr-surface-3) !important; color: var(--gr-body) !important; }

.progress { background: var(--gr-surface-3) !important; }
.progress-bar { background: linear-gradient(90deg, var(--gr-primary), var(--gr-secondary)) !important; }

.label, .status { border-radius: .5rem; }

/* ---------------- Modals / popovers / tooltips ---------------- */
.modal-content {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  border-radius: 1rem !important;
  color: var(--gr-body) !important;
}
.modal-header, .modal-footer { border-color: var(--gr-border) !important; }
.modal-title, .modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5 { color: var(--gr-text) !important; }
.modal .close { color: var(--gr-text) !important; text-shadow: none !important; opacity: .7; }
.modal .close:hover { opacity: 1; }
.modal-localisation .item {
  background: var(--gr-surface) !important; border: 1px solid var(--gr-border) !important;
  color: var(--gr-body) !important; border-radius: .6rem;
}
.modal-localisation .item.active, .modal-localisation .item:hover {
  border-color: var(--gr-primary) !important; color: var(--gr-text) !important;
}
.popover { background: var(--gr-surface-2) !important; border: 1px solid var(--gr-border-2) !important; }
.popover-body, .popover-header { color: var(--gr-body) !important; background: transparent !important; }
.tooltip-inner { background: var(--gr-surface-3) !important; color: var(--gr-text) !important; }

/* ---------------- Sidebar (client area) ---------------- */
.sidebar .list-group-item, .sidebar .panel { background: var(--gr-surface) !important; }
.sidebar .list-group-item.active, .sidebar a.active {
  background: rgba(123, 61, 255, 0.14) !important; color: var(--gr-text) !important;
  border-left: 3px solid var(--gr-primary) !important;
}
.sidebar a { color: var(--gr-body) !important; }
.sidebar a:hover { color: var(--gr-text) !important; }

/* ---------------- Footer ---------------- */
.footer, #footer {
  background: var(--gr-surface) !important;
  border-top: 1px solid var(--gr-border) !important;
  margin-top: 3rem;
}
.footer .nav-link, .footer a { color: var(--gr-muted) !important; }
.footer .nav-link:hover, .footer a:hover { color: var(--gr-text) !important; }
.footer .btn { color: var(--gr-muted) !important; }
.copyright { color: var(--gr-muted) !important; font-family: var(--gr-mono); font-size: 12px; letter-spacing: .03em; }
.gr-foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--gr-display); font-weight: 700; color: var(--gr-text); }
.gr-foot-brand .fa-ghost { color: var(--gr-primary); filter: drop-shadow(0 0 8px rgba(123,61,255,.6)); }

/* ---------------- Misc overrides ---------------- */
.bg-white, .bg-light, .bg-body, .primary-bg-color-light { background: var(--gr-surface) !important; }
/* page-bg utility (used as header-lined divider masks on some client pages) */
.primary-bg-color:not(body) { background-color: var(--gr-ink) !important; }
.sub-heading { color: var(--gr-text) !important; }
.sub-heading .primary-bg-color, .sub-heading span { color: var(--gr-secondary) !important; }
.border, .border-top, .border-bottom, .border-left, .border-right { border-color: var(--gr-border) !important; }
.page-header { border-bottom: 1px solid var(--gr-border) !important; }
.page-header h1, .page-header h2 { color: var(--gr-text) !important; }

/* Kill the light browser-autofill background (keeps inputs dark on login/register) */
input:-webkit-autofill, input:-webkit-autofill:hover,
input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--gr-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--gr-surface-2) inset !important;
  caret-color: var(--gr-text) !important;
  border-color: var(--gr-border-2) !important;
  transition: background-color 9999s ease-out 0s;
}

/* Login / register card gets a spectral gradient border */
.login-form .card, .clientRegister .card, .password-reset-container .card {
  background:
    linear-gradient(var(--gr-surface), var(--gr-surface)) padding-box,
    linear-gradient(150deg, rgba(123,61,255,.6), rgba(167,139,250,.18) 45%, rgba(94,234,212,.22)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: 0 30px 80px -40px rgba(123, 61, 255, 0.5) !important;
}
.login-form .btn-reveal-pw { background: var(--gr-surface-3) !important; border-color: var(--gr-border-2) !important; color: var(--gr-muted) !important; }

/* Domain search widget + misc light containers */
.input-group-wrapper, .jumbotron, .well, .domainchecker-search,
.search-container, .card.bg-white, .panel-default {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  border-radius: 0.8rem !important;
  color: var(--gr-body) !important;
}
.input-group-wrapper .form-control, .input-group-wrapper textarea { border: none !important; }
.domain-search, #domain-selections, .domainchecker { color: var(--gr-body); }

/* select2 widgets (used in many WHMCS forms/dropdowns) */
.select2-container--default .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-dropdown, .select2-search__field {
  background: var(--gr-surface-2) !important;
  border-color: var(--gr-border-2) !important;
  color: var(--gr-text) !important;
}
.select2-container--default .select2-selection__rendered,
.select2-container--default .select2-selection__placeholder { color: var(--gr-text) !important; }
.select2-container--default .select2-results__option { color: var(--gr-body); background: var(--gr-surface-2); }
.select2-container--default .select2-results__option--highlighted {
  background: rgba(123, 61, 255, 0.22) !important; color: var(--gr-text) !important;
}

/* Bootstrap-3 leftovers / date pickers that render light */
.datepicker, .datepicker table tr td, .datepicker table tr th { background: var(--gr-surface-2) !important; color: var(--gr-body) !important; }

/* Spinner overlay */
#fullpage-overlay { background: rgba(7, 7, 13, 0.75) !important; }

/* FontAwesome duotone/light fallbacks keep primary tint */
.fad, .fal, .far, .fas { }

/* ============================================================
   LAGOM PASS v2 - clean & minimal refinement layer
   Later in the cascade: overrides the base layer above.
   ============================================================ */

/* Calmer atmosphere: fainter dot grid */
body.primary-bg-color::after { opacity: 0.25; }

/* Flat clean cards: bigger radius, hairline border, no busy header bg */
.card, .panel {
  background: #0d0d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  box-shadow: none;
}
.card-header, .panel-heading {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 0.95rem 1.35rem;
  font-weight: 600;
}
.card-body { padding: 1.35rem; }
.card-footer { background: rgba(255, 255, 255, 0.02) !important; border-radius: 0 0 16px 16px !important; }

/* Buttons: solid, calm, no heavy glow */
.btn { border-radius: 0.65rem; transform: none !important; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled) {
  background-image: none !important;
  background-color: var(--gr-primary) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #6d2fe0 !important;
  box-shadow: 0 8px 24px -10px rgba(123, 61, 255, 0.65) !important;
}
.btn-outline-primary { background: transparent !important; }
.btn-outline-primary:hover { background: rgba(123, 61, 255, 0.12) !important; transform: none; }

/* Breadcrumb: bare, airy */
.master-breadcrumb {
  background: transparent !important;
  border-bottom: none !important;
  padding-top: 0.5rem;
}

/* Sidebar: rounded pill menu, no hard left borders */
.sidebar .list-group-item {
  background: transparent !important;
  border: none !important;
  margin: 2px 8px;
  width: auto;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
}
.sidebar .list-group-item.active, .sidebar a.active {
  background: rgba(123, 61, 255, 0.14) !important;
  border-left: none !important;
  color: var(--gr-text) !important;
}
.sidebar .list-group-item:hover { background: rgba(255, 255, 255, 0.04) !important; }
.sidebar .card, .sidebar .panel { padding: 0.35rem 0; }

/* Tables: airy padding, hairline dividers, quiet header */
.table thead th {
  background: transparent !important;
  border-bottom: 1px solid var(--gr-border-2) !important;
  padding: 0.85rem 1.05rem;
}
.table td, .table th { padding: 0.8rem 1.05rem; }

/* Dashboard tiles: Lagom stat cards with icon chip (no watermark, no accent bar) */
.tiles .tile { border-radius: 16px; padding: 1.35rem 1.3rem; }
.tiles .tile .highlight { display: none; }
.tiles .tile i {
  position: absolute !important; top: 16px !important; right: 16px !important;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 17px !important; line-height: 1;
  color: var(--gr-secondary) !important;
  background: rgba(123, 61, 255, 0.12);
  border: 1px solid rgba(123, 61, 255, 0.22);
  border-radius: 12px;
}
.tiles .tile:hover i {
  font-size: 17px !important;
  color: #fff !important;
  background: rgba(123, 61, 255, 0.24);
}
.tiles .tile .stat { font-size: 1.8rem; margin-top: 0.35rem; }

/* ---------------- Custom SVG icon chips (homepage) ---------------- */
.action-icon-btns .gr-chip {
  width: 58px; height: 58px;
  margin: 0 auto 0.8rem;
  display: grid; place-items: center;
  background: rgba(123, 61, 255, 0.10);
  border: 1px solid rgba(123, 61, 255, 0.22);
  border-radius: 16px;
  color: var(--gr-secondary);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.action-icon-btns a:hover .gr-chip {
  background: rgba(123, 61, 255, 0.2);
  border-color: rgba(123, 61, 255, 0.45);
  color: #fff;
  transform: translateY(-3px);
}
.action-icon-btns a { font-weight: 500; font-size: 0.9rem; }

/* ---------------- SVG micro-animations ---------------- */
@keyframes grLed { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes grFloatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes grDraw { to { stroke-dashoffset: 0; } }
@keyframes grBounceY { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(3px); } }
@keyframes grOrbit { to { transform: rotate(360deg); } }
@keyframes grPulseDot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes grSlideX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* Server illustration: floats gently, LEDs blink always */
.gr-svg-server { animation: grFloatSoft 5s ease-in-out infinite; }
.gr-svg-server .led, .gr-ico .led { animation: grLed 2.3s infinite; }
.gr-svg-server .led-2 { animation-delay: 0.55s; }
.gr-svg-server .led-3 { animation-delay: 1.1s; }
.gr-ico .led-b { animation-delay: 1.15s; }

/* Icon hover micro-animations */
.gr-ico .i-wave { opacity: 0.55; }
.action-icon-btns a:hover .i-wave { stroke-dasharray: 16; stroke-dashoffset: 16; animation: grDraw 0.5s ease forwards; }
.action-icon-btns a:hover .i-wave.w2 { animation-delay: 0.12s; }
.action-icon-btns a:hover .i-arrow { animation: grBounceY 0.55s ease; }
.action-icon-btns a:hover .i-dot { animation: grPulseDot 0.9s ease infinite; }
.action-icon-btns a:hover .i-dot.d2 { animation-delay: 0.15s; }
.action-icon-btns a:hover .i-dot.d3 { animation-delay: 0.3s; }
.action-icon-btns a:hover .i-sat, .gr-group-card:hover .i-sat { transform-origin: 12px 12px; animation: grOrbit 1.6s linear infinite; }
.action-icon-btns a:hover .i-line { animation: grSlideX 0.7s ease infinite; }
.action-icon-btns a:hover .i-door { animation: grBounceY 0.55s ease; }
.gr-group-card:hover .i-arr-r { animation: grSlideX 0.8s ease infinite; }

/* Homepage product group cards */
.gr-group-card .gr-card-visual {
  display: flex; justify-content: center; align-items: flex-end;
  height: 96px; margin-bottom: 0.9rem;
}
.gr-group-card .card-title { font-size: 1.15rem; }
.gr-group-card p { color: var(--gr-muted); font-size: 0.9rem; min-height: 1.2em; }

/* ============================================================
   HEADER v3 - single sticky glass bar (replaces WHMCS 3-row header)
   ============================================================ */

.gr-header {
  position: sticky; top: 0;
  z-index: 1030;
  background: rgba(9, 9, 16, 0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 34px -22px rgba(0, 0, 0, 0.7);
}

.gr-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  min-height: 64px;
  padding: 0.4rem 0;
}
.gr-nav .gr-brand { margin-right: 0.35rem; padding: 0.25rem 0; }

/* Primary links: quiet pills */
.gr-nav-links, .gr-nav-user { display: flex; flex-direction: row; align-items: center; gap: 0.1rem; margin-bottom: 0; padding-left: 0; list-style: none; }
.gr-nav-links > li, .gr-nav-user > li { position: relative; }
.gr-nav-links > li > a, .gr-nav-user > li > a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.8rem !important;
  border-radius: 0.6rem;
  color: var(--gr-body) !important;
  font-size: 0.92rem; font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.gr-nav-links > li > a:hover, .gr-nav-user > li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
}
.gr-nav-links > li.active > a {
  color: #fff !important;
  background: rgba(123, 61, 255, 0.16);
}
.gr-nav-links .dropdown-toggle::after, .gr-nav-user .dropdown-toggle::after {
  opacity: 0.5; margin-left: 0.15rem;
}

/* Right cluster: search + icon chips */
.gr-nav-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.gr-search { position: relative; }
.gr-search input {
  width: 168px; height: 38px;
  padding: 0.4rem 0.8rem 0.4rem 2.1rem;
  font-size: 0.85rem;
  color: var(--gr-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  transition: width 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gr-search input::placeholder { color: var(--gr-muted); }
.gr-search input:focus {
  width: 250px;
  outline: none;
  border-color: rgba(123, 61, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(123, 61, 255, 0.16);
}
.gr-search .fa-search {
  position: absolute; left: 0.78rem; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--gr-muted); pointer-events: none;
}

.gr-iconbtn {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--gr-body) !important;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.gr-iconbtn:hover {
  color: #fff !important;
  background: rgba(123, 61, 255, 0.14) !important;
  border-color: rgba(123, 61, 255, 0.45) !important;
}
.gr-iconbtn-admin { color: #fbbf24 !important; border-color: rgba(251, 191, 36, 0.35) !important; }
.gr-iconbtn-admin:hover { background: rgba(251, 191, 36, 0.12) !important; border-color: rgba(251, 191, 36, 0.6) !important; color: #fcd34d !important; }

.gr-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--gr-primary); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}

/* Desktop: force the collapse open inline (we replicate navbar-expand-xl) */
@media (min-width: 1200px) {
  .gr-nav-collapse { display: flex !important; flex: 1 1 auto; align-items: center; min-width: 0; }
  .gr-nav-user { margin-left: auto; }
}

/* Mobile: collapse drops below the bar as a full-width panel */
@media (max-width: 1199.98px) {
  .gr-nav-collapse { order: 99; width: 100%; flex-basis: 100%; padding: 0.4rem 0 0.8rem; }
  .gr-nav-links, .gr-nav-user { flex-direction: column; align-items: stretch; width: 100%; }
  .gr-nav-links > li > a, .gr-nav-user > li > a { display: flex; width: 100%; padding: 0.62rem 0.85rem !important; }
  .gr-nav-user { margin-top: 0.35rem; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 0.5rem; }
  .gr-nav-collapse .dropdown-menu {
    position: static !important;
    float: none;
    transform: none !important;
    box-shadow: none !important;
    margin: 0.25rem 0 0.4rem 0.9rem;
    border: none !important;
    background: rgba(255, 255, 255, 0.025) !important;
  }
}

/* ============================================================
   IDENTITY v4 - top strip, animated ghost, auth pages, hero
   ============================================================ */

/* --- Technical top strip (signature, scrolls away) --- */
.gr-topstrip {
  background: #05050b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gr-topstrip .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px;
}
.gr-topstrip-brand, .gr-topstrip-status {
  font-family: var(--gr-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 244, 255, 0.38);
}
.gr-topstrip-status { display: inline-flex; align-items: center; gap: 0.5em; transition: color 0.2s; }
.gr-topstrip-status:hover { color: var(--gr-ecto); text-decoration: none; }
.gr-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gr-ecto);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.9);
  animation: grLed 2.2s infinite;
}

/* --- Header: gradient hairline + underline sweep on links --- */
.gr-header {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(123, 61, 255, 0.55), rgba(167, 139, 250, 0.2) 45%, rgba(94, 234, 212, 0.25) 75%, transparent) 1;
}
.gr-nav-links > li > a { position: relative; }
.gr-nav-links > li > a::after {
  content: "";
  position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gr-primary), var(--gr-ecto));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.gr-nav-links > li > a:hover::after,
.gr-nav-links > li.active > a::after { transform: scaleX(1); }
.gr-nav-links > li.active > a { background: transparent; }

/* --- Animated ghost mascot --- */
@keyframes grBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.08); }
  96% { transform: scaleY(1); }
}
.gr-ghost .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: grBlink 5s infinite;
}
.gr-ghost-sm { animation: grFloatSoft 3.8s ease-in-out infinite; }
.gr-ghost-lg {
  animation: grFloatSoft 4.6s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(123, 61, 255, 0.35));
}
.gr-brand .gr-ghost-sm { filter: drop-shadow(0 0 10px rgba(123, 61, 255, 0.55)); }

/* --- Orbit scene (login art + hero) --- */
.gr-scene {
  position: relative;
  width: 320px; height: 320px;
  display: grid; place-items: center;
  margin: 0 auto;
}
.gr-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.gr-orbit .orbit-spin { transform-origin: 160px 160px; animation: grOrbit 16s linear infinite; }
.gr-orbit .orbit-spin-rev { transform-origin: 160px 160px; animation: grOrbit 24s linear infinite reverse; }
.gr-scene-server {
  position: absolute;
  right: 4px; bottom: 46px;
  animation-delay: 0.9s !important;
}

/* --- Full-screen auth pages (login / register / reset) --- */
.gr-auth .gr-topstrip, .gr-auth .gr-header,
.gr-auth .master-breadcrumb, .gr-auth #footer { display: none !important; }
.gr-auth #main-body { padding: 0 !important; margin: 0 !important; }
.gr-auth #main-body > .container, .gr-auth #main-body > div {
  max-width: 100% !important;
  padding: 0 !important; margin: 0 !important;
}
/* auth pages: no WHMCS sidebar column, content spans full width */
.gr-auth #main-body .row { margin: 0 !important; }
.gr-auth #main-body .row > .col-lg-4 { display: none !important; }
.gr-auth #main-body .primary-content {
  flex: 0 0 100% !important; max-width: 100% !important;
  width: 100%; padding: 0 !important;
}

.gr-auth-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.gr-auth-brand {
  position: absolute; top: 1.4rem; left: 1.75rem; z-index: 5;
  font-size: 1.15rem !important;
}
.gr-auth-art {
  flex: 1 1 54%;
  position: relative; overflow: hidden;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 3rem;
  background: radial-gradient(70% 55% at 50% 42%, rgba(123, 61, 255, 0.14), transparent 72%);
}
.gr-auth-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(167, 139, 250, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 25%, transparent 75%);
}
.gr-auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  animation: grDrift 18s ease-in-out infinite;
}
.gr-orb-1 { width: 340px; height: 340px; top: -90px; left: -70px; background: rgba(123, 61, 255, 0.16); }
.gr-orb-2 { width: 280px; height: 280px; bottom: -70px; right: -60px; background: rgba(94, 234, 212, 0.07); animation-delay: 6s; }
@keyframes grDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -3%) scale(1.06); }
  66% { transform: translate(-3%, 2%) scale(0.97); }
}
.gr-auth-art .gr-kicker { margin-top: 2.2rem; }
.gr-auth-headline {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 0.75rem 0 0.5rem;
}
.gr-auth-sub { color: var(--gr-muted); max-width: 380px; margin: 0 auto 1.4rem; }

.gr-auth-panel {
  flex: 1 1 46%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5rem 2rem 3rem;
  background: rgba(13, 13, 22, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.gr-auth-card { width: 100%; max-width: 400px; }
.gr-auth-title { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.gr-auth-lead { color: var(--gr-muted); margin-bottom: 1.8rem; }
.gr-auth-label { font-size: 0.85rem; font-weight: 500; }
.gr-input, .gr-auth-card .form-control {
  height: 48px;
  border-radius: 12px !important;
  font-size: 0.95rem;
}
.gr-pwgroup .btn-reveal-pw {
  border-radius: 0 12px 12px 0 !important;
  border-left: none !important;
}
.gr-pwgroup .gr-input { border-radius: 12px 0 0 12px !important; }
.gr-auth-forgot { font-size: 0.8rem; color: var(--gr-muted); }
.gr-auth-forgot:hover { color: var(--gr-secondary); }
.gr-remember {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gr-body); font-size: 0.88rem;
  margin: 0.4rem 0 1.3rem; cursor: pointer;
}
.gr-remember .form-check-input { position: static; margin: 0; }
.gr-auth-submit {
  height: 48px; border-radius: 12px !important;
  font-size: 0.95rem !important;
}
.gr-auth-alt {
  text-align: center; color: var(--gr-muted);
  font-size: 0.88rem; margin-top: 1.6rem;
}
.gr-auth-alt a { font-weight: 600; }
.gr-auth-panel .providerLinking, .gr-auth-panel .linked-accounts { margin-top: 1rem; }

/* Register page: same split-shell as login */
.gr-auth #registration.gr-auth-card { max-width: 420px; margin: 0; padding: 0; width: 100%; }
.gr-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem;
}
@media (max-width: 575.98px) { .gr-field-row { grid-template-columns: 1fr; } }
.gr-strength { margin-top: 0.55rem; }
.gr-strength .progress {
  height: 4px; border-radius: 2px;
  background: var(--gr-surface-3) !important;
  margin-bottom: 0.35rem;
}
.gr-strength p { font-family: var(--gr-mono); font-size: 10.5px; letter-spacing: 0.06em; }
#registration .field-icon { color: var(--gr-muted); }

/* inputs that only carry class "field" (register, order forms) */
input.field, select.field, textarea.field {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  color: var(--gr-text) !important;
  border-radius: 0.6rem !important;
}
input.field::placeholder { color: var(--gr-muted) !important; }
input.field:focus, select.field:focus { border-color: var(--gr-primary) !important; }

/* Password reset / misc auth cards fall back to a centered card */
.gr-auth #main-body .mw-540 { margin: 10vh auto 6vh; }

@media (max-width: 991.98px) {
  .gr-auth-art { display: none !important; }
  .gr-auth-panel { border-left: none; min-height: 100vh; }
}

/* --- Portal home hero --- */
.gr-hero { text-align: center; padding: 2.2rem 0 1rem; position: relative; }
.gr-hero .gr-scene { width: 300px; height: 300px; margin-bottom: 0.4rem; }
.gr-hero-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin: 0.8rem 0 0.6rem;
}
.gr-hero-sub { color: var(--gr-muted); font-size: 1.02rem; max-width: 460px; margin: 0 auto 1.6rem; }
.gr-hero-cta { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.gr-hero .gr-kicker { justify-content: center; }

/* ============================================================
   APP SHELL v5 - logged-in client area becomes a SaaS app
   (sidebar + topbar + quiet panels; guests keep the site header)
   ============================================================ */

.gr-shell { display: flex; min-height: 100vh; }

/* --- Left sidebar --- */
.gr-side {
  width: 232px; flex: 0 0 232px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 1.1rem 0.85rem 1rem;
  background: #0a0a12;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  z-index: 1040;
}
.gr-side-brand { font-size: 1.12rem !important; padding: 0.25rem 0.5rem 0.8rem; }
.gr-side-label {
  font-family: var(--gr-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 244, 255, 0.28);
  margin: 1.1rem 0.6rem 0.4rem;
}
.gr-side-nav { display: flex; flex-direction: column; gap: 2px; }
.gr-side-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.56rem 0.7rem; border-radius: 10px;
  color: var(--gr-body); font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.gr-side-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: 0.75; }
.gr-side-nav a:hover { background: rgba(255, 255, 255, 0.045); color: #fff; text-decoration: none; }
.gr-side-nav a.active { background: rgba(123, 61, 255, 0.16); color: #fff; }
.gr-side-nav a.active svg { opacity: 1; color: var(--gr-secondary); }
.gr-side-order { border: 1px dashed rgba(123, 61, 255, 0.4); color: var(--gr-secondary) !important; }
.gr-side-order:hover { background: rgba(123, 61, 255, 0.12) !important; border-style: solid; }
.gr-side-foot { margin-top: auto; padding: 0.9rem 0.6rem 0.2rem; }
.gr-side-status {
  font-family: var(--gr-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 244, 255, 0.35);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.gr-side-status:hover { color: var(--gr-ecto); text-decoration: none; }

/* --- Main column + topbar --- */
.gr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gr-top {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.62rem 1.5rem;
  background: rgba(9, 9, 16, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gr-top-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.gr-user-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px; padding: 0.28rem 0.8rem 0.28rem 0.3rem;
  color: var(--gr-body); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.gr-user-chip:hover { border-color: rgba(123, 61, 255, 0.45); color: #fff; }
.gr-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gr-primary), var(--gr-secondary));
  color: #fff; font-size: 12px;
}
.gr-user-name { font-size: 0.85rem; font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-user-caret { font-size: 9px; opacity: 0.5; }

.gr-content { flex: 1; padding: 1.7rem 1.6rem 0; }
.gr-container { max-width: 1280px; margin: 0 auto; }

/* --- App footer (tiny) --- */
.gr-appfoot {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.3rem 0 1.6rem; margin-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gr-muted);
}
.gr-appfoot .copyright { font-size: 11.5px; margin: 0; }
.gr-appfoot-links { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.gr-appfoot-links a, .gr-appfoot-lang {
  color: var(--gr-muted) !important; font-size: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.gr-appfoot-links a:hover, .gr-appfoot-lang:hover { color: var(--gr-text) !important; }

/* --- WHMCS page sidebars -> horizontal filter chips --- */
.gr-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.6rem; margin-bottom: 1.4rem; }
.gr-filterbar .card, .gr-filterbar .panel {
  background: transparent !important; border: none !important;
  box-shadow: none !important; border-radius: 0 !important;
  margin: 0 !important; padding: 0 !important;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.gr-filterbar .card-header, .gr-filterbar .panel-heading {
  background: transparent !important; border: none !important;
  padding: 0 !important; border-radius: 0 !important;
  font-family: var(--gr-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gr-muted) !important;
}
.gr-filterbar .card-header .btn, .gr-filterbar .card-header [data-toggle] { display: none !important; }
.gr-filterbar .card-body:not(.collapsable-card-body) { display: none !important; }
/* WHMCS card-minimise JS hides this wrapper: force it open in the chip bar */
.gr-filterbar .collapsable-card-body { display: flex !important; flex-wrap: wrap; gap: 0.45rem; }
.gr-filterbar .card-header .card-minimise { display: none !important; }
.gr-filterbar .list-group {
  display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 0.45rem;
  background: transparent; border: none; margin: 0;
}
.gr-filterbar .list-group-item {
  background: var(--gr-surface-2) !important;
  border: 1px solid var(--gr-border-2) !important;
  border-radius: 999px !important;
  margin: 0 !important; width: auto !important;
  padding: 0.34rem 0.85rem !important;
  font-size: 0.82rem; color: var(--gr-body) !important;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.gr-filterbar .list-group-item:hover { border-color: rgba(123, 61, 255, 0.45) !important; color: #fff !important; }
.gr-filterbar .list-group-item.active {
  background: rgba(123, 61, 255, 0.16) !important;
  border-color: var(--gr-primary) !important; color: #fff !important;
}
.gr-filterbar .list-group-item .badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gr-body) !important; border-radius: 8px; font-size: 10px;
}
.gr-page-clientareahome .gr-filterbar { display: none; }

/* --- Dashboard --- */
.gr-dash-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 0.3rem 0 1.6rem;
}
.gr-dash-title { font-size: 1.95rem; letter-spacing: -0.02em; margin: 0.3rem 0 0; }
.gr-dash-order i { font-size: 12px; margin-right: 0.3rem; }
.gr-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.9rem; margin-bottom: 1.9rem;
}
.gr-stat {
  position: relative; overflow: hidden;
  background: #0c0c15;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.gr-stat:hover { transform: translateY(-3px); border-color: rgba(123, 61, 255, 0.38); text-decoration: none; }
.gr-stat-ico {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(123, 61, 255, 0.1);
  border: 1px solid rgba(123, 61, 255, 0.18);
  color: var(--gr-secondary);
}
.gr-stat-ico svg { width: 19px; height: 19px; }
.gr-stat-num { font-family: var(--gr-display); font-size: 2.15rem; font-weight: 700; color: #fff; line-height: 1.1; }
.gr-stat-label { font-family: var(--gr-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gr-muted); }
.gr-stat-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 46%; border-radius: 0 3px 0 0; opacity: 0.85; }

/* --- App panels: quiet sections, mono section titles, no boxy headers --- */
.gr-app .card, .gr-app .panel {
  background: #0c0c15 !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 18px !important;
}
.gr-app [class*="card-accent-"] { border-left: 1px solid rgba(255, 255, 255, 0.055) !important; }
.gr-app .card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 1.05rem 1.3rem 0.3rem !important;
}
.gr-app .card-header .card-title {
  font-size: 0.78rem !important;
  font-family: var(--gr-mono) !important; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gr-muted) !important;
}
.gr-app .card-header .card-title > i { display: none; }
.gr-app .card-footer { background: transparent !important; border-top: none !important; padding: 0.3rem 1.3rem 1rem !important; }
.gr-app .card .list-group { background: transparent; }
.gr-app .card .list-group-item {
  background: transparent !important; border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
  padding: 0.8rem 1.3rem !important;
}
.gr-app .card .list-group-item:hover { background: rgba(255, 255, 255, 0.025) !important; }

/* --- App tables: airy row lists --- */
.gr-app .table { background: transparent !important; }
.gr-app .table thead th { font-size: 10px; border-bottom-color: rgba(255, 255, 255, 0.07) !important; }
.gr-app .table td, .gr-app .table th { border-color: rgba(255, 255, 255, 0.045) !important; }

/* --- Mobile: off-canvas sidebar --- */
@media (max-width: 991.98px) {
  .gr-side {
    position: fixed; left: 0; top: 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 30px 0 60px -30px rgba(0, 0, 0, 0.85);
  }
  body.gr-side-open .gr-side { transform: translateX(0); }
  .gr-side-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(4, 4, 8, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1035;
  }
  body.gr-side-open .gr-side-overlay { display: block; }
  .gr-content { padding: 1.1rem 1rem 0; }
  .gr-top { padding: 0.55rem 1rem; }
}

/* ============================================================
   SOFT PASS v6 - round pills, quiet tables, no WHMCS chrome
   ============================================================ */

/* Every button in the app becomes a pill; kill stray white/light buttons */
.gr-app .btn { border-radius: 999px !important; box-shadow: none !important; }
.gr-app .btn-default, .gr-app .btn-light, .gr-app .btn-secondary,
.gr-app .btn-outline-secondary, .gr-app .btn-outline-primary,
.gr-app .page-link,
.gr-app .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--gr-body) !important;
  border-radius: 999px !important;
}
.gr-app .btn-default:hover, .gr-app .btn-light:hover, .gr-app .btn-secondary:hover,
.gr-app .btn-outline-secondary:hover, .gr-app .btn-outline-primary:hover,
.gr-app .page-link:hover,
.gr-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: rgba(123, 61, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(123, 61, 255, 0.1) !important;
}
.gr-app .btn-success { background: rgba(16, 185, 129, 0.16) !important; border: 1px solid rgba(16, 185, 129, 0.4) !important; color: #6ee7b7 !important; }
.gr-app .btn-danger { background: rgba(244, 63, 94, 0.14) !important; border: 1px solid rgba(244, 63, 94, 0.4) !important; color: #fda4af !important; }
.gr-app .btn-info { background: rgba(94, 234, 212, 0.12) !important; border: 1px solid rgba(94, 234, 212, 0.35) !important; color: var(--gr-ecto) !important; }

/* Panel header action pills -> tiny mono chips (beats bg-color-*) */
.gr-app .card-header .btn {
  font-family: var(--gr-mono) !important;
  font-size: 9.5px !important; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4em 1em !important;
  background: rgba(123, 61, 255, 0.14) !important;
  border: 1px solid rgba(123, 61, 255, 0.32) !important;
  color: #e6dcff !important;
}
.gr-app .card-header .btn:hover { background: rgba(123, 61, 255, 0.26) !important; color: #fff !important; }
.gr-app .card-footer a { color: var(--gr-muted) !important; font-size: 0.82rem; }
.gr-app .card-footer a:hover { color: var(--gr-text) !important; }

/* DataTables: hide the "Show N entries" / "Showing X of Y" chrome */
.gr-app .dataTables_length, .gr-app .dataTables_info { display: none !important; }
.gr-app .dataTables_wrapper .dataTables_filter { margin: 0.2rem 0 0.7rem; }
.gr-app .dataTables_wrapper .dataTables_filter label .form-control {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  width: 220px;
}
.gr-app .dataTables_wrapper .dataTables_paginate { padding-top: 0.6rem; }
.gr-app .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--gr-primary) !important; border-color: var(--gr-primary) !important; color: #fff !important;
}
.gr-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.gr-app .page-item.disabled { display: none !important; }
.gr-app .pagination .page-item.active .page-link {
  background: var(--gr-primary) !important; border-color: var(--gr-primary) !important; color: #fff !important;
}

/* Tables: soft rounded panel, hairline rows, roomy cells */
.gr-app .dataTables_wrapper, .gr-app .table-container {
  background: #0c0c15;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  padding: 0.55rem 1rem 0.8rem;
}
.gr-app .table-container .table, .gr-app .dataTables_wrapper .table { margin-bottom: 0.25rem; }
.gr-app .table { border: none !important; }
.gr-app .table thead th {
  border: none !important;
  padding: 0.8rem 0.9rem 0.45rem;
}
.gr-app .table td {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  padding: 0.85rem 0.9rem;
  vertical-align: middle;
}
.gr-app .table-hover tbody tr:hover { background: rgba(123, 61, 255, 0.05) !important; }
.gr-app .table-bordered, .gr-app .table-bordered td, .gr-app .table-bordered th { border-left: none !important; border-right: none !important; }

/* Filterbar: chips only, no VIEW/ACTIONS labels */
.gr-filterbar .card-header { display: none !important; }

/* CHIPS v2: quiet text-only chips, no bright borders, no stray icons */
.gr-filterbar .collapsable-card-body, .gr-filterbar .list-group {
  background: transparent !important; border: none !important; box-shadow: none !important;
}
.gr-filterbar .list-group-item {
  background: rgba(255, 255, 255, 0.028) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.95rem !important;
  font-size: 0.84rem !important; font-weight: 500;
  color: var(--gr-body) !important;
  line-height: 1.3;
}
.gr-filterbar .list-group-item i { display: none !important; }
.gr-filterbar .list-group-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}
.gr-filterbar .list-group-item.active {
  background: rgba(123, 61, 255, 0.15) !important;
  border-color: rgba(123, 61, 255, 0.42) !important;
  color: #e6dcff !important;
}
.gr-filterbar .list-group-item .badge {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--gr-muted) !important;
  font-size: 10px !important; padding: 0.16em 0.5em !important;
  border-radius: 7px !important; margin-left: 0.4rem;
}
.gr-filterbar .list-group-item.active .badge { background: rgba(123, 61, 255, 0.3) !important; color: #fff !important; }

/* Product details: the white product-image card goes dark */
.gr-app .product-icon {
  background: linear-gradient(180deg, #12121d, #0d0d16) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px 14px 0 0;
}
.gr-app .product-icon * { color: var(--gr-text) !important; }
.gr-app .product-icon i { color: rgba(167, 139, 250, 0.55) !important; }
.gr-app .product-icon img { filter: brightness(0.9); }

/* Sidebar: ticket shortcut + overview summary */
.gr-side-ticket { border-color: rgba(94, 234, 212, 0.35); color: var(--gr-ecto) !important; }
.gr-side-ticket:hover { background: rgba(94, 234, 212, 0.08) !important; }
.gr-side-sum { display: flex; flex-direction: column; gap: 1px; }
.gr-side-sum a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.7rem; border-radius: 8px;
  font-size: 0.82rem; color: var(--gr-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.gr-side-sum a:hover { background: rgba(255, 255, 255, 0.04); color: var(--gr-text); text-decoration: none; }
.gr-side-sum b { margin-left: auto; color: var(--gr-text); font-weight: 600; font-size: 0.85rem; }
.gr-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }

/* Dashboard v2: greeting + segmented overview band */
.gr-dash-sub { color: var(--gr-muted); margin: 0.35rem 0 0; font-size: 0.92rem; }
.gr-dash-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gr-dash-ticket {
  border: 1px solid rgba(94, 234, 212, 0.35) !important;
  color: var(--gr-ecto) !important;
  background: rgba(94, 234, 212, 0.06) !important;
}
.gr-dash-ticket:hover { background: rgba(94, 234, 212, 0.12) !important; color: #b5f5e8 !important; }
.gr-dash-ticket i { font-size: 12px; margin-right: 0.3rem; }
.gr-band {
  display: flex; flex-wrap: wrap;
  background: #0c0c15;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  margin-bottom: 1.9rem;
  overflow: hidden;
}
.gr-seg {
  flex: 1 1 0; min-width: 130px;
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 1.15rem 1.3rem 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}
.gr-seg:first-child { border-left: none; }
.gr-seg:hover { background: rgba(255, 255, 255, 0.025); text-decoration: none; }
.gr-seg b { font-family: var(--gr-display); font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.gr-seg span { font-family: var(--gr-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gr-muted); }

/* Footer pinned to the bottom even on short pages */
.gr-content { display: flex; flex-direction: column; }
.gr-content > #main-body { flex: 1 0 auto; }
.gr-appfoot { margin-top: auto; }
.gr-content > #main-body { margin-top: 0; }

/* Status labels -> soft tinted pills */
.gr-app .label, .gr-app .status, .gr-app .badge:not(.gr-count):not(.gr-cattab-badge) {
  border-radius: 999px !important;
  padding: 0.34em 0.9em !important;
  font-size: 10.5px !important; font-weight: 600 !important;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: none;
}
.gr-app .label-success, .gr-app .status-active, .gr-app .badge-success { background: rgba(16, 185, 129, 0.16) !important; color: #6ee7b7 !important; }
.gr-app .label-warning, .gr-app .status-pending, .gr-app .badge-warning { background: rgba(245, 158, 11, 0.16) !important; color: #fcd34d !important; }
.gr-app .label-danger, .gr-app .status-suspended, .gr-app .status-overdue, .gr-app .badge-danger { background: rgba(244, 63, 94, 0.15) !important; color: #fda4af !important; }
.gr-app .label-info, .gr-app .badge-info:not(.gr-count) { background: rgba(94, 234, 212, 0.13) !important; color: var(--gr-ecto) !important; }
.gr-app .label-default, .gr-app .status-terminated, .gr-app .status-cancelled, .gr-app .badge-secondary { background: rgba(255, 255, 255, 0.07) !important; color: var(--gr-muted) !important; }
.gr-app .label-primary, .gr-app .badge-primary { background: rgba(123, 61, 255, 0.18) !important; color: #cdbcff !important; }

/* Filterbar chips: beat the .gr-app .card row styles + flatten WHMCS9 nested wrappers */
.gr-app .gr-filterbar .list-group-item {
  display: inline-flex !important; align-items: center !important;
  background: rgba(255, 255, 255, 0.028) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.95rem !important;
  font-size: 0.84rem !important; font-weight: 500;
  color: var(--gr-body) !important;
  width: auto !important; margin: 0 !important;
}
.gr-app .gr-filterbar .list-group-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}
.gr-app .gr-filterbar .list-group-item.active {
  background: rgba(123, 61, 255, 0.15) !important;
  border-color: rgba(123, 61, 255, 0.42) !important;
  color: #e6dcff !important;
}
.gr-app .gr-filterbar .sidebar-menu-item-wrapper {
  display: inline-flex !important; align-items: center !important; gap: 0.45rem;
}
.gr-app .gr-filterbar .sidebar-menu-item-icon-wrapper { display: none !important; }
.gr-app .gr-filterbar .sidebar-menu-item-label { display: inline-flex !important; }
.gr-app .gr-filterbar .sidebar-menu-item-label span { white-space: nowrap; }
.gr-app .gr-filterbar .list-group-item .badge {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--gr-muted) !important;
  font-size: 10px !important; padding: 0.16em 0.55em !important;
  border-radius: 7px !important; margin: 0 !important;
}
.gr-app .gr-filterbar .list-group-item.active .badge { background: rgba(123, 61, 255, 0.3) !important; color: #fff !important; }

/* wireframe product icon spacing */
.gr-app .product-icon .gr-srv-wire { display: block; margin: 0.4rem auto 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation: none !important; }
}
