/* ==========================================================================
   OmniBundler ChainSense Institutional Trading Terminal Design System
   Exact Colors (#020408, #4ade80), Inter Typography & Web3 Minimalist UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #020408;
  --bg-surface: #03060c;
  --bg-card: rgba(255, 255, 255, 0.015);
  --bg-card-hover: rgba(74, 222, 128, 0.02);
  --border-color: rgba(74, 222, 128, 0.18);
  --border-subtle: rgba(74, 222, 128, 0.10);
  --border-hover: rgba(74, 222, 128, 0.35);
  --border-active: rgba(74, 222, 128, 0.45);
  
  --primary: #4ade80;
  --primary-hover: #22c55e;
  --primary-glow: rgba(74, 222, 128, 0.15);
  --primary-subtle: rgba(74, 222, 128, 0.08);
  
  --accent-sol: #4ade80;
  --accent-bnb: #f0b90b;
  --accent-ton: #0098ea;
  --accent-danger: #f87171;
  --accent-warn: #facc15;
  --accent-info: #38bdf8;
  
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  
  --sidebar-width: 240px;
  --header-height: 60px;
}

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

/* No grey body copy — keep labels/meta readable on dark UI */
.text-secondary,
.text-muted,
small.text-secondary,
small.text-muted,
.form-label,
.form-text {
  color: #ffffff !important;
}

html {
  background-color: var(--bg-main) !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: #020408 !important;
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(74, 222, 128, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 85%, rgba(0, 152, 234, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(240, 185, 11, 0.04), transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Modern sitewide scrollbars (thin green — matches volume/bundler tables)
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 222, 128, 0.35) rgba(255, 255, 255, 0.03);
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.28);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.5);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* ==========================================================================
   Sidebar Styling - Minimalist Terminal Style
   ========================================================================== */
.sidebar-wrapper {
  width: var(--sidebar-width) !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: rgba(3, 6, 12, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  border-right: 1px solid var(--border-color) !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.2s ease !important;
}

.sidebar-header {
  height: var(--header-height) !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-bottom: 1px solid var(--border-color) !important;
  background: transparent !important;
}

.sidebar-header .logo-icon {
  width: 28px;
  height: 28px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.2);
}

.sidebar-header .logo-name h5,
.brand-logo-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
}

.sidebar-header .logo-name h5 span,
.brand-logo-text span {
  color: var(--primary) !important;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.4) !important;
}

.sidebar-nav {
  padding: 14px 10px !important;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-nav ul.metismenu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-nav ul.metismenu li.menu-label {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  color: var(--text-muted) !important;
  padding: 14px 12px 6px !important;
}

.sidebar-nav ul.metismenu li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
  margin-bottom: 2px !important;
}

.sidebar-nav ul.metismenu li a:hover,
.sidebar-nav ul.metismenu li.mm-active > a,
.sidebar-nav ul.metismenu li a.active {
  background: rgba(74, 222, 128, 0.08) !important;
  color: var(--primary) !important;
  border-left: 2px solid var(--primary) !important;
}

.sidebar-nav ul.metismenu li a .parent-icon i {
  font-size: 1.1rem !important;
  color: inherit !important;
}

.sidebar-nav ul.metismenu li a .menu-title {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

.sidebar-nav ul.metismenu .has-arrow {
  position: relative !important;
}

.sidebar-nav ul.metismenu .has-arrow::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-width: 1.5px 0 0 1.5px !important;
  border-style: solid !important;
  border-color: rgba(232, 234, 240, 0.4) !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) rotate(225deg) !important;
  transition: transform 0.25s ease, border-color 0.2s ease !important;
}

.sidebar-nav ul.metismenu li.mm-active > .has-arrow::after,
.sidebar-nav ul.metismenu .has-arrow[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg) !important;
  border-color: var(--primary) !important;
}

.sidebar-nav ul.metismenu li.superadmin-parent.mm-active > .has-arrow::after {
  border-color: #f87171 !important;
}

