/* ============================================================
   NEX Modern Client Theme  –  Professional Redesign
   Inspired by Linear, Vercel, Stripe dashboards
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --nex-primary:       #4f46e5;
  --nex-primary-rgb:   79, 70, 229;
  --nex-primary-dark:  #3730a3;
  --nex-primary-glow:  rgba(79, 70, 229, 0.18);

  /* Surfaces */
  --nex-bg:            #f5f6fa;
  --nex-bg-subtle:     #eef0f6;
  --nex-surface:       #ffffff;
  --nex-surface-alt:   #fafbff;

  /* Text */
  --nex-text:          #0f172a;
  --nex-text-muted:    #64748b;
  --nex-text-subtle:   #94a3b8;

  /* Border */
  --nex-border:        #e4e7ef;
  --nex-border-subtle: #f0f2f7;

  /* Shadows */
  --nex-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --nex-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --nex-shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --nex-shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.07), 0 3px 6px -3px rgba(15, 23, 42, 0.04);
  --nex-shadow-lg: 0 16px 28px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -6px rgba(15, 23, 42, 0.04);
  --nex-shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.12), 0 10px 20px -8px rgba(15, 23, 42, 0.06);

  /* Radii */
  --nex-r-sm:  0.5rem;
  --nex-r:     0.75rem;
  --nex-r-lg:  1rem;
  --nex-r-xl:  1.25rem;

  /* Transitions */
  --nex-t: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
  --nex-primary:       #818cf8;
  --nex-primary-rgb:   129, 140, 248;
  --nex-primary-dark:  #6366f1;
  --nex-primary-glow:  rgba(129, 140, 248, 0.15);

  --nex-bg:            #0d1117;
  --nex-bg-subtle:     #131a27;
  --nex-surface:       #161d2e;
  --nex-surface-alt:   #1c2440;

  --nex-text:          #e2e8f0;
  --nex-text-muted:    #94a3b8;
  --nex-text-subtle:   #64748b;

  --nex-border:        rgba(255, 255, 255, 0.09);
  --nex-border-subtle: rgba(255, 255, 255, 0.04);

  --nex-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --nex-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --nex-shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --nex-shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.4),  0 3px 6px -3px rgba(0, 0, 0, 0.3);
  --nex-shadow-lg: 0 16px 28px -4px rgba(0, 0, 0, 0.45), 0 6px 12px -6px rgba(0, 0, 0, 0.35);
  --nex-shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.5),  0 10px 20px -8px rgba(0, 0, 0, 0.4);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-optical-sizing: auto;
  color: var(--nex-text);
  background-color: var(--nex-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--nex-text);
  line-height: 1.3;
}

a {
  text-underline-offset: 0.15rem;
}

/* ── Main container (outer) ─────────────────────────────────── */
body > .container,
body > .container > .container {
  max-width: 1280px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-lg) !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: var(--nex-shadow-sm) !important;
  margin-bottom: 1.75rem;
  backdrop-filter: none;
  position: relative;
  z-index: 1040;
}

.navbar-brand {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--nex-text) !important;
  letter-spacing: -0.01em;
}

.navbar-brand img {
  height: 34px !important;
}

/* Override huraga nav-link styles */
.navbar .nav-link,
.navbar-nav .nav-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--nex-text-muted) !important;
  border-radius: var(--nex-r-sm) !important;
  padding: 0.4rem 0.7rem !important;
  transition: var(--nex-t) !important;
}

.navbar .nav-link:hover,
.navbar-nav .nav-link:hover {
  color: var(--nex-text) !important;
  background: rgba(var(--nex-primary-rgb), 0.07) !important;
}

.navbar .nav-link.active,
.navbar-nav .nav-link.active {
  color: var(--nex-primary) !important;
  background: rgba(var(--nex-primary-rgb), 0.09) !important;
  font-weight: 600 !important;
}

.navbar-toggler {
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-sm);
  padding: 0.3rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--nex-primary-glow);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.offcanvas-md,
#sidebarMenu {
  border: none !important;
  background: transparent !important;
}

.sidebar-inner {
  padding: 0 !important;
}

.sidebar-inner > ul.nav {
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  padding: 0.625rem;
  box-shadow: var(--nex-shadow-sm);
  gap: 1px;
  display: flex;
  flex-direction: column;
}

.offcanvas-item {
  border: none !important;
  border-radius: var(--nex-r-sm) !important;
  overflow: hidden;
  /* Reset huraga.css's li-level background so only the <a> lights up */
  background: transparent !important;
}

.offcanvas-item > a.nav-link,
.offcanvas-item .nav-link {
  font-size: 0.8625rem !important;
  font-weight: 500 !important;
  color: var(--nex-text-muted) !important;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--nex-r-sm) !important;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease !important;
  gap: 0.625rem;
  display: flex !important;
  align-items: center !important;
  position: relative;
}

.offcanvas-item > a.nav-link:hover,
.offcanvas-item .nav-link:hover {
  color: var(--nex-text) !important;
  background: rgba(var(--nex-primary-rgb), 0.07) !important;
  transform: translateX(2px);
}

/* Active state: single highlight only on the <a> – reset any li background */
.offcanvas-item.active {
  background: transparent !important;
}

.offcanvas-item.active > a.nav-link,
.offcanvas-item.active .nav-link {
  color: var(--nex-primary) !important;
  background: rgba(var(--nex-primary-rgb), 0.1) !important;
  font-weight: 600 !important;
  transform: none;
}

/* Left accent bar on active item */
.offcanvas-item.active > a.nav-link::before,
.offcanvas-item.active .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--nex-primary);
  border-radius: 0 3px 3px 0;
}

.offcanvas-item .icon {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s ease !important;
}

.offcanvas-item:hover .icon {
  opacity: 0.85;
}

.offcanvas-item.active .icon {
  opacity: 1;
}

/* Staggered entrance animation for sidebar items */
.sidebar-inner > ul.nav .offcanvas-item {
  animation: nexSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.sidebar-inner > ul.nav .offcanvas-item:nth-child(1)  { animation-delay: 0.04s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(2)  { animation-delay: 0.08s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(3)  { animation-delay: 0.12s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(4)  { animation-delay: 0.16s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(5)  { animation-delay: 0.20s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(6)  { animation-delay: 0.23s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(7)  { animation-delay: 0.26s; }
.sidebar-inner > ul.nav .offcanvas-item:nth-child(n+8) { animation-delay: 0.28s; }

@keyframes nexSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Sidebar balance / note section */
.sidebar-inner ul li.pt-3 {
  border-top: 1px solid var(--nex-border) !important;
  margin-top: 0.5rem !important;
  padding: 0.875rem 0.75rem 0.375rem !important;
}

.sidebar-inner ul li.pt-3 h5 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nex-text-subtle) !important;
  margin-bottom: 0.3rem;
}

.sidebar-inner ul li.pt-3 h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nex-text);
}

/* ── Content area ────────────────────────────────────────────── */
#wrapper {
  /* Use opacity-only animation to avoid creating a stacking context
     that would push dropdowns/tooltips below the navbar */
  animation: nexFadeUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

@keyframes nexFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nexSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes nexScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes nexShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.content-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-lg) !important;
  box-shadow: var(--nex-shadow-sm) !important;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  animation: nexScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card:hover {
  box-shadow: var(--nex-shadow-md) !important;
  border-color: rgba(var(--nex-primary-rgb), 0.18) !important;
}

.card-header {
  background: var(--nex-surface-alt) !important;
  border-bottom: 1px solid var(--nex-border) !important;
  padding: 1rem 1.25rem !important;
}

.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6 {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--nex-text) !important;
  margin: 0 !important;
}

.card-body {
  padding: 1.375rem !important;
}

.card-footer {
  background: var(--nex-bg-subtle) !important;
  border-top: 1px solid var(--nex-border) !important;
  padding: 0.875rem 1.25rem !important;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: var(--nex-r-sm) !important;
  padding: 0.475rem 1.1rem !important;
  transition: var(--nex-t) !important;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--nex-primary) !important;
  border-color: var(--nex-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(var(--nex-primary-rgb), 0.3), 0 1px 2px rgba(var(--nex-primary-rgb), 0.2) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--nex-primary-dark) !important;
  border-color: var(--nex-primary-dark) !important;
  box-shadow: 0 4px 12px rgba(var(--nex-primary-rgb), 0.35) !important;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 3px rgba(var(--nex-primary-rgb), 0.25) !important;
}

/* Ripple-like click feedback on all buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.btn:active::after {
  background: rgba(255,255,255,0.18);
  transition: 0s;
}

.btn-outline-primary {
  color: var(--nex-primary) !important;
  border-color: var(--nex-border) !important;
  background: var(--nex-surface) !important;
  box-shadow: var(--nex-shadow-xs) !important;
}

.btn-outline-primary:hover {
  background: rgba(var(--nex-primary-rgb), 0.07) !important;
  border-color: var(--nex-primary) !important;
  color: var(--nex-primary) !important;
  box-shadow: none !important;
}

.btn-outline-secondary,
.btn-secondary {
  color: var(--nex-text-muted) !important;
  border-color: var(--nex-border) !important;
  background: var(--nex-surface) !important;
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--nex-bg-subtle) !important;
  color: var(--nex-text) !important;
}

.btn-sm {
  padding: 0.3rem 0.75rem !important;
  font-size: 0.8rem !important;
  border-radius: var(--nex-r-sm) !important;
}

.btn-lg {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.9375rem !important;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  border-radius: 0.375rem !important;
  padding: 0.3em 0.65em !important;
}

/* ── Tables ──────────────────────────────────────────────────── */
.table {
  font-size: 0.875rem;
  color: var(--nex-text);
  border-color: var(--nex-border);
}

.table > thead > tr > th {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--nex-text-subtle) !important;
  border-bottom: 1px solid var(--nex-border) !important;
  padding: 0.625rem 0.875rem !important;
  white-space: nowrap;
  background: transparent;
}

.table > tbody > tr > td {
  color: var(--nex-text);
  border-color: var(--nex-border-subtle) !important;
  padding: 0.75rem 0.875rem !important;
  vertical-align: middle;
}

