/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@layer properties {
  @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {

    *,
    :before,
    :after,
    ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
      --at-shadow-focus: 0 0 0 0 transparent
    }
  }
}

:root {
  --at-canvas: #f3ebda;
  --at-surface: #fff;
  --at-surface-subtle: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%);
  --at-border: #1a1410;
  --at-ink: #1a1410;
  --at-ink-strong: #1a1410;
  --at-text: #1a1410;
  --at-text-strong: #1a1410;
  --at-text-muted: #6b6355;
  --at-text-subtle: #9c9383;
  --at-accent: #d97706;
  --at-accent-gradient: linear-gradient(135deg, #d97706 0%, #b45309 50%, #78350f 100%);
  --at-on-accent: #ffffff;
  --at-accent-wash: #fef3c7;
  --at-secondary: #f59e0b;
  --at-success: #2e6f40;
  --at-on-success: #ffffff;
  --at-success-text: #2e6f40;
  --at-warning: #c68b29;
  --at-on-warning: #ffffff;
  --at-danger: #912727;
  --at-on-danger: #ffffff;
  --at-danger-text: #912727;
  --at-border-w: 2px;
  --at-border-w-sm: 1.5px;
  --at-radius-xs: 4px;
  --at-radius-sm: 6px;
  --at-radius-md: 8px;
  --at-radius-lg: 12px;
  --at-radius-pill: 9999px;
  --at-shadow-1: 1px 1px 0px #1a1410;
  --at-shadow-2: 2px 2px 0px #1a1410;
  --at-shadow-3: 3px 3px 0px #1a1410;
  --at-shadow-4: 4px 4px 0px #1a1410;
  --at-shadow-6: 6px 6px 0px #1a1410;
  --at-sidebar-w: 250px;
  --at-sidebar-w-collapsed: 64px;
  --at-header-h: 60px;
  --at-footer-h: 56px;
  --at-font-sans: 'Libre Franklin', 'Instrument Sans', system-ui, -apple-system, sans-serif;
  /*--at-font-display: 'Fraunces', 'Playfair Display', Georgia, serif;*/
  --at-font-display: "Poppins", sans-serif;
  --at-font-mono: 'JetBrains Mono', monospace;
}

[data-at-theme="dark"] {
  --at-canvas: #1c1815;
  --at-surface: #27221e;
  --at-surface-subtle: #3a322b;
  --at-border: #f3ebda;
  --at-ink: #f3ebda;
  --at-ink-strong: #ffffff;
  --at-text: #f3ebda;
  --at-text-strong: #ffffff;
  --at-text-muted: #c4b8aa;
  --at-accent: #ca8a04;
  --at-accent-gradient: linear-gradient(135deg, #ca8a04 0%, #854d0e 100%);
  --at-accent-wash: rgba(202, 138, 4, 0.2);
}

/* GLOBAL UTILITY CONTRAST OVERRIDES FOR DARK MODE */
.text-muted,
.text-secondary,
.at-muted {
  color: var(--at-text-muted) !important;
}

[data-at-theme="dark"] {
  --bs-body-bg: var(--at-canvas, #1c1815);
  --bs-body-color: var(--at-text, #f3ebda);
}

[data-at-theme="dark"] .text-muted,
[data-at-theme="dark"] .text-secondary,
[data-at-theme="dark"] .at-muted,
[data-at-theme="dark"] small.text-muted,
[data-at-theme="dark"] p.text-muted,
[data-at-theme="dark"] h6.text-muted,
[data-at-theme="dark"] span.text-muted {
  color: var(--at-text-muted, #c4b8aa) !important;
}

[data-at-theme="dark"] .bg-light {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text, #f3ebda) !important;
}

[data-at-theme="dark"] .bg-white {
  background-color: var(--at-surface, #27221e) !important;
  color: var(--at-text, #f3ebda) !important;
}

[data-at-theme="dark"] .border,
[data-at-theme="dark"] .border-dark,
[data-at-theme="dark"] .border-top,
[data-at-theme="dark"] .border-bottom,
[data-at-theme="dark"] .border-start,
[data-at-theme="dark"] .border-end {
  border-color: rgba(243, 235, 218, 0.15) !important;
}

[data-at-theme="dark"] .text-dark {
  color: var(--at-text-strong, #ffffff) !important;
}

/* Tables in Dark Mode */
[data-at-theme="dark"] .table,
[data-at-theme="dark"] .table> :not(caption)>*>* {
  --bs-table-bg: transparent !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-color: var(--at-text, #f3ebda) !important;
  background-color: transparent !important;
  color: var(--at-text, #f3ebda) !important;
  box-shadow: none !important;
}

[data-at-theme="dark"] .table td,
[data-at-theme="dark"] .table th {
  background-color: transparent !important;
  color: var(--at-text, #f3ebda) !important;
  border-color: rgba(243, 235, 218, 0.15) !important;
}

[data-at-theme="dark"] .table-bordered,
[data-at-theme="dark"] .table-bordered td,
[data-at-theme="dark"] .table-bordered th {
  border-color: rgba(243, 235, 218, 0.15) !important;
}

[data-at-theme="dark"] .table-dark {
  --bs-table-bg: var(--at-surface-subtle, #3a322b) !important;
  --bs-table-color: var(--at-text-strong, #ffffff) !important;
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .table-dark th {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

/* Modals & Dialogs in Dark Mode */
[data-at-theme="dark"] .modal-content {
  background-color: var(--at-surface, #27221e) !important;
  color: var(--at-text, #f3ebda) !important;
  border-color: rgba(243, 235, 218, 0.2) !important;
}

[data-at-theme="dark"] .modal-header,
[data-at-theme="dark"] .modal-footer {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  border-color: rgba(243, 235, 218, 0.15) !important;
}

.btn-close,
.at-btn-close-clean,
.modal .btn-close,
.modal-header .btn-close,
.at-modal-header .btn-close,
[data-at-theme="dark"] .btn-close,
[data-at-theme="dark"] .modal .btn-close,
[data-at-theme="dark"] .modal-header .btn-close,
[data-at-theme="dark"] .at-modal-header .btn-close {
  background: transparent !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 1em auto !important;
  border: 0 !important;
  border-style: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.btn-close:hover,
.btn-close:focus,
.btn-close:active,
.btn-close:focus-visible,
.at-btn-close-clean:hover,
.at-btn-close-clean:focus,
.at-btn-close-clean:active,
.at-btn-close-clean:focus-visible,
.modal .btn-close:hover,
.modal .btn-close:focus,
.modal .btn-close:active,
.modal .btn-close:focus-visible,
.modal-header .btn-close:hover,
.modal-header .btn-close:focus,
.modal-header .btn-close:active,
.modal-header .btn-close:focus-visible,
.at-modal-header .btn-close:hover,
.at-modal-header .btn-close:focus,
.at-modal-header .btn-close:active,
.at-modal-header .btn-close:focus-visible,
[data-at-theme="dark"] .btn-close:hover,
[data-at-theme="dark"] .btn-close:focus,
[data-at-theme="dark"] .btn-close:active,
[data-at-theme="dark"] .btn-close:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 1em auto !important;
  border: 0 !important;
  border-style: none !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 0.8 !important;
  transform: scale(1.1) !important;
  filter: none !important;
}

[data-at-theme="dark"] .btn_light {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text, #f3ebda) !important;
  border-color: rgba(243, 235, 218, 0.2) !important;
}

[data-at-theme="dark"] .btn_light:hover {
  background-color: var(--at-canvas, #1c1815) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

/* Form Controls & Inputs in Dark Mode */
[data-at-theme="dark"] .form-control,
[data-at-theme="dark"] .form-select,
[data-at-theme="dark"] .at-form-input {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: rgba(243, 235, 218, 0.2) !important;
}

[data-at-theme="dark"] .form-control:focus,
[data-at-theme="dark"] .form-select:focus,
[data-at-theme="dark"] .at-form-input:focus {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: var(--at-accent, #e07a5f) !important;
}

[data-at-theme="dark"] select option {
  background-color: var(--at-surface, #27221e) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* GLOBAL CUSTOM SCROLLBAR DESIGN (ALL PAGES) */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 122, 95, 0.4) var(--at-canvas);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--at-canvas);
  border-left: 1px solid var(--at-surface-subtle);
}

::-webkit-scrollbar-thumb {
  background: rgba(224, 122, 95, 0.4);
  border: 1.5px solid var(--at-border);
  border-radius: var(--at-radius-pill);
  transition: background 0.2s ease, border-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--at-accent) !important;
  border-color: var(--at-border);
}

::-webkit-scrollbar-thumb:active {
  background: var(--at-accent-hover, #d0694e) !important;
}

body.at-layout {
  background-color: var(--at-canvas);
  color: var(--at-text);
  font-family: var(--at-font-sans);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* SIDEBAR CONTAINER */
.at-sidebar {
  width: var(--at-sidebar-w, 250px) !important;
  background: var(--at-surface);
  border-right: 2px solid var(--at-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  will-change: width;
  overflow: visible;
}

.at-sidebar.is-collapsed,
body.is-sidebar-collapsed .at-sidebar {
  width: var(--at-sidebar-w-collapsed, 64px) !important;
}

.at-sidebar__brand {
  height: var(--at-header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--at-border);
  transition: padding 0.3s ease;
  flex-shrink: 0;
  width: 100%;
}

.at-sidebar.is-collapsed .at-sidebar__brand {
  justify-content: center;
  padding: 0 4px;
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-logo-img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), filter 0.3s ease;
  transform-origin: center center;
}

/* SPONGE SQUEEZE ANIMATION ON COLLAPSED SIDEBAR */
.at-sidebar.is-collapsed .brand-logo-img {
  transform: scale(0.62);
  animation: spongeSquish 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes spongeSquish {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.48) scaleY(0.55) scaleX(1.15);
    /* Squeezed flat like a sponge */
  }

  75% {
    transform: scale(0.72) scaleY(0.85) scaleX(0.75);
    /* Elastic spring bounce */
  }

  100% {
    transform: scale(0.62);
    /* Squeezed state */
  }
}

/* NAV WRAPPER (WITH SLEEK HOVER-ONLY TRANSPARENT 4PX SCROLLBAR) */
.at-sidebar__nav {
  padding: 12px 10px 6px 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.25s ease;
}

.at-sidebar:hover .at-sidebar__nav {
  scrollbar-color: rgba(161, 98, 7, 0.5) transparent;
}

.at-sidebar.is-collapsed .at-sidebar__nav {
  padding: 16px 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.at-sidebar.is-collapsed:hover .at-sidebar__nav {
  scrollbar-color: rgba(161, 98, 7, 0.5) transparent;
}

/* Sleek 4px Webkit Scrollbar for Sidebar */
.at-sidebar__nav::-webkit-scrollbar,
.at-sidebar.is-collapsed .at-sidebar__nav::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
  display: block !important;
}

.at-sidebar__nav::-webkit-scrollbar-track,
.at-sidebar.is-collapsed .at-sidebar__nav::-webkit-scrollbar-track {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.at-sidebar__nav::-webkit-scrollbar-thumb,
.at-sidebar.is-collapsed .at-sidebar__nav::-webkit-scrollbar-thumb {
  background: transparent !important;
  border: none !important;
  border-radius: 9999px !important;
  transition: background 0.25s ease !important;
}

/* Scrollbar Thumb becomes visible when hovering on Sidebar */
.at-sidebar:hover .at-sidebar__nav::-webkit-scrollbar-thumb,
.at-sidebar.is-collapsed:hover .at-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(161, 98, 7, 0.45) !important;
}

.at-sidebar:hover .at-sidebar__nav::-webkit-scrollbar-thumb:hover,
.at-sidebar.is-collapsed:hover .at-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a16207 0%, #713f12 100%) !important;
}

[data-at-theme="dark"] .at-sidebar:hover .at-sidebar__nav::-webkit-scrollbar-thumb,
[data-at-theme="dark"] .at-sidebar.is-collapsed:hover .at-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(254, 240, 138, 0.35) !important;
}

[data-at-theme="dark"] .at-sidebar:hover .at-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #854d0e 100%) !important;
}

.at-sidebar__menu-item {
  position: relative;
  margin-bottom: 3px;
}

.at-sidebar__menu-item:last-child {
  margin-bottom: 0;
}

.at-sidebar.is-collapsed .at-sidebar__menu-item {
  position: relative !important;
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.at-sidebar__link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--at-text);
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.at-sidebar.is-collapsed .at-sidebar__link {
  display: flex !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 8px;
}

.at-sidebar__link:hover {
  background: var(--at-surface-subtle);
  color: var(--at-text-strong);
}

/* ACTIVE SIDEBAR LINK STYLING */
.at-sidebar__link.active,
.at-sidebar__link.is-active,
.at-sidebar__menu-item.active>.at-sidebar__link,
.at-sidebar__menu-item.is-active>.at-sidebar__link {
  font-weight: 700;
  background: var(--at-accent) !important;
  color: #ffffff !important;
}

.at-sidebar__link.active .menu-icon,
.at-sidebar__link.active .link-text,
.at-sidebar__link.active i,
.at-sidebar__link.is-active .menu-icon,
.at-sidebar__link.is-active .link-text,
.at-sidebar__link.is-active i,
.at-sidebar__menu-item.active>.at-sidebar__link .menu-icon,
.at-sidebar__menu-item.active>.at-sidebar__link .link-text,
.at-sidebar__menu-item.active>.at-sidebar__link i,
.at-sidebar__menu-item.is-active>.at-sidebar__link .menu-icon,
.at-sidebar__menu-item.is-active>.at-sidebar__link .link-text,
.at-sidebar__menu-item.is-active>.at-sidebar__link i {
  color: #ffffff !important;
}

[data-at-theme="dark"] .at-sidebar__link.active,
[data-at-theme="dark"] .at-sidebar__link.is-active,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link,
[data-at-theme="dark"] .at-sidebar__menu-item.is-active>.at-sidebar__link {
  background: var(--at-accent) !important;
  color: #ffffff !important;
}

[data-at-theme="dark"] .at-sidebar__link.active .menu-icon,
[data-at-theme="dark"] .at-sidebar__link.active .link-text,
[data-at-theme="dark"] .at-sidebar__link.active i,
[data-at-theme="dark"] .at-sidebar__link.is-active .menu-icon,
[data-at-theme="dark"] .at-sidebar__link.is-active .link-text,
[data-at-theme="dark"] .at-sidebar__link.is-active i,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link .menu-icon,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link .link-text,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link i,
[data-at-theme="dark"] .at-sidebar__menu-item.is-active>.at-sidebar__link .menu-icon,
[data-at-theme="dark"] .at-sidebar__menu-item.is-active>.at-sidebar__link .link-text,
[data-at-theme="dark"] .at-sidebar__menu-item.is-active>.at-sidebar__link i {
  color: #ffffff !important;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  margin-right: 10px;
  font-size: 1.1rem;
}

.at-sidebar.is-collapsed .menu-icon {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
}

.link-text {
  flex: 1;
}

.chevron {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chevron i {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.at-sidebar__menu-item.is-open .chevron i {
  transform: rotate(90deg);
}

.brand-name,
.link-text,
.chevron,
.at-sidebar__section-title,
.user-info,
.exit-btn {
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
}

.at-sidebar.is-collapsed .brand-name,
.at-sidebar.is-collapsed .link-text,
.at-sidebar.is-collapsed .chevron,
.at-sidebar.is-collapsed .at-sidebar__section-title,
.at-sidebar.is-collapsed .user-info,
.at-sidebar.is-collapsed .exit-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  display: none !important;
}

.at-sidebar__section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--at-text-muted);
  margin: 12px 12px 4px 12px;
}

/* SUBMENU ACCORDION (EXPANDED SIDEBAR & MOBILE SCREEN) */
.at-sidebar:not(.is-collapsed) div.at-flyout,
.at-sidebar.is-mobile-open div.at-flyout {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 4px 0 6px 24px !important;
  background: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  /* border-left: 2.5px solid var(--at-border, #1a1410) !important; */
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 2px 14px !important;
  min-width: auto !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  display: none !important;
  transition: none !important;
}

.at-sidebar:not(.is-collapsed) div.at-flyout::before,
.at-sidebar.is-mobile-open div.at-flyout::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  bottom: 2px !important;
  left: 0 !important;
  width: 2.5px !important;
  background-color: var(--at-border, #1a1410) !important;
  display: block !important;
  z-index: 10 !important;
}

[data-at-theme="dark"] .at-sidebar:not(.is-collapsed) div.at-flyout::before,
[data-at-theme="dark"] .at-sidebar.is-mobile-open div.at-flyout::before {
  background-color: var(--at-border, #f3ebda) !important;
}

.at-sidebar:not(.is-collapsed) .at-sidebar__menu-item.is-open div.at-flyout,
.at-sidebar.is-mobile-open .at-sidebar__menu-item.is-open div.at-flyout {
  display: block !important;
  animation: slideDownSubmenu 0.2s ease;
}

@keyframes slideDownSubmenu {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.at-sidebar:not(.is-collapsed) .flyout-header,
.at-sidebar.is-mobile-open .flyout-header {
  display: none !important;
}

.at-sidebar:not(.is-collapsed) .flyout-link,
.at-sidebar.is-mobile-open .flyout-link {
  padding: 5px 10px;
  font-size: 0.76rem !important;
  border-radius: 4px;
}

@media (max-width: 991.98px) {

  /* Ensure mobile sidebar is always full-width layout with standard flex alignment */
  .at-sidebar.is-collapsed {
    width: var(--at-sidebar-w, 250px) !important;
  }

  .at-sidebar.is-collapsed .at-sidebar__menu-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 3px !important;
  }

  .at-sidebar.is-collapsed .at-sidebar__link {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    border-radius: 6px !important;
  }

  .at-sidebar.is-collapsed .menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: auto !important;
    margin-right: 10px !important;
    margin-left: 0 !important;
  }

  .at-sidebar.is-collapsed .brand-name,
  .at-sidebar.is-collapsed .link-text,
  .at-sidebar.is-collapsed .chevron,
  .at-sidebar.is-collapsed .at-sidebar__section-title,
  .at-sidebar.is-collapsed .user-info,
  .at-sidebar.is-collapsed .exit-btn {
    display: inline-block !important;
  }

  .at-sidebar.is-collapsed .chevron {
    display: inline-flex !important;
  }

  .at-sidebar.is-collapsed .at-sidebar__section-title {
    display: block !important;
  }

  /* Mobile Submenu Accordion Left Border Line & Pseudo Bar */
  .at-sidebar div.at-flyout,
  .at-sidebar.is-collapsed div.at-flyout {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 4px 0 6px 24px !important;
    background: transparent !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    /* border-left: 2.5px solid var(--at-border, #1a1410) !important; */
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2px 0 2px 14px !important;
    min-width: auto !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .at-sidebar div.at-flyout::before,
  .at-sidebar.is-collapsed div.at-flyout::before {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    bottom: 2px !important;
    left: 0 !important;
    width: 2.5px !important;
    background-color: var(--at-border, #1a1410) !important;
    display: block !important;
    z-index: 10 !important;
  }

  [data-at-theme="dark"] .at-sidebar div.at-flyout,
  [data-at-theme="dark"] .at-sidebar.is-collapsed div.at-flyout {
    border-left: 2.5px solid var(--at-border, #f3ebda) !important;
  }

  [data-at-theme="dark"] .at-sidebar div.at-flyout::before,
  [data-at-theme="dark"] .at-sidebar.is-collapsed div.at-flyout::before {
    background-color: var(--at-border, #f3ebda) !important;
  }

  .at-sidebar .at-sidebar__menu-item:not(.is-open) div.at-flyout,
  .at-sidebar.is-collapsed .at-sidebar__menu-item:not(.is-open) div.at-flyout {
    display: none !important;
  }

  .at-sidebar .at-sidebar__menu-item.is-open div.at-flyout,
  .at-sidebar.is-collapsed .at-sidebar__menu-item.is-open div.at-flyout {
    display: block !important;
  }

  .at-sidebar .flyout-header,
  .at-sidebar.is-collapsed .flyout-header {
    display: none !important;
  }

  .at-sidebar .flyout-link,
  .at-sidebar.is-collapsed .flyout-link {
    padding: 5px 10px;
    font-size: 0.83rem;
    border-radius: 4px;
  }
}

/* SUBMENU POPOVER FLYOUT (COLLAPSED SIDEBAR - DESKTOP ONLY) */
@media (min-width: 992px) {
  .at-sidebar.is-collapsed .at-sidebar__menu-item:hover .at-sidebar__link {
    background: var(--at-accent) !important;
    color: #ffffff !important;
    border-radius: 8px;
  }

  .at-sidebar.is-collapsed .at-sidebar__menu-item:hover .at-sidebar__link .menu-icon,
  .at-sidebar.is-collapsed .at-sidebar__menu-item:hover .at-sidebar__link i {
    color: #ffffff !important;
  }

  [data-at-theme="dark"] .at-sidebar.is-collapsed .at-sidebar__menu-item:hover .at-sidebar__link {
    background: var(--at-accent) !important;
    color: #ffffff !important;
  }

  .at-sidebar.is-collapsed div.at-flyout {
    position: fixed !important;
    left: 74px !important;
    margin-left: 0;
    background: var(--at-surface);
    border: 2px solid var(--at-border);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--at-border);
    padding: 12px 14px;
    min-width: 195px;
    z-index: 99999 !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.15s ease;
  }

  /* Seamless mouse bridge so cursor moving from icon to popover doesn't close flyout */
  .at-sidebar.is-collapsed div.at-flyout::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -15px !important;
    bottom: -15px !important;
    left: -30px !important;
    width: 35px !important;
    background: transparent !important;
    z-index: 999999 !important;
  }

  .at-sidebar.is-collapsed .at-sidebar__menu-item:hover div.at-flyout,
  .at-sidebar.is-collapsed .at-sidebar__menu-item.is-hover-active div.at-flyout,
  .at-sidebar.is-collapsed div.at-flyout.is-hover-active,
  .at-sidebar.is-collapsed div.at-flyout:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
}

.flyout-header {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-text-muted);
  margin-bottom: 8px;
  padding: 0 4px;
}

.at-flyout--single .flyout-header {
  display: none !important;
}

.flyout-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--at-text);
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.flyout-link:last-child {
  margin-bottom: 0;
}

.flyout-link:hover {
  background: var(--at-surface-subtle);
  color: var(--at-text-strong);
}

.flyout-link.active,
.flyout-link.is-active {
  background: var(--at-accent) !important;
  color: #ffffff !important;
  font-weight: 700;
}

[data-at-theme="dark"] .flyout-link.active,
[data-at-theme="dark"] .flyout-link.is-active {
  background: var(--at-accent) !important;
  color: #ffffff !important;
}

/* COLLAPSED SIDEBAR HOVER MENU ACTIVE STYLING */
.at-sidebar.is-collapsed .at-flyout .flyout-link.active,
.at-sidebar.is-collapsed .at-flyout .flyout-link.is-active {
  background: var(--at-accent) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* SIDEBAR FOOTER (Matching Main Footer) */
.at-sidebar__footer {
  height: var(--at-footer-h);
  padding: 0 16px;
  border-top: 2px solid var(--at-border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--at-surface);
  transition: padding 0.25s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.at-sidebar:not(.is-collapsed) .user-flyout {
  display: none !important;
}

.at-sidebar.is-collapsed .at-sidebar__footer {
  position: relative;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.at-sidebar.is-collapsed .user-flyout {
  position: fixed !important;
  left: 74px !important;
  bottom: 12px !important;
  top: auto !important;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0px var(--at-border);
  padding: 6px;
  min-width: 120px;
  z-index: 99999 !important;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.at-sidebar.is-collapsed .user-flyout::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -20px;
  width: 24px;
  background: transparent;
}

.at-sidebar.is-collapsed .at-sidebar__footer:hover .user-flyout {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.user-flyout .flyout-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-flyout .flyout-link:hover {
  background: var(--at-surface-subtle);
  color: #e63946 !important;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: var(--at-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SHELL & MAIN CONTENT */
.at-shell {
  margin-left: var(--at-sidebar-w, 250px) !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  will-change: margin-left;
}

.at-shell.is-collapsed,
body.is-sidebar-collapsed .at-shell {
  margin-left: var(--at-sidebar-w-collapsed, 64px) !important;
}

/* HEADER */
.at-header {
  height: var(--at-header-h);
  background: var(--at-surface);
  border-bottom: 2px solid var(--at-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}

/* SEARCH BAR */
.at-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--at-canvas);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  padding: 4px 12px;
  box-shadow: 2px 2px 0px var(--at-border);
  width: 280px;
  position: relative;
}

.at-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--at-text);
  width: 100%;
}

/* HEADER SEARCH DROPDOWN & MENU RESULTS */
.at-header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  max-height: 380px;
  overflow-y: auto;
  background: #1e1b2e !important;
  border: 2px solid #d97706 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  z-index: 1050;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.at-search-result-item,
.at-header-search-results .at-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.15s ease;
  cursor: pointer;
}

.at-search-result-item *,
.at-header-search-results .at-search-result-item * {
  color: #ffffff !important;
}

.at-search-result-item:hover,
.at-search-result-item:focus,
.at-search-result-item.is-focused,
.at-header-search-results .at-search-result-item:hover,
.at-header-search-results .at-search-result-item:focus,
.at-header-search-results .at-search-result-item.is-focused {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.at-search-result-item:hover *,
.at-search-result-item:focus *,
.at-search-result-item.is-focused *,
.at-header-search-results .at-search-result-item:hover *,
.at-header-search-results .at-search-result-item:focus *,
.at-header-search-results .at-search-result-item.is-focused * {
  color: #ffffff !important;
}

.at-search-result-item .item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.at-search-result-item .item-icon {
  font-size: 1rem;
  color: #ffffff !important;
  flex-shrink: 0;
}

.at-search-result-item .item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.at-search-badge {
  font-size: 0.68rem;
  font-weight: 700 !important;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.at-search-highlight {
  background: rgba(245, 158, 11, 0.5) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 3px;
  padding: 0 3px;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.at-search-empty-state,
.at-header-search-results .at-search-empty-state {
  padding: 16px 12px;
  text-align: center;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.at-search-empty-state *,
.at-header-search-results .at-search-empty-state * {
  color: #ffffff !important;
}

.shortcut-pill {
  background: var(--at-surface);
  border: 1.5px solid var(--at-border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--at-font-mono);
  padding: 2px 6px;
  font-weight: 700;
  box-shadow: 1px 1px 0px var(--at-border);
  color: var(--at-text);
}

.at-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* NEO-BRUTALIST BUTTONS */
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  box-shadow: 3px 3px 0px var(--at-border);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.at-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--at-border);
  color: var(--at-text-strong);
}

.at-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--at-border);
}

.at-btn--primary {
  background: var(--at-accent);
  color: #ffffff !important;
}

.at-btn--primary:hover {
  color: #ffffff !important;
}

.at-btn--dark {
  background: var(--at-border);
  color: var(--at-surface);
}

.at-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  box-shadow: 2px 2px 0px var(--at-border);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  color: var(--at-text-strong);
}

.at-icon-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border);
  color: var(--at-text-strong);
}

.at-icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--at-border);
}

.at-icon-btn--sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  box-shadow: 1.5px 1.5px 0px var(--at-border);
}

.icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--at-accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--at-font-mono);
  border: 1.5px solid var(--at-border);
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.dot-badge {
  width: 10px;
  min-width: 10px;
  height: 10px;
  padding: 0;
  top: -3px;
  right: -3px;
}

.avatar-coral {
  background: var(--at-accent);
  color: #ffffff;
}

.at-avatar {
  border: 2px solid var(--at-border);
  border-radius: 999px;
  font-family: var(--at-font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1.5px 1.5px 0px var(--at-border);
}

.at-avatar--xs {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.at-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.user-profile-btn {
  padding: 0 10px;
  gap: 8px;
}

.caret {
  font-size: 0.75rem;
  color: var(--at-text-muted);
}

/* MAIN CONTENT CONTAINER */
.at-main {
  padding: 24px 32px;
  flex: 1;
}

.at-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--at-text-muted);
  margin-bottom: 4px;
}

.at-page-head__title {
  font-family: var(--at-font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--at-text-strong);
  letter-spacing: -0.02em;
}

.at-page-head__subtitle {
  font-size: 0.95rem;
  color: var(--at-text-muted);
}

/* KPI CARDS */
.at-card {
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 10px;
  box-shadow: 3px 3px 0px var(--at-border);
  padding: 20px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--at-border);
}

.at-kpi {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* KPI ICON BLOCK (MATCHING DEMO ICON STYLE) */
.at-kpi__icon-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border: 2px solid var(--at-border);
  border-radius: 14px;
  box-shadow: 3.5px 3.5px 0px var(--at-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--at-ink);
  background-color: var(--at-accent-wash);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.at-card:hover .at-kpi__icon-box {
  transform: translate(-1px, -1px);
  box-shadow: 4.5px 4.5px 0px var(--at-border);
}

/* Color variations for icon boxes */
.at-kpi__icon-box--peach {
  background-color: #f7e4d8;
  color: #1a1410;
}

.at-kpi__icon-box--amber {
  background-color: #fcecd7;
  color: #1a1410;
}

.at-kpi__icon-box--mint {
  background-color: #e2f2e7;
  color: #1a1410;
}

.at-kpi__icon-box--blue {
  background-color: #e3effa;
  color: #1a1410;
}

.at-kpi__icon-box--rose {
  background-color: #fae4e6;
  color: #1a1410;
}

.at-kpi__icon-box--purple {
  background-color: #ece4fa;
  color: #1a1410;
}

/* Dark mode theme adjustments */
[data-at-theme="dark"] .at-kpi__icon-box--peach {
  background-color: #3d2c26;
  color: #faebd7;
}

[data-at-theme="dark"] .at-kpi__icon-box--amber {
  background-color: #3d3326;
  color: #fcecd7;
}

[data-at-theme="dark"] .at-kpi__icon-box--mint {
  background-color: #243b2d;
  color: #e2f2e7;
}

[data-at-theme="dark"] .at-kpi__icon-box--blue {
  background-color: #243342;
  color: #e3effa;
}

[data-at-theme="dark"] .at-kpi__icon-box--rose {
  background-color: #40272c;
  color: #fae4e6;
}

[data-at-theme="dark"] .at-kpi__icon-box--purple {
  background-color: #332742;
  color: #ece4fa;
}

.at-kpi__content {
  flex: 1;
  min-width: 0;
}

.at-kpi__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-text-muted);
  margin-bottom: 4px;
}

.at-kpi__value {
  font-family: var(--at-font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--at-text-strong);
  margin-bottom: 2px;
  line-height: 1.2;
}

.at-kpi__delta {
  font-size: 0.8rem;
  font-weight: 700;
}

.at-kpi__delta--down {
  color: #f0685a;
}

.at-kpi__delta--up {
  color: #7cc242;
}

[data-at-theme="light"] .at-kpi__delta--down {
  color: #912727;
}

[data-at-theme="light"] .at-kpi__delta--up {
  color: #2e6f40;
}

.at-kpi__subtext {
  font-size: 0.8rem;
  color: var(--at-text-muted);
}

/* VISIT PAGE BUTTON (EXACT MATCH TO DEMO IMAGE, IMMUNE TO DARK MODE CHANGES) */
.at-btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #a0302b !important;
  color: #ffffff !important;
  border: 2px solid #1a1410 !important;
  border-radius: 5px;
  box-shadow: 1px 1px 0px #1a1410 !important;
  padding: 5px 14px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  line-height: 0.2;
  margin-top: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.at-btn-visit:hover,
.at-btn-visit:focus {
  background-color: #b53630 !important;
  color: #ffffff !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #1a1410 !important;
}

.at-btn-visit:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #1a1410 !important;
}

/* Ensure no dark mode theme override alters button colors */
[data-at-theme="dark"] .at-btn-visit {
  background-color: #a0302b !important;
  color: #ffffff !important;
  border-color: #1a1410 !important;
  box-shadow: 3px 3px 0px #1a1410 !important;
}

[data-at-theme="dark"] .at-btn-visit:hover {
  background-color: #b53630 !important;
  color: #ffffff !important;
  box-shadow: 4px 4px 0px #1a1410 !important;
}

/* FILTER & SEARCH CARD */
.filter-card {
  background: var(--at-surface) !important;
  border: 2px solid var(--at-border);
  border-radius: 8px;
  box-shadow: 3px 3px 0px var(--at-border);
}

/* BORDERED SEARCH INPUT WRAPPER (MATCHING SHOW DROPDOWN HEIGHT & STYLE) */
.filter-search-wrap {
  height: 36px;
  display: inline-flex;
  align-items: center;
  background-color: var(--at-surface);
  border: 2px solid var(--at-border) !important;
  border-radius: 6px !important;
  box-shadow: 2px 2px 0px var(--at-border) !important;
  padding: 0 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 220px;
}

.filter-search-wrap:focus-within,
.filter-search-wrap:hover {
  border-color: var(--at-border) !important;
  box-shadow: 3px 3px 0px var(--at-border) !important;
  transform: translate(-1px, -1px);
}

.filter-search-wrap input {
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--at-text);
}

/* ROWS PER PAGE DROPDOWN SELECTOR */
.at-select-rows {
  height: 36px;
  display: inline-flex;
  align-items: center;
  background-color: var(--at-surface) !important;
  color: var(--at-text) !important;
  border: 2px solid var(--at-border) !important;
  border-radius: 6px !important;
  box-shadow: 2px 2px 0px var(--at-border) !important;
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 28px 0 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-select-rows:hover,
.at-select-rows:focus {
  border-color: var(--at-border) !important;
  box-shadow: 3px 3px 0px var(--at-border) !important;
  transform: translate(-1px, -1px);
}

/* EXCEL DOWNLOAD BUTTON */
.at-btn-excel {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e7e34 !important;
  color: #ffffff !important;
  border: 2px solid var(--at-border) !important;
  border-radius: 6px;
  box-shadow: 2px 2px 0px var(--at-border) !important;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.at-btn-excel:hover,
.at-btn-excel:focus {
  background-color: #28a745 !important;
  color: #ffffff !important;
  border-color: var(--at-border) !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border) !important;
}

.at-btn-excel:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--at-border) !important;
}

[data-at-theme="dark"] .at-btn-excel {
  background-color: #1e7e34 !important;
  color: #ffffff !important;
  border-color: var(--at-border) !important;
  box-shadow: 2px 2px 0px var(--at-border) !important;
}

[data-at-theme="dark"] .at-btn-excel:hover {
  background-color: #28a745 !important;
  color: #ffffff !important;
  border-color: var(--at-border) !important;
  box-shadow: 3px 3px 0px var(--at-border) !important;
}

.at-segment {
  height: 36px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--at-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 2px 2px 0px var(--at-border);
}

.at-segment__btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--at-surface);
  color: var(--at-text);
  border: none;
  border-right: 1.5px solid var(--at-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.at-segment__btn:last-child {
  border-right: none;
}

.at-segment__btn:hover {
  background: var(--at-surface-subtle);
  color: var(--at-text-strong);
}

.at-segment__btn.is-active {
  background: var(--at-accent);
  color: #ffffff !important;
}

/* DATA TABLE CARD & BOOTSTRAP OVERRIDES */
.at-table-card {
  padding: 0;
  overflow: hidden;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 8px;
  box-shadow: 3px 3px 0px var(--at-border);
}

.at-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--at-surface) !important;
  color: var(--at-text) !important;
  --bs-table-bg: var(--at-surface) !important;
  --bs-table-color: var(--at-text) !important;
  --bs-table-hover-bg: var(--at-surface-subtle) !important;
  --bs-table-hover-color: var(--at-text-strong) !important;
}

.at-table thead th {
  background: var(--at-surface-subtle) !important;
  color: var(--at-text-muted) !important;
  border-bottom: 2px solid var(--at-border) !important;
  padding: 12px 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.at-table tbody tr {
  background: var(--at-surface) !important;
  color: var(--at-text) !important;
}

.at-table tbody td {
  background: var(--at-surface) !important;
  color: var(--at-text) !important;
  border-bottom: 1.5px solid var(--at-border) !important;
  padding: 14px 20px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.at-table tbody tr:last-child td {
  border-bottom: none !important;
}

.at-table tbody tr:hover td {
  background: var(--at-surface-subtle) !important;
  color: var(--at-text-strong) !important;
}

.font-mono {
  font-family: var(--at-font-mono);
}

.font-bold {
  font-weight: 700;
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--at-text);
}

.avatar-circle {
  border: 1.5px solid var(--at-border);
  box-shadow: 1px 1px 0px var(--at-border);
  color: #ffffff;
}

.avatar-brown {
  background: #8d5b4c;
}

.avatar-mustard {
  background: #c68b29;
}

.avatar-teal {
  background: #2c7a7b;
}

.avatar-green {
  background: #2e6f40;
}

.avatar-rose {
  background: #b84a62;
}

.avatar-amber {
  background: #d97706;
}

.avatar-navy {
  background: #2b4c7e;
}

/* BADGES */
.at-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--at-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--at-border);
  border-radius: 4px;
  box-shadow: 1.5px 1.5px 0px var(--at-border);
}

.at-badge--warning {
  background: #c68b29;
  color: #ffffff !important;
}

.at-badge--success {
  background: #2e6f40;
  color: #ffffff !important;
}

.at-badge--danger {
  background: #912727;
  color: #ffffff !important;
}

.at-badge--flat {
  background: var(--at-surface-subtle);
  color: var(--at-text) !important;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* PAGINATION ROW */
.showing-text {
  font-size: 0.85rem;
  color: var(--at-text-muted);
}

.at-pagination__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 4px;
  box-shadow: 2px 2px 0px var(--at-border);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  color: var(--at-text-strong);
}

.at-pagination__btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border);
  color: var(--at-text-strong);
}

