:root {
  --user-bg: #f5f7fb;
  --user-surface: #ffffff;
  --user-surface-muted: #f8fafc;
  --user-border: rgba(15, 23, 42, 0.08);
  --user-border-strong: rgba(15, 23, 42, 0.14);
  --user-text: #132238;
  --user-text-muted: #5f6f87;
  --user-text-soft: #8d98ac;
  --user-primary: #3a5fd9;
  --user-primary-strong: #2a4bb7;
  --user-primary-soft: rgba(58, 95, 217, 0.1);
  --user-success: #177960;
  --user-success-soft: rgba(23, 121, 96, 0.12);
  --user-warning: #b9771b;
  --user-warning-soft: rgba(185, 119, 27, 0.14);
  --user-danger: #cb4a56;
  --user-danger-soft: rgba(203, 74, 86, 0.12);
  --user-info: #1f74b1;
  --user-info-soft: rgba(31, 116, 177, 0.12);
  --user-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --user-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --user-radius-sm: 12px;
  --user-radius-md: 18px;
  --user-radius-lg: 24px;
  --user-sidebar-width: 272px;
  --user-content-max: 1280px;
}

body.user-dashboard-body {
  margin: 0;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--user-bg) 100%);
  color: var(--user-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

body.user-sidebar-open {
  overflow: hidden;
}

.user-dashboard-body a,
.user-dashboard-body button {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.user-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.user-shell__overlay {
  display: none;
}

.user-shell__sidebar {
  width: var(--user-sidebar-width);
  flex: 0 0 var(--user-sidebar-width);
  min-height: 100vh;
  height: 100vh;
  padding: 1.25rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
  background: linear-gradient(180deg, #10182a 0%, #16223a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 14px 0 28px rgba(9, 15, 28, 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.user-shell__sidebar::-webkit-scrollbar {
  width: 8px;
}

.user-shell__sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.user-shell__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.user-shell__brand {
  padding: 0.5rem 0.55rem 0;
}

.user-shell__brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.user-shell__brand-logo {
  max-width: 100%;
  height: 38px;
  object-fit: contain;
}

.user-shell__brand-wordmark {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.user-shell__brand-copy {
  margin: 0.65rem 0 0;
  max-width: 22ch;
  color: rgba(232, 239, 255, 0.64);
  font-size: 0.85rem;
  line-height: 1.55;
}

.user-shell__balance-card {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-shell__balance-label {
  display: block;
  color: rgba(232, 239, 255, 0.66);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.user-shell__balance-value {
  display: block;
  margin-top: 0.55rem;
  color: #fff;
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 700;
}

.user-shell__balance-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.user-shell__balance-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.user-shell__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-shell__nav-group-label {
  padding: 0 0.65rem;
  color: rgba(232, 239, 255, 0.44);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.user-shell__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-shell__nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 0.85rem;
  border-radius: 16px;
  border: 1px solid transparent;
  color: rgba(237, 242, 255, 0.84);
  text-decoration: none;
}

.user-shell__nav-item:hover,
.user-shell__nav-item:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.user-shell__nav-item.active {
  color: #fff;
  border-color: rgba(86, 119, 255, 0.28);
  background: linear-gradient(180deg, rgba(65, 100, 236, 0.96), rgba(57, 89, 214, 0.94));
  box-shadow: 0 10px 22px rgba(41, 73, 193, 0.26);
}

.user-shell__nav-item--ghost {
  color: rgba(237, 242, 255, 0.66);
}

.user-shell__nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.06);
}

.user-shell__nav-item.active .user-shell__nav-icon {
  background: rgba(255, 255, 255, 0.16);
}

.user-shell__nav-label {
  font-size: 0.96rem;
  font-weight: 600;
}

.user-shell__nav-badge {
  margin-left: auto;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 0.42rem;
}

.user-shell__nav-badge--accent {
  background: rgba(243, 187, 96, 0.18);
}

.user-shell__main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.user-shell__navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--user-border);
  background: rgba(250, 252, 255, 0.92);
  backdrop-filter: blur(14px);
}

.user-shell__topbar {
  min-height: 72px;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.user-shell__topbar-start,
.user-shell__topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-shell__topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.user-shell__topbar-eyebrow {
  color: var(--user-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.user-shell__topbar-title {
  color: var(--user-text);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
}

.user-shell__topbar-toggle {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--user-border);
  border-radius: 14px;
  background: var(--user-surface);
  color: var(--user-text);
}

.user-balance-pill,
.user-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.8rem;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--user-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--user-text);
  box-shadow: none;
}

.user-balance-pill:hover,
.user-profile-trigger:hover {
  color: var(--user-text);
  border-color: var(--user-border-strong);
}

.user-balance-pill__label {
  color: var(--user-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.user-balance-pill__value {
  font-size: 0.92rem;
  font-weight: 700;
}

.user-profile-trigger__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.user-profile-trigger__name {
  font-size: 0.88rem;
  font-weight: 700;
}

.user-profile-trigger__role {
  color: var(--user-text-soft);
  font-size: 0.72rem;
}

.user-profile-trigger__caret {
  color: var(--user-text-soft);
  font-size: 0.74rem;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--user-primary), #5578e7);
  color: #fff;
  font-weight: 700;
}

.user-avatar--sm {
  width: 2.3rem;
  height: 2.3rem;
  font-size: 0.9rem;
}

.user-avatar--lg {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.08rem;
}

.user-profile-dropdown {
  min-width: 240px;
  padding: 0.5rem;
  border: 1px solid var(--user-border);
  border-radius: 16px;
  box-shadow: var(--user-shadow-md);
}

.user-profile-dropdown__summary {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.45rem 0.8rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--user-border);
}

.user-profile-dropdown__name {
  display: block;
  color: var(--user-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.user-profile-dropdown__copy {
  display: block;
  color: var(--user-text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.user-shell__content {
  padding: 1.5rem 0 2.5rem;
}

.user-shell__content > .container-xxl,
.user-shell__content .container-xxl {
  max-width: var(--user-content-max);
}

.container-xxl.flex-grow-1.container-p-y,
.flex-grow-1.container-p-y,
.container-xxl.container-p-y {
  padding-top: 0 !important;
}

.user-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.user-page-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--user-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.user-page-title {
  margin: 0;
  color: var(--user-text);
  font-size: 2.45rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.user-page-subtitle {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  color: var(--user-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.user-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.user-page-head--actions-only {
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
}

.user-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--user-border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: var(--user-shadow-sm);
}

.user-page-hero__intro {
  min-width: 0;
}

.user-page-hero__action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.user-page-hero__action .btn {
  min-width: 168px;
}

.user-page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.user-page-hero__stat {
  min-width: 118px;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--user-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.user-page-hero__stat-label {
  display: block;
  color: var(--user-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.user-page-hero__stat-value {
  display: block;
  margin-top: 0.42rem;
  color: var(--user-text);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
}

.user-dashboard-body .card,
.user-data-panel {
  border: 1px solid var(--user-border) !important;
  border-radius: var(--user-radius-md) !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--user-shadow-sm) !important;
}

.user-dashboard-body .card {
  overflow: hidden;
  margin-bottom: 1.25rem !important;
}

.user-dashboard-body .card-header,
.user-data-panel__head {
  padding: 1.05rem 1.2rem !important;
  border-bottom: 1px solid var(--user-border) !important;
  background: rgba(248, 250, 253, 0.88) !important;
}

.user-dashboard-body .card-body {
  padding: 1.2rem !important;
}

.user-dashboard-body .card-title,
.user-dashboard-body .card-header h5,
.user-dashboard-body .card-header h6 {
  color: var(--user-text);
}

.user-section-copy {
  margin: 0.28rem 0 0;
  color: var(--user-text-muted);
  line-height: 1.55;
}

.user-stat-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--user-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  box-shadow: var(--user-shadow-sm);
}

.user-stat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-stat-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.user-stat-card__icon--primary {
  color: var(--user-primary);
  background: var(--user-primary-soft);
}

.user-stat-card__icon--success {
  color: var(--user-success);
  background: var(--user-success-soft);
}

.user-stat-card__icon--warning {
  color: var(--user-warning);
  background: var(--user-warning-soft);
}

.user-stat-card__label {
  display: block;
  color: var(--user-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.user-stat-card__value {
  display: block;
  margin-top: 0.5rem;
  color: var(--user-text);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.user-stat-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.95rem;
  color: var(--user-text-muted);
  font-size: 0.88rem;
}

.user-inline-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.user-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--user-border);
}

.user-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.user-list-item:first-child {
  padding-top: 0;
}

.user-list-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-list-item__icon--success {
  color: var(--user-success);
  background: var(--user-success-soft);
}

.user-list-item__icon--warning {
  color: var(--user-warning);
  background: var(--user-warning-soft);
}

.user-list-item__icon--primary {
  color: var(--user-primary);
  background: var(--user-primary-soft);
}

.user-list-item__title {
  margin: 0;
  color: var(--user-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.user-list-item__copy {
  display: block;
  color: var(--user-text-muted);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.user-empty {
  padding: 1.7rem 1rem;
  text-align: center;
}

.user-empty__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.95rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--user-surface-muted);
  color: var(--user-text-soft);
  font-size: 1.25rem;
}

.user-empty__title {
  margin: 0;
  color: var(--user-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.user-empty__copy {
  margin: 0.45rem auto 0;
  max-width: 44ch;
  color: var(--user-text-muted);
}

.user-dashboard-body .btn {
  min-height: 42px;
  padding: 0.62rem 0.98rem;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: none !important;
}

.user-dashboard-body .btn-sm {
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.user-dashboard-body .btn-primary {
  border-color: transparent !important;
  background: var(--user-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.user-dashboard-body .btn-primary:hover,
.user-dashboard-body .btn-primary:focus {
  background: var(--user-primary-strong) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.user-dashboard-body .btn-outline-secondary,
.user-dashboard-body .btn-secondary {
  border-color: var(--user-border-strong) !important;
  color: var(--user-text) !important;
  background: #fff !important;
}

.user-dashboard-body .btn-outline-secondary:hover,
.user-dashboard-body .btn-secondary:hover {
  border-color: var(--user-primary) !important;
  color: var(--user-primary) !important;
  background: #fff !important;
}

.user-dashboard-body .alert {
  border: 1px solid var(--user-border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.user-dashboard-body .alert-info {
  background: rgba(31, 116, 177, 0.08);
  border-color: rgba(31, 116, 177, 0.12);
  color: #255d82;
}

.user-dashboard-body .alert-success {
  background: rgba(23, 121, 96, 0.08);
  border-color: rgba(23, 121, 96, 0.12);
  color: #175b49;
}

.user-dashboard-body .alert-danger {
  background: rgba(203, 74, 86, 0.08);
  border-color: rgba(203, 74, 86, 0.12);
  color: #8f2f39;
}

.user-dashboard-body .alert-warning {
  background: rgba(185, 119, 27, 0.08);
  border-color: rgba(185, 119, 27, 0.12);
  color: #7f5718;
}

.user-dashboard-body .form-label {
  color: var(--user-text) !important;
  font-weight: 600 !important;
  margin-bottom: 0.45rem !important;
}

.user-dashboard-body .form-control,
.user-dashboard-body .form-select,
.user-dashboard-body .bootstrap-select .dropdown-toggle {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--user-border-strong) !important;
  background: #fff !important;
  color: var(--user-text) !important;
  box-shadow: none !important;
}

.user-dashboard-body textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.user-dashboard-body .form-control:focus,
.user-dashboard-body .form-select:focus,
.user-dashboard-body .bootstrap-select .dropdown-toggle:focus {
  border-color: rgba(58, 95, 217, 0.4);
  box-shadow: 0 0 0 4px rgba(58, 95, 217, 0.1) !important;
}

.user-dashboard-body .form-check-input {
  border-color: var(--user-border-strong);
}

.user-dashboard-body .form-check-input:checked {
  background-color: var(--user-primary);
  border-color: var(--user-primary);
}

.user-dashboard-body .dropdown-menu {
  border: 1px solid var(--user-border);
  border-radius: 14px;
  box-shadow: var(--user-shadow-md);
  padding: 0.4rem;
}

.user-dashboard-body .dropdown-item {
  border-radius: 10px;
  padding: 0.62rem 0.78rem;
}

.user-dashboard-body .dropdown-item:hover,
.user-dashboard-body .dropdown-item:focus {
  background: var(--user-surface-muted);
}

.user-dashboard-body .bootstrap-select > .dropdown-toggle:hover,
.user-dashboard-body .bootstrap-select > .dropdown-toggle.show {
  border-color: rgba(58, 95, 217, 0.32) !important;
  background: #fff !important;
  color: var(--user-text) !important;
}

.user-dashboard-body .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
  color: var(--user-text);
}

.user-dashboard-body .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner {
  color: var(--user-text-muted);
}

.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item {
  color: var(--user-text-muted);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item:hover,
.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item:focus {
  color: var(--user-text);
  background: var(--user-surface-muted);
  border-color: var(--user-border);
}

.user-dashboard-body .bootstrap-select .dropdown-menu li.selected .dropdown-item,
.user-dashboard-body .bootstrap-select .dropdown-menu li.selected .dropdown-item:hover,
.user-dashboard-body .bootstrap-select .dropdown-menu li.selected .dropdown-item:focus,
.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item.active,
.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item.active:hover,
.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item.active:focus {
  color: var(--user-primary-strong) !important;
  background: rgba(58, 95, 217, 0.08) !important;
  border-color: rgba(58, 95, 217, 0.16) !important;
}

.user-dashboard-body .bootstrap-select .dropdown-menu li.selected .check-mark,
.user-dashboard-body .bootstrap-select .dropdown-menu .dropdown-item.active .check-mark {
  color: var(--user-primary);
}

.user-dashboard-body .modal-content {
  border: 1px solid var(--user-border);
  border-radius: 20px;
  box-shadow: var(--user-shadow-md);
}

.user-dashboard-body .modal-header,
.user-dashboard-body .modal-footer {
  border-color: var(--user-border);
}

.user-table,
.table-activation,
.user-dashboard-body .table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.user-table thead th,
.table-activation thead th,
.user-dashboard-body .table thead th {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--user-border) !important;
  background: #f8fbff !important;
  color: var(--user-text-soft) !important;
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700 !important;
}

.user-table tbody td,
.table-activation tbody td,
.user-dashboard-body .table tbody td {
  padding: 0.95rem 1rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--user-border) !important;
  color: var(--user-text) !important;
}

.user-table tbody tr:last-child td,
.table-activation tbody tr:last-child td,
.user-dashboard-body .table tbody tr:last-child td {
  border-bottom: 0;
}

.user-table a,
.table-activation a {
  color: var(--user-primary);
  font-weight: 600;
  text-decoration: none;
}

.user-table a:hover,
.table-activation a:hover {
  color: var(--user-primary-strong);
}

.cell-value {
  color: inherit;
}

.user-status-pill,
.column-status .cell-value > span,
.ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.user-status-pill--success {
  background: var(--user-success-soft);
  color: var(--user-success);
}

.user-status-pill--warning {
  background: var(--user-warning-soft);
  color: var(--user-warning);
}

.user-status-pill--danger {
  background: var(--user-danger-soft);
  color: var(--user-danger);
}

.user-status-pill--info {
  background: var(--user-info-soft);
  color: var(--user-info);
}

.user-status-pill--neutral {
  background: rgba(97, 112, 137, 0.12);
  color: #56657c;
}

.text-disabled {
  color: var(--user-text-soft) !important;
}

.activation-row td {
  padding-top: 0;
  background: #fafcff;
}

.activation-row__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.activation-row__list-item {
  min-height: 82px;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--user-border);
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.activation-row__list-item--next {
  background: rgba(248, 251, 255, 0.82);
}

.item-step {
  flex-shrink: 0;
}

.item-step .step {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--user-primary-soft);
  color: var(--user-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.spinner-loader {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
}

.item-content__title {
  color: var(--user-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.item-content__title span {
  color: var(--user-success);
  margin-left: 0.35rem;
  font-size: 0.8rem;
}

.item-content__desc {
  margin-top: 0.28rem;
  color: var(--user-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.table__link {
  color: var(--user-primary);
  font-weight: 600;
}

.user-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.user-kv__item {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--user-border);
  background: var(--user-surface-muted);
}

.user-kv__label {
  display: block;
  color: var(--user-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.user-kv__value {
  display: block;
  margin-top: 0.42rem;
  color: var(--user-text);
  font-weight: 700;
}

.user-callout {
  padding: 0.95rem 1rem;
  border: 1px solid var(--user-border);
  border-radius: 16px;
  background: var(--user-surface-muted);
}

.user-callout--accent {
  background: rgba(58, 95, 217, 0.06);
  border-color: rgba(58, 95, 217, 0.12);
}

.user-form-section + .user-form-section {
  margin-top: 1.5rem;
}

.user-form-section__title {
  margin: 0 0 0.8rem;
  color: var(--user-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.user-form-section__copy {
  margin: -0.28rem 0 0.85rem;
  color: var(--user-text-muted);
}

.sticky-tabs-wrapper {
  position: static;
}

.sticky-tabs-nav {
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 16px;
  background: var(--user-surface-muted);
  border: 1px solid var(--user-border);
}

.sticky-tabs-nav .nav-link {
  border-radius: 12px;
  padding: 0.72rem 0.92rem;
  color: var(--user-text-muted);
  font-weight: 600;
}

.sticky-tabs-nav .nav-link.active {
  background: #fff;
  color: var(--user-text);
  box-shadow: var(--user-shadow-sm);
}

.payment-dropdown-btn {
  min-height: 58px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--user-border-strong);
  background: #fff;
  color: var(--user-text);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.payment-dropdown-btn:hover,
.payment-dropdown-btn:focus,
.payment-dropdown-btn.show {
  border-color: rgba(58, 95, 217, 0.26);
  background: #fff;
  color: var(--user-text);
}

.payment-dropdown-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(58, 95, 217, 0.1);
}

.payment-dropdown-btn.is-selected {
  border-color: rgba(58, 95, 217, 0.26);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.payment-dropdown-btn__label {
  min-width: 0;
  padding-right: 0.75rem;
  color: var(--user-text);
  line-height: 1.45;
  font-weight: 600;
  white-space: normal;
}

.payment-method-menu {
  margin-top: 0.5rem;
  padding: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--user-border);
  box-shadow: var(--user-shadow-md);
}

.payment-option {
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--user-text-muted);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.payment-option:hover,
.payment-option:focus {
  color: var(--user-text);
  background: var(--user-surface-muted);
  border-color: var(--user-border);
}

.payment-option.is-selected {
  color: var(--user-primary-strong);
  background: rgba(58, 95, 217, 0.08);
  border-color: rgba(58, 95, 217, 0.16);
}

.payment-option__label {
  min-width: 0;
  line-height: 1.45;
  white-space: normal;
}

.payment-checkmark {
  color: var(--user-primary);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.payment-option.is-selected .payment-checkmark {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.manual-method-info {
  border-radius: 16px;
  border: 1px dashed rgba(58, 95, 217, 0.28);
  padding: 1rem;
  background: rgba(58, 95, 217, 0.05);
}

.transactions-table-container {
  max-height: none;
}

.user-profile-hero {
  background: linear-gradient(135deg, rgba(58, 95, 217, 0.08), rgba(255, 255, 255, 0.98));
}

.user-profile-hero__meta {
  color: var(--user-text-muted);
}

.user-thread {
  border: 1px solid var(--user-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(255, 255, 255, 0.98));
  padding: 1rem;
  box-shadow: var(--user-shadow-sm);
}

.user-thread__scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 34, 56, 0.16) transparent;
}

.user-thread__scroll::-webkit-scrollbar {
  width: 8px;
}

.user-thread__scroll::-webkit-scrollbar-thumb {
  background: rgba(19, 34, 56, 0.14);
  border-radius: 999px;
}

.user-message-row {
  display: flex;
  margin-bottom: 1rem;
}

.user-message-row:last-child {
  margin-bottom: 0;
}

.user-message-row--admin {
  justify-content: flex-end;
}

.user-message {
  max-width: min(720px, 82%);
  border-radius: 18px;
  border: 1px solid var(--user-border);
  background: #fff;
  box-shadow: var(--user-shadow-sm);
}

.user-message--admin {
  background: linear-gradient(180deg, rgba(241, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.user-message__body {
  padding: 0.95rem 1rem;
}

.user-message__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: var(--user-text-soft);
  font-size: 0.78rem;
}

.user-message__author {
  color: var(--user-text);
  font-weight: 700;
}

.user-message__stamp {
  color: var(--user-text-soft);
}

.user-message__text {
  color: var(--user-text);
  font-size: 0.94rem;
  line-height: 1.7;
}

.message__file a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--user-primary);
  text-decoration: none;
}

.message__file a:hover {
  color: var(--user-primary-strong);
}

.user-ticket-summary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.user-ticket-summary__subject {
  color: var(--user-text);
  font-size: 1.02rem;
  line-height: 1.4;
}

.user-link-muted {
  color: var(--user-text-muted);
}

.selectpicker-loader {
  border-radius: 12px;
}

.user-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.user-mini-stat {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--user-border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--user-shadow-sm);
}

.user-mini-stat__label {
  display: block;
  color: var(--user-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.user-mini-stat__value {
  display: block;
  margin-top: 0.45rem;
  color: var(--user-text);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
}

.user-mini-stat__meta {
  display: block;
  margin-top: 0.45rem;
  color: var(--user-text-muted);
  font-size: 0.85rem;
}

.user-data-panel {
  overflow: hidden;
}

.user-data-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-data-panel__title {
  margin: 0;
  color: var(--user-text);
  font-size: 1.08rem;
  font-weight: 700;
}

.user-data-panel__copy {
  margin: 0.3rem 0 0;
  max-width: 56ch;
  color: var(--user-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.user-data-panel__meta {
  color: var(--user-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-orders-table tbody tr:hover td {
  background: rgba(245, 248, 255, 0.74);
}

.user-table-domain__name {
  display: block;
  color: var(--user-text);
  font-size: 0.97rem;
  font-weight: 700;
}

.user-table-domain__meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--user-text-soft);
  font-size: 0.78rem;
}

.user-table-plan {
  color: var(--user-text);
  font-weight: 600;
}

.user-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  white-space: nowrap;
}

.user-table-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--user-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.user-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--user-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--user-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.user-icon-button:hover,
.user-icon-button:focus {
  border-color: var(--user-primary);
  color: var(--user-primary);
}

.user-icon-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 1199.98px) {
  .user-shell__content {
    padding: 1.25rem 0 2.2rem;
  }

  .user-shell__topbar {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 991.98px) {
  .user-shell__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    width: min(var(--user-sidebar-width), calc(100vw - 32px));
    max-width: var(--user-sidebar-width);
  }

  .user-shell__sidebar.show {
    transform: translateX(0);
  }

  .user-shell__overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(8, 14, 24, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 45;
  }

  .user-shell__overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .user-shell__topbar-copy {
    display: none;
  }

  .user-profile-trigger__meta,
  .user-profile-trigger__caret {
    display: none;
  }

  .user-balance-pill__label {
    display: none;
  }

  .user-data-panel__head {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .user-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-page-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem 1rem;
  }

  .user-page-hero__action {
    justify-content: flex-start;
    width: 100%;
  }

  .user-page-hero__action .btn {
    width: 100%;
  }

  .user-page-title {
    font-size: 2rem;
  }

  .user-page-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .user-dashboard-body .card-header,
  .user-dashboard-body .card-body,
  .user-data-panel__head {
    padding: 1rem;
  }

  .user-stat-card,
  .user-mini-stat {
    padding: 1rem;
  }

  .user-shell__topbar {
    min-height: 68px;
    gap: 0.65rem;
  }

  .user-balance-pill {
    padding: 0.58rem 0.72rem;
  }

  .user-message {
    max-width: 100%;
  }

  .activation-row__list {
    grid-template-columns: 1fr;
  }

  .user-table-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .user-table-actions .dropdown {
    flex-shrink: 0;
  }
}