.table > tbody > tr {
  transition: background 0.12s ease;
}

.table > tbody > tr:hover {
  background: rgba(var(--nex-primary-rgb), 0.03) !important;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nex-text);
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  font-size: 0.875rem !important;
  color: var(--nex-text) !important;
  background-color: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-sm) !important;
  padding: 0.5rem 0.875rem !important;
  transition: var(--nex-t) !important;
  box-shadow: var(--nex-shadow-xs) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 3px var(--nex-primary-glow), var(--nex-shadow-xs) !important;
  background-color: var(--nex-surface) !important;
  color: var(--nex-text) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--nex-text-subtle) !important;
}

.input-group-text {
  background: var(--nex-bg-subtle) !important;
  border: 1px solid var(--nex-border) !important;
  color: var(--nex-text-muted) !important;
  font-size: 0.875rem !important;
}

.form-text {
  font-size: 0.78rem;
  color: var(--nex-text-subtle);
}

.form-check-input:checked {
  background-color: var(--nex-primary);
  border-color: var(--nex-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--nex-primary-glow);
}

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  border-radius: var(--nex-r) !important;
  border-width: 1px !important;
  font-size: 0.875rem !important;
  padding: 0.875rem 1.125rem !important;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #065f46 !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #991b1b !important;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #92400e !important;
}

.alert-info {
  background: rgba(var(--nex-primary-rgb), 0.07) !important;
  border-color: rgba(var(--nex-primary-rgb), 0.2) !important;
  color: var(--nex-primary) !important;
}

[data-bs-theme="dark"] .alert-success { color: #6ee7b7 !important; }
[data-bs-theme="dark"] .alert-danger  { color: #fca5a5 !important; }
[data-bs-theme="dark"] .alert-warning { color: #fcd34d !important; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--nex-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s ease;
}

.breadcrumb-item a:hover { color: var(--nex-primary); }

.breadcrumb-item.active { color: var(--nex-text-subtle); }

.breadcrumb-item + .breadcrumb-item::before { color: var(--nex-text-subtle); }

/* ── Dropdown menus ──────────────────────────────────────────── */
.dropdown-menu {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r) !important;
  box-shadow: var(--nex-shadow-lg) !important;
  padding: 0.375rem !important;
  font-size: 0.875rem;
  min-width: 10.5rem;
  z-index: 1050;
}

.dropdown-item {
  color: var(--nex-text);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--nex-r-sm);
  padding: 0.5rem 0.75rem;
  transition: var(--nex-t);
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(var(--nex-primary-rgb), 0.07);
  color: var(--nex-text);
}

.dropdown-divider {
  border-color: var(--nex-border);
  margin: 0.25rem 0;
}

/* Client profile dropdown */
.client-dropdown .nav-link.dropdown-toggle {
  background: transparent !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 1px solid var(--nex-border);
  gap: 0.125rem;
}

.nav-tabs .nav-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--nex-text-muted) !important;
  border: none !important;
  background: transparent !important;
  border-radius: var(--nex-r-sm) var(--nex-r-sm) 0 0 !important;
  padding: 0.6rem 1rem !important;
  margin-bottom: -1px;
  transition: var(--nex-t) !important;
}

.nav-tabs .nav-link:hover {
  color: var(--nex-text) !important;
  background: rgba(var(--nex-primary-rgb), 0.05) !important;
}

.nav-tabs .nav-link.active {
  color: var(--nex-primary) !important;
  background: var(--nex-surface) !important;
  border-bottom: 2px solid var(--nex-primary) !important;
  font-weight: 600 !important;
}

.nav-pills .nav-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--nex-text-muted) !important;
  border-radius: var(--nex-r-sm) !important;
  padding: 0.45rem 0.875rem !important;
  transition: var(--nex-t) !important;
}

.nav-pills .nav-link.active {
  background: rgba(var(--nex-primary-rgb), 0.1) !important;
  color: var(--nex-primary) !important;
  font-weight: 600 !important;
}

/* ── Modals ──────────────────────────────────────────────────── */
.modal-content {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-xl) !important;
  box-shadow: var(--nex-shadow-xl) !important;
}

/* Ensure ticket modals stay above all themed stacking contexts */
.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}

.modal-header {
  border-bottom: 1px solid var(--nex-border) !important;
  padding: 1.25rem 1.5rem !important;
}

.modal-body { padding: 1.5rem !important; }

.modal-footer {
  border-top: 1px solid var(--nex-border) !important;
  padding: 1rem 1.5rem !important;
  background: var(--nex-bg-subtle) !important;
  border-radius: 0 0 var(--nex-r-xl) var(--nex-r-xl) !important;
}

.modal-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--nex-text) !important;
}

/* ── Pagination ──────────────────────────────────────────────── */
.page-link {
  color: var(--nex-text-muted) !important;
  background: var(--nex-surface) !important;
  border-color: var(--nex-border) !important;
  border-radius: var(--nex-r-sm) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--nex-t);
  margin: 0 1px;
}

.page-link:hover {
  background: rgba(var(--nex-primary-rgb), 0.07) !important;
  border-color: var(--nex-border) !important;
  color: var(--nex-primary) !important;
}

.page-item.active .page-link {
  background: var(--nex-primary) !important;
  border-color: var(--nex-primary) !important;
  color: #fff !important;
}

/* ── List groups ─────────────────────────────────────────────── */
.list-group-item {
  background: var(--nex-surface) !important;
  border-color: var(--nex-border) !important;
  color: var(--nex-text);
  font-size: 0.875rem;
}

/* ── Email list ──────────────────────────────────────────────── */
.email-list { border-radius: var(--nex-r) !important; }

.email-list .list-group-item {
  border: 0 !important;
  border-bottom: 1px solid var(--nex-border-subtle) !important;
  border-left: 2px solid transparent !important;
}

.email-list .list-group-item.active {
  border-left-color: var(--nex-primary) !important;
  background: rgba(var(--nex-primary-rgb), 0.06) !important;
  color: var(--nex-text) !important;
}

/* ── Invoice gateways ────────────────────────────────────────── */
.invoice-gateway {
  border: 1.5px solid var(--nex-border) !important;
  border-radius: var(--nex-r) !important;
  transition: var(--nex-t) !important;
  background: var(--nex-surface) !important;
}

.invoice-gateway:hover {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 3px var(--nex-primary-glow) !important;
}

/* ── TomSelect ───────────────────────────────────────────────── */
.ts-wrapper .ts-control {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-sm) !important;
  font-size: 0.875rem !important;
  color: var(--nex-text) !important;
  box-shadow: var(--nex-shadow-xs) !important;
}

.ts-wrapper .ts-control.focus,
.ts-wrapper .ts-control:focus-within {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 3px var(--nex-primary-glow), var(--nex-shadow-xs) !important;
}

.ts-wrapper .ts-dropdown {
  background: var(--nex-surface) !important;
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r) !important;
  box-shadow: var(--nex-shadow-lg) !important;
  font-size: 0.875rem !important;
}

.ts-wrapper .ts-dropdown .active {
  background: rgba(var(--nex-primary-rgb), 0.08) !important;
  color: var(--nex-text) !important;
}

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
  margin-top: 2rem !important;
  padding: 1.125rem 0 !important;
  border: none !important;
  border-top: 1px solid var(--nex-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.8125rem !important;
  color: var(--nex-text-muted) !important;
}

#footer a {
  color: var(--nex-text-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}

#footer a:hover { color: var(--nex-primary); }

/* ── Auth pages: login / signup / password-reset ─────────────── */
body.page-login,
body.page-signup,
body.page-password-reset {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--nex-bg);
  background-image:
    radial-gradient(900px 600px at 15% 10%, rgba(var(--nex-primary-rgb), 0.07), transparent 65%),
    radial-gradient(700px 500px at 85% 90%, rgba(6, 182, 212, 0.06), transparent 65%);
}

/* Full-page flex wrapper */
.nex-auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Vertically + horizontally centered form area */
.nex-auth-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem;
  gap: 1.25rem;
}

.nex-auth-logo {
  display: flex;
  justify-content: center;
}

/* The card itself */
.nex-auth-card {
  width: 100%;
  max-width: 440px;
  box-shadow: var(--nex-shadow-xl) !important;
  border-radius: var(--nex-r-xl) !important;
  animation: nexScaleIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

body.page-signup .nex-auth-card {
  max-width: 560px;
}

body.page-password-reset .nex-auth-card {
  max-width: 420px;
}

.nex-auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--nex-text);
  letter-spacing: -0.01em;
}

/* Footer branding on auth pages */
.nex-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  color: var(--nex-text-muted);
  border-top: 1px solid var(--nex-border);
  background: transparent;
}

.nex-auth-footer a {
  color: var(--nex-text-muted);
  text-decoration: none;
  transition: color 0.12s ease;
  background-image: none !important;
  background-size: 0 !important;
}

.nex-auth-footer a:hover { color: var(--nex-primary); }

/* ── Spinners / loading ──────────────────────────────────────── */
.spinner-border {
  color: var(--nex-primary) !important;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--nex-border);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--nex-text-subtle); }

/* ── Dark mode body background ───────────────────────────────── */
[data-bs-theme="dark"] body {
  background-color: var(--nex-bg) !important;
}

[data-bs-theme="dark"] .card {
  background: var(--nex-surface) !important;
}

[data-bs-theme="dark"] .btn-primary {
  box-shadow: 0 1px 3px rgba(129, 140, 248, 0.25) !important;
}