.sidebar-nav ul.metismenu ul {
  list-style: none !important;
  padding: 4px 0 6px 12px !important;
  margin: 0 0 4px 18px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar-nav ul.metismenu ul li a {
  padding: 6px 10px !important;
  font-size: 0.76rem !important;
  gap: 8px !important;
  border-left: none !important;
  color: rgba(232, 234, 240, 0.6) !important;
  border-radius: 4px !important;
}

.sidebar-nav ul.metismenu ul li a:hover,
.sidebar-nav ul.metismenu ul li.mm-active > a,
.sidebar-nav ul.metismenu ul li a.active {
  background: rgba(74, 222, 128, 0.06) !important;
  color: var(--primary) !important;
  border-left: none !important;
  padding-left: 14px !important;
}

.sidebar-nav ul.metismenu li.superadmin-parent.mm-active > a {
  background: rgba(248, 113, 113, 0.08) !important;
  color: #f87171 !important;
  border-left-color: #f87171 !important;
}

.sidebar-nav ul.metismenu li.superadmin-parent ul li a:hover,
.sidebar-nav ul.metismenu li.superadmin-parent ul li.mm-active > a,
.sidebar-nav ul.metismenu li.superadmin-parent ul li a.active {
  background: rgba(248, 113, 113, 0.08) !important;
  color: #f87171 !important;
  padding-left: 14px !important;
}

.sidebar-nav ul.metismenu ul li a i {
  font-size: 15px !important;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */
.top-header {
  height: var(--header-height) !important;
  left: var(--sidebar-width) !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  background: rgba(2, 4, 8, 0.8) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  z-index: 900 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 24px !important;
}

.main-wrapper {
  margin-left: var(--sidebar-width) !important;
  padding-top: var(--header-height) !important;
  min-height: 100vh !important;
  background: transparent !important;
}

.main-content {
  padding: 28px !important;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==========================================================================
   Cards, Badges & UI Elements - Glowing Glassmorphism
   ========================================================================== */
.card {
  background: rgba(3, 6, 14, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(74, 222, 128, 0.22) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(74, 222, 128, 0.12) !important;
  transition: all 0.2s ease !important;
}

.card:hover {
  border-color: rgba(74, 222, 128, 0.38) !important;
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.55), 0 0 20px rgba(74, 222, 128, 0.08), inset 0 1px 0 rgba(74, 222, 128, 0.18) !important;
}

/* Soft green panel — same language as sniper wallet box */
.glass-card {
  background: #03060c !important;
  border: 1px solid rgba(74, 222, 128, 0.25) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 0 rgba(74, 222, 128, 0.1) !important;
}

.card-header {
  border-bottom: 1px solid rgba(74, 222, 128, 0.12) !important;
  padding: 14px 20px !important;
  background: transparent !important;
}

.card-body {
  padding: 20px !important;
}

.card-footer {
  border-top: 1px solid rgba(74, 222, 128, 0.12) !important;
  padding: 14px 20px !important;
  background: transparent !important;
}

.metric-card {
  padding: 1.5rem !important;
  border: 1px solid rgba(74, 222, 128, 0.25) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.05) 0%, rgba(3, 6, 14, 0.88) 100%) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(74, 222, 128, 0.22) !important;
}

.metric-card:hover {
  border-color: rgba(74, 222, 128, 0.35) !important;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(74, 222, 128, 0.12), inset 0 1px 0 rgba(74, 222, 128, 0.3) !important;
}

.metric-val {
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  font-variant-numeric: tabular-nums !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 25px rgba(74, 222, 128, 0.2);
}

.metric-val span {
  color: var(--primary) !important;
}

.badge-chain {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  letter-spacing: 0.05em !important;
}

.badge-chain-sol {
  background: rgba(74, 222, 128, 0.08) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.25) !important;
}