.at-pagination__btn.is-active {
  background: var(--at-accent);
  color: #ffffff !important;
}

.pagination-dots {
  font-weight: 700;
  color: var(--at-text-muted);
}

/* FOOTER (Seamless Height & Border Alignment) */
.at-footer {
  height: var(--at-footer-h);
  border-top: 2px solid var(--at-border);
  font-size: 0.85rem;
  color: var(--at-text-muted);
  background: var(--at-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* TOAST NOTIFICATIONS */
.at-toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-toast {
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  box-shadow: 4px 4px 0px var(--at-border);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* MOBILE SIDEBAR OVERLAY */
.at-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 20, 16, 0.5);
  backdrop-filter: blur(3px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.at-sidebar-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE MEDIA QUERIES (MOBILE & TABLET) */
@media (max-width: 991.98px) {

  /* Hide sidebar off-screen on mobile/tablet (do not show collapsed sidebar) */
  .at-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10000 !important;
    border-right: none !important;
    box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.15) !important;
  }

  .at-sidebar.is-mobile-open {
    transform: translateX(0) !important;
  }

  /* Ensure text and dropdown flyouts render properly inside mobile slide-in menu */
  .at-sidebar.is-mobile-open .at-sidebar__header {
    padding: 0 16px;
    justify-content: flex-start;
  }

  .at-sidebar.is-mobile-open .brand-text,
  .at-sidebar.is-mobile-open .menu-category-title,
  .at-sidebar.is-mobile-open .link-text,
  .at-sidebar.is-mobile-open .chevron,
  .at-sidebar.is-mobile-open .user-info {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .at-sidebar.is-mobile-open .at-sidebar__link {
    justify-content: flex-start !important;
    padding: 10px 14px !important;
  }

  /* Shell takes 100% full width with zero margin on mobile/tablet */
  .at-shell,
  .at-shell.is-collapsed {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .at-header {
    padding: 0 16px;
    gap: 10px;
  }

  .at-search-bar {
    width: 100%;
    max-width: 220px;
  }

  .shortcut-pill {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .at-header {
    padding: 0 10px;
    gap: 8px;
  }

  .at-search-bar {
    width: 140px;
    padding: 4px 8px;
  }

  .at-main {
    padding: 16px 12px !important;
  }

  .at-page-head__title {
    font-size: 1.35rem;
  }

  /* Make filter segment buttons horizontally scrollable on small mobile screens */
  .at-segment {
    display: flex;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .at-segment::-webkit-scrollbar {
    display: none;
  }

  .at-segment__btn {
    white-space: nowrap;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  /* Card and Table container touch scrolling */
  .at-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .at-table {
    min-width: 620px;
  }

  /* Footer layout on small mobile screens: text on left, icons on right */
  .at-footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: var(--at-footer-h) !important;
    font-size: 0.8rem;
  }

  .at-drawer {
    width: 100%;
    max-width: 330px;
  }
}

/* RIGHT SIDEBAR DRAWER PANEL (NOTIFICATIONS & ACTIVITY CENTER) */
.at-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 20, 16, 0.45);
  backdrop-filter: blur(3px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.at-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.at-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--at-surface);
  border-left: none;
  box-shadow: -10px 0px 30px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.at-drawer.is-active {
  transform: translateX(0);
}

.at-drawer__header {
  height: var(--at-header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--at-border);
  background: var(--at-surface);
  flex-shrink: 0;
}

.at-drawer__title {
  font-family: var(--at-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--at-text-strong);
}

.at-drawer__body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* NEO-BRUTALIST HORIZONTAL TABS (GALLERY CATEGORY TAB STYLE) */
.at-drawer__tabs-nav {
  background: var(--at-surface-subtle);
  border-bottom: 2px solid var(--at-border);
}

.at-drawer__tab-btn {
  background: var(--at-surface) !important;
  color: var(--at-text-strong) !important;
  border: 2px solid var(--at-border) !important;
  border-radius: 6px !important;
  font-family: var(--at-font-sans);
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 6px 4px !important;
  text-align: center;
  box-shadow: 2px 2px 0px var(--at-border) !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease !important;
}

.at-drawer__tab-btn:hover {
  background: var(--at-surface-subtle) !important;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border) !important;
}

.at-drawer__tab-btn.active {
  background: var(--at-accent) !important;
  color: #ffffff !important;
  border-color: var(--at-border) !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] .at-drawer__tab-btn.active {
  background: var(--at-accent) !important;
  color: #ffffff !important;
}

/* NEO-BRUTALIST ACCORDIONS (LEGACY REUSE IF NEEDED) */
.at-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.at-accordion__item {
  background: var(--at-surface);
  border: 2px solid var(--at-border) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0px var(--at-border);
  overflow: hidden;
}

.at-accordion__button {
  background: var(--at-surface-subtle) !important;
  color: var(--at-text-strong) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.at-accordion__button:not(.collapsed) {
  background: var(--at-accent-wash) !important;
  color: var(--at-border) !important;
  border-bottom: 2px solid var(--at-border) !important;
}

[data-at-theme="dark"] .at-accordion__button:not(.collapsed) {
  background: var(--at-accent) !important;
  color: #ffffff !important;
}

.at-accordion__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--at-surface);
}

/* MESSAGE CARDS */
.at-msg-card {
  padding: 10px 12px;
  background: var(--at-canvas);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.at-msg-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--at-border);
}

.at-msg-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
}

.at-msg-card__preview {
  font-size: 0.78rem;
  color: var(--at-text);
  margin-top: 3px;
  line-height: 1.35;
}

.at-msg-card__time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--at-text-muted);
}

/* NEO-BRUTALIST SEARCH MODAL */
.at-search-modal {
  background: #1e1b2e !important;
  border: 2px solid #d97706 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
  color: #ffffff !important;
}

.at-search-modal *,
.at-search-modal input {
  color: #ffffff !important;
}

.search-result-item {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.search-result-item *,
.search-result-item i,
.search-result-item span {
  color: #ffffff !important;
}

.search-result-item:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  transform: translateX(2px);
  color: #ffffff !important;
  border-color: #a855f7 !important;
}

.search-result-item:hover * {
  color: #ffffff !important;
}

/* ============================================================
   AUTHENTICATION & COVER SIGN-IN STYLES
   ============================================================ */

/* ============================================================
   AUTHENTICATION & COVER SIGN-IN STYLES (COMPACT FIT)
   ============================================================ */

.auth-page-body {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  background-image: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  color: var(--at-text);
  font-family: var(--at-font-sans);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}

[data-at-theme="dark"] .auth-page-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
}