[data-bs-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.35) !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar top bar */
  .navbar {
    border-radius: var(--nex-r) !important;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem !important;
  }

  /* Rounded top only when menu is open */
  .navbar:has(.navbar-collapse.show) {
    border-radius: var(--nex-r) var(--nex-r) 0 0 !important;
  }

  /* Collapsed menu panel */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: var(--nex-surface);
    border: 1px solid var(--nex-border);
    border-top: none;
    border-radius: 0 0 var(--nex-r) var(--nex-r);
    padding: 0.375rem 0.625rem 0.75rem;
    margin: 0 -1px;
    box-shadow: var(--nex-shadow-md);
  }

  /* ── Controls row: language + theme toggle ── */
  .navbar-collapse .navbar-nav {
    gap: 0;
  }

  /* Language selector — compact */
  .navbar-collapse .nav-item:has(.js-locale-selector) {
    padding: 0.375rem 0 0.25rem;
    border-bottom: 1px solid var(--nex-border-subtle);
    margin-bottom: 0.25rem;
  }

  .navbar-collapse .ts-wrapper.js-locale-selector .ts-control {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: var(--nex-r-sm) !important;
    width: 100% !important;
  }

  /* Theme toggle — compact, inline */
  .navbar-collapse .js-theme-toggler {
    padding: 0.35rem 0.6rem !important;
  }

  /* ── Main nav items ── */
  .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    padding: 0.475rem 0.75rem !important;
    border-radius: var(--nex-r-sm) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--nex-text-muted) !important;
    transition: background 0.12s ease, color 0.12s ease !important;
  }

  .navbar-collapse .navbar-nav .nav-item .nav-link:hover {
    background: rgba(var(--nex-primary-rgb), 0.07) !important;
    color: var(--nex-text) !important;
  }

  .navbar-collapse .navbar-nav .nav-item .nav-link.active {
    background: rgba(var(--nex-primary-rgb), 0.1) !important;
    color: var(--nex-primary) !important;
    font-weight: 600 !important;
  }

  /* Icons in mobile nav */
  .navbar-collapse .navbar-nav .nav-link .icon {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
    opacity: 0.65;
  }

  .navbar-collapse .navbar-nav .nav-link.active .icon {
    opacity: 1;
  }

  /* ── Account Balance section ── */
  .navbar-collapse .navbar-nav li.pt-3 {
    border-top: 1px solid var(--nex-border) !important;
    padding: 0.625rem 0.75rem 0.25rem !important;
    margin-top: 0.375rem !important;
    list-style: none;
  }

  .navbar-collapse .navbar-nav li.pt-3 h5 {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--nex-text-subtle) !important;
    margin-bottom: 0.2rem !important;
  }

  .navbar-collapse .navbar-nav li.pt-3 h6 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--nex-text) !important;
    margin-bottom: 0.25rem !important;
  }

  /* ── Profile / sign-out dropdown ── */
  .navbar-collapse .navbar-nav li .dropdown {
    border-top: 1px solid var(--nex-border);
    padding-top: 0.375rem;
    margin-top: 0.25rem;
  }

  .navbar-collapse .navbar-nav li .dropdown .btn.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.475rem 0.75rem !important;
    border-radius: var(--nex-r-sm) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--nex-text-muted) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .navbar-collapse .navbar-nav li .dropdown .btn.dropdown-toggle:hover {
    background: rgba(var(--nex-primary-rgb), 0.07) !important;
    color: var(--nex-text) !important;
  }

  /* Remove animation on mobile sidebar */
  .sidebar-inner > ul.nav {
    animation: none !important;
  }

  .card-body {
    padding: 1.125rem !important;
  }

  /* KPI: 2 cols on mobile */
  .nex-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Activity grid: 1 col on mobile */
  .nex-activity-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATION & POLISH ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* ── Staggered card entrance ─────────────────────────────── */
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.09s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(n+5) { animation-delay: 0.22s; }

/* ── Navbar entrance ─────────────────────────────────────── */
.navbar {
  animation: nexFadeDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes nexFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sidebar entrance ────────────────────────────────────── */
.sidebar-inner > ul.nav {
  animation: nexFadeLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.05s;
}

@keyframes nexFadeLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Table row entrance ──────────────────────────────────── */
.table > tbody > tr {
  animation: nexRowIn 0.2s ease both;
}
.table > tbody > tr:nth-child(1)  { animation-delay: 0.04s; }
.table > tbody > tr:nth-child(2)  { animation-delay: 0.07s; }
.table > tbody > tr:nth-child(3)  { animation-delay: 0.10s; }
.table > tbody > tr:nth-child(4)  { animation-delay: 0.13s; }
.table > tbody > tr:nth-child(5)  { animation-delay: 0.16s; }
.table > tbody > tr:nth-child(n+6){ animation-delay: 0.18s; }

@keyframes nexRowIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge pulse (for unread / alert badges) ─────────────── */
.badge.bg-danger,
.badge.text-bg-danger {
  animation: nexBadgePulse 2.5s ease infinite;
}

@keyframes nexBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
}

/* ── Form field focus animation ──────────────────────────── */
.form-control,
.form-select {
  transition: border-color 0.18s ease,
              box-shadow 0.18s ease,
              background-color 0.18s ease !important;
}

/* ── Primary button shine sweep on hover ─────────────────── */
.btn-primary {
  background-image: linear-gradient(
    105deg,
    var(--nex-primary) 0%,
    var(--nex-primary-dark) 50%,
    var(--nex-primary) 100%
  ) !important;
  background-size: 200% 100% !important;
  background-position: 100% center !important;
  transition: background-position 0.45s ease,
              box-shadow 0.15s ease,
              transform 0.15s ease,
              filter 0.15s ease !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-position: 0% center !important;
}

/* ── Smooth dropdown open ────────────────────────────────── */
.dropdown-menu.show {
  animation: nexDropIn 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nexDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Modal entrance ──────────────────────────────────────── */
.modal.show .modal-dialog {
  animation: nexModalIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nexModalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ── Toast entrance ──────────────────────────────────────── */
.toast {
  animation: nexToastIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nexToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Alert entrance ──────────────────────────────────────── */
.alert {
  animation: nexAlertIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nexAlertIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Link hover underline sweep ──────────────────────────── */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.breadcrumb-item) {
  background-image: linear-gradient(var(--nex-primary), var(--nex-primary));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.25s ease, color 0.15s ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.badge):not(.breadcrumb-item):hover {
  background-size: 100% 1.5px;
}

/* ── Sidebar section divider label ───────────────────────── */
.sidebar-inner ul .nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nex-text-subtle);
  padding: 0.75rem 0.875rem 0.25rem;
  margin-top: 0.25rem;
}

/* ── Sidebar: sticky + scrollable on desktop only ───────── */
@media (min-width: 768px) {
  .sidebar-inner > ul.nav {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar-inner > ul.nav::-webkit-scrollbar {
    display: none;
  }
}

/* ── Card table inside a card: no double border ──────────── */
.card > .table,
.card > .card-body > .table {
  margin-bottom: 0;
}

.card > .table > thead > tr > th:first-child,
.card > .card-body > .table > thead > tr > th:first-child,
.card > .table > tbody > tr > td:first-child,
.card > .card-body > .table > tbody > tr > td:first-child {
  padding-left: 1.375rem !important;
}

.card > .table > thead > tr > th:last-child,
.card > .card-body > .table > thead > tr > th:last-child,
.card > .table > tbody > tr > td:last-child,
.card > .card-body > .table > tbody > tr > td:last-child {
  padding-right: 1.375rem !important;
}

/* ── Skeleton loading shimmer ────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--nex-bg-subtle) 25%,
    var(--nex-bg) 50%,
    var(--nex-bg-subtle) 75%
  );
  background-size: 400px 100%;
  animation: nexShimmer 1.4s ease infinite;
  border-radius: var(--nex-r-sm);
}

/* ── Breadcrumb slide-in ─────────────────────────────────── */
.breadcrumb {
  animation: nexFadeRight 0.25s ease both;
  animation-delay: 0.15s;
}

@keyframes nexFadeRight {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Status indicator dot ────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: nexDotPulse 2s ease infinite;
}

@keyframes nexDotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Scroll-to-top button ────────────────────────────────── */
a[href="#top"].btn {
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nex-shadow-lg) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

a[href="#top"].btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--nex-shadow-xl) !important;
}

/* ── Respect reduced-motion preference ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR SECTIONS — labels, balance card, status badge
   ═══════════════════════════════════════════════════════════ */

/* Section label (e.g. "Navigation", "Account", "System Status") */
.sidebar-section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--nex-text-subtle);
  padding: 0.75rem 0.875rem 0.2rem;
  list-style: none;
  pointer-events: none;
  user-select: none;
}

/* Thin rule above account / status sections */
.sidebar-balance-card,
.sidebar-note-card,
.sidebar-status-wrap {
  list-style: none;
  margin: 0 0.25rem;
  border-top: 1px solid var(--nex-border);
}

/* Balance card */
.sidebar-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem 0.5rem;
  gap: 0.5rem;
}

.sidebar-balance-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--nex-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-balance-amount {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nex-text);
  letter-spacing: -0.01em;
}

/* Note card */
.sidebar-note-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.625rem 0.875rem;
}

.sidebar-note-body {
  font-size: 0.8rem;
  color: var(--nex-text-muted);
  line-height: 1.5;
}

/* Status badge wrap */
.sidebar-status-wrap {
  padding: 0.75rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
}

.sidebar-status-wrap .sidebar-section-label {
  padding: 0 0 0.375rem 0;
  margin: 0;
  display: block;
}