.badge-chain-bnb {
  background: rgba(240, 185, 11, 0.08) !important;
  color: #f0b90b !important;
  border: 1px solid rgba(240, 185, 11, 0.25) !important;
}

.badge-chain-ton {
  background: rgba(0, 152, 234, 0.08) !important;
  color: #0098ea !important;
  border: 1px solid rgba(0, 152, 234, 0.25) !important;
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  padding: 7px 16px !important;
  letter-spacing: 0.02em !important;
  transition: all 0.15s ease !important;
}

.btn-primary, .btn-p {
  background: #4ade80 !important;
  color: #020408 !important;
  border: none !important;
}

.btn-primary:hover, .btn-p:hover {
  background: #22c55e !important;
  color: #020408 !important;
  transform: translateY(-1px);
}

.btn-success {
  background: #4ade80 !important;
  color: #020408 !important;
  border: none !important;
}

.btn-success:hover {
  background: #22c55e !important;
  color: #020408 !important;
}

.btn-outline-secondary, .btn-s {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(232, 234, 240, 0.5) !important;
}

.btn-outline-secondary:hover, .btn-s:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.btn-outline-danger {
  background: transparent !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
  color: #f87171 !important;
}

.btn-outline-danger:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  border-color: #f87171 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Radio / checkbox button groups (.btn-check + .btn)
   The .btn-outline-* rules above use !important, which strips Bootstrap's own
   .btn-check:checked + .btn declaration (it is not !important). Without the
   overrides below a selected radio looked identical to an unselected one, so
   users could not tell that clicking "Sweep All" had registered at all.
   -------------------------------------------------------------------------- */
.btn-check:checked + .btn,
.btn-check:checked + .btn:hover,
.btn.active,
.btn.show,
.btn:first-child:active,
.btn-check:active + .btn {
  background: rgba(74, 222, 128, 0.18) !important;
  border-color: #4ade80 !important;
  color: #4ade80 !important;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4), 0 0 10px rgba(74, 222, 128, 0.15) !important;
}

.btn-check:focus-visible + .btn {
  box-shadow: 0 0 0 0.2rem rgba(74, 222, 128, 0.25) !important;
}

.btn-check:disabled + .btn,
.btn-check[disabled] + .btn {
  opacity: 0.45 !important;
}

.form-control, .form-select {
  background-color: #03060c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-size: 0.82rem !important;
  padding: 8px 12px !important;
}

.form-control:focus, .form-select:focus {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15) !important;
  background-color: #03060c !important;
  color: #fff !important;
}

.form-control::placeholder {
  color: rgba(232, 234, 240, 0.25) !important;
}

/* ==========================================================================
   Table & Code Typography - Strict Dark Theme
   ========================================================================== */
.table,
.table > :not(caption) > *,
.table > :not(caption) > * > *,
.table-responsive table,
.table tbody,
.table tbody tr,
.table tbody td,
.table thead,
.table thead tr,
.table thead th {
  background-color: transparent !important;
  --bs-table-bg: transparent !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-hover-bg: rgba(74, 222, 128, 0.03) !important;
  --bs-table-active-bg: transparent !important;
  color: rgba(232, 234, 240, 0.85) !important;
}

.table thead th {
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(232, 234, 240, 0.4) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.table tbody tr:nth-of-type(odd) > *,
.table tbody tr:nth-of-type(even) > * {
  background-color: transparent !important;
}

.table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  font-size: 0.82rem !important;
  color: rgba(232, 234, 240, 0.85) !important;
}

.table tbody tr:hover,
.table tbody tr:hover > *,
.table tbody tr:hover td {
  background-color: rgba(74, 222, 128, 0.03) !important;
}

code {
  font-family: 'Inter', monospace !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #4ade80 !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-size: 0.78rem !important;
  border: 1px solid rgba(74, 222, 128, 0.15) !important;
}

/* ==========================================================================
   Modals & Popups - Obsidian Dark with Animated Glowing Emerald Border
   ========================================================================== */