@media (max-width: 767.98px) {
  .auth-page-body {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    padding: 0.35rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .auth-cover-card {
    max-width: 300px !important;
    width: 100% !important;
    max-height: calc(100vh - 0.7rem) !important;
    margin: auto !important;
    border-radius: 10px !important;
    box-shadow: 3px 3px 0px var(--at-border) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Form Side (Top Section on Mobile) */
  .auth-form-side {
    padding: 0.6rem 0.85rem !important;
    overflow: hidden !important;
  }

  .auth-logo-wrapper {
    margin-bottom: 0.2rem !important;
  }

  .auth-logo-img {
    max-height: 24px !important;
  }

  .auth-heading {
    font-size: 1.15rem !important;
    margin-bottom: 0.05rem !important;
    line-height: 1.1 !important;
  }

  .auth-subheading {
    font-size: 0.72rem !important;
    margin-bottom: 0.4rem !important;
  }

  .auth-form-label {
    font-size: 0.68rem !important;
    margin-bottom: 0.12rem !important;
  }

  .auth-form-control {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
    height: 28px !important;
    border-radius: 4px !important;
  }

  .auth-password-toggle-btn {
    font-size: 0.75rem !important;
    padding: 0 6px !important;
  }

  .auth-forgot-link,
  .auth-checkbox-text,
  .auth-bottom-text {
    font-size: 0.7rem !important;
  }

  .auth-submit-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
    margin-top: 0.15rem !important;
    height: 32px !important;
    border-radius: 6px !important;
  }

  .auth-bottom-text {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
  }

  .mb-2 {
    margin-bottom: 0.3rem !important;
  }

  .mb-3 {
    margin-bottom: 0.3rem !important;
  }

  /* Cover Side (Bottom Terracotta Section on Mobile - KEEP VISIBLE!) */
  .auth-cover-side {
    display: flex !important;
    flex-direction: column !important;
    border-left: none !important;
    border-top: 2px solid var(--at-border) !important;
    padding: 0.55rem 0.85rem !important;
    overflow: hidden !important;
  }

  .cover-badge-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0.15rem !important;
  }

  .cover-badge-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .auth-cover-main {
    margin-top: 0.15rem !important;
    margin-bottom: 0.25rem !important;
  }

  .auth-cover-title {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.15rem !important;
  }

  .auth-cover-desc {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
  }

  .auth-cover-features {
    gap: 0.2rem !important;
  }

  .auth-cover-features li {
    font-size: 0.68rem !important;
  }

  .auth-cover-features li i {
    font-size: 0.72rem !important;
  }
}

/* Top Right Action Buttons */
.auth-top-actions {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 50;
}

.auth-top-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  background: var(--at-surface);
  color: var(--at-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--at-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-top-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--at-border);
  color: var(--at-text);
}

/* Auth Cover Card Container */
.auth-cover-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  max-height: calc(100vh - 2.5rem);
  background: var(--at-surface);
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 6px 6px 10px #1a141096;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin: auto;
}

/* Abstract Animated Vectors for Auth Page */
.auth-abstract-vectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.auth-vector {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Vector 1: Top-Left Concentric Ring & Orbit */
.auth-vector-1 {
  top: -40px;
  left: -40px;
  z-index: 1;
  animation: rotateVector1 28s linear infinite, floatVector1 8s ease-in-out infinite alternate;
}

/* Vector 2: Top-Right Wavy Flow Ribbon */
.auth-vector-2 {
  top: -20px;
  right: -30px;
  z-index: 1;
  animation: floatVector2 12s ease-in-out infinite alternate;
}

/* Vector 3: Bottom-Left Glassmorphic Torus (Overlaps Card Edge) */
.auth-vector-3 {
  bottom: 30px;
  left: max(5px, calc(50% - 530px));
  z-index: 12;
  animation: floatVector3 14s ease-in-out infinite alternate;
}

/* Vector 4: Bottom-Right Dual Capsule Badge */
.auth-vector-4 {
  bottom: -35px;
  right: -45px;
  z-index: 1;
  animation: floatVector4 16s ease-in-out infinite alternate;
}

/* Vector 5: Center-Left Diamond Cross Matrix */
.auth-vector-5 {
  top: 30%;
  left: max(5px, calc(50% - 550px));
  z-index: 1;
  animation: floatVector5 20s ease-in-out infinite alternate;
}

/* Vector 6: Center-Right Starburst Spark (Overlaps Card Edge) */
.auth-vector-6 {
  top: 50%;
  right: max(10px, calc(50% - 600px));
  z-index: 12;
  animation: spinVector6 18s ease-in-out infinite alternate;
}

/* Vector 7: Bottom-Center Morphing Blob Wave */
.auth-vector-7 {
  bottom: -50px;
  left: 38%;
  z-index: 1;
  animation: floatVector7 22s ease-in-out infinite alternate;
}

/* Vector 8: Top-Center Multiple Concentric Round Wave Rings */
.auth-vector-8 {
  top: -55px;
  left: 42%;
  z-index: 12;
  animation: rotateVector8 26s linear infinite, floatVector8 8s ease-in-out infinite alternate;
}

/* Vector 9: Bottom-Left Corner Concentric Arc Burst */
.auth-vector-9 {
  bottom: -45px;
  left: -40px;
  z-index: 1;
  animation: floatVector9 18s ease-in-out infinite alternate;
}

/* Keyframe Animations */
@keyframes rotateVector1 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatVector1 {
  0% {
    transform: translateY(0px) scale(1);
  }

  100% {
    transform: translateY(22px) scale(1.06);
  }
}

@keyframes floatVector2 {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }

  50% {
    transform: translate(-25px, 18px) rotate(6deg);
  }

  100% {
    transform: translate(18px, -12px) rotate(-5deg);
  }
}

@keyframes floatVector3 {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }

  100% {
    transform: translate(24px, -30px) rotate(18deg);
  }
}

@keyframes floatVector4 {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  100% {
    transform: translate(-35px, -22px) scale(1.09);
  }
}

@keyframes floatVector5 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-35px) rotate(15deg);
  }
}

@keyframes spinVector6 {
  0% {
    transform: rotate(0deg) scale(0.92);
  }

  50% {
    transform: rotate(180deg) scale(1.12);
  }

  100% {
    transform: rotate(360deg) scale(0.92);
  }
}

@keyframes floatVector7 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-35px, -18px) scale(1.12);
  }

  100% {
    transform: translate(25px, -35px) scale(0.95);
  }
}

@keyframes rotateVector8 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatVector8 {
  0% {
    transform: translateY(0px) scale(1);
  }

  100% {
    transform: translateY(22px) scale(1.08);
  }
}

@keyframes floatVector9 {
  0% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(18px, -22px) rotate(10deg) scale(1.06);
  }

  100% {
    transform: translate(-12px, 18px) rotate(-8deg) scale(0.95);
  }
}

@media (min-width: 768px) {
  .auth-cover-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .auth-cover-card {
    max-height: none;
  }
}

/* Form Side (Left Column) */
.auth-form-side {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--at-surface);
  overflow-y: auto;
}

@media (max-width: 576px) {
  .auth-form-side {
    padding: 1.75rem 1.25rem;
  }
}

.auth-logo-wrapper {
  text-align: center;
  margin-bottom: 0.85rem;
}

.auth-logo-img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

.auth-heading {
  font-family: var(--at-font-display);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--at-ink-strong);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.auth-subheading {
  font-size: 0.88rem;
  color: var(--at-text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--at-text);
  margin-bottom: 0.3rem;
}

.auth-forgot-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--at-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-md);
  font-size: 0.9rem;
  font-family: var(--at-font-sans);
  background: var(--at-canvas);
  color: var(--at-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-control:focus {
  border-color: var(--at-accent);
  box-shadow: 2px 2px 0px var(--at-border);
}

.auth-password-wrapper {
  position: relative;
  width: 100%;
}

.auth-password-wrapper .auth-form-control {
  padding-right: 2.5rem;
}

.auth-password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--at-text-muted);
  font-size: 1rem;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-password-toggle-btn:hover {
  color: var(--at-text);
}

.auth-custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--at-text);
}

.auth-custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--at-border);
  border-radius: 4px;
  background: var(--at-canvas);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.auth-custom-checkbox input[type="checkbox"]:checked {
  background: var(--at-accent);
}

.auth-custom-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.7rem 1.25rem;
  background-color: var(--at-accent);
  color: #1a1410;
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--at-font-sans);
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--at-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--at-border);
}

.auth-bottom-text {
  font-size: 0.85rem;
  color: var(--at-text-muted);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.auth-bottom-link {
  color: var(--at-text);
  font-weight: 600;
  text-decoration: underline;
}

/* Cover Side (Right Column) */
.auth-cover-side {
  /*background: linear-gradient(180deg, #9f1239 0%, #881337 35%, #4c0519 70%, #2e020d 100%) !important;*/
  /*background-image: linear-gradient(180deg, #9f1239 0%, #881337 35%, #4c0519 70%, #2e020d 100%) !important;*/
  border-left: 2px solid #fff;
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

@media (max-width: 767.98px) {
  .auth-cover-side {
    display: flex !important;
    justify-content: center !important;
    border-left: none !important;
    border-top: 2px solid var(--at-border) !important;
    padding: 0.55rem 0.85rem !important;
  }
}

.cover-badge-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #1a1410;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
}

.auth-cover-main {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.auth-cover-title {
  font-family: var(--at-font-display);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.12;
  color: #fbf7ee;
  margin-bottom: 0.85rem;
}

.auth-cover-desc {
  font-size: 0.95rem;
  line-height: 1.48;
  color: #fbf7ee;
  opacity: 0.95;
}

.auth-cover-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-cover-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fbf7ee;
}

.auth-cover-features li i {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fbf7ee;
}

.auth-cover-features hr {
  margin: 0.35rem 0;
  border: 0;
  border-top: 1.5px solid #fbf7ee;
  opacity: 0.55;
  background: transparent;
}

/* Dark Mode Text Override for Auth Cover Banner */
[data-at-theme="dark"] .auth-cover-title,
[data-at-theme="dark"] .auth-cover-desc,
[data-at-theme="dark"] .auth-cover-features li,
[data-at-theme="dark"] .auth-cover-features li i {
  color: #ffffff !important;
}

[data-at-theme="dark"] .auth-cover-features hr {
  border-top-color: #ffffff !important;
  opacity: 0.75 !important;
}

/* CUSTOM BUTTON VARIANTS & PILL BADGES */
.at-btn,
.btn_primary,
.btn_secondary,
.btn_success,
.btn_danger,
.btn_warning,
.btn_info,
.btn_light,
.btn_dark,
.btn_link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 38px;
  padding: 0 10px;
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: 6px;
  box-shadow: 3px 3px 0px var(--at-border);
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.at-btn:hover,
.btn_primary:hover,
.btn_secondary:hover,
.btn_success:hover,
.btn_danger:hover,
.btn_warning:hover,
.btn_info:hover,
.btn_light:hover,
.btn_dark:hover,
.btn_link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--at-border);
  color: var(--at-text-strong);
}

.at-btn:active,
.btn_primary:active,
.btn_secondary:active,
.btn_success:active,
.btn_danger:active,
.btn_warning:active,
.btn_info:active,
.btn_light:active,
.btn_dark:active,
.btn_link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--at-border);
}

/* Primary */
.at-btn--primary, .btn_primary, .btn-primary, button[type="submit"] {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(110, 80, 20, 0.4), inset 0 -2px 5px 1px rgba(139, 66, 8, 1), inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    background-image: linear-gradient(160deg,  #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07) !important;
    border: 1px solid #a55d07 !important;  color: rgb(120, 50, 5);  text-shadow: 0 2px 2px rgba(250, 227, 133, 1);  cursor: pointer;
    transition: all 0.2s ease-in-out;  background-size: 100% 100%;  background-position: center;box-sizing: border-box; border-radius: 5px;outline: none;
}
.at-btn--primary *,
.btn_primary *,
.btn-primary *,
button[type="submit"] *,
.at-btn--primary i,
.btn_primary i,
.btn-primary i,
button[type="submit"] i {
  color: #002858 !important;
  font-weight: 800 !important;
}

.at-btn--primary:hover,
.btn_primary:hover,
.btn-primary:hover,
button[type="submit"]:hover {
  /*background: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #4caf50 85%, #4caf50 100%) !important;*/
  /*background-image: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #4caf50 85%, #4caf50 100%) !important;*/
  /*color: #261302 !important;*/
  /*transform: translateY(-1px) !important;*/
  /*box-shadow: 0 6px 16px rgba(180, 83, 9, 0.5) !important;*/
    background-size: 150% 150%; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23), inset 0 -2px 5px 1px #b17d10,
       inset 0 -1px 1px 3px rgba(250, 227, 133, 1);  border: 1px solid rgba(165, 93, 7, 0.6); color: rgba(120, 50, 5, 0.8);}

.at-btn--primary:hover *,
.btn_primary:hover *,
.btn-primary:hover *,
button[type="submit"]:hover *,
.at-btn--primary:hover i,
.btn_primary:hover i,
.btn-primary:hover i,
button[type="submit"]:hover i {
  color: #261302 !important;
  font-weight: 800 !important;
}

/* Secondary */
.at-btn--secondary,
.btn_secondary {
  background: #f4a261 !important;
  color: #1a1410 !important;
}

.at-btn--secondary:hover,
.btn_secondary:hover {
  background: #e7914e !important;
  color: #1a1410 !important;
}

/* Success */
.at-btn--success,
.btn_success {
  background: #2e6f40 !important;
  color: #ffffff !important;
}

.at-btn--success:hover,
.btn_success:hover {
  background: #255d35 !important;
  color: #ffffff !important;
}

/* Danger */
.at-btn--danger,
.btn_danger {
  background: #912727 !important;
  color: #ffffff !important;
}

.at-btn--danger:hover,
.btn_danger:hover {
  background: #7d2020 !important;
  color: #ffffff !important;
}

/* Warning */
.at-btn--warning,
.btn_warning {
  background: #c68b29 !important;
  color: #ffffff !important;
}

.at-btn--warning:hover,
.btn_warning:hover {
  background: #b07a21 !important;
  color: #ffffff !important;
}

/* Info */
.at-btn--info,
.btn_info {
  background: #2c7a7b !important;
  color: #ffffff !important;
}

.at-btn--info:hover,
.btn_info:hover {
  background: #236566 !important;
  color: #ffffff !important;
}

/* Light */
.at-btn--light,
.btn_light {
  background: var(--at-surface) !important;
  color: var(--at-text-strong) !important;
}

.at-btn--light:hover,
.btn_light:hover {
  background: var(--at-surface-subtle) !important;
}

/* Dark */
.at-btn--dark,
.btn_dark {
  background: #1a1410 !important;
  color: #f3ebda !important;
}

.at-btn--dark:hover,
.btn_dark:hover {
  background: #2d241d !important;
  color: #ffffff !important;
}

/* Link */
.at-btn--link,
.btn_link {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--at-accent) !important;
  text-decoration: underline !important;
}

.at-btn--link:hover,
.btn_link:hover {
  transform: none !important;
  color: var(--at-text-strong) !important;
}

/* BUTTON PILLS (ATTACHED BADGES: UPPER, LOWER, LEFT & RIGHT) */
.at-btn-pill {
  font-family: var(--at-font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 9999px;
  border: 1.5px solid var(--at-border);
  box-shadow: 1.5px 1.5px 0px var(--at-border);
  background: var(--at-accent);
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.at-btn-pill--top-right {
  position: absolute;
  top: -10px;
  right: -10px;
}

.at-btn-pill--top-left {
  position: absolute;
  top: -10px;
  left: -10px;
}

.at-btn-pill--bottom-right {
  position: absolute;
  bottom: -10px;
  right: -10px;
}

.at-btn-pill--bottom-left {
  position: absolute;
  bottom: -10px;
  left: -10px;
}

.at-btn-pill--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
}

.at-btn-pill--danger {
  background: #912727 !important;
  color: #ffffff !important;
}

.at-btn-pill--success {
  background: #2e6f40 !important;
  color: #ffffff !important;
}

.at-btn-pill--warning {
  background: #c68b29 !important;
  color: #ffffff !important;
}

.at-btn-pill--info {
  background: #2c7a7b !important;
  color: #ffffff !important;
}

.at-btn-pill--dark {
  background: #1a1410 !important;
  color: #f3ebda !important;
}

.at-btn-pill--light {
  background: #fcf8ef !important;
  color: #1a1410 !important;
}

/* SQUARE TAG FOR AMOUNT COLUMN */
.at-amount-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--at-surface);
  color: var(--at-text-strong);
  border: 2px solid var(--at-border);
  border-radius: 4px;
  box-shadow: 2px 2px 0px var(--at-border);
  font-family: var(--at-font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-amount-tag:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border);
}

/* ROUNDED ACTION BUTTONS & POPUP TOGGLE PILL TOOLTIP */
.at-action-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.at-action-btn {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--at-border) !important;
  box-shadow: 2px 2px 0px var(--at-border) !important;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.at-action-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border) !important;
}

.at-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--at-border) !important;
}

/* Action button color themes */
.at-action-btn--primary {
  background: #e07a5f !important;
  color: #ffffff !important;
}

.at-action-btn--success {
  background: #198754 !important;
  color: #ffffff !important;
}

.at-action-btn--info {
  background: #2c7a7b !important;
  color: #ffffff !important;
}

.at-action-btn--secondary {
  background: #f4a261 !important;
  color: #1a1410 !important;
}

.at-action-btn--warning {
  background: #c68b29 !important;
  color: #ffffff !important;
}

.at-action-btn--danger {
  background: #912727 !important;
  color: #ffffff !important;
}

.at-action-btn--dark {
  background: #1a1410 !important;
  color: #f3ebda !important;
}

[data-at-theme="dark"] .at-action-btn--dark {
  background: #343a40 !important;
  color: #ffffff !important;
}

/* Popup toggle pill tooltip */
.at-action-tooltip {
  position: absolute;
  top: 50%;
  right: 100%;
  bottom: auto;
  left: auto;
  transform: translateY(-50%) translateX(4px) scale(0.85);
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 2px 2px 0px #0f172a !important;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 99;
}

.at-action-btn:hover .at-action-tooltip,
.at-action-btn:focus .at-action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-6px) scale(1);
}

/* Perfect Dead-Center Filter Header Layout Grid */
.at-filter-header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 991.98px) {
  .at-filter-header-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .at-card-title-middle {
    order: -1;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Compact Show Rows Dropdown */
.at-select-rows {
  width: auto !important;
  min-width: 96px !important;
  max-width: 110px !important;
  height: 36px !important;
  padding: 4px 26px 4px 10px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border: 2px solid var(--at-border) !important;
  border-radius: var(--at-radius-sm) !important;
  background-color: var(--at-surface) !important;
  color: var(--at-text-strong) !important;
  cursor: pointer;
}

/* NEO-BRUTALIST USER DROPDOWN MENU */
.user-profile-btn::after {
  display: none !important;
}

.at-user-dropdown-menu {
  background: var(--at-surface) !important;
  border: 2px solid var(--at-border) !important;
  border-radius: var(--at-radius-md) !important;
  box-shadow: 4px 4px 0px var(--at-border) !important;
  padding: 8px 6px !important;
  min-width: 210px !important;
  margin-top: 8px !important;
}

.at-user-dropdown-menu .dropdown-item {
  color: var(--at-text-strong) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: transparent;
}

.at-user-dropdown-menu .dropdown-item:hover,
.at-user-dropdown-menu .dropdown-item:focus {
  background: var(--at-surface-subtle) !important;
  color: var(--at-text-strong) !important;
  transform: translateX(3px);
}

.at-user-dropdown-menu .dropdown-item.text-danger {
  color: #912727 !important;
}

.at-user-dropdown-menu .dropdown-item.text-danger:hover {
  background: rgba(145, 39, 39, 0.12) !important;
  color: #912727 !important;
}

.at-user-dropdown-menu .dropdown-divider {
  border-top: 2px solid var(--at-border) !important;
  opacity: 1 !important;
  margin: 6px 0 !important;
}

[data-at-theme="dark"] .at-user-dropdown-menu {
  background: var(--at-surface) !important;
  border-color: var(--at-border) !important;
  box-shadow: 4px 4px 0px var(--at-border) !important;
}

[data-at-theme="dark"] .at-user-dropdown-menu .dropdown-item.text-danger {
  color: #e07a5f !important;
}

[data-at-theme="dark"] .at-user-dropdown-menu .dropdown-item.text-danger:hover {
  background: rgba(224, 122, 95, 0.2) !important;
  color: #e07a5f !important;
}

/* SMOOTH SIDEBAR TOGGLE ICON ANIMATION & ROTATION */
#sidebarToggle {
  position: relative;
  overflow: hidden;
}

.at-toggle-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.at-toggle-icon-wrap i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default State on Desktop: OPEN (Left Arrow visible, 3-Line hidden) */
.at-toggle-icon-wrap .icon-arrow {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
}

.at-toggle-icon-wrap .icon-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.4) !important;
}

/* Collapsed State on Desktop (3-Line Menu visible, Left Arrow hidden) */
.at-shell.is-collapsed .at-toggle-icon-wrap .icon-arrow {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4) !important;
}

.at-shell.is-collapsed .at-toggle-icon-wrap .icon-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
}

/* Mobile & Tablet Screens (max-width: 991.98px): Default Closed (3-Line visible) */
@media (max-width: 991.98px) {
  .at-toggle-icon-wrap .icon-arrow {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.4) !important;
  }

  .at-toggle-icon-wrap .icon-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
  }

  /* Mobile Open State: Arrow visible */
  body.is-mobile-sidebar-open .at-toggle-icon-wrap .icon-arrow {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
  }

  body.is-mobile-sidebar-open .at-toggle-icon-wrap .icon-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.4) !important;
  }
}