.sidebar-status-wrap iframe {
  border-radius: 0.375rem;
  overflow: hidden;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — KPI cards, activity lists, welcome header
   ═══════════════════════════════════════════════════════════ */

/* Welcome header */
.nex-dash-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nex-dash-greeting {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--nex-text);
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.nex-dash-subline {
  font-size: 0.875rem;
  color: var(--nex-text-muted);
  margin: 0;
}

.nex-dash-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

/* KPI grid — 4 columns on desktop, 2 on tablet, 1 on mobile */
.nex-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 992px) {
  .nex-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* KPI card */
.nex-kpi-card {
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--nex-shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  animation: nexScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.nex-kpi-card:hover {
  box-shadow: var(--nex-shadow-md);
  border-color: rgba(var(--nex-primary-rgb), 0.2);
  transform: translateY(-2px);
}

/* Warning state (unpaid invoices / on-hold tickets) */
.nex-kpi-card--warn {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: rgba(245, 158, 11, 0.04) !important;
}

.nex-kpi-card--warn .nex-kpi-icon {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
}

.nex-kpi-card--warn .nex-kpi-value {
  color: #d97706 !important;
}

/* KPI icon */
.nex-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nex-kpi-icon .icon {
  width: 20px;
  height: 20px;
}

.nex-kpi-icon--balance  { background: rgba(16, 185, 129, 0.12); color: #059669; }
.nex-kpi-icon--orders   { background: rgba(var(--nex-primary-rgb), 0.1); color: var(--nex-primary); }
.nex-kpi-icon--invoices { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.nex-kpi-icon--tickets  { background: rgba(245, 158, 11, 0.1); color: #d97706; }

/* KPI text */
.nex-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.nex-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nex-text-subtle);
  white-space: nowrap;
}

.nex-kpi-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--nex-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nex-kpi-sub {
  font-size: 0.75rem;
  color: var(--nex-text-subtle);
}

/* Activity grid — 2 columns on desktop, 1 on mobile */
.nex-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Activity list */
.nex-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nex-activity-item {
  border-bottom: 1px solid var(--nex-border-subtle);
  animation: nexRowIn 0.2s ease both;
}

.nex-activity-item:last-child { border-bottom: none; }

.nex-activity-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.375rem;
  text-decoration: none;
  transition: background 0.12s ease;
  background-image: none !important; /* override link underline sweep */
  background-size: 0 !important;
}

.nex-activity-link:hover {
  background: rgba(var(--nex-primary-rgb), 0.04);
}

.nex-activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nex-activity-icon .icon { width: 15px; height: 15px; }

.nex-ai--order  { background: rgba(var(--nex-primary-rgb), 0.1); color: var(--nex-primary); }
.nex-ai--ticket { background: rgba(245, 158, 11, 0.1); color: #d97706; }

.nex-activity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nex-activity-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nex-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nex-activity-meta {
  font-size: 0.75rem;
  color: var(--nex-text-subtle);
}

.nex-activity-badge {
  flex-shrink: 0;
}

/* Empty state */
.nex-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  gap: 0.375rem;
  color: var(--nex-text-muted);
  font-size: 0.875rem;
}

.nex-empty-icon {
  width: 32px !important;
  height: 32px !important;
  opacity: 0.3;
  margin-bottom: 0.25rem;
}

/* Guest hero */
.nex-guest-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-xl);
  box-shadow: var(--nex-shadow-sm);
  margin-bottom: 1.5rem;
}

.nex-guest-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nex-guest-hero p {
  color: var(--nex-text-muted);
  margin-bottom: 1.25rem;
}

/* Feature cards (guest) */
.nex-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.5rem 1rem;
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  text-decoration: none !important;
  text-align: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  box-shadow: var(--nex-shadow-sm);
  background-image: none !important;
  background-size: 0 !important;
}

.nex-feature-card:hover {
  box-shadow: var(--nex-shadow-md);
  border-color: rgba(var(--nex-primary-rgb), 0.25);
  transform: translateY(-2px);
}

.nex-feature-card .nex-kpi-label {
  font-size: 0.875rem;
  color: var(--nex-text);
}

.fw-600 { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   ORDER PAGE — product category + product cards
   ═══════════════════════════════════════════════════════════ */

/* Accordion step styling */
.nex-order-step.accordion-item {
  border: 1px solid var(--nex-border) !important;
  border-radius: var(--nex-r-lg) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--nex-surface) !important;
  box-shadow: var(--nex-shadow-sm) !important;
}

.nex-order-step .accordion-button {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--nex-text);
  background: var(--nex-surface-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--nex-r-lg) !important;
  gap: 0.625rem;
}

.nex-order-step .accordion-button:not(.collapsed) {
  background: var(--nex-surface-alt);
  color: var(--nex-primary);
  box-shadow: none;
  border-bottom: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg) var(--nex-r-lg) 0 0 !important;
}

.nex-order-step .accordion-button:focus {
  box-shadow: 0 0 0 3px var(--nex-primary-glow);
}

/* Products body */
.nex-products-body {
  padding: 1.5rem !important;
}

/* Category heading */
.nex-product-category-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nex-text-subtle);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nex-border-subtle);
}

.nex-product-category-desc {
  font-size: 0.875rem;
  color: var(--nex-text-muted);
  margin-bottom: 0.875rem;
}

/* Product grid */
.nex-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

/* Product card */
.nex-product-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--nex-surface);
  border: 1.5px solid var(--nex-border);
  border-radius: var(--nex-r);
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: var(--nex-shadow-xs);
  animation: nexScaleIn 0.2s ease both;
}

.nex-product-card:hover {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 3px var(--nex-primary-glow), var(--nex-shadow) !important;
  transform: translateY(-2px);
}

.nex-product-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.625rem;
  background: rgba(var(--nex-primary-rgb), 0.09);
  color: var(--nex-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.nex-product-card:hover .nex-product-card-icon {
  background: rgba(var(--nex-primary-rgb), 0.15);
}

.nex-product-card-icon .icon {
  width: 18px;
  height: 18px;
}

.nex-product-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nex-product-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nex-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nex-product-card-desc {
  font-size: 0.75rem;
  color: var(--nex-text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nex-product-arrow {
  width: 15px !important;
  height: 15px !important;
  color: var(--nex-text-subtle);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.nex-product-card:hover .nex-product-arrow {
  transform: translateX(3px);
  color: var(--nex-primary);
}

@media (max-width: 576px) {
  .nex-product-grid {
    grid-template-columns: 1fr;
  }

  .nex-activity-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   ORDER PAGE — pricing grid, product cards, config
   ═══════════════════════════════════════════════════════════ */

/* ── Hero header ─────────────────────────────────────────── */
.nex-order-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nex-border);
}

.nex-order-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nex-text);
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.nex-order-hero-sub {
  font-size: 0.9rem;
  color: var(--nex-text-muted);
  margin: 0;
}

.nex-order-currency {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Category section ────────────────────────────────────── */
.nex-order-category {
  margin-bottom: 2.5rem;
}

.nex-order-category-header {
  margin-bottom: 1rem;
}

.nex-order-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nex-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.25rem;
}

.nex-order-category-desc {
  font-size: 0.875rem;
  color: var(--nex-text-muted);
  margin: 0;
}

.nex-order-category-desc p { margin: 0; }

/* ── Pricing card grid ───────────────────────────────────── */
.nex-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ── Individual pricing card ─────────────────────────────── */
.nex-pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--nex-surface);
  border: 1.5px solid var(--nex-border);
  border-radius: var(--nex-r-xl);
  padding: 1.5rem;
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: var(--nex-shadow-sm);
  gap: 1rem;
  animation: nexScaleIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nex-pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--nex-primary-rgb), 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.nex-pricing-card:hover {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 4px var(--nex-primary-glow), var(--nex-shadow-md) !important;
  transform: translateY(-3px);
}

.nex-pricing-card:hover::before {
  opacity: 1;
}

/* Stagger cards */
.nex-pricing-card:nth-child(1) { animation-delay: 0.04s; }
.nex-pricing-card:nth-child(2) { animation-delay: 0.09s; }
.nex-pricing-card:nth-child(3) { animation-delay: 0.14s; }
.nex-pricing-card:nth-child(4) { animation-delay: 0.18s; }
.nex-pricing-card:nth-child(n+5) { animation-delay: 0.22s; }

/* Card body */
.nex-pricing-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Product icon */
.nex-pricing-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  background: rgba(var(--nex-primary-rgb), 0.1);
  color: var(--nex-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  transition: background 0.18s ease;
}

.nex-pricing-card:hover .nex-pricing-icon {
  background: rgba(var(--nex-primary-rgb), 0.18);
}

.nex-pricing-icon .icon {
  width: 22px;
  height: 22px;
}

/* Product name */
.nex-pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nex-text);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Product description */
.nex-pricing-desc {
  font-size: 0.8125rem;
  color: var(--nex-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Price block */
.nex-pricing-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-top: 1px solid var(--nex-border-subtle);
  border-bottom: 1px solid var(--nex-border-subtle);
}

.nex-price-from {
  font-size: 0.75rem;
  color: var(--nex-text-subtle);
}

.nex-price-amount {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--nex-text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nex-price-period {
  font-size: 0.8rem;
  color: var(--nex-text-muted);
}

/* CTA button */
.nex-pricing-cta .btn {
  margin-top: 0;
  border-radius: var(--nex-r) !important;
}

/* ── Back button + steps wrapper ─────────────────────────── */
.nex-order-steps-wrap {
  max-width: 100%;
}

.nex-order-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nex-order-flow-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nex-text);
}

.nex-order-flow {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nex-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0.9rem;
  align-items: start;
}

.nex-order-stages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nex-order-stage-hidden {
  display: none !important;
}

.nex-order-sidebar {
  position: sticky;
  top: 1rem;
}

.nex-order-sidebar-card {
  border: 1px solid var(--nex-border);
  background: var(--nex-surface);
  border-radius: var(--nex-r-lg);
  box-shadow: var(--nex-shadow-sm);
  padding: 0.95rem;
}

.nex-order-sidebar-title {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nex-text-subtle);
}

.nex-order-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--nex-text-muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--nex-border-subtle);
}

.nex-order-sidebar-row:last-of-type {
  border-bottom: none;
}

.nex-order-sidebar-row strong {
  color: var(--nex-text);
  text-align: right;
}

.nex-order-sidebar-total {
  color: var(--nex-primary) !important;
}

.nex-order-sidebar-note {
  margin-top: 0.7rem;
  padding: 0.58rem 0.62rem;
  border-radius: var(--nex-r-sm);
  background: rgba(var(--nex-primary-rgb), 0.07);
  border: 1px solid rgba(var(--nex-primary-rgb), 0.16);
  font-size: 0.76rem;
  color: var(--nex-text-muted);
  line-height: 1.5;
}