.modal-backdrop {
  /* A full-screen backdrop-filter has to re-blur the whole viewport whenever anything moves behind
     it (including the animated modal glow and every blurred card) - that is what made modals heavy
     and scroll laggy. A slightly more opaque plain background looks the same and costs nothing. */
  background-color: rgba(1, 3, 6, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out !important;
  transform: scale(0.96) !important;
}

.modal.show .modal-dialog {
  transform: scale(1) !important;
}

.modal-content {
  background: #03060c !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 
    0 18px 44px -14px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(74, 222, 128, 0.18),
    inset 0 1px 0 rgba(74, 222, 128, 0.3) !important;
}

/* Moving Animated Radiant Emerald Laser Glow around the popup */
.modal-content::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(
    115deg,
    rgba(74, 222, 128, 0.2) 0%,
    rgba(74, 222, 128, 0.9) 25%,
    rgba(34, 197, 94, 1) 50%,
    rgba(16, 185, 129, 0.25) 75%,
    rgba(74, 222, 128, 0.95) 100%
  ) !important;
  background-size: 250% 250% !important;
  border-radius: 10px !important;
  z-index: -2 !important;
  /* Previously: animation: modalGlowPulse 4s infinite (animating background-position + opacity +
     drop-shadow = a full re-raster of the modal every frame). The glow is now static. */
  animation: none !important;
  filter: drop-shadow(0 0 16px rgba(74, 222, 128, 0.45)) !important;
  pointer-events: none !important;
}

/* Inner Background Mask to keep clean inside */
.modal-content::after {
  content: '' !important;
  position: absolute !important;
  top: 0px !important;
  left: 0px !important;
  right: 0px !important;
  bottom: 0px !important;
  background: #03060c !important;
  border-radius: 7px !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

@keyframes modalGlowPulse {
  0% {
    background-position: 0% 0%;
    opacity: 0.8;
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.35));
  }
  50% {
    background-position: 100% 100%;
    opacity: 1;
    filter: drop-shadow(0 0 24px rgba(74, 222, 128, 0.7));
  }
  100% {
    background-position: 0% 0%;
    opacity: 0.8;
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.35));
  }
}


/* ---------------------------------------------------------------------------
   Modal performance + scrolling
   While a modal is open the cards behind it cannot be seen, so their
   backdrop-filter is pointless - and keeping it forces the compositor to
   re-blur them on every scroll/animation frame.
   --------------------------------------------------------------------------- */
body.modal-open .card,
body.modal-open .glass-card,
body.modal-open .metric-card,
body.modal-open .main-wrapper .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---------------------------------------------------------------------------
   Reliable inner scrolling for EVERY modal (no per-dialog opt-in needed).

   Two things kept breaking Bootstrap's scrollable layout in this app:
     1. Most modals wrap header/body/footer in a <form>. A block-level <form>
        between .modal-content and .modal-body stops the body from ever being
        constrained, so the dialog simply grew past the viewport and the content
        was cropped with nothing to scroll.
     2. Several dialogs never got the .modal-dialog-scrollable class at all.

   So the dialog is now a centred flex column and both the (optional) form and
   the content fill it: header + footer stay pinned, the body is the single
   scroll container. A definite max-height (px, not %) is used everywhere so the
   constraint resolves even when the dialog's own height is auto.
   --------------------------------------------------------------------------- */