/* Mobile Screen View: Table Footer Pagination & Showing Count Right Alignment */
@media (max-width: 767.98px) {
  .pagination-row {
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    text-align: right !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .pagination-row .showing-text {
    text-align: right !important;
    width: 100% !important;
  }

  .pagination-row .at-pagination {
    justify-content: flex-end !important;
    margin-left: auto !important;
  }
}

/* Mobile Screen View: 2 Cards Per Row Optimizations */
@media (max-width: 575.98px) {
  .at-kpi {
    padding: 10px 8px !important;
    gap: 8px !important;
  }

  .at-kpi__icon-box {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 1.2rem !important;
    border-radius: 10px !important;
    box-shadow: 2px 2px 0px var(--at-border) !important;
  }

  .at-kpi__label {
    font-size: 0.58rem !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 2px !important;
  }

  .at-kpi__value {
    font-size: 1rem !important;
    margin-bottom: 2px !important;
  }

  .at-btn-visit {
    padding: 3px 6px !important;
    font-size: 0.5rem !important;
    line-height: 1 !important;
    border-radius: 4px !important;
  }
}

/* ============================================================
   PRODUCT ADD FORM & RICH TEXT EDITOR COMPONENTS
   ============================================================ */

/* Form Input & Label Base */
.at-form-label {
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.at-form-input {
  background: var(--at-surface) !important;
  color: var(--at-text-strong) !important;
  border: 2px solid var(--at-border) !important;
  border-radius: var(--at-radius-sm) !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.at-form-input:focus {
  border-color: var(--at-accent) !important;
  box-shadow: 3px 3px 0px var(--at-border) !important;
}

/* Enhanced Theme-Matched Select Input Controls & Custom Dropdown Arrow */
select.form-select,
select.at-form-input,
select.at-select-rows,
.at-form-input select,
.at-modal-content select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--at-surface, #FFFDF9) !important;
  color: var(--at-text-strong, #2B2927) !important;
  border: 2px solid var(--at-border, #1C1917) !important;
  border-radius: var(--at-radius-sm, 8px) !important;
  padding: 5px 38px 8px 14px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232B2927' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s ease !important;
  box-shadow: 2px 2px 0px var(--at-border, #1C1917) !important;
}

select.form-select:hover,
select.at-form-input:hover,
select.at-select-rows:hover,
.at-modal-content select:hover {
  border-color: var(--at-accent, #E15B28) !important;
}

select.form-select:focus,
select.at-form-input:focus,
select.at-select-rows:focus,
.at-modal-content select:focus {
  border-color: var(--at-accent, #E15B28) !important;
  box-shadow: 0 0 0 3px rgba(225, 91, 40, 0.2) !important;
  outline: none !important;
}

/* Styled Dropdown Options */
select.form-select option,
select.at-form-input option,
select.at-select-rows option,
.at-modal-content select option {
  color: var(--at-text-strong, #2B2927) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

/* Dark Mode Select Control & Arrow */
[data-at-theme="dark"] select.form-select,
[data-at-theme="dark"] select.at-form-input,
[data-at-theme="dark"] select.at-select-rows,
[data-at-theme="dark"] .at-modal-content select,
[data-at-theme="dark"] select,
body.dark-mode select.form-select,
body.dark-mode select.at-form-input,
body.dark-mode select.at-select-rows,
body.dark-mode .at-modal-content select,
[data-bs-theme="dark"] select.form-select,
[data-bs-theme="dark"] select.at-form-input {
  background-color: var(--at-surface, #1C1917) !important;
  color: var(--at-text-strong, #F5F5F4) !important;
  border-color: var(--at-border, #44403C) !important;
  box-shadow: 2px 2px 0px var(--at-border, #44403C) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E7E5E4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-at-theme="dark"] select.form-select option,
[data-at-theme="dark"] select.at-form-input option,
[data-at-theme="dark"] select.at-select-rows option,
[data-at-theme="dark"] .at-modal-content select option,
[data-at-theme="dark"] select option,
body.dark-mode select.form-select option,
body.dark-mode select.at-form-input option,
body.dark-mode select.at-select-rows option,
body.dark-mode .at-modal-content select option,
[data-bs-theme="dark"] select.form-select option,
[data-bs-theme="dark"] select.at-form-input option {
  color: var(--at-text-strong, #F5F5F4) !important;
}

/* Custom Searchable Select Dropdown */
.at-search-select {
  position: relative;
}

.at-search-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--at-surface);
  color: var(--at-text-strong);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.at-search-select__trigger:hover {
  box-shadow: 2px 2px 0px var(--at-border);
}

.at-search-select.is-open {
  z-index: 999999 !important;
}

.at-search-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  box-shadow: 4px 4px 0px var(--at-border);
  z-index: 9999999 !important;
  padding: 8px;
  display: none;
}

.at-search-select.is-open .at-search-select__menu {
  display: block;
  animation: atDropdownFade 0.15s ease;
}

.at-search-select.open-up .at-search-select__menu {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 4px -4px 0px var(--at-border);
}

.at-search-select__search {
  margin-bottom: 8px;
}

.at-search-select__options {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.at-search-select__option {
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--at-text-strong);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.at-search-select__option:hover,
.at-search-select__option.is-selected {
  background: var(--at-accent) !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Accent color for select inputs */
select {
  accent-color: var(--at-accent, #E15B28);
}

/* Custom Neo-Brutalist Radio & Checkbox Cards */
.at-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.at-choice-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--at-text-strong);
  box-shadow: 2px 2px 0px var(--at-border);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.at-choice-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--at-border);
}

.at-choice-card input[type="radio"],
.at-choice-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--at-border);
  background: var(--at-canvas);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.at-choice-card input[type="radio"] {
  border-radius: 50%;
}

.at-choice-card input[type="checkbox"] {
  border-radius: 4px;
}

.at-choice-card input[type="radio"]:checked {
  background: var(--at-accent);
  box-shadow: inset 0 0 0 3px var(--at-surface);
}

.at-choice-card input[type="checkbox"]:checked {
  background: var(--at-accent);
}

.at-choice-card input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.at-choice-card:has(input:checked) {
  background: var(--at-surface-subtle);
  border-color: var(--at-border);
}

/* Image Drag-and-Drop & Preview Zone */
.at-image-dropzone {
  border: 2px dashed var(--at-border);
  border-radius: var(--at-radius-md);
  padding: 24px 16px;
  text-align: center;
  background: var(--at-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.at-image-dropzone:hover,
.at-image-dropzone.is-dragover {
  border-color: var(--at-accent);
  background: var(--at-surface-subtle);
}

.at-image-preview-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-md);
  box-shadow: 3px 3px 0px var(--at-border);
}

.at-image-preview-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--at-border);
  border-radius: 8px;
  box-shadow: 2px 2px 0px var(--at-border);
}

/* Class-Driven Summer Editor Wrapper */
.at-editor-container {
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-md);
  background: var(--at-surface);
  box-shadow: 3px 3px 0px var(--at-border);
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
}

.at-editor-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--at-surface) !important;
  margin: 0 !important;
}

.at-editor-container.is-fullscreen .at-editor-toolbar {
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  background: var(--at-surface-subtle) !important;
  border-bottom: 2px solid var(--at-border) !important;
}

.at-editor-container.is-fullscreen .at-editor-content {
  flex: 1 1 auto !important;
  height: calc(100vh - 65px) !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  background: var(--at-surface) !important;
}

.at-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--at-surface-subtle);
  border-bottom: 2px solid var(--at-border);
}

/* Table, Image & iFrame Quick Customization Bars */
.at-table-tools-bar,
.at-image-tools-bar,
.at-iframe-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--at-surface-subtle);
  border-bottom: 2px solid var(--at-border);
  font-size: 0.8rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  transition: all 0.2s ease;
}

.at-table-btn {
  height: 26px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--at-surface);
  color: var(--at-text-strong);
  border: 1.5px solid var(--at-border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1px 1px 0px var(--at-border);
  transition: transform 0.1s ease, background 0.12s ease;
}

.at-table-btn:hover {
  background: var(--at-canvas);
  transform: translate(-1px, -1px);
}

.at-editor-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: var(--at-surface);
  border: 1.5px solid var(--at-border);
  border-radius: 6px;
  box-shadow: 1.5px 1.5px 0px var(--at-border);
}

.at-editor-select {
  height: 32px;
  padding: 2px 24px 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--at-text-strong);
  cursor: pointer;
  outline: none;
}

.at-editor-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--at-surface);
  color: var(--at-text-strong);
  border: 1.5px solid var(--at-border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px var(--at-border);
  transition: transform 0.1s ease, background 0.12s ease;
  user-select: none;
}

.at-editor-btn:hover {
  background: var(--at-canvas);
  transform: translate(-1px, -1px);
}

.at-editor-btn.is-active {
  background: var(--at-accent);
  color: #ffffff;
}

.at-editor-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  height: 30px;
  border: 1.5px solid var(--at-border);
  border-radius: 4px;
  background: var(--at-surface);
  box-shadow: 1.5px 1.5px 0px var(--at-border);
  cursor: pointer;
  font-size: 0.85rem;
}

.at-editor-color-picker {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--at-border);
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
}

.at-editor-content,
textarea.at-rich-editor {
  height: 20rem;
  min-height: 20rem;
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--at-text-strong);
  outline: none;
  background: var(--at-surface);
}

.at-editor-content:empty::before {
  content: attr(data-placeholder);
  color: var(--at-text-muted);
}

/* Content Element Formatting inside Summer Editor */
.at-editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  border: 2px solid var(--at-border);
  box-shadow: 3px 3px 0px var(--at-border);
}

.at-editor-content th,
.at-editor-content td {
  border: 1.5px solid var(--at-border);
  padding: 8px 12px;
  font-size: 0.85rem;
}

.at-editor-content th {
  background: var(--at-surface-subtle);
  font-weight: 800;
}

.at-editor-content img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  display: inline-block;
  vertical-align: middle;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: outline 0.15s ease, transform 0.2s ease;
}

.at-editor-content img.is-selected {
  outline: 3px solid var(--at-accent) !important;
  outline-offset: 2px !important;
}

.at-editor-content .at-editor-iframe-wrap {
  position: relative;
  width: 100%;
  margin: 12px 0;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: outline 0.15s ease;
}

.at-editor-content .at-editor-iframe-wrap.is-selected {
  outline: 3px solid var(--at-accent) !important;
  outline-offset: 3px !important;
}

.at-editor-content .at-editor-iframe-wrap iframe {
  display: none !important;
}

.at-editor-content iframe {
  width: 100%;
  border: none;
}

/* Summer Editor Modal Dialog Overlays */
.at-editor-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 10000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.at-editor-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.at-editor-modal-dialog {
  width: 100%;
  max-width: 520px;
  background: var(--at-surface);
  border: 3px solid var(--at-border);
  border-radius: var(--at-radius-md);
  box-shadow: 6px 6px 0px var(--at-border);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.2s ease;
}

.at-editor-modal-overlay.is-open .at-editor-modal-dialog {
  transform: scale(1);
}

.at-editor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--at-surface-subtle);
  border-bottom: 2px solid var(--at-border);
}

.at-editor-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--at-text-strong);
}

.at-editor-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--at-text-strong);
  cursor: pointer;
  line-height: 1;
}

.at-editor-modal-body {
  padding: 18px;
}

.at-editor-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background: var(--at-surface-subtle);
  border-top: 2px solid var(--at-border);
}

/* NEO-BRUTALIST PRODUCT ADD MODAL COMPONENT */
.at-modal-content {
  background: var(--at-surface);
  border: 3px solid var(--at-border);
  border-radius: var(--at-radius-lg);
  box-shadow: 6px 6px 0px var(--at-border);
  color: var(--at-text);
  overflow: hidden;
}

.at-modal-header {
  background: var(--at-surface-subtle);
  border-bottom: 2px solid var(--at-border);
  padding: 6px 14px;
}

.at-modal-body {
  background: var(--at-surface);
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.at-modal-content.has-open-dropdown,
.modal-content.has-open-dropdown,
.at-modal-body.has-open-dropdown,
.modal-body.has-open-dropdown,
.modal-dialog.has-open-dropdown,
.modal.has-open-dropdown,
.at-modal-content:has(.at-search-select.is-open),
.modal-content:has(.at-search-select.is-open),
.at-modal-body:has(.at-search-select.is-open),
.modal-body:has(.at-search-select.is-open),
.at-card:has(.at-search-select.is-open) {
  overflow: visible !important;
}

.at-modal-footer {
  background: var(--at-surface-subtle);
  border-top: 2px solid var(--at-border);
  padding: 6px 14px;
}

/* TABLE PRODUCT IMAGE CLICKABLE & DISABLED STYLES */
.at-table-img-link {
  display: inline-block;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.at-table-img-link:hover {
  transform: scale(1.12);
  z-index: 2;
}

.at-table-img--clickable {
  width: 42px;
  height: 42px;
  object-fit: cover;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.at-table-img-link:hover .at-table-img--clickable {
  border-color: var(--at-accent, #6366f1) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.at-table-img-disabled {
  display: inline-block;
  position: relative;
  cursor: not-allowed;
}

.at-table-img--disabled {
  width: 42px;
  height: 42px;
  object-fit: cover;
  cursor: not-allowed !important;
  filter: grayscale(15%);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.at-table-img-disabled:hover .at-table-img--disabled {
  opacity: 1;
  filter: grayscale(0%);
}

/* FORM EXISTING IMAGE DISPLAY (for forms like About Us) */
.at-form-existing-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 141px;
  background: var(--at-surface);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-md);
  padding: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 2px 2px 0px var(--at-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.at-form-existing-img-wrap:hover {
  border-color: var(--at-accent);
}

.at-form-existing-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: var(--at-radius-sm);
}

.at-form-existing-img-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 141px;
  background: var(--at-surface);
  border: 2px dashed var(--at-border);
  border-radius: var(--at-radius-md);
  padding: 6px;
  cursor: not-allowed;
  opacity: 0.75;
}

.at-form-existing-img--disabled {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
}


/* NEO-BRUTALIST MAGNIFIC POPUP PLAY BUTTON */
.at-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--at-text-strong);
  background: var(--at-surface-subtle);
  border: 2px solid var(--at-border);
  border-radius: var(--at-radius-sm);
  box-shadow: 2px 2px 0px var(--at-border);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.at-play-btn i {
  color: #ff0000;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.18s ease;
}

.at-play-btn:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: var(--at-border);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--at-border);
}

.at-play-btn:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

/* ============================================================
   CUSTOM DASHBOARD SWEETALERT POPUP STYLES
   Compact modal size, dashboard background surface, borders & buttons
   ============================================================ */

/* 1. Backdrop Overlay */
.swal-overlay,
.swal2-container {
  background-color: rgba(26, 20, 16, 0.65) !important;
  backdrop-filter: blur(2px);
}