/* Step 3 account stage clarity */
.nex-order-stage--account .nex-account-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nex-order-stage--account .nex-account-helper-item {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--nex-border-subtle);
  background: var(--nex-surface-alt);
  color: var(--nex-text-muted);
  font-size: 0.77rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.nex-order-stage--account .nex-account-switch {
  background: var(--nex-bg-subtle);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r);
  padding: 0.3rem;
  display: inline-flex;
  gap: 0.25rem;
}

.nex-order-stage--account .nex-account-switch .nav-link {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: var(--nex-r-sm) !important;
  color: var(--nex-text-muted) !important;
  padding: 0.5rem 0.85rem !important;
}

.nex-order-stage--account .nex-account-switch .nav-link.active {
  background: rgba(var(--nex-primary-rgb), 0.12) !important;
  color: var(--nex-primary) !important;
}

.nex-order-stage--account .nex-account-tab-content {
  margin-top: 0.2rem;
}

.nex-order-stage--account .nex-account-form-shell {
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r);
  background: var(--nex-surface);
  padding: 1rem;
}

.nex-order-stage--account .row {
  --bs-gutter-x: 0.75rem;
}

.nex-order-stage--account .col-md-7 {
  flex: 0 0 100%;
  max-width: 100%;
}

.nex-order-stage--account .form-floating > label {
  font-size: 0.78rem;
  color: var(--nex-text-subtle);
}

.nex-order-stage--account .btn.btn-sm {
  padding: 0.48rem 0.95rem !important;
}

.nex-order-wizard-nav {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  background: var(--nex-surface);
  box-shadow: var(--nex-shadow-xs);
  padding: 0.65rem;
}

.nex-order-wizard-meta {
  font-size: 0.8rem;
  color: var(--nex-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Order page V3 layout */
.nex-order-v3-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-xl);
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(var(--nex-primary-rgb), 0.12), transparent 65%),
    var(--nex-surface);
  box-shadow: var(--nex-shadow-sm);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.nex-order-v3-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nex-text);
}

.nex-order-v3-sub {
  margin: 0;
  color: var(--nex-text-muted);
  font-size: 0.88rem;
}

.nex-order-v3-currency {
  flex-shrink: 0;
}

.nex-order-v3-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nex-order-v3-checkout-head {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.nex-order-v3-intro {
  border: 1px solid var(--nex-border);
  border-left: 3px solid var(--nex-primary);
  border-radius: var(--nex-r);
  background: var(--nex-surface-alt);
  padding: 0.72rem 0.86rem;
}

.nex-order-v3-intro-title {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nex-text-subtle);
}

.nex-order-v3-intro-text {
  color: var(--nex-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* V4 full redesign layer */
.nex-order-v4 {
  position: relative;
}

.nex-order-v4--catalog::before,
.nex-order-v4--flow::before {
  content: '';
  position: absolute;
  inset: -10px -12px auto -12px;
  height: 120px;
  background: linear-gradient(135deg, rgba(var(--nex-primary-rgb), 0.12), rgba(6, 182, 212, 0.08));
  border-radius: 1.1rem;
  filter: blur(18px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.nex-order-v4 > * {
  position: relative;
  z-index: 1;
}

.nex-order-v4-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.nex-order-v4-how-item {
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  box-shadow: var(--nex-shadow-sm);
  padding: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.nex-order-v4-how-step {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(var(--nex-primary-rgb), 0.12);
  color: var(--nex-primary);
  border: 1px solid rgba(var(--nex-primary-rgb), 0.28);
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nex-order-v4-how-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--nex-text);
}

.nex-order-v4-how-item p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--nex-text-muted);
  line-height: 1.45;
}

.nex-order-v4 .nex-order-flow {
  gap: 0.95rem;
}

.nex-order-v4 .nex-order-layout {
  gap: 1rem;
}

.nex-order-v4 .nex-order-stages {
  gap: 0.9rem;
}

.nex-order-v4 .nex-order-stage {
  border-radius: 1rem;
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.5), var(--nex-shadow-sm);
}

.nex-order-v4 .nex-order-stage-head {
  padding: 1rem 1.15rem;
}

.nex-order-v4 .nex-order-stage-body {
  padding: 1.15rem;
}

.nex-order-v4 .nex-order-sidebar-card {
  border-radius: 1rem;
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.5), var(--nex-shadow-sm);
}

.nex-order-v4 .nex-order-sidebar-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.nex-order-v4 .nex-order-sidebar-row {
  font-size: 0.8rem;
}

.nex-order-v4 .nex-order-wizard-nav {
  border-radius: 1rem;
  padding: 0.72rem;
}

.nex-order-v4 .nex-order-progress-wrap {
  border-radius: 1rem;
  padding: 0.9rem;
}

.nex-order-v4 .nex-order-progress-item {
  padding: 0.5rem 0.58rem;
}

.nex-order-v4 .nex-pricing-card {
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.3);
}

.nex-order-v4 .nex-pricing-card:hover {
  border-color: var(--nex-primary) !important;
  box-shadow: 0 0 0 3px var(--nex-primary-glow), 0 18px 30px -22px rgba(var(--nex-primary-rgb), 0.75) !important;
}

#order-prev-step,
#order-next-step {
  min-width: 100px;
}

#order-prev-step:disabled,
#order-next-step:disabled {
  opacity: 0.55;
}

.nex-order-stage {
  background: var(--nex-surface);
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  box-shadow: var(--nex-shadow-sm);
  overflow: hidden;
}

.nex-order-stage-head {
  background: var(--nex-surface-alt);
  border-bottom: 1px solid var(--nex-border);
  padding: 0.95rem 1.15rem;
}

.nex-order-stage-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--nex-text);
}

.nex-order-stage-sub {
  margin-top: 0.5rem;
  color: var(--nex-text-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.nex-order-stage-body {
  padding: 1.1rem 1.15rem;
}

.nex-selected-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(var(--nex-primary-rgb), 0.2);
  background: rgba(var(--nex-primary-rgb), 0.05);
  border-radius: var(--nex-r);
  padding: 0.8rem 0.9rem;
}

.nex-selected-product-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nex-text-subtle);
}

.nex-selected-product-name {
  font-size: 0.95rem;
  color: var(--nex-text);
}

.nex-order-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nex-order-quickstats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nex-order-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--nex-border);
  border-radius: 999px;
  background: var(--nex-surface);
  color: var(--nex-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.72rem;
  box-shadow: var(--nex-shadow-xs);
}

.nex-order-chip strong {
  color: var(--nex-text);
  font-size: 0.82rem;
}

.nex-order-progress-wrap {
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r-lg);
  background: linear-gradient(180deg, var(--nex-surface-alt) 0%, var(--nex-surface) 100%);
  box-shadow: var(--nex-shadow-xs);
  padding: 0.8rem 0.9rem;
}

.nex-order-progress-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.nex-order-progress-list.is-client-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nex-order-progress-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--nex-border-subtle);
  border-radius: var(--nex-r);
  background: var(--nex-surface);
  padding: 0.42rem 0.52rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.nex-order-progress-item:hover {
  border-color: rgba(var(--nex-primary-rgb), 0.2);
  transform: translateY(-1px);
}

.nex-order-progress-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--nex-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--nex-text-muted);
  flex-shrink: 0;
}

.nex-order-progress-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--nex-text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nex-order-progress-item.is-active {
  border-color: rgba(var(--nex-primary-rgb), 0.3);
  background: rgba(var(--nex-primary-rgb), 0.08);
}

.nex-order-progress-item.is-active .nex-order-progress-dot {
  border-color: var(--nex-primary);
  background: var(--nex-primary);
  color: #fff;
}

.nex-order-progress-item.is-active .nex-order-progress-label {
  color: var(--nex-primary);
}

.nex-order-progress-item.is-done .nex-order-progress-dot {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #059669;
}

.nex-order-progress-item.is-done .nex-order-progress-label {
  color: #047857;
}

.nex-order-progress-item:not(.is-done):not(.is-active) {
  cursor: not-allowed;
  opacity: 0.78;
}

.nex-order-step .accordion-button .badge.text-bg-secondary {
  background: rgba(var(--nex-primary-rgb), 0.12) !important;
  color: var(--nex-primary) !important;
  border: 1px solid rgba(var(--nex-primary-rgb), 0.22);
}

.nex-order-step .accordion-body {
  padding: 1.15rem 1.2rem !important;
}

.nex-cart-table {
  border-radius: var(--nex-r) !important;
  overflow: hidden;
  border: 1px solid var(--nex-border) !important;
}

.nex-cart-table thead th {
  background: var(--nex-surface-alt) !important;
}

.nex-checkout-grid {
  align-items: stretch;
}

.nex-checkout-card {
  border: 1px solid var(--nex-border) !important;
  box-shadow: var(--nex-shadow-xs) !important;
}

.nex-checkout-card .card-header h6 {
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nex-text-subtle) !important;
}

.nex-summary-table {
  margin-bottom: 0.9rem;
}

.nex-summary-table td {
  font-size: 0.86rem;
}

#checkoutButton {
  width: 100%;
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  border-radius: var(--nex-r) !important;
}

#loginMessage {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--nex-border);
  border-radius: var(--nex-r-sm);
  color: var(--nex-text-muted);
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  .nex-order-layout {
    grid-template-columns: 1fr;
  }

  .nex-order-sidebar {
    position: static;
  }

  .nex-order-progress-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nex-order-progress-list.is-client-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nex-order-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nex-text-muted);
  text-decoration: none !important;
  background-image: none !important;
  background-size: 0 !important;
  transition: color 0.14s ease;
}

.nex-order-back:hover { color: var(--nex-primary); }

.nex-order-back .icon {
  width: 15px;
  height: 15px;
}

/* ── Product config banner ───────────────────────────────── */
.nex-config-product-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(var(--nex-primary-rgb), 0.05);
  border: 1px solid rgba(var(--nex-primary-rgb), 0.15);
  border-radius: var(--nex-r);
  margin-bottom: 1.25rem;
}

.nex-config-product-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--nex-text);
  margin: 0 0 0.25rem;
}

.nex-config-product-desc {
  font-size: 0.875rem;
  color: var(--nex-text-muted);
  margin: 0;
}

.nex-config-product-desc p { margin: 0; }