.modal-dialog {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  height: auto !important;
  max-height: calc(100vh - 1.5rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Bootstrap scrollable sets height:100% → tall empty towers. Cap it; never force-fill. */
.modal-dialog-scrollable {
  height: auto !important;
  max-height: calc(100vh - 1.5rem) !important;
}

/* Vertical center: dialog can be tall, CONTENT must stay content-sized (no flex-grow). */
.modal-dialog-centered {
  min-height: calc(100% - var(--bs-modal-margin, 1.75rem) * 2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-dialog > .modal-content,
.modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  /* size to content — do NOT grow into empty viewport space */
  flex: 0 1 auto !important;
  align-self: stretch !important;
  min-height: 0 !important;
  width: 100% !important;
  max-height: calc(100vh - 2.5rem) !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.modal-content > .modal-header,
.modal-content > .modal-footer,
.modal-content > form > .modal-header,
.modal-content > form > .modal-footer {
  flex: 0 0 auto !important;
}

.modal-content > .modal-body,
.modal-content > form > .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin;
}

.modal-content .modal-body::-webkit-scrollbar { width: 8px; }
.modal-content .modal-body::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.28); border-radius: 4px;
}
.modal-content .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.5);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 2.5rem) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 16px 20px !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color) !important;
  padding: 14px 20px !important;
}

.dropdown-menu {
  background: #03060c !important;
  border: 1px solid rgba(74, 222, 128, 0.25) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(74, 222, 128, 0.1) !important;
}

.dropdown-item {
  color: rgba(232, 234, 240, 0.7) !important;
  font-size: 0.8rem !important;
  padding: 8px 14px !important;
  transition: all 0.15s ease !important;
}

.dropdown-item:hover {
  background: rgba(74, 222, 128, 0.08) !important;
  color: #4ade80 !important;
}

/* ==========================================================================
   Terminal Window
   ========================================================================== */
.terminal-window {
  background-color: #010306 !important;
  color: #4ade80 !important;
  font-family: 'Inter', Courier, monospace !important;
  font-size: 0.78rem !important;
  border-radius: 4px !important;
  padding: 14px !important;
  height: 340px !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   Web3 Sniper Fleet Component Styles
   ========================================================================== */
.no-spinners::-webkit-inner-spin-button,
.no-spinners::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.no-spinners {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.fleet-stepper-box {
  background: #03060c;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 0 0 10px rgba(74, 222, 128, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fleet-stepper-box:focus-within {
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
}

.fleet-stepper-btn {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #4ade80;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.fleet-stepper-btn:hover {
  background: rgba(74, 222, 128, 0.2);
  color: #ffffff;
}

.fleet-stepper-btn:active {
  transform: scale(0.92);
}

.fleet-stepper-input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  width: 65px !important;
  padding: 2px !important;
  box-shadow: none !important;
}

.fleet-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 234, 240, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.fleet-pill-btn:hover {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.fleet-pill-btn.active-preset {
  background: rgba(74, 222, 128, 0.18) !important;
  border-color: #4ade80 !important;
  color: #4ade80 !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}

.fleet-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: all 0.2s ease;
}

.fleet-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4ade80;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9), 0 0 18px rgba(74, 222, 128, 0.4);
  border: 2px solid #03060c;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fleet-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(74, 222, 128, 1), 0 0 24px rgba(74, 222, 128, 0.7);
}

.fleet-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4ade80;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  border: 2px solid #03060c;
}

/* ==========================================================================
   Universal Select2 Dark Web3 Theme (No White Active/Selected Backgrounds)
   ========================================================================== */
.select2-container--bootstrap4 .select2-selection,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  background-color: #03060c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  min-height: 40px !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  line-height: 38px !important;
  font-size: 0.85rem !important;
  padding-left: 12px !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
  color: rgba(232, 234, 240, 0.4) !important;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(232, 234, 240, 0.6) transparent transparent transparent !important;
}