/* 2. Main Modal Box (Smaller compact size & Dashboard Surface) */
.swal-modal,
.swal2-popup {
  max-width: 400px !important;
  width: 90% !important;
  background-color: var(--at-surface, #fcf8ef) !important;
  border: 2px solid var(--at-border, #1a1410) !important;
  border-radius: 12px !important;
  box-shadow: 5px 5px 0px var(--at-border, #1a1410) !important;
  padding: 22px 18px !important;
  color: var(--at-text-strong, #1a1410) !important;
}

/* 3. Title Styling */
.swal-title,
.swal2-title {
  color: var(--at-text-strong, #1a1410) !important;
  font-family: var(--at-font-sans, inherit) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

/* 4. Content & Text Styling */
.swal-text,
.swal2-html-container,
.swal2-content {
  color: var(--at-text-muted, #6b6355) !important;
  font-family: var(--at-font-sans, inherit) !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  margin-bottom: 12px !important;
}

/* 5. Icon Size Tuning & Transparent Backgrounds for Dark Theme */
.swal-icon,
.swal2-icon {
  margin: 10px auto 5px auto !important;
  transform: scale(0.85);
}

.swal-icon img,
.swal2-icon img {
  display: none !important;
}

.swal-icon--success::before,
.swal-icon--success::after,
.swal-icon--success .swal-icon--success__fix,
.swal-icon--success__hide-corners,
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
  background-color: transparent !important;
  background: transparent !important;
}

/* 6. Buttons Area */
.swal-footer,
.swal2-actions {
  margin-top: 16px !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* 7. Buttons Design System Styling */
.swal-button,
.swal2-confirm,
.swal2-cancel {
  font-family: var(--at-font-sans, inherit) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  border: 2px solid var(--at-border, #1a1410) !important;
  box-shadow: 2px 2px 0px var(--at-border, #1a1410) !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

/* Primary / Confirm Button */
.swal-button:not(.swal-button--cancel),
.swal2-confirm {
  background-color: var(--at-accent, #e07a5f) !important;
  color: #ffffff !important;
}

.swal-button:not(.swal-button--cancel):hover,
.swal2-confirm:hover {
  background-color: var(--at-accent, #e07a5f) !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px var(--at-border, #1a1410) !important;
}

/* Cancel Button */
.swal-button--cancel,
.swal2-cancel {
  background-color: var(--at-surface-subtle, #ebdcb9) !important;
  color: var(--at-text-strong, #1a1410) !important;
}

.swal-button--cancel:hover,
.swal2-cancel:hover {
  background-color: var(--at-canvas, #f3ebda) !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px var(--at-border, #1a1410) !important;
}

/* Danger Button */
.swal-button--danger {
  background-color: #e63946 !important;
  color: #ffffff !important;
}

/* 8. Input Fields in Prompt Modals */
.swal-content__input,
.swal2-input {
  background-color: var(--at-canvas, #f3ebda) !important;
  border: 2px solid var(--at-border, #1a1410) !important;
  border-radius: 6px !important;
  color: var(--at-text-strong, #1a1410) !important;
  font-family: var(--at-font-sans, inherit) !important;
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
}

/* ============================================================
   DARK THEME SPECIFIC OVERRIDES FOR SWEETALERT
   ============================================================ */
[data-at-theme="dark"] .swal-modal,
[data-at-theme="dark"] .swal2-popup {
  background-color: var(--at-surface, #27221e) !important;
  border-color: var(--at-border, #f3ebda) !important;
  box-shadow: 5px 5px 0px var(--at-border, #f3ebda) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .swal-title,
[data-at-theme="dark"] .swal2-title {
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .swal-text,
[data-at-theme="dark"] .swal2-html-container,
[data-at-theme="dark"] .swal2-content {
  color: var(--at-text-muted, #c4b8aa) !important;
}

[data-at-theme="dark"] .swal-button--cancel,
[data-at-theme="dark"] .swal2-cancel {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: var(--at-border, #f3ebda) !important;
  box-shadow: 2px 2px 0px var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .swal-button--cancel:hover,
[data-at-theme="dark"] .swal2-cancel:hover {
  background-color: var(--at-canvas, #1c1815) !important;
  box-shadow: 4px 4px 0px var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .swal-button:not(.swal-button--cancel),
[data-at-theme="dark"] .swal2-confirm {
  background-color: var(--at-accent, #e07a5f) !important;
  color: #ffffff !important;
  border-color: var(--at-border, #f3ebda) !important;
  box-shadow: 2px 2px 0px var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .swal-button:not(.swal-button--cancel):hover,
[data-at-theme="dark"] .swal2-confirm:hover {
  background-color: var(--at-accent, #e07a5f) !important;
  box-shadow: 4px 4px 0px var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .swal-content__input,
[data-at-theme="dark"] .swal2-input {
  background-color: var(--at-canvas, #1c1815) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .swal-icon--info {
  border-color: #4cc9f0 !important;
}

[data-at-theme="dark"] .swal-icon--info::before,
[data-at-theme="dark"] .swal-icon--info::after {
  background-color: #4cc9f0 !important;
}

/* HIDE DROPDOWN CARET FOR LANGUAGE BUTTON */
.no-caret::after {
  display: none !important;
}

/* COMPACT LANGUAGE DROPDOWN MENU */
.at-lang-dropdown-menu {
  min-width: 75px !important;
  width: 75px !important;
  padding: 4px !important;
  border-radius: 8px !important;
  border: 2px solid var(--at-border) !important;
  background: var(--at-surface) !important;
  box-shadow: 2px 2px 0px var(--at-border) !important;
}

.at-lang-dropdown-menu .dropdown-item {
  padding: 4px 6px !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
}

.at-lang-dropdown-menu .dropdown-item:hover {
  background: var(--at-surface-subtle) !important;
  color: var(--at-text-strong) !important;
}

/* ============================================================
   ALEX NAGHAVI INERTIA SMOOTH SCROLL (LENIS INTEGRATION)
   ============================================================ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent],
.lenis.lenis-smooth textarea,
.lenis.lenis-smooth .at-editor-content,
.lenis.lenis-smooth .at-editor-container {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Sleek custom main page scrollbar (Matching Sidebar Scrollbar) */
html,
body {
  -ms-overflow-style: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(224, 122, 95, 0.4) var(--at-canvas) !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  display: block !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--at-canvas) !important;
  border-left: 1px solid var(--at-surface-subtle) !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(224, 122, 95, 0.4) !important;
  border: 1.5px solid var(--at-border) !important;
  border-radius: var(--at-radius-pill) !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--at-accent) !important;
  border-color: var(--at-border) !important;
}

/* ============================================================
   GOOGLE TRANSLATE TOP BAR STYLING
   ============================================================ */
body.at-layout,
.at-sidebar,
.at-header {
  transition: top 0.2s ease;
}

/* Position Google Translate iframe banner cleanly at top when present */
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 40px !important;
  position: fixed !important;
  z-index: 99999 !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-te-gadget,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

font {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* PERSISTENT FULLSCREEN LAYOUT MODE */
html.at-fullscreen-mode,
html.at-fullscreen-mode body {
  width: 100% !important;
  min-height: 100vh !important;
}

.swal2-container {
  z-index: 999999 !important;
}

/* ============================================================
   ATELIER MODAL STYLING & DARK MODE OVERRIDES
   ============================================================ */
.modal-content,
.at-modal-content {
  background-color: var(--at-surface) !important;
  color: var(--at-text-strong) !important;
  border: var(--at-border-w, 2px) solid var(--at-border) !important;
  border-radius: var(--at-radius-lg, 12px) !important;
  box-shadow: var(--at-shadow-6, 6px 6px 0px var(--at-border)) !important;
  overflow: hidden;
}

.modal-header,
.at-modal-header {
  /* background-color: var(--at-surface) !important; */
  border-bottom: var(--at-border-w, 2px) solid var(--at-border) !important;
  color: var(--at-text-strong) !important;
}

.modal-body,
.at-modal-body {
  background-color: var(--at-surface) !important;
  color: var(--at-text) !important;
}

.modal-footer,
.at-modal-footer {
  /* background-color: var(--at-surface) !important; */
  border-top: var(--at-border-w, 2px) solid var(--at-border) !important;
  color: var(--at-text) !important;
}

/* Modal Inner Cards & Light Utility Box Overrides */
.modal-content .bg-light,
.at-modal-content .bg-light {
  background-color: var(--at-canvas) !important;
  color: var(--at-text-strong) !important;
  border-color: var(--at-border) !important;
}

/* DARK MODE SPECIFIC MODAL OVERRIDES */
[data-at-theme="dark"] .modal-content,
[data-at-theme="dark"] .at-modal-content {
  background-color: var(--at-surface, #27221e) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .modal-header,
[data-at-theme="dark"] .at-modal-header,
[data-at-theme="dark"] .modal-body,
[data-at-theme="dark"] .at-modal-body,
[data-at-theme="dark"] .modal-footer,
[data-at-theme="dark"] .at-modal-footer {
  background-color: var(--at-surface, #27221e) !important;
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .modal-header {
  border-bottom-color: var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .modal-footer {
  border-top-color: var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .modal-content .bg-light,
[data-at-theme="dark"] .at-modal-content .bg-light,
[data-at-theme="dark"] .bg-light {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-text-strong, #ffffff) !important;
  border-color: var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .modal-content h1,
[data-at-theme="dark"] .modal-content h2,
[data-at-theme="dark"] .modal-content h3,
[data-at-theme="dark"] .modal-content h4,
[data-at-theme="dark"] .modal-content h5,
[data-at-theme="dark"] .modal-content h6,
[data-at-theme="dark"] .modal-content p,
[data-at-theme="dark"] .modal-content div,
[data-at-theme="dark"] .modal-content .fw-bold,
[data-at-theme="dark"] .modal-content .font-bold {
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .modal-content label,
[data-at-theme="dark"] .modal-content .text-muted,
[data-at-theme="dark"] .modal-content .at-muted,
[data-at-theme="dark"] .modal-content .at-form-label {
  color: var(--at-text-muted, #c4b8aa) !important;
}

[data-at-theme="dark"] .modal-content .border {
  border-color: var(--at-border, #f3ebda) !important;
}

/* Modal close button styling handled above */

/* ============================================================
   DROPDOWN MENUS (LANGUAGE SELECTOR, USER PROFILE, ETC.)
   ============================================================ */
.dropdown-menu,
.at-lang-dropdown-menu,
.at-user-dropdown-menu {
  background-color: var(--at-surface) !important;
  border: var(--at-border-w, 2px) solid var(--at-border) !important;
  border-radius: var(--at-radius-md, 8px) !important;
  box-shadow: var(--at-shadow-3, 3px 3px 0px var(--at-border)) !important;
  padding: 4px 0 !important;
  min-width: 110px;
}

.dropdown-item,
.lang-option {
  color: var(--at-text-strong) !important;
  font-family: var(--at-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.lang-option:hover,
.lang-option:focus {
  background-color: var(--at-accent-wash, rgba(224, 122, 95, 0.15)) !important;
  color: var(--at-accent, #e07a5f) !important;
}

.dropdown-item.active,
.dropdown-item:active,
.lang-option-item.active .lang-option {
  background-color: var(--at-accent) !important;
  color: var(--at-on-accent, #ffffff) !important;
}

/* DARK MODE SPECIFIC DROPDOWN OVERRIDES */
[data-at-theme="dark"] .dropdown-menu,
[data-at-theme="dark"] .at-lang-dropdown-menu,
[data-at-theme="dark"] .at-user-dropdown-menu {
  background-color: var(--at-surface, #27221e) !important;
  border-color: var(--at-border, #f3ebda) !important;
  box-shadow: 3px 3px 0px var(--at-border, #f3ebda) !important;
}

[data-at-theme="dark"] .dropdown-item,
[data-at-theme="dark"] .lang-option,
[data-at-theme="dark"] .dropdown-item span,
[data-at-theme="dark"] .dropdown-item i,
[data-at-theme="dark"] .lang-option-item a {
  color: var(--at-text-strong, #ffffff) !important;
}

[data-at-theme="dark"] .dropdown-item:hover,
[data-at-theme="dark"] .dropdown-item:focus,
[data-at-theme="dark"] .lang-option:hover,
[data-at-theme="dark"] .lang-option:focus {
  background-color: var(--at-surface-subtle, #3a322b) !important;
  color: var(--at-accent, #e07a5f) !important;
}

[data-at-theme="dark"] .dropdown-item:hover i,
[data-at-theme="dark"] .dropdown-item:focus i,
[data-at-theme="dark"] .dropdown-item:hover span,
[data-at-theme="dark"] .dropdown-item:focus span {
  color: var(--at-accent, #e07a5f) !important;
}

/* ============================================================
   1-LEVEL GENEALOGY TREE STYLES (DARK MODE COMPATIBLE)
   ============================================================ */
.genealogy-stage {
  padding: 40px 15px;
  background-image: radial-gradient(var(--at-text-subtle, #cbd5e1) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  background-color: var(--at-surface);
}

[data-at-theme="dark"] .genealogy-stage {
  background-image: radial-gradient(rgba(243, 235, 218, 0.15) 1px, transparent 1px);
}

/* TOP FOCUS & DOWNLINE CARDS - IDENTICAL LOOK */
.focus-card,
.downline-card {
  background: var(--at-surface, #ffffff);
  border: 2px solid var(--at-border, #cbd5e1);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: var(--at-shadow-3, 3px 3px 0px var(--at-border, #1a1410));
  transition: all 0.25s ease;
  width: 175px;
  min-width: 165px;
  max-width: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  color: var(--at-text);
}

.focus-card:hover,
.downline-card:hover {
  transform: translateY(-3px);
  border-color: var(--at-accent, #e07a5f);
  box-shadow: var(--at-shadow-4, 4px 4px 0px var(--at-border, #1a1410));
}

.focus-card.is-active,
.downline-card.is-active {
  border-top: 4px solid var(--at-success, #22c55e);
}

.focus-card.is-inactive,
.downline-card.is-inactive {
  border-top: 4px solid var(--at-danger, #ef4444);
}

.card-unq-id,
.focus-unq-id,
.downline-unq-id {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--at-text-strong);
  font-family: var(--at-font-mono, 'JetBrains Mono', monospace);
}

.card-count-badge,
.focus-count-badge,
.downline-count-badge {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--at-accent, #e07a5f);
  background: var(--at-accent-wash, rgba(224, 122, 95, 0.15));
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 3px;
}

/* CONNECTING CONNECTOR PIPES */
.tree-connector-vertical {
  width: 2px;
  height: 28px;
  background-color: var(--at-border, #94a3b8);
}

/* UL / LI DOWNLINE LIST CONNECTOR PIPES */
.downline-tree-ul {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.downline-tree-ul>li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 24px 7px 0 7px;
}

/* Connecting Lines for LI elements */
.downline-tree-ul>li::before,
.downline-tree-ul>li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--at-border, #94a3b8);
  width: 50%;
  height: 24px;
}

.downline-tree-ul>li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--at-border, #94a3b8);
}

/* Hide connector line above for single child */
.downline-tree-ul>li:only-child::after,
.downline-tree-ul>li:only-child::before {
  display: none;
}

.downline-tree-ul>li:only-child {
  padding-top: 0;
}

/* Remove left line from first child and right line from last child */
.downline-tree-ul>li:first-child::before,
.downline-tree-ul>li:last-child::after {
  border: 0 none;
}

/* Rounded top corners for connector */
.downline-tree-ul>li:last-child::before {
  border-right: 2px solid var(--at-border, #94a3b8);
  border-radius: 0 10px 0 0;
}

.downline-tree-ul>li:first-child::after {
  border-radius: 10px 0 0 0;
}

.empty-downline-card {
  background: var(--at-surface);
  border: 2px dashed var(--at-border);
  border-radius: 20px;
  padding: 24px 36px;
  text-align: center;
  color: var(--at-text-muted);
}

/* Native Bootstrap Select styling */
select.form-select,
select.at-form-input {
  background-color: var(--at-surface, #ffffff);
  color: var(--at-text, #1a1410);
  border: 1.5px solid var(--at-border, #1a1410);
  border-radius: 8px;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-select:focus,
select.at-form-input:focus {
  background-color: var(--at-surface, #ffffff);
  color: var(--at-text, #1a1410);
  border-color: var(--at-accent, #e07a5f);
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

[data-at-theme="dark"] select.form-select,
[data-at-theme="dark"] select.at-form-input {
  background-color: var(--at-surface, #27221e);
  color: var(--at-text, #f3ebda);
  border-color: var(--at-border, #f3ebda);
}

[data-at-theme="dark"] select.form-select option,
[data-at-theme="dark"] select.at-form-input option {
  color: #f3ebda;
}

/* User Profile Avatar Image Fill Rules */
.at-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.at-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* ==========================================================================
   VENO M WORLD / DASHBOARD MODERN GRADIENT THEME OVERRIDES (EXACT IMAGE MATCH)
   Stored exclusively in panel/assets/css/style.css
   ========================================================================== */

/* 1. ROOT DESIGN TOKENS */
:root {
  --at-canvas: #fce7f3;
  --at-canvas-gradient: linear-gradient(135deg, #fce4ec 0%, #fff3e0 30%, #e0f2fe 65%, #f3e8ff 100%);
  --at-sidebar-bg: linear-gradient(180deg, #00c6ff 0%, #22d3ee 25%, #34d399 55%, #facc15 100%);
  --at-gold-gradient: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  --at-gold-btn-bg: linear-gradient(135deg, #a16207 0%, #713f12 100%);
  --at-card-radius: 16px;
  --at-btn-radius: 9999px;
}

/* 2. BODY & MAIN CANVAS BACKGROUND (USING CONTENT-BACKGROUND.PNG IN LIGHT MODE) */
body.at-layout {
  background: var(--at-canvas-gradient) !important;
  min-height: 100vh;
}

.at-main, [data-at-theme="light"] .at-main, body.at-layout:not([data-at-theme="dark"]) .at-main {
    background-image: url('../image/bg-dashboard2.jpg') !important;
    background-size: cover; overflow-y:auto;
    background-position:right;
    background-repeat: no-repeat !important;
    /* background-attachment: fixed !important; */
    position: relative !important;
    padding: 24px 32px !important;
}

.at-main::after {
  display: none !important;
  content: none !important;
}

/* 3. SIDEBAR STYLING (DARK RED GRADIENT) */
.at-sidebar { background-image: url(../image/sidebar.jpg); background-size:cover; background-color:#00235b;
  /*background: linear-gradient(180deg, #9f1239 0%, #881337 35%, #4c0519 70%, #2e020d 100%) !important;*/
  /*background-image: linear-gradient(180deg, #9f1239 0%, #881337 35%, #4c0519 70%, #2e020d 100%) !important;*/
  border-right: 1.5px solid #4CAF50 !important;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
}

.at-sidebar__brand {
  background: transparent !important;border-bottom:0 !important;
  /*border-bottom: 1px solid rgba(217, 119, 6, 0.25) !important;*/
}

.at-sidebar__link {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.at-sidebar__link .menu-icon,
.at-sidebar__link i,
.at-sidebar__link span,
.at-sidebar__link .link-text,
.chevron i {
  color: #f8fafc !important;
  font-size: 0.78rem !important;
}

.at-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

/* ACTIVE SIDEBAR ITEM (DASHBOARD & MENU LINKS - BRUSHED METALLIC SHINY GOLD RECTANGLE WITH SMALL BORDER RADIUS) */
.at-sidebar__link.active,
.at-sidebar__link.is-active,
.at-sidebar__menu-item.active>.at-sidebar__link,
.at-sidebar__menu-item.is-active>.at-sidebar__link,
.at-sidebar.is-collapsed .at-sidebar__menu-item:hover>.at-sidebar__link,
.at-sidebar.is-collapsed .at-sidebar__menu-item.active>.at-sidebar__link,
.flyout-link.active,
.flyout-link.is-active,
.at-flyout .flyout-link.active,
.at-flyout .flyout-link.is-active,
.at-sidebar.is-collapsed .at-flyout .flyout-link.active {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  /*background-image: linear-gradient(90deg, #fef08a 0%, #fde047 20%, #eab308 50%, #d97706 80%, #2fb046 100%) !important;*/
  color: #002858 !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1px solid #a55d07;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.9) !important;
}

.at-sidebar__link.active .menu-icon,
.at-sidebar__link.active i,
.at-sidebar__link.active .link-text,
.at-sidebar__link.active span,
.at-sidebar__link.is-active .menu-icon,
.at-sidebar__link.is-active i,
.at-sidebar__link.is-active .link-text,
.at-sidebar__link.is-active span,
.at-sidebar__menu-item.active>.at-sidebar__link .menu-icon,
.at-sidebar__menu-item.active>.at-sidebar__link i,
.at-sidebar__menu-item.active>.at-sidebar__link .link-text,
.at-sidebar__menu-item.active>.at-sidebar__link span,
.flyout-link.active i,
.flyout-link.active span {
  color: #002858 !important;
  font-weight: 800 !important;
}

/* FLYOUT MENU STYLING (DARK RED GRADIENT) */
.at-flyout,
div.at-flyout,
.at-sidebar div.at-flyout,
.at-sidebar.is-collapsed div.at-flyout {
  background: linear-gradient(180deg, #9f1239 0%, #881337 40%, #4c0519 80%, #2e020d 100%) !important;
  background-image: linear-gradient(180deg, #9f1239 0%, #881337 40%, #4c0519 80%, #2e020d 100%) !important;
  border: 1.5px solid #d97706 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.flyout-header {
  color: #fef08a !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
}

.flyout-link {
  color: #f8fafc !important;
  font-weight: 600 !important;
  font-size: 0.76rem !important;
}

.flyout-link:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.at-sidebar__section-title {
  color: #fef08a !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 14px !important;
  font-size: 0.62rem !important;
}

/* SIDEBAR USER BOTTOM PROFILE CARD */
.at-sidebar__footer {
  background: rgb(0 0 0 / 47%) !important;
  border: 1.5px solid rgba(202, 138, 4, 0.5) !important;
  border-radius: 14px !important;
  margin: 10px !important;
  padding: 8px 12px !important;
  width: calc(100% - 20px) !important;
  box-sizing: border-box !important;
}

.user-name {
  color: #f8fafc !important;
  font-weight: 800 !important;
}

.user-email {
  color: #fef08a !important;
  font-size: 0.72rem !important;
}

/* 4. HEADER NAVBAR STYLING (DARK RED GRADIENT) */
.at-header {
  background:linear-gradient(110deg, #064B92 0%, #021233 50%, #000716 100%) !important;
  background-image: linear-gradient(110deg, #064B92 0%, #021233 50%, #000716 100%) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1.5px solid #d5af4d !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
}

.at-header .at-eyebrow,
.at-header .text-dark,
.at-header label {
  color: #f8fafc !important;
}

/* SEARCH BAR IN HEADER */
.at-search-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #d97706 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12) !important;
  padding: 4px 12px !important;
}

.at-search-bar input {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.at-search-bar input::placeholder {
  color: #94a3b8 !important;
}

/* Search shortcut badge inside input "36K" */
.shortcut-pill,
.at-search-badge {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25) !important;
}

/* HEADER ACTION BUTTONS & DROPDOWNS (MATCHING "REFRESH PAGE" AMBER GOLD GRADIENT) */
.at-icon-btn,
.user-profile-btn,
.at-header .btn,
.at-header .dropdown-toggle,
.at-header select,
.at-header .form-select,
.at-header .at-btn,
.at-header button:not(.at-btn--primary):not(#primaryBtn),
[data-at-theme="dark"] .at-icon-btn,
[data-at-theme="dark"] .user-profile-btn,
[data-at-theme="dark"] .at-header .btn,
[data-at-theme="dark"] .at-header .dropdown-toggle,
[data-at-theme="dark"] .at-header select,
[data-at-theme="dark"] .at-header .form-select,
[data-at-theme="dark"] .at-header .at-btn,
[data-at-theme="dark"] .at-header button:not(.at-btn--primary):not(#primaryBtn) {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  color: #002858 !important;
  border: 1px solid #a55d07;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3) !important;
  transition: all 0.2s ease !important;box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
                0 3px 6px rgba(110, 80, 20, 0.4),
                inset 0 -2px 5px 1px rgba(139, 66, 8, 1),
                inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
}

/* HIGH CONTRAST DARK TYPOGRAPHY AND ICONS INSIDE HEADER BUTTONS */
.at-icon-btn *,
.user-profile-btn *,
.at-header .btn *,
.at-header .dropdown-toggle *,
.at-header button *,
#langSelectBtn *,
#userMenuBtn *,
#currentLangText,
.user-profile-name,
.at-icon-btn i,
.user-profile-btn i,
.at-header button i,
#sidebarToggle i,
#langSelectBtn i,
#userMenuBtn i,
[data-at-theme="dark"] .at-icon-btn *,
[data-at-theme="dark"] .user-profile-btn *,
[data-at-theme="dark"] .at-header .btn *,
[data-at-theme="dark"] .at-header .dropdown-toggle *,
[data-at-theme="dark"] .at-header button *,
[data-at-theme="dark"] #langSelectBtn *,
[data-at-theme="dark"] #userMenuBtn *,
[data-at-theme="dark"] #sidebarToggle *,
[data-at-theme="dark"] #currentLangText,
[data-at-theme="dark"] .user-profile-name,
[data-at-theme="dark"] .at-icon-btn i,
[data-at-theme="dark"] .user-profile-btn i,
[data-at-theme="dark"] .at-header button i,
[data-at-theme="dark"] #sidebarToggle i,
[data-at-theme="dark"] #langSelectBtn i,
[data-at-theme="dark"] #userMenuBtn i {
  color: #002858 !important;
  font-weight: 800 !important;
}

.at-icon-btn:hover,
.user-profile-btn:hover,
.at-header .btn:hover,
.at-header .dropdown-toggle:hover,
.at-header button:hover {
  background: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #d97706 85%, #92400e 100%) !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #d97706 85%, #92400e 100%) !important;
  color: #261302 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.45) !important;
}

/* NAVBAR DROPDOWN MENUS (MATCHING "REFRESH PAGE" AMBER GOLD GRADIENT) */
.at-lang-dropdown-menu,
.at-user-dropdown-menu,
.at-header .dropdown-menu,
[data-at-theme="dark"] .at-lang-dropdown-menu,
[data-at-theme="dark"] .at-user-dropdown-menu,
[data-at-theme="dark"] .at-header .dropdown-menu {
  background: linear-gradient(135deg, #fff9f0 0%, #fef08a 35%, #f59e0b 100%) !important;
  background-image: linear-gradient(135deg, #fff9f0 0%, #fef08a 35%, #f59e0b 100%) !important;
  border: 1.5px solid #d97706 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.35) !important;
  padding: 6px 0 !important;
  z-index: 99999 !important;
}

.at-lang-dropdown-menu .dropdown-item,
.at-user-dropdown-menu .dropdown-item,
.at-header .dropdown-menu .dropdown-item,
.lang-option,
[data-at-theme="dark"] .at-lang-dropdown-menu .dropdown-item,
[data-at-theme="dark"] .at-user-dropdown-menu .dropdown-item,
[data-at-theme="dark"] .at-header .dropdown-menu .dropdown-item {
  color: #002858 !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  padding: 6px 16px !important;
  transition: all 0.15s ease !important;
}

.at-lang-dropdown-menu .dropdown-item:hover,
.at-user-dropdown-menu .dropdown-item:hover,
.at-header .dropdown-menu .dropdown-item:hover,
.lang-option:hover,
[data-at-theme="dark"] .at-lang-dropdown-menu .dropdown-item:hover,
[data-at-theme="dark"] .at-user-dropdown-menu .dropdown-item:hover,
[data-at-theme="dark"] .at-header .dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
}

/* 5. PAGE TITLE "Dashboard" AND "REFRESH PAGE" BUTTON */
.at-page-head__title {
  display: inline-block !important;
  width: fit-content !important;
  /*background: linear-gradient(90deg, #e11d48 0%, #f97316 22%, #d946ef 45%, #8b5cf6 70%, #2563eb 100%) !important;*/
  /*-webkit-background-clip: text !important;*/
  /*-webkit-text-fill-color: transparent !important;*/
  /*background-clip: text !important;*/
  color: #181818 !important;
  font-weight: 900 !important;
  font-size: 2.35rem !important;
  letter-spacing: -0.02em !important;
}

.at-eyebrow {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* REFRESH PAGE BUTTON & PRIMARY BUTTONS */
.at-btn--primary,
#primaryBtn,
.btn-primary {
  /*background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;*/
  /*background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;*/
  /*color: #002858 !important;*/
  /*border: 1px solid #a55d07;*/
  /*border-radius: 10px !important;*/
  /*font-weight: 800 !important;*/
  /*box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35) !important;
  transition: all 0.2s ease !important;*/
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(110, 80, 20, 0.4), inset 0 -2px 5px 1px rgba(139, 66, 8, 1), inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
    border: 1px solid #a55d07 !important;  color: rgb(120, 50, 5);  text-shadow: 0 2px 2px rgba(250, 227, 133, 1);  cursor: pointer;
    transition: all 0.2s ease-in-out;  background-size: 100% 100%;  background-position: center;box-sizing: border-box; border-radius: 5px;outline: none;
}
.at-btn--primary *,
#primaryBtn *,
.btn-primary * {
  color: #002858 !important;
  font-weight: 800 !important;
}

.at-btn--primary:hover,
#primaryBtn:hover,
.btn-primary:hover {
  background-size: 150% 150%; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23), inset 0 -2px 5px 1px #b17d10,
       inset 0 -1px 1px 3px rgba(250, 227, 133, 1);  border: 1px solid rgba(165, 93, 7, 0.6); color: rgba(120, 50, 5, 0.8);
  transform: translateY(-1px) !important;
}

/* 6. MEMBER MARQUEE NOTIFICATION BAR */
.at-card[style*="gradient"],
.at-card.mb-4.p-2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1.5px solid #ca8a04 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25) !important;
}

/* Marquee Notification Text Color in Light Mode */
marquee,
.at-card marquee,
.at-notification-marquee-text,
[data-at-theme="light"] marquee,
body:not([data-at-theme="dark"]) marquee {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Marquee Notification Text Color in Dark Mode */
[data-at-theme="dark"] marquee,
[data-at-theme="dark"] .at-card marquee,
[data-at-theme="dark"] .at-notification-marquee-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Notification pill badge inside marquee */
.at-card .rounded-pill[style*="gradient"] {
  background: linear-gradient(45deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3) !important;
}

/* 7. DASHBOARD KPI SUMMARY CARDS (6 CARDS WITH UNIQUE RICH GRADIENTS) */
.at-card.at-kpi {
  border-radius: 16px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.at-card.at-kpi:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3) !important;
}

/* 12 REUSABLE GRADIENT CLASSES (DEEP, RICH, DARK TONED GRADIENTS FOR MAXIMUM TEXT CONTRAST) */
.at-card-grad-1,
.at-kpi-grad-1 {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 60%, #082f49 100%) !important;
}

.at-card-grad-2,
.at-kpi-grad-2 {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 50%, #1e1b4b 100%) !important;
}

.at-card-grad-3,
.at-kpi-grad-3 {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #042f2e 100%) !important;
}

.at-card-grad-4,
.at-kpi-grad-4 {
  background: linear-gradient(135deg, #15803d 0%, #166534 50%, #052e16 100%) !important;
}

.at-card-grad-5,
.at-kpi-grad-5 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #451a03 100%) !important;
}

.at-card-grad-6,
.at-kpi-grad-6 {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 50%, #431407 100%) !important;
}

.at-card-grad-7,
.at-kpi-grad-7 {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #450a0a 100%) !important;
}

.at-card-grad-8,
.at-kpi-grad-8 {
  background: linear-gradient(135deg, #be123c 0%, #881337 50%, #4c0519 100%) !important;
}

.at-card-grad-9,
.at-kpi-grad-9 {
  background: linear-gradient(135deg, #a21caf 0%, #701a75 50%, #3b0764 100%) !important;
}

.at-card-grad-10,
.at-kpi-grad-10 {
  background: linear-gradient(135deg, #9d174d 0%, #831843 50%, #500724 100%) !important;
}

.at-card-grad-11,
.at-kpi-grad-11 {
  background: linear-gradient(135deg, #6b21a8 0%, #581c87 50%, #1e1b4b 100%) !important;
}

.at-card-grad-12,
.at-kpi-grad-12 {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 50%, #0f172a 100%) !important;
}

/* KPI Icon Boxes - Soft White 3D Rounded Square */
.at-kpi__icon-box {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  font-size: 1.5rem !important;
}

/* Individual Icon Colors */
.at-kpi__icon-box--peach {
  color: #d97706 !important;
}

.at-kpi__icon-box--amber {
  color: #059669 !important;
}

.at-kpi__icon-box--mint {
  color: #c026d3 !important;
}

.at-kpi__icon-box--blue {
  color: #4f46e5 !important;
}

.at-kpi__icon-box--rose {
  color: #ea580c !important;
}

.at-kpi__icon-box--purple {
  color: #0d9488 !important;
}

/* KPI Card Typography */
.at-kpi__label {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.5) !important;
}

.at-kpi__value {
  color: #ffffff !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6) !important;
}

/* KPI Card Buttons "Visit Page Now" - Metallic Gold Pill Button */
.at-btn-visit {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  color: #002858 !important;
  border: 1px solid rgba(254, 240, 138, 0.85) !important;
  border-radius: 9999px !important;
  padding: 10px 16px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  margin-top: 4px !important;
}

.at-btn-visit * {
  color: #002858 !important;
  font-weight: 800 !important;
}

.at-btn-visit:hover {
  background: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #d97706 85%, #92400e 100%) !important;
  background-image: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #d97706 85%, #92400e 100%) !important;
  color: #261302 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(180, 83, 9, 0.5) !important;
}

/* 8. GENERAL CARDS, TABLES, MODALS & NOTIFICATIONS */
.at-card:not(.at-kpi):not(.filter-card):not([class*="at-card-grad-"]):not([class*="at-kpi-grad-"]) {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: blur(10px) !important;
}

/* MODAL & NOTIFICATION STYLING */
.modal-content,
.swal2-popup {
  background: #ffffff !important;
  border: 1.5px solid #ca8a04 !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}

.modal-header {
  background: linear-gradient(135deg, #fff9f0 0%, #fef3c7 100%) !important;
  border-bottom: 1.5px solid rgba(202, 138, 4, 0.3) !important;
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
}

.modal-footer {
  background: #fff9f0 !important;
  border-top: 1px solid rgba(202, 138, 4, 0.2) !important;
  border-bottom-left-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
}

.alert {
  border-radius: 12px !important;
  border: 1.5px solid rgba(202, 138, 4, 0.3) !important;
}

/* 9. DARK MODE THEME OVERRIDES ([data-at-theme="dark"]) */
[data-at-theme="dark"] body.at-layout {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 75%, #0b0f19 100%) !important;
}

[data-at-theme="dark"] .at-main {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.2px, transparent 1.2px) !important;
}

[data-at-theme="dark"] .at-sidebar {
  background: linear-gradient(180deg, #083344 0%, #064e3b 45%, #713f12 100%) !important;
}

[data-at-theme="dark"] .at-sidebar__section-title {
  color: #cbd5e1 !important;
}

[data-at-theme="dark"] .at-sidebar__link {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-sidebar__link .menu-icon,
[data-at-theme="dark"] .at-sidebar__link i,
[data-at-theme="dark"] .at-sidebar__link span,
[data-at-theme="dark"] .at-sidebar__link .link-text,
[data-at-theme="dark"] .chevron i {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-at-theme="dark"] .at-sidebar__link.active,
[data-at-theme="dark"] .at-sidebar__link.is-active,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link,
[data-at-theme="dark"] .flyout-link.active,
[data-at-theme="dark"] .flyout-link.is-active,
[data-at-theme="dark"] .at-flyout .flyout-link.active,
[data-at-theme="dark"] .at-sidebar.is-collapsed .at-flyout .flyout-link.active {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  color: #002858 !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(254, 240, 138, 0.9) !important;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.5), inset 0 1.5px 2px rgba(255, 255, 255, 0.9) !important;
}

[data-at-theme="dark"] .at-sidebar__link.active .menu-icon,
[data-at-theme="dark"] .at-sidebar__link.active i,
[data-at-theme="dark"] .at-sidebar__link.active .link-text,
[data-at-theme="dark"] .at-sidebar__link.active span,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link .menu-icon,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link i,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link .link-text,
[data-at-theme="dark"] .at-sidebar__menu-item.active>.at-sidebar__link span,
[data-at-theme="dark"] .flyout-link.active i,
[data-at-theme="dark"] .flyout-link.active span {
  color: #002858 !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] .at-sidebar__footer {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(202, 138, 4, 0.4) !important;
}

[data-at-theme="dark"] .user-name {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .user-email {
  color: #cbd5e1 !important;
}

/* BREADCRUMB & GENERAL TEXT OVERRIDES IN DARK MODE */
[data-at-theme="dark"] .at-eyebrow,
[data-at-theme="dark"] .at-eyebrow a,
[data-at-theme="dark"] .at-eyebrow span,
[data-at-theme="dark"] .at-eyebrow .text-dark,
[data-at-theme="dark"] .at-eyebrow .at-muted {
  color: #cbd5e1 !important;
}

[data-at-theme="dark"] .text-dark,
[data-at-theme="dark"] a.text-dark,
[data-at-theme="dark"] span.text-dark {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-header {
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(202, 138, 4, 0.25) !important;
}

[data-at-theme="dark"] .at-search-bar {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: #ca8a04 !important;
}

[data-at-theme="dark"] .at-search-bar input {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-icon-btn,
[data-at-theme="dark"] .user-profile-btn {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-card:not(.at-kpi):not(.filter-card) {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(202, 138, 4, 0.3) !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .modal-content,
[data-at-theme="dark"] .swal2-popup {
  background: #0f172a !important;
  border: 1.5px solid #ca8a04 !important;
  color: #f8fafc !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

[data-at-theme="dark"] .modal-header {
  background: #1e293b !important;
  border-bottom: 1px solid rgba(202, 138, 4, 0.3) !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .modal-footer {
  background: #1e293b !important;
  border-top: 1px solid rgba(202, 138, 4, 0.2) !important;
}

/* GLOBAL REPLACEMENT OF PRIMARY BUTTON COLOR TO BRUSHED SHINY GOLD GRADIENT */
[style*="e07a5f"],
[style*="E07A5F"],
.btn-primary,
.btn_primary,
.bg-primary,
.badge-primary,
.at-btn--primary,
.at-bg-accent {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  color: #002858 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(254, 240, 138, 0.9) !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35) !important;
}

.text-primary,
.at-text-accent {
  color: #d97706 !important;
}

.border-primary,
.at-border-accent {
  border-color: #d97706 !important;
}

/* ==========================================================================
   METALLIC GOLDEN PLATED GRADIENT BORDERS (CARDS, FORMS, TABLES, MODALS, FOOTER)
   ========================================================================== */

/* 1. CARDS & WIDGET CONTAINERS */
.at-card:not(.at-kpi):not(.filter-card):not([class*="at-card-grad-"]):not([class*="at-kpi-grad-"]),
.card:not(.filter-card):not([class*="at-card-grad-"]):not([class*="at-kpi-grad-"]),
.at-table-card,
.focus-card,
.downline-card {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), linear-gradient(135deg, #f59e0b 0%, #ca8a04 30%, #fef08a 50%, #b45309 75%, #78350f 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.12) !important;
}

[data-at-theme="dark"] .at-card:not(.at-kpi):not(.filter-card):not([class*="at-card-grad-"]):not([class*="at-kpi-grad-"]),
[data-at-theme="dark"] .card:not(.filter-card):not([class*="at-card-grad-"]):not([class*="at-kpi-grad-"]),
[data-at-theme="dark"] .at-table-card,
[data-at-theme="dark"] .focus-card,
[data-at-theme="dark"] .downline-card {
  background-image: linear-gradient(rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.94)), linear-gradient(135deg, #fef08a 0%, #f59e0b 30%, #ca8a04 60%, #78350f 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 2. FORMS & INPUT CONTROLS */
.form-control,
.form-select,
.at-form-input,
.filter-search-wrap,
.at-search-bar,
.at-select-rows,
input[type="text"]:not(.at-search-bar input):not(.filter-search-wrap input),
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"]:not(.at-search-bar input):not(.filter-search-wrap input),
select,
textarea {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(340deg, #9fa2a4 0%, #2196F3 40%, #9fa2a4 50%, #2196F3 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.1) !important;
}

[data-at-theme="dark"] .form-control,
[data-at-theme="dark"] .form-select,
[data-at-theme="dark"] .at-form-input,
[data-at-theme="dark"] .filter-search-wrap,
[data-at-theme="dark"] .at-search-bar,
[data-at-theme="dark"] .at-select-rows,
[data-at-theme="dark"] input[type="text"]:not(.at-search-bar input):not(.filter-search-wrap input),
[data-at-theme="dark"] input[type="number"],
[data-at-theme="dark"] input[type="email"],
[data-at-theme="dark"] input[type="password"],
[data-at-theme="dark"] input[type="search"]:not(.at-search-bar input):not(.filter-search-wrap input),
[data-at-theme="dark"] select,
[data-at-theme="dark"] textarea {
  background-image: linear-gradient(#1e293b, #1e293b), linear-gradient(135deg, #fef08a 0%, #f59e0b 35%, #b45309 70%, #78350f 100%) !important;
}

/* REMOVE INNER BORDER, BACKGROUND, & SHADOW FROM ALL SEARCH INPUT FIELDS */
.at-search-bar input,
.filter-search-wrap input,
.search-box input,
.at-search-bar input[type="text"],
.at-search-bar input[type="search"],
.filter-search-wrap input[type="text"],
.filter-search-wrap input[type="search"],
.input-group input,
div[class*="search"] input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 3. TABLES & TABLE CONTAINERS */
.table-bordered,
.table-bordered th,
.table-bordered td,
.at-table th,
.at-table td {
  border-color: rgba(202, 138, 4, 0.3) !important;
}

.table thead th,
.at-table thead th,
table thead th {
  border-bottom: 2px solid #ca8a04 !important;
  background: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
  background-image: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
  color: #fef08a !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* 4. MODALS & SWEETALERT POPUPS */
.modal-content,
.swal2-popup {
  border: 2px solid transparent !important;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #fef08a 0%, #f59e0b 25%, #ca8a04 50%, #92400e 75%, #78350f 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 20px 60px rgba(180, 83, 9, 0.25) !important;
}

[data-at-theme="dark"] .modal-content,
[data-at-theme="dark"] .swal2-popup {
  background-image: linear-gradient(#0f172a, #0f172a), linear-gradient(135deg, #fef08a 0%, #f59e0b 30%, #ca8a04 60%, #78350f 100%) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

.modal-header {
  border-bottom: 1.5px solid transparent !important;
  background-image: linear-gradient(135deg, #fff9f0 0%, #fef3c7 100%), linear-gradient(90deg, #f59e0b, #ca8a04, #78350f) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}

.modal-footer {
  border-top: 1.5px solid transparent !important;
  background-image: linear-gradient(#fff9f0, #fff9f0), linear-gradient(90deg, #78350f, #ca8a04, #f59e0b) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}

/* 5. FOOTERS (DARK RED GRADIENT WITH TOP GOLDEN BORDER ONLY) */
.at-footer,
footer {
  border: none !important;
  border-top: 1.5px solid #4CAF50 !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  background:linear-gradient(110deg, #021233 0%, #021233 50%, #021232 100%) !important;
  background-image: linear-gradient(110deg, #021233 0%, #021233 50%, #021232 100%) !important;
  color: #f8fafc !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
}

.at-footer *,
footer * {
  color: #f8fafc !important;
}

.at-footer a,
footer a {
  color: #fef08a !important;
  text-decoration: none !important;
}

.at-footer a:hover,
footer a:hover {
  color: #fde047 !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   TABLE CARDS, ACTION BUTTONS, BADGES, & PAGINATION GOLDEN PLATED GRADIENT BORDERS
   ========================================================================== */

/* UPPER TABLE CARD & MAIN TABLE CARD GOLDEN BORDERS */
.at-table-card,
.table-card,
.table-responsive {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(#ffedd5, #ffedd5), linear-gradient(135deg, #f59e0b 0%, #ca8a04 30%, #fef08a 50%, #b45309 75%, #78350f 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.14) !important;
}

[data-at-theme="dark"] .at-table-card,
[data-at-theme="dark"] .table-card,
[data-at-theme="dark"] .table-responsive {
  background-image: linear-gradient(#2b1408, #2b1408), linear-gradient(135deg, #fef08a 0%, #f59e0b 30%, #ca8a04 60%, #78350f 100%) !important;
}

/* FILTER & SEARCH CARD - GRADIENT BACKGROUND MATCHING FORM BODY (CYAN -> MINT GREEN -> SUNSHINE YELLOW) */
.filter-card,
.at-card.filter-card {
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  background-image: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

[data-at-theme="dark"] .filter-card,
[data-at-theme="dark"] .at-card.filter-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

.filter-card label,
.filter-card h1,
.filter-card h2,
.filter-card h3,
.filter-card h4,
.filter-card h5,
.filter-card h6,
.filter-card .at-card-title-middle *,
.filter-card .at-muted {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] .filter-card label,
[data-at-theme="dark"] .filter-card h1,
[data-at-theme="dark"] .filter-card h2,
[data-at-theme="dark"] .filter-card h3,
[data-at-theme="dark"] .filter-card h4,
[data-at-theme="dark"] .filter-card h5,
[data-at-theme="dark"] .filter-card h6,
[data-at-theme="dark"] .filter-card .at-card-title-middle *,
[data-at-theme="dark"] .filter-card .at-muted {
  color: #f8fafc !important;
  font-weight: 800 !important;
}

/* EXCEL EXPORT BUTTON - METALLIC GOLDEN BORDER & SOLID GREEN FILL WITH WHITE TEXT */
.at-btn-excel,
.btn-excel {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(#15803d, #15803d), linear-gradient(135deg, #f59e0b 0%, #ca8a04 40%, #fef08a 50%, #92400e 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3) !important;
}

.at-btn-excel *,
.btn-excel * {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* NOTIFICATION BELL BADGE NUMBER (HIGH VISIBILITY RED PILL BADGE) */
.icon-badge,
.at-icon-btn .icon-badge,
.badge-btn .icon-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.68rem !important;
  font-family: var(--at-font-mono, monospace) !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20 !important;
}

/* ALL ACTION BUTTONS, BADGES, AND PAGINATION GOLDEN BORDERS */
.btn-action,
.btn-icon,
.action-btn,
.table .btn,
.at-table .btn,
td .btn,
td a.btn,
td button,
.badge:not(.icon-badge),
span.badge:not(.icon-badge),
.date-badge,
.pagination .page-link,
.page-item .page-link,
.at-pagination a,
.at-pagination button,
.at-select-rows {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #fef08a 50%, #92400e 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.15) !important;
}

[data-at-theme="dark"] .btn-action,
[data-at-theme="dark"] .btn-icon,
[data-at-theme="dark"] .action-btn,
[data-at-theme="dark"] .table .btn,
[data-at-theme="dark"] .at-table .btn,
[data-at-theme="dark"] td .btn,
[data-at-theme="dark"] td a.btn,
[data-at-theme="dark"] td button,
[data-at-theme="dark"] .badge:not(.icon-badge),
[data-at-theme="dark"] span.badge:not(.icon-badge),
[data-at-theme="dark"] .date-badge,
[data-at-theme="dark"] .pagination .page-link,
[data-at-theme="dark"] .page-item .page-link,
[data-at-theme="dark"] .at-select-rows {
  background-image: linear-gradient(rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.95)), linear-gradient(135deg, #fef08a 0%, #f59e0b 35%, #b45309 70%, #78350f 100%) !important;
  color: #f8fafc !important;
}

/* Hover effects on action & pagination buttons */
.table .btn:hover,
.at-table .btn:hover,
td .btn:hover,
.pagination .page-link:hover,
.at-btn-excel:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3) !important;
}

/* TABLE BADGES & PAGINATION TEXT VISIBILITY FIX */
.table .badge,
.at-table .badge,
td .badge,
span.badge,
.date-badge,
[class*="badge"]:not(.icon-badge) {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] .table .badge,
[data-at-theme="dark"] .at-table .badge,
[data-at-theme="dark"] td .badge,
[data-at-theme="dark"] span.badge,
[data-at-theme="dark"] [class*="badge"]:not(.icon-badge) {
  color: #f8fafc !important;
}

/* PAGINATION TEXT & ACTIVE STATE FIX */
.pagination .page-link,
.page-item .page-link,
.at-pagination a,
.at-pagination button,
.at-pagination__btn {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.pagination .page-item.active .page-link,
.pagination .page-link.active,
.page-item.active .page-link,
.page-link.active,
.at-pagination__btn.is-active,
.at-pagination__btn.active,
.at-pagination .is-active,
.at-pagination .active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 70%, #78350f 100%) !important;
  background-image: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 70%, #78350f 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: 1.5px solid #d97706 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.45) !important;
}

.pagination .page-item.active .page-link *,
.page-item.active .page-link *,
.at-pagination__btn.is-active *,
.at-pagination__btn.active * {
  color: #ffffff !important;
  font-weight: 900 !important;
}

[data-at-theme="dark"] .pagination .page-link,
[data-at-theme="dark"] .page-item .page-link,
[data-at-theme="dark"] .at-pagination a,
[data-at-theme="dark"] .at-pagination button,
[data-at-theme="dark"] .at-pagination__btn {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .pagination .page-item.active .page-link,
[data-at-theme="dark"] .pagination .page-link.active,
[data-at-theme="dark"] .page-item.active .page-link,
[data-at-theme="dark"] .page-link.active,
[data-at-theme="dark"] .at-pagination__btn.is-active,
[data-at-theme="dark"] .at-pagination__btn.active,
[data-at-theme="dark"] .at-pagination .is-active,
[data-at-theme="dark"] .at-pagination .active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 70%, #78350f 100%) !important;
  background-image: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 70%, #78350f 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: 1.5px solid #f59e0b !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

/* ==========================================================================
   NOTIFICATION SIDEBAR DRAWER (GOLDEN LINES & GOLDEN PLATED BUTTON BORDERS)
   ========================================================================== */

/* ==========================================================================
   NOTIFICATION RIGHT SIDEBAR DRAWER (MATCHING FORM HEADER & FORM BODY GRADIENT)
   ========================================================================== */
.at-drawer {
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  background-image: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  border-left: 2px solid #0052d4 !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25) !important;
  color: #0f172a !important;
}

[data-at-theme="dark"] .at-drawer {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  border-left: 2px solid #f59e0b !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6) !important;
  color: #f8fafc !important;
}

/* Notification Drawer Header (Matching Form Header Gradient: Royal Blue -> Deep Purple -> Magenta) */
.at-drawer__header,
[data-at-theme="dark"] .at-drawer__header {
  background: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  background-image: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.at-drawer__header *,
.at-drawer__title,
.at-drawer__header i {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Close Button inside Notification Header */
.at-drawer__header .drawer-close-btn,
.at-drawer__header #closeDrawerBtn,
[data-at-theme="dark"] .at-drawer__header .drawer-close-btn,
[data-at-theme="dark"] .at-drawer__header #closeDrawerBtn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.at-drawer__header .drawer-close-btn:hover,
.at-drawer__header #closeDrawerBtn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

/* Notification Drawer Body & Tabs Container */
.at-drawer__body {
  background: transparent !important;
}

.at-drawer__tabs-nav,
[data-at-theme="dark"] .at-drawer__tabs-nav {
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Notification Tab Buttons Outer Golden Border */
.at-drawer__tab-btn,
.nav-link.at-drawer__tab-btn {
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #fef08a 50%, #92400e 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.15) !important;
  transition: all 0.2s ease !important;
}

/* Active Notification Tab Button */
.at-drawer__tab-btn.active,
.nav-link.at-drawer__tab-btn.active {
  background-image: linear-gradient(135deg, #d97706 0%, #b45309 50%, #78350f 100%), linear-gradient(135deg, #f59e0b 0%, #ca8a04 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35) !important;
}

[data-at-theme="dark"] .at-drawer__tab-btn,
[data-at-theme="dark"] .nav-link.at-drawer__tab-btn {
  background-image: linear-gradient(#1e293b, #1e293b), linear-gradient(135deg, #fef08a 0%, #f59e0b 35%, #b45309 70%, #78350f 100%) !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-drawer__tab-btn.active,
[data-at-theme="dark"] .nav-link.at-drawer__tab-btn.active {
  background-image: linear-gradient(135deg, #ca8a04 0%, #854d0e 100%), linear-gradient(135deg, #fef08a, #ca8a04) !important;
  color: #ffffff !important;
}

/* Notification Message Item Cards inside Drawer */
.at-msg-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 10px 14px !important;
  color: #0f172a !important;
}

.at-msg-card * {
  color: #0f172a !important;
}

[data-at-theme="dark"] .at-msg-card {
  background: rgba(30, 41, 59, 0.88) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-msg-card * {
  color: #f8fafc !important;
}

/* Outer Border Lines for any list dividers inside Drawer */
.at-drawer hr,
.at-drawer .dropdown-divider {
  border-color: #d97706 !important;
  opacity: 0.6 !important;
}

/* ==========================================================================
   FORM & MODAL CARD HEADER & FOOTER GRADIENT (ROYAL BLUE -> DEEP PURPLE -> MAGENTA)
   ========================================================================== */
.at-modal-header,
.modal-header,
.form-header,
.at-form-header,
.card-header,
.at-card-header,
[data-at-theme="dark"] .at-modal-header,
[data-at-theme="dark"] .modal-header,
[data-at-theme="dark"] .card-header,
[data-at-theme="dark"] .form-header {
  background: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  background-image: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.at-modal-footer,
.modal-footer,
.form-footer,
.at-form-footer,
.card-footer,
.at-card-footer,
.at-card .at-modal-footer,
.card .at-modal-footer,
.at-card form .at-modal-footer,
.card form .at-modal-footer,
form .at-modal-footer,
form .modal-footer,
[data-at-theme="dark"] .at-modal-footer,
[data-at-theme="dark"] .modal-footer,
[data-at-theme="dark"] .card-footer,
[data-at-theme="dark"] .form-footer {
  background: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  background-image: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Ensure high contrast light typography on top of blue-purple-magenta gradient header & footer */
.at-modal-header *,
.modal-header *,
.form-header *,
.card-header *,
.at-modal-footer *,
.modal-footer *,
.form-footer *,
.card-footer * {
  color: #ffffff !important;
}

.at-modal-header .modal-title,
.modal-header .modal-title,
.form-header .form-title,
.card-header .card-title,
.at-modal-header h1,
.at-modal-header h2,
.at-modal-header h3,
.at-modal-header h4,
.at-modal-header h5,
.at-modal-header h6,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.form-header h1,
.form-header h2,
.form-header h3,
.form-header h4,
.form-header h5,
.form-header h6 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.at-modal-header .text-muted,
.modal-header .text-muted,
.card-header .text-muted,
.form-header .text-muted,
.at-modal-header p,
.modal-header p,
.card-header p,
.form-header p,
.at-modal-header span,
.modal-header span,
.card-header span,
.form-header span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

.at-modal-header i,
.modal-header i,
.card-header i,
.form-header i,
.at-modal-footer i,
.modal-footer i,
.card-footer i,
.form-footer i {
  color: #ffffff !important;
}

/* SUBMIT BUTTON ICON DARK COLOR (OVERRIDING FOOTER WHITE ICON RULE) */
.at-modal-footer .btn_primary i,
.modal-footer .btn_primary i,
.card-footer .btn_primary i,
.form-footer .btn_primary i,
.at-modal-footer .btn-primary i,
.modal-footer .btn-primary i,
.card-footer .btn-primary i,
.form-footer .btn-primary i,
.at-modal-footer button[type="submit"] i,
.modal-footer button[type="submit"] i,
.card-footer button[type="submit"] i,
.form-footer button[type="submit"] i,
.at-modal-footer .btn_primary *,
.modal-footer .btn_primary *,
.card-footer .btn_primary *,
.form-footer .btn_primary *,
.at-modal-footer button[type="submit"] *,
.modal-footer button[type="submit"] *,
.card-footer button[type="submit"] *,
.form-footer button[type="submit"] * {
  color: #002858 !important;
}

.at-modal-footer .btn_primary:hover i,
.modal-footer .btn_primary:hover i,
.card-footer .btn_primary:hover i,
.form-footer .btn_primary:hover i,
.at-modal-footer .btn-primary:hover i,
.modal-footer .btn-primary:hover i,
.card-footer .btn-primary:hover i,
.form-footer .btn-primary:hover i,
.at-modal-footer button[type="submit"]:hover i,
.modal-footer button[type="submit"]:hover i,
.card-footer button[type="submit"]:hover i,
.form-footer button[type="submit"]:hover i,
.at-modal-footer .btn_primary:hover *,
.modal-footer .btn_primary:hover *,
.card-footer .btn_primary:hover *,
.form-footer .btn_primary:hover *,
.at-modal-footer button[type="submit"]:hover *,
.modal-footer button[type="submit"]:hover *,
.card-footer button[type="submit"]:hover *,
.form-footer button[type="submit"]:hover * {
  color: #261302 !important;
}

/* Reset / Light buttons inside gradient footers */
.at-modal-footer .btn_light,
.modal-footer .btn_light,
.card-footer .btn_light,
.form-footer .btn_light,
.at-modal-footer button[type="reset"],
.modal-footer button[type="reset"],
.card-footer button[type="reset"],
.form-footer button[type="reset"],
.at-modal-footer .btn-light,
.modal-footer .btn-light,
.card-footer .btn-light,
.form-footer .btn-light {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.at-modal-footer .btn_light:hover,
.modal-footer .btn_light:hover,
.card-footer .btn_light:hover,
.form-footer .btn_light:hover,
.at-modal-footer button[type="reset"]:hover,
.modal-footer button[type="reset"]:hover,
.card-footer button[type="reset"]:hover,
.form-footer button[type="reset"]:hover {
  background: #f8fafc !important;
  color: #000000 !important;
}

/* ==========================================================================
   EVERY PAGE FORM AREA BODY GRADIENT BACKGROUND (LIGHT & DARK THEMES)
   ========================================================================== */
.at-card form>div:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
.card form>div:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
.at-modal-body,
.at-form-body,
.auth-page-body,
.modal-body,
.modal-content form>div:not(.modal-header):not(.modal-footer),
.at-modal-content form>div:not(.at-modal-header):not(.at-modal-footer),
form>div.p-4:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
form>div.p-3:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer) {
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  background-image: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  color: #0f172a !important;
}

/* Dark Mode Form Body Background (Deep Slate / Dark Violet Navy Gradient) */
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
[data-at-theme="dark"] .card form>div:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
[data-at-theme="dark"] .at-modal-body,
[data-at-theme="dark"] .at-form-body,
[data-at-theme="dark"] .auth-page-body,
[data-at-theme="dark"] .modal-body,
[data-at-theme="dark"] .modal-content form>div:not(.modal-header):not(.modal-footer),
[data-at-theme="dark"] .at-modal-content form>div:not(.at-modal-header):not(.at-modal-footer),
[data-at-theme="dark"] form>div.p-4:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer),
[data-at-theme="dark"] form>div.p-3:not(.at-modal-header):not(.at-modal-footer):not(.modal-header):not(.modal-footer):not(.card-header):not(.card-footer) {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  color: #f8fafc !important;
}

/* High Contrast Dark Typography & Labels inside Light Form Area Body */
.at-card form>div:not(.at-modal-header):not(.at-modal-footer) .at-form-label,
.at-card form>div:not(.at-modal-header):not(.at-modal-footer) label,
.at-modal-body .at-form-label,
.at-modal-body label,
.modal-body .at-form-label,
.modal-body label,
.at-form-body .at-form-label,
.at-form-body label,
form .p-4 .at-form-label,
form .p-4 label,
form .p-3 .at-form-label,
form .p-3 label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.at-card form>div:not(.at-modal-header):not(.at-modal-footer) h5,
.at-card form>div:not(.at-modal-header):not(.at-modal-footer) h6,
.at-modal-body h5,
.at-modal-body h6,
.modal-body h5,
.modal-body h6,
.at-form-body h5,
.at-form-body h6,
form .p-4 h5,
form .p-4 h6,
form .p-3 h5,
form .p-3 h6 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.at-card form>div:not(.at-modal-header):not(.at-modal-footer) .text-muted,
.at-modal-body .text-muted,
.modal-body .text-muted,
.at-form-body .text-muted,
form .p-4 .text-muted,
form .p-3 .text-muted,
form .p-4 .form-text,
form .p-3 .form-text {
  color: #1e293b !important;
}

/* Dark Mode Typography & Form Controls inside Dark Form Area Body */
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) .at-form-label,
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) label,
[data-at-theme="dark"] .at-modal-body .at-form-label,
[data-at-theme="dark"] .at-modal-body label,
[data-at-theme="dark"] .modal-body .at-form-label,
[data-at-theme="dark"] .modal-body label,
[data-at-theme="dark"] .at-form-body .at-form-label,
[data-at-theme="dark"] .at-form-body label,
[data-at-theme="dark"] form .p-4 .at-form-label,
[data-at-theme="dark"] form .p-4 label,
[data-at-theme="dark"] form .p-3 .at-form-label,
[data-at-theme="dark"] form .p-3 label {
  color: #f8fafc !important;
  font-weight: 700 !important;
}

[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) h5,
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) h6,
[data-at-theme="dark"] .at-modal-body h5,
[data-at-theme="dark"] .at-modal-body h6,
[data-at-theme="dark"] .modal-body h5,
[data-at-theme="dark"] .modal-body h6,
[data-at-theme="dark"] .at-form-body h5,
[data-at-theme="dark"] .at-form-body h6,
[data-at-theme="dark"] form .p-4 h5,
[data-at-theme="dark"] form .p-4 h6,
[data-at-theme="dark"] form .p-3 h5,
[data-at-theme="dark"] form .p-3 h6 {
  color: #ffffff !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) .text-muted,
[data-at-theme="dark"] .at-modal-body .text-muted,
[data-at-theme="dark"] .modal-body .text-muted,
[data-at-theme="dark"] .at-form-body .text-muted,
[data-at-theme="dark"] form .p-4 .text-muted,
[data-at-theme="dark"] form .p-3 .text-muted,
[data-at-theme="dark"] form .p-4 .form-text,
[data-at-theme="dark"] form .p-3 .form-text {
  color: #94a3b8 !important;
}

[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) .at-form-input,
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) .form-control,
[data-at-theme="dark"] .at-card form>div:not(.at-modal-header):not(.at-modal-footer) .form-select,
[data-at-theme="dark"] .at-modal-body .at-form-input,
[data-at-theme="dark"] .at-modal-body .form-control,
[data-at-theme="dark"] .at-modal-body .form-select,
[data-at-theme="dark"] .modal-body .at-form-input,
[data-at-theme="dark"] .modal-body .form-control,
[data-at-theme="dark"] .modal-body .form-select {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   FILE INPUT "CHOOSE FILE" BUTTON STYLES (LIGHT & DARK MODES)
   ========================================================================== */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button,
.form-control[type="file"]::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button,
.at-form-input[type="file"]::file-selector-button,
.at-form-input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 5px 14px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  margin-right: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25) !important;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover,
.form-control[type="file"]::file-selector-button:hover,
.form-control[type="file"]::-webkit-file-upload-button:hover,
.at-form-input[type="file"]::file-selector-button:hover,
.at-form-input[type="file"]::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4) !important;
}

[data-at-theme="dark"] input[type="file"]::file-selector-button,
[data-at-theme="dark"] input[type="file"]::-webkit-file-upload-button,
[data-at-theme="dark"] .form-control[type="file"]::file-selector-button,
[data-at-theme="dark"] .form-control[type="file"]::-webkit-file-upload-button,
[data-at-theme="dark"] .at-form-input[type="file"]::file-selector-button,
[data-at-theme="dark"] .at-form-input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(254, 240, 138, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-at-theme="dark"] input[type="file"]::file-selector-button:hover,
[data-at-theme="dark"] input[type="file"]::-webkit-file-upload-button:hover,
[data-at-theme="dark"] .form-control[type="file"]::file-selector-button:hover,
[data-at-theme="dark"] .form-control[type="file"]::-webkit-file-upload-button:hover,
[data-at-theme="dark"] .at-form-input[type="file"]::file-selector-button:hover,
[data-at-theme="dark"] .at-form-input[type="file"]::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   TABLE THEAD DARK RED GRADIENT & SUBTLE ELEGANT TABLE ROW HOVER HIGHLIGHT
   ========================================================================== */
.table thead,
.at-table thead,
.table thead tr,
.at-table thead tr,
.table thead th,
.at-table thead th,
table thead th,
[data-at-theme="dark"] .table thead th,
[data-at-theme="dark"] .at-table thead th {
  background: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
  background-image: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
  color: #fef08a !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid #d97706 !important;
}

.table thead th *,
.at-table thead th *,
table thead th * {
  color: #fef08a !important;
  font-weight: 800 !important;
}

/* TABLE BODY ROWS - NORMAL LIGHT ORANGE BACKGROUND (#ffedd5) */
table tbody tr,
table tbody tr>td,
table tbody td,
.table tbody tr,
.table tbody tr>td,
.table tbody td,
.at-table tbody tr,
.at-table tbody tr>td,
.at-table tbody td,
.table-striped>tbody>tr:nth-of-type(odd)>*,
.table-striped>tbody>tr:nth-of-type(even)>*,
tr[id],
tr[id]>td {
  background: #ffedd5 !important;
  background-color: #ffedd5 !important;
  background-image: none !important;
  color: #0f172a !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
}

/* TABLE ROW HOVER STYLING - CHANGE ROW HOVER BACKGROUND TO #d97706 WITH WHITE TEXT */
table tbody tr:hover,
table tbody tr:hover>td,
table tbody tr:hover td,
.table tbody tr:hover,
.table tbody tr:hover>td,
.table tbody tr:hover td,
.at-table tbody tr:hover,
.at-table tbody tr:hover>td,
.at-table tbody tr:hover td,
.table-hover tbody tr:hover,
.table-hover tbody tr:hover>*,
.table-hover tbody tr:hover td,
.table-success:hover,
.table-success:hover>*,
.table-active:hover,
.table-active:hover>*,
tr:hover,
tr:hover>td,
tr:hover td,
td:hover {
  background: #d97706 !important;
  background-color: #d97706 !important;
  background-image: linear-gradient(#d97706, #d97706) !important;
  color: #ffffff !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

/* ALL TEXT ELEMENTS INSIDE HOVERED TABLE ROWS (INCLUDING .text-muted, small, span, div, p, strong, b, etc.) TURN WHITE */
table tbody tr:hover td,
table tbody tr:hover td *:not(.at-amount-tag):not(.at-amount-tag *):not(.date-badge):not(.date-badge *):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.at-action-btn):not(.at-action-btn *):not(.at-action-tooltip):not(.at-action-tooltip *),
table tbody tr:hover td .text-muted:not(.at-amount-tag),
table tbody tr:hover td small,
table tbody tr:hover td .small,
table tbody tr:hover td span:not(.at-amount-tag):not(.badge):not(.btn):not(.at-action-tooltip),
table tbody tr:hover td div:not(.at-amount-tag):not(.badge):not(.btn):not(.at-action-tooltip),
table tbody tr:hover td p,
table tbody tr:hover td strong,
table tbody tr:hover td b,
.table tbody tr:hover td,
.table tbody tr:hover td *:not(.at-amount-tag):not(.at-amount-tag *):not(.date-badge):not(.date-badge *):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.at-action-btn):not(.at-action-btn *):not(.at-action-tooltip):not(.at-action-tooltip *),
.table tbody tr:hover td .text-muted:not(.at-amount-tag),
.table tbody tr:hover td small,
.table tbody tr:hover td .small,
.at-table tbody tr:hover td,
.at-table tbody tr:hover td *:not(.at-amount-tag):not(.at-amount-tag *):not(.date-badge):not(.date-badge *):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.at-action-btn):not(.at-action-btn *):not(.at-action-tooltip):not(.at-action-tooltip *),
.at-table tbody tr:hover td .text-muted:not(.at-amount-tag),
.at-table tbody tr:hover td small,
.at-table tbody tr:hover td .small,
tr:hover td,
tr:hover td *:not(.at-amount-tag):not(.at-amount-tag *):not(.date-badge):not(.date-badge *):not(.badge):not(.badge *):not(.btn):not(.btn *):not(.at-action-btn):not(.at-action-btn *):not(.at-action-tooltip):not(.at-action-tooltip *),
tr:hover td .text-muted:not(.at-amount-tag),
tr:hover td small:not(.at-btn-play-video *),
tr:hover td .small:not(.at-btn-play-video *) {
  color: #ffffff !important;
}

/* TABLE PLAY BUTTON COLOR REMAINS RED ON TABLE ROW HOVER */
table tbody tr:hover .at-btn-play-video,
table tbody tr:hover .at-btn-play-video *,
.table tbody tr:hover .at-btn-play-video,
.table tbody tr:hover .at-btn-play-video *,
.at-table tbody tr:hover .at-btn-play-video,
.at-table tbody tr:hover .at-btn-play-video *,
tr:hover .at-btn-play-video,
tr:hover .at-btn-play-video * {
  color: #dc3545 !important;
}

/* WHITE BOX TAGS (.at-amount-tag, .date-badge, GENERAL .badge) ON TABLE ROW HOVER - DARK NAVY TEXT (#0f172a) ON WHITE BOX (#ffffff) */
.at-amount-tag,
.at-amount-tag *,
table tbody tr:hover .at-amount-tag,
.table tbody tr:hover .at-amount-tag,
.at-table tbody tr:hover .at-amount-tag,
.table-hover tbody tr:hover .at-amount-tag,
tr:hover .at-amount-tag,
tr:hover .date-badge,
table tbody tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary),
.table tbody tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary),
tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 2px 2px 0px #0f172a !important;
}

/* ENSURE ALL CHILD ELEMENTS INSIDE WHITE BOX TAGS (SPANS, TEXT) ARE ALWAYS DARK NAVY #0f172a */
table tbody tr:hover .at-amount-tag *,
.table tbody tr:hover .at-amount-tag *,
.at-table tbody tr:hover .at-amount-tag *,
tr:hover .at-amount-tag *,
tr:hover .date-badge *,
table tbody tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary) *,
.table tbody tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary) *,
tr:hover .badge:not(.at-badge--flat):not(.bg-success):not(.bg-danger):not(.bg-primary) * {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* COLORED BADGES ON ROW HOVER (YES / NO BADGES) */
table tbody tr:hover .badge.bg-success,
tr:hover .badge.bg-success {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: #ffffff !important;
}

table tbody tr:hover .badge.bg-danger,
tr:hover .badge.bg-danger {
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

table tbody tr:hover .badge.bg-success *,
table tbody tr:hover .badge.bg-danger *,
tr:hover .badge.bg-success *,
tr:hover .badge.bg-danger * {
  color: #ffffff !important;
}

/* AT-BADGE--FLAT ON TABLE ROW HOVER (TEXT TURNS WHITE WITH FROSTED BACKGROUND) */
table tbody tr:hover .at-badge--flat,
.table tbody tr:hover .at-badge--flat,
.at-table tbody tr:hover .at-badge--flat,
tr:hover .at-badge--flat,
table tbody tr:hover .badge.at-badge--flat,
.table tbody tr:hover .badge.at-badge--flat,
tr:hover .badge.at-badge--flat {
  background: rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

table tbody tr:hover .at-badge--flat *,
.table tbody tr:hover .at-badge--flat *,
tr:hover .at-badge--flat * {
  color: #ffffff !important;
}

/* PRESERVE ACTION BUTTONS & ICON COLORS ON TABLE ROW HOVER */
table tbody tr:hover .at-action-btn,
.table tbody tr:hover .at-action-btn,
.at-table tbody tr:hover .at-action-btn,
tr:hover .at-action-btn,
tr:hover .btn-action,
tr:hover .action-btn,
tr:hover td .btn {
  transform: none;
}

table tbody tr:hover .at-action-btn--primary,
.table tbody tr:hover .at-action-btn--primary,
tr:hover .at-action-btn--primary,
table tbody tr:hover .at-action-btn--primary i,
.table tbody tr:hover .at-action-btn--primary i,
tr:hover .at-action-btn--primary i {
  color: #ffffff !important;
}

table tbody tr:hover .at-action-btn--danger,
.table tbody tr:hover .at-action-btn--danger,
tr:hover .at-action-btn--danger,
table tbody tr:hover .at-action-btn--danger i,
.table tbody tr:hover .at-action-btn--danger i,
tr:hover .at-action-btn--danger i {
  color: #ffffff !important;
}

table tbody tr:hover .at-action-btn--success,
.table tbody tr:hover .at-action-btn--success,
tr:hover .at-action-btn--success,
table tbody tr:hover .at-action-btn--success i,
.table tbody tr:hover .at-action-btn--success i,
tr:hover .at-action-btn--success i {
  color: #ffffff !important;
}

table tbody tr:hover .at-action-btn--info,
.table tbody tr:hover .at-action-btn--info,
tr:hover .at-action-btn--info,
table tbody tr:hover .at-action-btn--info i,
.table tbody tr:hover .at-action-btn--info i,
tr:hover .at-action-btn--info i {
  color: #ffffff !important;
}

table tbody tr:hover .at-action-btn--warning,
.table tbody tr:hover .at-action-btn--warning,
tr:hover .at-action-btn--warning,
table tbody tr:hover .at-action-btn--warning i,
.table tbody tr:hover .at-action-btn--warning i,
tr:hover .at-action-btn--warning i {
  color: #ffffff !important;
}

/* ULTIMATE BULLETPROOF OVERRIDE FOR AT-ACTION-TOOLTIP (ALWAYS SOLID DARK TEXT #0f172a ON WHITE FILL #ffffff) */
.at-action-tooltip,
.at-action-tooltip *,
.at-action-btn .at-action-tooltip,
.at-action-btn .at-action-tooltip *,
.at-action-btn--primary .at-action-tooltip,
.at-action-btn--primary .at-action-tooltip *,
.at-action-btn--danger .at-action-tooltip,
.at-action-btn--danger .at-action-tooltip *,
.at-action-btn--success .at-action-tooltip,
.at-action-btn--success .at-action-tooltip *,
.at-action-btn--info .at-action-tooltip,
.at-action-btn--info .at-action-tooltip *,
.at-action-btn--warning .at-action-tooltip,
.at-action-btn--warning .at-action-tooltip *,
table tbody tr:hover td .at-action-tooltip,
table tbody tr:hover td .at-action-tooltip *,
.table tbody tr:hover td .at-action-tooltip,
.table tbody tr:hover td .at-action-tooltip *,
.at-table tbody tr:hover td .at-action-tooltip,
.at-table tbody tr:hover td .at-action-tooltip *,
tr:hover td .at-action-tooltip,
tr:hover td .at-action-tooltip *,
table tbody tr:hover .at-action-btn .at-action-tooltip,
table tbody tr:hover .at-action-btn .at-action-tooltip *,
.table tbody tr:hover .at-action-btn .at-action-tooltip,
.table tbody tr:hover .at-action-btn .at-action-tooltip * {
  color: #0f172a !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 2px 2px 0px #0f172a !important;
}

/* PRESERVE TABLE HEAD TH DARK RED GRADIENT & SHINY GOLD TEXT (DO NOT CHANGE ON HOVER) */
/*.table thead,*/
/*.at-table thead,*/
/*table thead,*/
/*.table thead tr,*/
/*.at-table thead tr,*/
/*table thead tr,*/
/*.table thead th,*/
/*.at-table thead th,*/
/*table thead th,*/
/*.table thead tr>th,*/
/*.at-table thead tr>th,*/
/*table thead tr>th,*/
/*.table thead tr:hover,*/
/*.at-table thead tr:hover,*/
/*table thead tr:hover,*/
/*.table thead tr:hover>th,*/
/*.at-table thead tr:hover>th,*/
/*table thead tr:hover>th,*/
/*.table thead th:hover,*/
/*.at-table thead th:hover,*/
/*table thead th:hover {*/
/*  background: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;*/
/*  background-image: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;*/
/*  color: #fef08a !important;*/
/*  font-weight: 800 !important;*/
/*  letter-spacing: 0.06em !important;*/
/*  text-transform: uppercase !important;*/
/*  border-bottom: 2px solid #d97706 !important;*/
/*}*/
.table thead, .at-table thead, table thead, .table thead tr, .at-table thead tr, table thead tr, .table thead th, .at-table thead th, table thead th, .table thead tr>th, .at-table thead tr>th, table thead tr>th, .table thead tr:hover, .at-table thead tr:hover, table thead tr:hover, .table thead tr:hover>th, .at-table thead tr:hover>th, table thead tr:hover>th, .table thead th:hover, .at-table thead th:hover, table thead th:hover {
    background: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
    background-image: linear-gradient(180deg, #0d519e 0%, #0d53a4 40%, #034182 75%, #002956 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #4CAF50 !important;
}
.table thead th *,
.at-table thead th *,
table thead th * {
  color: #fef08a !important;
  font-weight: 800 !important;
}

[data-at-theme="dark"] table tbody,
[data-at-theme="dark"] table tbody tr,
[data-at-theme="dark"] table tbody tr>*,
[data-at-theme="dark"] table tbody td,
[data-at-theme="dark"] .table tbody tr,
[data-at-theme="dark"] .table tbody tr>*,
[data-at-theme="dark"] .table tbody td,
[data-at-theme="dark"] .at-table tbody tr,
[data-at-theme="dark"] .at-table tbody tr>*,
[data-at-theme="dark"] .at-table tbody td {
  background: #2b1408 !important;
  background-color: #2b1408 !important;
  background-image: none !important;
  color: #f8fafc !important;
  border-color: rgba(202, 138, 4, 0.3) !important;
}

[data-at-theme="dark"] table tbody tr:hover,
[data-at-theme="dark"] table tbody tr:hover>td,
[data-at-theme="dark"] .table tbody tr:hover>*,
[data-at-theme="dark"] .at-table tbody tr:hover>* {
  background: #d97706 !important;
  background-color: #d97706 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   UNIFIED BUTTON STYLING FOR .btn_primary AND .btn_light (GENEALOGY TREE & PANEL)
   ========================================================================== */
.btn_primary,
.btn-primary,
.at-btn--primary,
.btn_light,
button.btn_primary,
button.btn-primary,
button.btn_light,
a.btn_primary,
a.btn-primary,
a.btn_light,
input[type="submit"].btn_primary,
input[type="submit"].btn-primary,
.btn_light:disabled,
.btn_light[disabled] {
  border: 2px solid #1a1410 !important;
  box-shadow: 3px 3px 0px #1a1410 !important;
  border-radius: 8px !important;
  font-family: var(--at-font-sans, inherit) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

/* Primary Button Background (Shiny Metallic Gold Gradient) */
.btn_primary,
.btn-primary,
.at-btn--primary,
button.btn_primary,
button.btn-primary,
a.btn_primary,
a.btn-primary,
input[type="submit"].btn_primary,
input[type="submit"].btn-primary {
  background: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  background-image: linear-gradient(160deg, #caa93a, #d5b856, #fef1a2, #bc881b, #a54e07) !important;
  color: #002858 !important;
}

.btn_primary *,
.btn-primary *,
.at-btn--primary * {
  color: #002858 !important;
  font-weight: 800 !important;
}

/* Light Button Background (Solid White) */
.btn_light,
button.btn_light,
a.btn_light,
.btn_light:disabled,
.btn_light[disabled] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a1410 !important;
  opacity: 1 !important;
}

.btn_light *,
button.btn_light *,
a.btn_light * {
  color: #1a1410 !important;
  font-weight: 800 !important;
}

/* Hover States */
.btn_primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.at-btn--primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #ffffff 0%, #fef08a 20%, #facc15 50%, #d97706 85%, #92400e 100%) !important;
  color: #261302 !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px #1a1410 !important;
}

.btn_primary:hover * {
  color: #261302 !important;
}

.btn_light:hover:not(:disabled) {
  background: #fff9f0 !important;
  color: #000000 !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0px #1a1410 !important;
}

/* Dark Mode Overrides */
[data-at-theme="dark"] .btn_primary,
[data-at-theme="dark"] .btn-primary,
[data-at-theme="dark"] .at-btn--primary,
[data-at-theme="dark"] .btn_light,
[data-at-theme="dark"] .btn_light:disabled {
  border-color: #ca8a04 !important;
  box-shadow: 3px 3px 0px #ca8a04 !important;
}

[data-at-theme="dark"] .btn_light,
[data-at-theme="dark"] .btn_light:disabled {
  background: #1e293b !important;
  color: #f8fafc !important;
}

[data-at-theme="dark"] .btn_light * {
  color: #f8fafc !important;
}

/* ==========================================================================
   ADVANCED NEON TECH GENEALOGY TREE (ISOLATED STYLES FOR GENEALOGY SECTION)
   ========================================================================== */
.gt-stage {
  background-color: #060d19 !important;
  background-image: radial-gradient(rgba(0, 242, 254, 0.15) 1.2px, transparent 1.2px) !important;
  background-size: 18px 18px !important;
  padding: 40px 0 50px 0 !important;
  overflow-x: auto !important;
  display: block !important;
  min-height: 520px !important;
  color: #ffffff !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

[data-at-theme="dark"] .gt-stage {
  background-color: #060d19 !important;
  background-image: radial-gradient(rgba(0, 242, 254, 0.15) 1.2px, transparent 1.2px) !important;
  color: #ffffff !important;
}

/* TREE CARD BASE - STATIC NO HOVER TRANSFORM ZOOM */
.gt-card {
  background: rgba(15, 23, 42, 0.95) !important;
  width: 195px !important;
  min-width: 185px !important;
  max-width: 210px !important;
  padding: 14px 12px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: box-shadow 0.25s ease !important;
  transform: none !important;
  z-index: 5 !important;
  backdrop-filter: blur(8px) !important;
}

.gt-card:hover {
  transform: none !important;
}

/* CARD COLOR VARIANTS (NEON GLOW BORDERS) */
.gt-card-gold {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.15) !important;
}

.gt-card-gold:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.65), inset 0 0 14px rgba(245, 158, 11, 0.25) !important;
}

.gt-card-red {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(239, 68, 68, 0.15) !important;
}

.gt-card-red:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.65), inset 0 0 14px rgba(239, 68, 68, 0.25) !important;
}

.gt-card-emerald {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), inset 0 0 10px rgba(16, 185, 129, 0.15) !important;
}

.gt-card-emerald:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.65), inset 0 0 14px rgba(16, 185, 129, 0.25) !important;
}

.gt-card-blue {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45), inset 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

.gt-card-blue:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.65), inset 0 0 14px rgba(59, 130, 246, 0.25) !important;
}

.gt-card-amber {
  border: 2px solid #f97316 !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45), inset 0 0 10px rgba(249, 115, 22, 0.15) !important;
}

.gt-card-amber:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.65), inset 0 0 14px rgba(249, 115, 22, 0.25) !important;
}

.gt-card-purple {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45), inset 0 0 10px rgba(168, 85, 247, 0.15) !important;
}

.gt-card-purple:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.65), inset 0 0 14px rgba(168, 85, 247, 0.25) !important;
}

.gt-card-cyan {
  border: 2px solid #06b6d4 !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45), inset 0 0 10px rgba(6, 182, 212, 0.15) !important;
}

.gt-card-cyan:hover {
  transform: none !important;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.65), inset 0 0 14px rgba(6, 182, 212, 0.25) !important;
}

/* CARD TEXT & CONTENT */
.gt-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

.gt-id {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.gt-count-badge,
.gt-card-header .gt-count-badge,
[data-at-theme="light"] .gt-count-badge,
html:not([data-at-theme="dark"]) .gt-count-badge {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  display: inline-block !important;
}

.gt-count-gold,
[data-at-theme="light"] .gt-count-gold,
html:not([data-at-theme="dark"]) .gt-count-gold {
  color: #fbbf24 !important;
}

.gt-count-red,
[data-at-theme="light"] .gt-count-red,
html:not([data-at-theme="dark"]) .gt-count-red {
  color: #f87171 !important;
}

.gt-count-emerald,
[data-at-theme="light"] .gt-count-emerald,
html:not([data-at-theme="dark"]) .gt-count-emerald {
  color: #34d399 !important;
}

.gt-count-blue,
[data-at-theme="light"] .gt-count-blue,
html:not([data-at-theme="dark"]) .gt-count-blue {
  color: #38bdf8 !important;
}

.gt-count-amber,
[data-at-theme="light"] .gt-count-amber,
html:not([data-at-theme="dark"]) .gt-count-amber {
  color: #fb923c !important;
}

.gt-count-purple,
[data-at-theme="light"] .gt-count-purple,
html:not([data-at-theme="dark"]) .gt-count-purple {
  color: #e879f9 !important;
}

.gt-count-cyan,
[data-at-theme="light"] .gt-count-cyan,
html:not([data-at-theme="dark"]) .gt-count-cyan {
  color: #38bdf8 !important;
}

.gt-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
}

.gt-role {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #f59e0b !important;
}

.gt-phone {
  font-size: 0.82rem !important;
  color: #fde047 !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.gt-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: auto !important;
}

/* CUSTOM BUTTON CLASSES FOR TREE SECTION ONLY */
.gt-btn-profile,
[data-at-theme="dark"] .gt-btn-profile {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%) !important;
  border: 1px solid #34d399 !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.gt-btn-profile:hover,
[data-at-theme="dark"] .gt-btn-profile:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6) !important;
}

.gt-btn-profile *,
[data-at-theme="dark"] .gt-btn-profile * {
  color: #ffffff !important;
}

.gt-btn-profile-red,
[data-at-theme="dark"] .gt-btn-profile-red {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1px solid #f87171 !important;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.gt-btn-profile-red * {
  color: #ffffff !important;
}

.gt-btn-profile-blue,
[data-at-theme="dark"] .gt-btn-profile-blue {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.gt-btn-profile-blue * {
  color: #ffffff !important;
}

.gt-btn-downline-red,
[data-at-theme="dark"] .gt-btn-downline-red {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1px solid #f87171 !important;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.gt-btn-downline-red:hover {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
  color: #ffffff !important;
}

.gt-btn-downline-red * {
  color: #ffffff !important;
}

.gt-btn-downline-purple,
[data-at-theme="dark"] .gt-btn-downline-purple {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%) !important;
  border: 1px solid #c084fc !important;
  box-shadow: 0 3px 8px rgba(168, 85, 247, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
}

.gt-btn-downline-purple * {
  color: #ffffff !important;
}

.gt-btn-downline-blue,
[data-at-theme="dark"] .gt-btn-downline-blue {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid #60a5fa !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
}

.gt-btn-downline-blue * {
  color: #ffffff !important;
}

.gt-btn-zero,
[data-at-theme="dark"] .gt-btn-zero {
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%) !important;
  border: 1px solid #14b8a6 !important;
  box-shadow: 0 2px 6px rgba(20, 184, 166, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  color: #e0f2fe !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: default !important;
}

.gt-btn-zero * {
  color: inherit !important;
}

.gt-btn-zero-blue,
[data-at-theme="dark"] .gt-btn-zero-blue {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%) !important;
  border: 1px solid #60a5fa !important;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  color: #eff6ff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: default !important;
}

.gt-btn-zero-blue * {
  color: inherit !important;
}

.gt-btn-zero-amber,
[data-at-theme="dark"] .gt-btn-zero-amber {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  color: #fffbeb !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: default !important;
}

.gt-btn-zero-amber * {
  color: inherit !important;
}

.gt-btn-upline,
[data-at-theme="dark"] .gt-btn-upline {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.gt-btn-upline:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
}

.gt-btn-upline * {
  color: #ffffff !important;
}

/* TREE CONNECTING NEON LINES - PERFECT SEAMLESS CONNECTIONS */
.gt-tree-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: max-content !important;
  min-width: 100% !important;
  padding: 0 30px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.gt-connector-v {
  width: 2.5px !important;
  height: 24px !important;
  background: #00f2fe !important;
  box-shadow: 0 0 8px #00f2fe, 0 0 3px #00f2fe !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 10 !important;
}

.gt-tree-ul {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  position: relative !important;
  gap: 12px !important;
  width: max-content !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}

.gt-tree-li {
  position: relative !important;
  padding-top: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

/* Vertical line dropping into card */
.gt-tree-line-v {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 2.5px !important;
  height: 24px !important;
  background: #00f2fe !important;
  box-shadow: 0 0 8px #00f2fe !important;
  z-index: 4 !important;
}

/* Horizontal line segments across gaps (calc 50% + 7px covers the 12px gap perfectly) */
.gt-tree-li::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 50% !important;
  width: calc(50% + 7px) !important;
  border-top: 2.5px solid #00f2fe !important;
  box-shadow: 0 -1px 6px rgba(0, 242, 254, 0.5) !important;
  z-index: 1 !important;
}

.gt-tree-li::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: calc(50% + 7px) !important;
  border-top: 2.5px solid #00f2fe !important;
  box-shadow: 0 -1px 6px rgba(0, 242, 254, 0.5) !important;
  z-index: 1 !important;
}

/* First child - rounded top-left corner & no left-side horizontal line */
.gt-tree-li:first-child::before {
  display: none !important;
}

.gt-tree-li:first-child::after {
  border-top-left-radius: 10px !important;
  border-top: 2.5px solid #00f2fe !important;
  box-shadow: -1px -1px 6px rgba(0, 242, 254, 0.6) !important;
}

/* Last child - rounded top-right corner & no right-side horizontal line */
.gt-tree-li:last-child::after {
  display: none !important;
}

.gt-tree-li:last-child::before {
  border-top-right-radius: 10px !important;
  border-top: 2.5px solid #00f2fe !important;
  box-shadow: 1px -1px 6px rgba(0, 242, 254, 0.6) !important;
}

/* Single/Only child - no horizontal lines */
.gt-tree-li:only-child::before,
.gt-tree-li:only-child::after {
  display: none !important;
}

.gt-empty-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 2px dashed #00f2fe !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2) !important;
  border-radius: 16px !important;
  padding: 24px 30px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  max-width: 320px !important;
}

/* ==========================================================================
   FILE / PRODUCT IMAGE UPLOAD DROPZONE HOVER TEXT COLOR STYLING
   ========================================================================== */
.at-image-dropzone {
  border: 2px dashed #ca8a04 !important;
  border-radius: 12px !important;
  padding: 24px 16px !important;
  text-align: center !important;
  background: rgba(106, 17, 203, 0.2) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.at-image-dropzone h6,
.at-image-dropzone h6 * {
  color: #1e1b4b !important;
  transition: color 0.25s ease, text-shadow 0.25s ease !important;
}

.at-image-dropzone h6 span {
  color: #d97706 !important;
  transition: color 0.25s ease !important;
}

.at-image-dropzone p {
  color: #475569 !important;
  transition: color 0.25s ease !important;
}

/* ON MOUSE HOVER: Change "Drag & drop product image here, or browse" text color to white & gold */
.at-image-dropzone:hover {
  background: rgba(106, 17, 203, 0.45) !important;
  border-color: #fef08a !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px) !important;
}

.at-image-dropzone:hover h6,
.at-image-dropzone:hover h6 * {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.at-image-dropzone:hover h6 span {
  color: #fef08a !important;
  text-decoration: underline !important;
}

.at-image-dropzone:hover p {
  color: #f1f5f9 !important;
}

.at-image-dropzone i,
.at-image-dropzone:hover i {
  transition: transform 0.25s ease, color 0.25s ease !important;
}

.at-image-dropzone:hover i {
  color: #fde047 !important;
  transform: scale(1.15) translateY(-3px) !important;
}

/* DARK MODE DROPZONE HOVER STYLING */
[data-at-theme="dark"] .at-image-dropzone {
  border-color: #ca8a04 !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

[data-at-theme="dark"] .at-image-dropzone h6,
[data-at-theme="dark"] .at-image-dropzone h6 * {
  color: #f8fafc !important;
}

[data-at-theme="dark"] .at-image-dropzone h6 span {
  color: #f59e0b !important;
}

[data-at-theme="dark"] .at-image-dropzone p {
  color: #94a3b8 !important;
}

[data-at-theme="dark"] .at-image-dropzone:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: #fef08a !important;
}

[data-at-theme="dark"] .at-image-dropzone:hover h6,
[data-at-theme="dark"] .at-image-dropzone:hover h6 * {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

[data-at-theme="dark"] .at-image-dropzone:hover h6 span {
  color: #fef08a !important;
}

[data-at-theme="dark"] .at-image-dropzone:hover p {
  color: #cbd5e1 !important;
}

/* -------------------------------------------------------------
   RATIO REWARDS & BONUS INCOME STYLES
   ------------------------------------------------------------- */
.kpi-ratio-card .at-kpi__content,
.kpi-ratio-card .at-kpi__label,
.kpi-ratio-card .at-kpi__value,
.kpi-ratio-card .at-kpi__content div {
  color: #ffffff !important;
}

.kpi-ratio-card .at-kpi__label,
.kpi-ratio-card .at-kpi__content .small {
  color: rgba(255, 255, 255, 0.9) !important;
}

.kpi-ratio-card .at-kpi__value {
  color: #ffffff !important;
}

.at-duration-progress-wrap {
  min-width: 130px;
}

.at-duration-badge-purple {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  font-size: 0.75rem !important;
}

.at-progress-thin {
  height: 5px;
  background: #e2e8f0;
  border-radius: 4px;
}

/* Custom Class: Text color dark in light mode, white in dark mode */
.text-dark-white,
.text-dark-white *,
.text-dark-white i,
.text-dark-white strong,
.text-dark-white span,
.at-modal-header .text-dark-white,
.at-modal-header .text-dark-white *,
.at-modal-header .text-dark-white i,
.at-modal-header .text-dark-white strong,
.at-modal-header .text-dark-white span,
.at-modal-header .at-charge-rate-badge,
.at-modal-header .at-charge-rate-badge *,
.at-modal-header .at-charge-rate-badge i,
.at-modal-header .at-charge-rate-badge strong,
.at-modal-header .at-charge-rate-badge span,
.at-modal-header .at-charge-icon,
.at-modal-header i.at-charge-icon,
.at-modal-header .at-charge-val,
.at-modal-header strong.at-charge-val {
  color: #002858 !important;
}

[data-at-theme="dark"] .text-dark-white,
[data-at-theme="dark"] .text-dark-white *,
[data-at-theme="dark"] .text-dark-white i,
[data-at-theme="dark"] .text-dark-white strong,
[data-at-theme="dark"] .text-dark-white span,
[data-at-theme="dark"] .at-modal-header .text-dark-white,
[data-at-theme="dark"] .at-modal-header .text-dark-white *,
[data-at-theme="dark"] .at-modal-header .text-dark-white i,
[data-at-theme="dark"] .at-modal-header .text-dark-white strong,
[data-at-theme="dark"] .at-modal-header .text-dark-white span,
[data-at-theme="dark"] .at-modal-header .at-charge-rate-badge,
[data-at-theme="dark"] .at-modal-header .at-charge-rate-badge *,
[data-at-theme="dark"] .at-modal-header .at-charge-rate-badge i,
[data-at-theme="dark"] .at-modal-header .at-charge-rate-badge strong,
[data-at-theme="dark"] .at-modal-header .at-charge-rate-badge span,
[data-at-theme="dark"] .at-modal-header .at-charge-icon,
[data-at-theme="dark"] .at-modal-header i.at-charge-icon,
[data-at-theme="dark"] .at-modal-header .at-charge-val,
[data-at-theme="dark"] .at-modal-header strong.at-charge-val {
  color: #ffffff !important;
}

/* Readonly form control styles */
.at-card form .at-form-input[readonly],
.at-card form .form-control[readonly],
.form-control[readonly] {
  background-color: #ffffff !important;
  cursor: default !important;
}

[data-at-theme="dark"] .at-card form .at-form-input[readonly],
[data-at-theme="dark"] .at-card form .form-control[readonly],
[data-at-theme="dark"] .form-control[readonly] {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* ============================================================
   IMAGE PREVIEW & ABOUT-US CARD COMPONENT STYLES
   ============================================================ */
.at-preview-card {
  background: var(--at-surface);
  border: 1px solid var(--at-border) !important;
  border-radius: var(--at-radius-md, 8px);
}

.at-preview-box {
  max-height: 240px;
  background: var(--at-surface-raised, #f8fafc);
  border: 1px solid var(--at-border) !important;
  border-radius: var(--at-radius-md, 8px);
}

.at-preview-img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* ============================================================
   ADMIN DASHBOARD NOTIFICATION POPUP MODAL & MARQUEE STYLES
   ============================================================ */
.at-member-marquee-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-radius: 10px;
}

.at-member-marquee-badge {
  background: linear-gradient(45deg, #e07a5f, #d05a3f);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.at-member-marquee-gif {
  height: 18px;
  vertical-align: middle;
}

#userNotificationModal .modal-dialog {
  max-width: 580px;
  margin: 1.75rem auto;
}

#userNotificationModal .modal-content {
  border: 2px solid #000000 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
}

#userNotificationModal .at-modal-header {
  background: linear-gradient(135deg, #0052d4 0%, #160d44 50%, #023b77 100%) !important;
  color: #ffffff !important;
  border-bottom: 2px solid #000000 !important;
}

#userNotificationModal .modal-body {
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  color: #0f172a !important;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#userNotificationModal .at-modal-footer {
  background: linear-gradient(135deg, #00c6ff 0%, #2196F3 50%, #68ccd9 100%) !important;
  border-top: 2px solid #000000 !important;
}

[data-at-theme="dark"] #userNotificationModal .modal-body,
[data-at-theme="dark"] #userNotificationModal .at-modal-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 50%, #111827 100%) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-at-theme="dark"] #userNotificationModal .modal-content {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

#userNotificationModal .popup-banner-container {
  width: 100%;
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #000000 !important;
}

[data-at-theme="dark"] #userNotificationModal .popup-banner-container {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-at-theme="dark"] #userNotificationModal .bg-light {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-at-theme="dark"] #userNotificationModal .bg-light p {
  color: #f8fafc !important;
}

#userNotificationModal .popup-banner-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block;
  margin: 0 !important;
  border-radius: inherit;
}

#userNotificationModal .popup-icon-circle {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

#userNotificationModal .popup-header-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

#userNotificationModal .popup-header-subtitle {
  font-size: 0.78rem;
}

#userNotificationModal .popup-detail-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

#userNotificationModal .modal-body::-webkit-scrollbar {
  width: 7px;
}

#userNotificationModal .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

#userNotificationModal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#userNotificationModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}