/* Billing section */
.nex-config-billing {
  padding: 1rem 0;
}

.nex-config-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nex-text-subtle);
  margin-bottom: 0.75rem;
}

.nex-config-field {
  max-width: 420px;
}

.nex-config-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(var(--nex-primary-rgb), 0.1);
  color: var(--nex-primary);
}

.nex-config-price-free {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nex-order-v4-how {
    grid-template-columns: 1fr;
  }

  .nex-order-v4--catalog::before,
  .nex-order-v4--flow::before {
    inset: -8px -8px auto -8px;
    height: 90px;
    opacity: 0.35;
  }

  .nex-order-v3-hero {
    padding: 1rem;
    border-radius: var(--nex-r-lg);
  }

  .nex-order-v3-title {
    font-size: 1.22rem;
  }

  .nex-order-v3-intro {
    padding: 0.65rem 0.72rem;
  }

  .nex-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nex-order-progress-list {
    grid-template-columns: 1fr;
  }

  .nex-order-progress-list.is-client-flow {
    grid-template-columns: 1fr;
  }

  .nex-order-progress-item {
    padding: 0.5rem 0.6rem;
  }

  .nex-order-step .accordion-body {
    padding: 0.95rem !important;
  }

  .nex-order-stage-head,
  .nex-order-stage-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .nex-order-flow-title {
    font-size: 1.15rem;
  }

  .nex-order-wizard-nav {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .nex-order-wizard-meta {
    grid-column: 1 / -1;
    order: 3;
    font-size: 0.75rem;
  }

  #order-prev-step,
  #order-next-step {
    width: 100%;
    min-width: 0;
  }

  .nex-order-stage--account .nex-account-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nex-order-stage--account .nex-account-switch .nav-link {
    width: 100%;
    text-align: center;
  }

  .nex-order-hero {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nex-pricing-card {
    padding: 1.125rem;
  }

  .nex-price-amount {
    font-size: 1.125rem;
  }

  .nex-order-quickstats {
    gap: 0.45rem;
  }

  .nex-order-chip {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .nex-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   SUPPORT TICKET PAGE — detail conversation view
   ═══════════════════════════════════════════════════════════ */

.nex-ticket-page {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nex-ticket-hero {
  position: relative;
  overflow: hidden;
}

.nex-ticket-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 360px at -10% -30%, rgba(var(--nex-primary-rgb), 0.13), transparent 65%);
  pointer-events: none;
}

.nex-ticket-hero .card-body {
  position: relative;
  z-index: 1;
}

.nex-ticket-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.nex-ticket-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nex-text-subtle);
  margin-bottom: 0.45rem;
}

.nex-ticket-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nex-text);
  line-height: 1.2;
}

.nex-ticket-subline {
  color: var(--nex-text-muted);
  font-size: 0.84rem;
}

.nex-ticket-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nex-ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.nex-ticket-meta-item {
  border: 1px solid var(--nex-border-subtle);
  background: var(--nex-surface);
  border-radius: var(--nex-r);
  padding: 0.7rem 0.8rem;
  box-shadow: var(--nex-shadow-xs);
  min-width: 0;
}

.nex-ticket-meta-item strong,
.nex-ticket-meta-item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nex-text);
}

.nex-ticket-meta-label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nex-text-subtle);
}

.nex-ticket-timeline {
  position: relative;
}

.nex-ticket-message {
  border-width: 1px !important;
}

.nex-ticket-message .card-header {
  padding: 0.9rem 1.125rem !important;
}

.nex-ticket-message .card-body {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.nex-ticket-message--admin {
  border-color: rgba(var(--nex-primary-rgb), 0.35) !important;
}

.nex-ticket-message--admin .card-header {
  background: rgba(var(--nex-primary-rgb), 0.06) !important;
}

.nex-ticket-message--client .card-header {
  background: var(--nex-surface-alt) !important;
}

.nex-ticket-avatar-wrap .img-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.65rem !important;
  border-color: var(--nex-border) !important;
  background: var(--nex-bg-subtle) !important;
}

.nex-ticket-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nex-text);
  line-height: 1.2;
}

.nex-ticket-date,
.nex-ticket-msg-id {
  font-size: 0.75rem;
  color: var(--nex-text-subtle);
}

.support-ticket .markdown-body {
  font-size: 0.9rem;
  line-height: 1.72;
}

.support-ticket .markdown-body > :first-child {
  margin-top: 0;
}

.support-ticket .markdown-body > :last-child {
  margin-bottom: 0;
}

.nex-ticket-reply-wrap .alert {
  margin-bottom: 0.75rem;
}

.nex-ticket-reply-card {
  border-style: solid !important;
}

.nex-ticket-reply-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

/* Support tickets overview */
body.support-tickets .nex-support-page {
  margin-top: 0.15rem;
}

body.support-tickets .nex-support-card {
  border-radius: var(--nex-r-xl) !important;
}

body.support-tickets .nex-support-head {
  padding: 1rem 1.2rem !important;
}

body.support-tickets .nex-support-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nex-text);
}

body.support-tickets .nex-support-sub {
  font-size: 0.84rem;
  color: var(--nex-text-muted);
}

body.support-tickets .nex-support-new-btn .icon {
  width: 14px;
  height: 14px;
}

body.support-tickets .nex-support-body {
  padding-top: 0.95rem !important;
}

body.support-tickets .nex-support-table-wrap {
  border: 1px solid var(--nex-border);
  border-radius: var(--nex-r);
  overflow: hidden;
}

body.support-tickets .nex-support-table {
  margin: 0;
}

body.support-tickets .nex-support-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--nex-text-subtle);
  border-bottom: 1px solid var(--nex-border);
  background: var(--nex-surface-alt);
  white-space: nowrap;
}

body.support-tickets .nex-support-table td,
body.support-tickets .nex-support-table th {
  padding: 0.72rem 0.82rem;
}

body.support-tickets .nex-support-table tbody tr {
  transition: background 0.15s ease;
}

body.support-tickets .nex-support-table tbody tr:hover {
  background: rgba(var(--nex-primary-rgb), 0.04);
}

body.support-tickets .nex-support-table tbody td {
  border-color: var(--nex-border-subtle);
}

body.support-tickets .nex-support-id {
  font-weight: 600;
  color: var(--nex-text);
}

body.support-tickets .nex-support-subject {
  font-weight: 600;
  color: var(--nex-text);
  text-decoration: none;
}

body.support-tickets .nex-support-subject:hover {
  color: var(--nex-primary);
  text-decoration: underline;
}

body.support-tickets .nex-support-helpdesk,
body.support-tickets .nex-support-time {
  color: var(--nex-text-muted);
  font-size: 0.84rem;
}

body.support-tickets .nex-support-pagination {
  display: flex;
  justify-content: flex-end;
}

body.support-tickets .nex-support-empty {
  border: 1px dashed var(--nex-border);
  border-radius: var(--nex-r-lg);
  background: var(--nex-surface-alt);
  padding: 1.4rem 1rem;
  text-align: center;
}

body.support-tickets .nex-support-empty .icon {
  width: 22px;
  height: 22px;
  color: var(--nex-primary);
  margin-bottom: 0.5rem;
}

body.support-tickets .nex-support-empty-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nex-text);
}

body.support-tickets .nex-support-empty-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--nex-text-muted);
}

@media (max-width: 1100px) {
  .nex-ticket-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.support-tickets .nex-support-head {
    padding: 0.9rem 0.95rem !important;
  }

  body.support-tickets .nex-support-title {
    font-size: 1.08rem;
  }

  body.support-tickets .nex-support-table td,
  body.support-tickets .nex-support-table th {
    padding: 0.65rem 0.66rem;
  }

  body.support-tickets .nex-support-pagination {
    justify-content: center;
  }

  .nex-ticket-title {
    font-size: 1.15rem;
  }

  .nex-ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .nex-ticket-message .card-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .nex-ticket-actions {
    width: 100%;
  }

  .nex-ticket-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .nex-ticket-reply-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   ORDER V5 - complete visual redesign
   ============================================================ */

.ao-order-page {
  background:
    radial-gradient(1200px 500px at 5% -10%, rgba(14, 165, 233, 0.08), transparent 60%),
    radial-gradient(1000px 450px at 95% -20%, rgba(16, 185, 129, 0.07), transparent 60%),
    var(--nex-bg);
}

.ao-catalog-shell,
.ao-flow-shell {
  position: relative;
}

.ao-catalog-hero {
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px -36px rgba(15, 23, 42, 0.6);
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.06) 48%, transparent 100%),
    #ffffff;
  padding: 1.35rem 1.45rem;
}

.ao-catalog-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.ao-catalog-sub {
  color: #4b5563;
  font-size: 0.92rem;
  max-width: 62ch;
}

.ao-catalog-highlights .nex-order-chip {
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
}

.ao-catalog-how {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.8rem;
}

.ao-catalog-how .nex-order-v4-how-item {
  border-radius: 0.9rem;
  border-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 28px -26px rgba(15, 23, 42, 0.8);
}

.ao-catalog-grid-wrap .nex-order-category {
  margin-bottom: 2rem;
}

.ao-catalog-grid-wrap .nex-order-category-title {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  color: #64748b;
}

.ao-catalog-grid-wrap .nex-pricing-grid {
  gap: 1.1rem;
}

.ao-catalog-grid-wrap .nex-pricing-card {
  border-radius: 1.1rem;
  border-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.65);
}

.ao-catalog-grid-wrap .nex-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14), 0 25px 40px -30px rgba(14, 165, 233, 0.85) !important;
}

.ao-catalog-grid-wrap .nex-pricing-name {
  font-size: 1.06rem;
}

.ao-catalog-grid-wrap .nex-pricing-desc {
  min-height: 2.4em;
}

.ao-flow-wrap {
  max-width: 1240px;
}

.ao-flow-head {
  margin-bottom: 0.85rem !important;
}

.ao-flow-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ao-flow-sub {
  color: #6b7280;
  font-size: 0.88rem;
}