.select2-dropdown {
  background-color: #03060c !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9) !important;
  z-index: 99999 !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.select2-search--dropdown {
  background-color: #03060c !important;
  padding: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.select2-search--dropdown .select2-search__field {
  background-color: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #4ade80 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2) !important;
}

.select2-results__options {
  background-color: #03060c !important;
  padding: 4px 0 !important;
}

.select2-results__option {
  padding: 9px 14px !important;
  font-size: 0.82rem !important;
  color: #ffffff !important;
  background-color: #03060c !important;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Selected Option (Active/Checked) - Dark Emerald Tint, NO White/Gray Background */
.select2-container--bootstrap4 .select2-results__option[aria-selected="true"],
.select2-results__option[aria-selected="true"],
.select2-results__option--selected {
  background-color: rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
  font-weight: 700 !important;
}

/* Hovered / Highlighted Option - Bright Green with Dark Text */
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
  background-color: #4ade80 !important;
  color: #020408 !important;
  font-weight: 700 !important;
}

.select2-results__option--highlighted .text-muted,
.select2-results__option--highlighted .text-secondary {
  color: rgba(2, 4, 8, 0.75) !important;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2) !important;
}




/* ==========================================================================
   AUTH PAGES (login / register)
   Split "brand stage + terminal card" layout following the landing page's
   language: emerald accent, extreme-tight 900 headings, micro-labels with
   tracking, hairline borders. Not dependent on Bootstrap's grid.
   ========================================================================== */
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}

/* soft depth behind everything (static: no repaint cost while typing) */
.auth-orb {
  position: fixed;
  width: 620px;
  height: 620px;
  left: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.10) 0%, rgba(2, 4, 8, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- left: brand stage ---------------- */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3.25rem 3.5rem 2.5rem;
  border-right: 1px solid var(--border-color);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.auth-logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 5px;
}

.auth-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-logo-text span { color: var(--primary); text-shadow: 0 0 14px rgba(74, 222, 128, 0.35); }

.auth-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.auth-tag::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--primary);
}

.auth-h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1.15rem;
  color: var(--text-primary);
}
.auth-h1 span { color: var(--primary); }
.auth-h1 em { font-style: normal; color: rgba(232, 234, 240, 0.22); }

.auth-lede {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 30rem;
  margin-bottom: 2.25rem;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
}

.auth-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.auth-feature-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--primary);
}
.auth-feature-icon .material-icons-outlined { font-size: 16px; }

.auth-feature-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.auth-feature-text {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 32rem;
}
.auth-metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}
.auth-metric-value span { color: var(--primary); }
.auth-metric-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ---------------- right: the terminal card ---------------- */
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 3.5rem;
}

.auth-card {
  width: 100%;
  max-width: 27rem;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.92) 0%, rgba(3, 6, 12, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.95), 0 0 34px rgba(74, 222, 128, 0.07),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
/* one hairline highlight along the top edge - cheap, no blur */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.55), transparent);
}

.auth-card-head { margin-bottom: 1.5rem; }
.auth-card-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}
.auth-card-sub { font-size: 0.76rem; color: var(--text-secondary); margin: 0; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  font-size: 17px;
  pointer-events: none;
}
.auth-input-wrap .form-control {
  /* the theme sets padding on .form-control with !important - match it so the
     text never collides with the leading icon */
  padding-left: 2.4rem !important;
  height: 44px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #020408;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.auth-submit:hover { background: var(--primary-hover); transform: translateY(-1px); }
.auth-submit .material-icons-outlined { font-size: 17px; }

.auth-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}
.auth-note .material-icons-outlined { font-size: 13px; }

.auth-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1rem;
}
.auth-error .material-icons-outlined { font-size: 16px; }

.auth-foot {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ---------------- responsive ---------------- */
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand {
    padding: 1.75rem 1.35rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    gap: 1.25rem;
  }
  .auth-h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 0.85rem; }
  .auth-lede { margin-bottom: 0; font-size: 0.8rem; }
  .auth-features, .auth-metrics { display: none; }   /* keep the phone view focused on the form */
  .auth-panel { padding: 1.5rem 1.35rem 3rem; }
  .auth-card { max-width: 100%; padding: 1.5rem 1.25rem 1.25rem; }
  .auth-foot { display: none; }
}

@media (max-width: 575.98px) {
  .auth-logo-text { font-size: 1.05rem; }
  .auth-tag { margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit { transition: none; }
  .auth-submit:hover { transform: none; }
}