.ao-flow-intro {
  border-left-width: 4px;
  border-left-color: #0ea5e9;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.07), rgba(255,255,255,0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.78rem 0.9rem;
}

.ao-flow-intro .nex-order-v3-intro-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.ao-flow-intro .nex-order-v3-intro-text {
  font-size: 0.8rem;
}

.ao-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}

.ao-flow-stages {
  gap: 1rem;
}

.ao-stage {
  border-radius: 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 45px -34px rgba(15, 23, 42, 0.7);
  overflow: hidden;
  background: #ffffff;
}

.ao-stage-head {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.95));
}

.ao-stage .nex-order-stage-title {
  font-size: 1rem;
  font-weight: 750;
  color: #0b1220;
}

.ao-stage-body {
  padding: 1.15rem;
}

.ao-stage .badge.text-bg-secondary {
  background: rgba(14, 165, 233, 0.13) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.ao-stage--products .nex-product-grid {
  gap: 0.9rem;
}

.ao-stage--products .nex-product-card {
  border-radius: 0.9rem;
  border-width: 1px;
  min-height: 76px;
}

.ao-stage--products .nex-product-card:hover {
  transform: translateY(-2px);
}

.ao-stage--config .nex-config-product-banner {
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.05));
}

.ao-stage--account .nex-account-form-shell {
  border-radius: 0.9rem;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.ao-stage--checkout .nex-checkout-card {
  border-radius: 0.9rem !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.ao-stage--checkout .nex-cart-table {
  border-radius: 0.9rem !important;
}

.ao-flow-progress-wrap {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.9rem;
}

.ao-flow-progress {
  gap: 0.65rem;
}

.ao-flow-progress-item {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 0.55rem 0.65rem;
}

.ao-flow-progress-item .nex-order-progress-label {
  font-size: 0.72rem;
}

.ao-flow-progress-item.is-active {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(255,255,255,1));
  border-color: rgba(14, 165, 233, 0.35);
}

.ao-flow-progress-item.is-done {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), rgba(255,255,255,1));
}

.ao-flow-sidebar {
  position: sticky;
  top: 1rem;
}

.ao-flow-sidebar-card {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.8);
  background: #ffffff;
}

.ao-flow-sidebar-note {
  border-radius: 0.7rem;
  background: rgba(14, 165, 233, 0.09);
  border-color: rgba(14, 165, 233, 0.2);
}

.ao-flow-sidebar-row {
  padding: 0.38rem 0;
}

.ao-flow-nav {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.8);
  padding: 0.72rem;
}

.ao-flow-nav #order-prev-step,
.ao-flow-nav #order-next-step {
  min-height: 38px;
}

@media (max-width: 1100px) {
  .ao-flow-layout {
    grid-template-columns: 1fr;
  }

  .ao-flow-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .ao-catalog-hero {
    padding: 1rem;
    border-radius: 1rem;
  }

  .ao-catalog-title {
    font-size: 1.25rem;
  }

  .ao-catalog-how {
    padding: 0.55rem;
  }

  .ao-catalog-how .nex-order-v4-how-item {
    padding: 0.72rem;
  }

  .ao-flow-progress {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   ORDER MINIMAL V7 - total clean redesign
   ============================================================ */
body.order-minimal-v7 {
  background: #f4f6fb;
}

body.order-minimal-v7 .order-v7-catalog,
body.order-minimal-v7 .order-v7-flow {
  max-width: 1120px;
  margin: 0 auto;
}

body.order-minimal-v7 .order-v7-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.8);
  padding: 1.1rem 1.2rem;
}

body.order-minimal-v7 .order-v7-title {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.order-minimal-v7 .order-v7-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

body.order-minimal-v7 .order-v7-highlights {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.order-minimal-v7 .order-v7-highlights .nex-order-chip {
  border: 1px solid #dde3ef;
  background: #fff;
  box-shadow: none;
  font-size: 0.75rem;
}

body.order-minimal-v7 .order-v7-catalog-grid .nex-order-category {
  margin-bottom: 1.6rem;
}

body.order-minimal-v7 .order-v7-catalog-grid .nex-order-category-title {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: #74839a;
}

body.order-minimal-v7 .order-v7-catalog-grid .nex-pricing-grid {
  gap: 0.75rem;
}

body.order-minimal-v7 .order-v7-catalog-grid .nex-pricing-card {
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  box-shadow: none;
  padding: 1rem;
}

body.order-minimal-v7 .order-v7-catalog-grid .nex-pricing-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1) !important;
}

body.order-minimal-v7 .order-v7-flow-wrap {
  max-width: 860px;
}

body.order-minimal-v7 .order-v7-flow-head {
  margin-bottom: 0.65rem !important;
}

body.order-minimal-v7 .order-v7-flow-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.order-minimal-v7 .order-v7-flow-sub {
  color: #6b7280;
  font-size: 0.82rem;
}

body.order-minimal-v7 .order-v7-wizard {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.order-minimal-v7 .order-v7-progress {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.order-minimal-v7 .order-v7-progress-list {
  display: grid;
  gap: 0.5rem;
}

body.order-minimal-v7 .order-v7-progress-list.is-guest-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.order-minimal-v7 .order-v7-progress-list.is-client-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.order-minimal-v7 .order-v7-progress-list .nex-order-progress-item {
  border: 1px solid #dce3f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  padding: 0.52rem 0.6rem;
  cursor: pointer;
}

body.order-minimal-v7 .order-v7-progress-list .nex-order-progress-item.is-active {
  border-color: #4f46e5;
  background: #eef0ff;
}

body.order-minimal-v7 .order-v7-progress-list .nex-order-progress-item.is-done {
  border-color: #10b981;
  background: #ecfdf5;
}

body.order-minimal-v7 .order-v7-progress-list .nex-order-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
}

body.order-minimal-v7 .order-v7-stages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.order-minimal-v7 .order-v7-stages .nex-order-stage {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body.order-minimal-v7 .order-v7-stages .nex-order-stage-head {
  border-bottom: 1px solid #eef2f8;
  background: #f8fafc;
  padding: 0.8rem 1rem;
}

body.order-minimal-v7 .order-v7-stages .nex-order-stage-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #0f172a;
}

body.order-minimal-v7 .order-v7-stages .nex-order-stage-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #64748b;
}

body.order-minimal-v7 .order-v7-stages .nex-order-stage-body {
  padding: 1rem;
}

body.order-minimal-v7 .order-v7-nav {
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 0.6rem;
}

body.order-minimal-v7 .order-v7-nav .nex-order-wizard-meta {
  font-size: 0.76rem;
  color: #64748b;
}

body.order-minimal-v7 .order-v7-nav #order-prev-step,
body.order-minimal-v7 .order-v7-nav #order-next-step {
  min-height: 36px;
  border-radius: 8px !important;
}

body.order-minimal-v7 .order-v7-nav #order-next-step {
  background-image: none !important;
}

@media (max-width: 900px) {
  body.order-minimal-v7 .order-v7-catalog-grid .nex-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.order-minimal-v7 .order-v7-progress-list.is-guest-flow,
  body.order-minimal-v7 .order-v7-progress-list.is-client-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body.order-minimal-v7 .order-v7-catalog-grid .nex-pricing-grid,
  body.order-minimal-v7 .order-v7-progress-list.is-guest-flow,
  body.order-minimal-v7 .order-v7-progress-list.is-client-flow {
    grid-template-columns: 1fr;
  }

  body.order-minimal-v7 .order-v7-hero {
    padding: 0.9rem;
  }

  body.order-minimal-v7 .order-v7-title {
    font-size: 1.28rem;
  }
}

/* Product selection redesign (not wizard) */
body.order-minimal-v7 .order-v8-market {
  --order-v8-ink: var(--nex-text);
  --order-v8-muted: var(--nex-text-muted);
  --order-v8-subtle: var(--nex-text-subtle);
  --order-v8-border: var(--nex-border);
  --order-v8-accent: var(--nex-primary);
  --order-v8-accent-strong: var(--nex-primary-dark);
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

body.order-minimal-v7 .order-v8-hero {
  margin-bottom: 0;
  padding: 0.1rem 0.1rem 0.05rem;
}

body.order-minimal-v7 .order-v8-hero-main {
  flex: 1 1 520px;
}

body.order-minimal-v7 .order-v8-title {
  margin: 0 0 0.18rem;
  color: var(--order-v8-ink);
}

body.order-minimal-v7 .order-v8-sub {
  margin: 0;
  color: var(--order-v8-muted);
  max-width: 56ch;
}

body.order-minimal-v7 .order-v8-tools {
  margin-top: 0.7rem;
  max-width: 420px;
}

body.order-minimal-v7 .order-v8-search-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--order-v8-subtle);
  margin-bottom: 0.3rem;
}

body.order-minimal-v7 .order-v8-search-input {
  border-color: var(--order-v8-border);
  box-shadow: none;
  font-size: 0.86rem;
}

body.order-minimal-v7 .order-v8-search-input:focus {
  border-color: var(--order-v8-accent);
  box-shadow: 0 0 0 3px rgba(var(--nex-primary-rgb), 0.13);
}

body.order-minimal-v7 .order-v8-currency {
  border: 1px solid var(--order-v8-border);
  border-radius: var(--nex-r);
  padding: 0.48rem 0.58rem;
  background: var(--nex-surface);
  box-shadow: var(--nex-shadow-xs);
}

body.order-minimal-v7 .order-v8-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

body.order-minimal-v7 .order-v8-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

body.order-minimal-v7 .order-v8-stat-card {
  background: var(--nex-surface);
  border: 1px solid var(--order-v8-border);
  border-radius: var(--nex-r-lg);
  box-shadow: var(--nex-shadow-sm);
  padding: 0.92rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

body.order-minimal-v7 .order-v8-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--order-v8-subtle);
}

body.order-minimal-v7 .order-v8-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--order-v8-ink);
}

body.order-minimal-v7 .order-v8-stat-sub {
  font-size: 0.74rem;
  color: var(--order-v8-subtle);
}

body.order-minimal-v7 .order-v8-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  position: sticky;
  top: 0.75rem;
  z-index: 3;
  background: rgba(245, 246, 250, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--order-v8-border);
  border-radius: var(--nex-r);
  padding: 0.5rem;
}

body.order-minimal-v7 .order-v8-category-link {
  text-decoration: none;
  background: var(--nex-surface);
  border: 1px solid var(--order-v8-border);
  border-radius: var(--nex-r-sm);
  color: var(--order-v8-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.42rem 0.78rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

body.order-minimal-v7 .order-v8-category-link:hover {
  border-color: var(--order-v8-accent);
  color: var(--order-v8-accent);
  background: rgba(var(--nex-primary-rgb), 0.08);
  transform: translateY(-1px);
}

body.order-minimal-v7 .order-v8-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.order-minimal-v7 .order-v8-category {
  border: 1px solid var(--order-v8-border);
  border-radius: var(--nex-r-lg);
  background: var(--nex-surface);
  box-shadow: var(--nex-shadow-sm);
  padding: 0.95rem;
}

body.order-minimal-v7 .order-v8-category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

body.order-minimal-v7 .order-v8-category-head {
  margin-bottom: 0.78rem;
}

body.order-minimal-v7 .order-v8-category-title {
  margin: 0 0 0.22rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--order-v8-ink);
}

body.order-minimal-v7 .order-v8-category-count {
  font-size: 0.69rem;
  color: var(--order-v8-subtle);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid var(--order-v8-border);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  white-space: nowrap;
}

body.order-minimal-v7 .order-v8-category-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--order-v8-muted);
}

body.order-minimal-v7 .order-v8-category-desc p {
  margin: 0;
}

body.order-minimal-v7 .order-v8-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.78rem;
}

body.order-minimal-v7 .order-v8-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid #dde5ef;
  border-radius: var(--nex-r);
  background: var(--nex-surface);
  padding: 0.94rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background-image: none !important;
}

body.order-minimal-v7 .order-v8-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--order-v8-accent);
  box-shadow: var(--nex-shadow-md);
  background: var(--nex-surface-alt);
}

body.order-minimal-v7 .order-v8-product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

body.order-minimal-v7 .order-v8-product-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--order-v8-ink);
}

body.order-minimal-v7 .order-v8-product-type {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--order-v8-subtle);
  border: 1px solid var(--order-v8-border);
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  flex-shrink: 0;
}

body.order-minimal-v7 .order-v8-product-desc {
  margin: 0;
  color: var(--order-v8-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 2.8em;
}

body.order-minimal-v7 .order-v8-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

body.order-minimal-v7 .order-v8-price {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

body.order-minimal-v7 .order-v8-price-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--order-v8-ink);
  line-height: 1.2;
}

body.order-minimal-v7 .order-v8-price-sub {
  font-size: 0.72rem;
  color: var(--order-v8-subtle);
}

body.order-minimal-v7 .order-v8-select-btn {
  border: 1px solid var(--order-v8-accent);
  background: var(--order-v8-accent);
  color: #fff;
  border-radius: var(--nex-r-sm);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.76rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

body.order-minimal-v7 .order-v8-product-card:hover .order-v8-select-btn {
  background: var(--order-v8-accent-strong);
  border-color: var(--order-v8-accent-strong);
}

body.order-minimal-v7 .order-v8-empty {
  border: 1px dashed var(--order-v8-border);
  border-radius: var(--nex-r-lg);
  background: var(--nex-surface-alt);
  padding: 1.25rem 1rem;
  text-align: center;
}

body.order-minimal-v7 .order-v8-empty .icon {
  width: 20px;
  height: 20px;
  color: var(--order-v8-accent);
  margin-bottom: 0.35rem;
}

body.order-minimal-v7 .order-v8-empty-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--order-v8-ink);
}

body.order-minimal-v7 .order-v8-empty-sub {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--order-v8-muted);
}

body.order-minimal-v7 .nex-order-config-box {
  border: 1px solid #dde4ef;
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.68rem;
}

body.order-minimal-v7 .nex-order-config-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

body.order-minimal-v7 .nex-order-config-box-sub {
  font-size: 0.74rem;
  color: #64748b;
}

body.order-minimal-v7 .nex-order-config-box--pricing .nex-config-product-banner {
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fcfdff;
  padding: 0.5rem 0.58rem;
  margin-bottom: 0.52rem;
}

body.order-minimal-v7 .nex-order-config-box--pricing .nex-config-billing {
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fcfdff;
  padding: 0.52rem 0.58rem;
}

body.order-minimal-v7 .nex-order-config-box--pricing .nex-config-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.32rem;
}

body.order-minimal-v7 .nex-order-config-box--pricing .form-select,
body.order-minimal-v7 .nex-order-config-box--pricing .form-control {
  min-height: 40px;
}

body.order-minimal-v7 .nex-domain-order {
  margin-top: 0.62rem;
}

body.order-minimal-v7 .nex-domain-order-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

body.order-minimal-v7 .nex-domain-order-sub {
  font-size: 0.74rem;
  color: #64748b;
}

body.order-minimal-v7 .nex-domain-tabs {
  gap: 0.34rem;
}

body.order-minimal-v7 .nex-domain-tabs .nav-link {
  border: 1px solid #dce3ef;
  border-radius: 8px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.56rem;
}

body.order-minimal-v7 .nex-domain-tabs .nav-link.active {
  border-color: var(--nex-primary);
  background: rgba(var(--nex-primary-rgb), 0.1);
  color: var(--nex-primary);
}

body.order-minimal-v7 .nex-domain-tab-content {
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  padding: 0.52rem 0.58rem;
  background: #fcfdff;
}

body.order-minimal-v7 .nex-domain-pane {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.order-minimal-v7 .nex-domain-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.1rem;
}

body.order-minimal-v7 .nex-domain-input-row {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  align-items: stretch;
}

body.order-minimal-v7 .nex-domain-input-group {
  max-width: 560px;
  flex: 1 1 360px;
}

body.order-minimal-v7 .nex-domain-input-group .form-control,
body.order-minimal-v7 .nex-domain-input-group .form-select,
body.order-minimal-v7 .nex-domain-extra .form-control,
body.order-minimal-v7 .nex-domain-extra .form-select {
  min-height: 34px;
  height: 34px !important;
  max-height: 34px;
  padding: 0.32rem 0.6rem !important;
  line-height: 1.2 !important;
  font-size: 0.83rem;
}

body.order-minimal-v7 .nex-domain-input-row .btn {
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

body.order-minimal-v7 #owndomain-tab-pane .nex-domain-input-group {
  max-width: 380px;
}

body.order-minimal-v7 #owndomain-tab-pane .nex-domain-pane {
  max-width: 420px;
}

body.order-minimal-v7 .nex-domain-dual-fields {
  max-width: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 0.42rem;
}

body.order-minimal-v7 .nex-domain-dual-fields .form-control {
  min-height: 34px;
  height: 34px !important;
  max-height: 34px;
  padding: 0.32rem 0.6rem !important;
  line-height: 1.2 !important;
  font-size: 0.83rem;
}

body.order-minimal-v7 .nex-domain-extra {
  padding-top: 0.08rem;
}

body.order-minimal-v7 .nex-domain-price {
  font-size: 0.76rem;
  color: #475569;
}

body.order-minimal-v7 .nex-domain-note {
  font-size: 0.72rem;
  color: #64748b;
}

body.order-minimal-v7 .order-v7-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: -0.08rem 0 0.05rem;
}

body.order-minimal-v7 .order-v7-overview-card {
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.66rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

body.order-minimal-v7 .order-v7-overview-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #64748b;
}

body.order-minimal-v7 .order-v7-overview-card strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

@media (max-width: 900px) {
  body.order-minimal-v7 .order-v8-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.order-minimal-v7 .order-v8-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.order-minimal-v7 .order-v8-hero {
    padding: 0.9rem;
  }

  body.order-minimal-v7 .order-v8-title {
    font-size: 1.25rem;
  }

  body.order-minimal-v7 .order-v8-product-grid {
    grid-template-columns: 1fr;
  }

  body.order-minimal-v7 .order-v8-stats {
    grid-template-columns: 1fr;
  }

  body.order-minimal-v7 .order-v8-category-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  body.order-minimal-v7 .order-v8-category-link {
    white-space: nowrap;
  }

  body.order-minimal-v7 .order-v8-category-count {
    display: none;
  }

  body.order-minimal-v7 .order-v7-overview {
    grid-template-columns: 1fr;
  }

  body.order-minimal-v7 .nex-domain-input-row {
    flex-direction: column;
  }

  body.order-minimal-v7 .nex-domain-input-group {
    max-width: 100%;
  }

  body.order-minimal-v7 .nex-domain-dual-fields {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  body.order-minimal-v7 .nex-domain-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }

  body.order-minimal-v7 .nex-domain-tabs .nav-link {
    white-space: nowrap;
  }
}

/* Step 1-4 clarity layer */
.ao-step-minimal .nex-order-stage-head {
  padding: 0.85rem 1rem;
}

.ao-step-minimal .nex-order-stage-title {
  font-size: 0.95rem;
  gap: 0.4rem;
}

.ao-step-minimal .nex-order-stage-sub {
  margin-top: 0.38rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.ao-step-minimal .nex-order-stage-body {
  padding: 1rem;
}

.ao-step-selected {
  border-radius: 0.75rem;
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.05);
}

.ao-step-cta-row {
  padding-top: 0.25rem;
  border-top: 1px dashed var(--nex-border-subtle);
}

.ao-step-minimal .nex-account-switch {
  border-radius: 0.7rem;
  padding: 0.22rem;
}

.ao-step-minimal .nex-account-switch .nav-link {
  font-size: 0.8rem !important;
  padding: 0.45rem 0.75rem !important;
}

.ao-step-minimal .nex-account-form-shell {
  padding: 0.85rem;
}

.ao-step-minimal .nex-checkout-card .card-header h6 {
  font-size: 0.78rem !important;
}

.ao-step-minimal .nex-summary-table td {
  font-size: 0.83rem;
}

.ao-step-minimal #checkoutButton {
  font-size: 0.86rem !important;
}
