/* Alk-Sniper Dashboard CSS Stylesheet */

:root {
  /* Colors */
  --bg-app: #060911;
  --bg-sidebar: #0b101c;
  --bg-main: #090c15;
  --card-bg: rgba(16, 22, 38, 0.65);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(0, 242, 254, 0.22);
  
  --accent: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  
  --green: #00e676;
  --green-glow: rgba(0, 230, 118, 0.3);
  --amber: #ffb300;
  --red: #ff5252;
  --blue: #2979ff;
  --purple: #d500f9;
  
  --text-primary: #f2f5f9;
  --text-secondary: #8596a8;
  --text-dim: #455570;
  
  /* Fonts */
  --font-display: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

input, button, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.35);
}

/* Layout Wrapper */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* 1. Left Sidebar */
.sidebar {
  width: 230px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--accent);
  filter: blur(10px);
  opacity: 0.3;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.nav-item svg {
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.nav-item:hover svg {
  transform: translateX(2px);
  opacity: 0.9;
}

.nav-item.active {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.nav-item.active svg {
  color: var(--accent);
  opacity: 1;
}

/* Wallet Card */
.wallet-card {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.status-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--green);
  box-shadow: 0 0 5px var(--green);
}

.wallet-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-address {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-break: break-all;
}

.wallet-balances {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.balance-item .label {
  color: var(--text-secondary);
}

.balance-item .value {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* 2. Main Content Area */
.main-content {
  flex-grow: 1;
  background-color: var(--bg-main);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 10px;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.page-title .subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.topbar-widgets {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fee-widget, .status-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fee-widget .label, .status-widget .label {
  font-size: 9.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-values {
  display: flex;
  gap: 4px;
}

.fee-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 3px;
}

.priority-fast {
  background-color: rgba(255, 82, 82, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 82, 82, 0.2);
}

.priority-avg {
  background-color: rgba(0, 242, 254, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.priority-slow {
  background-color: rgba(133, 150, 168, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(133, 150, 168, 0.2);
}

.status-widget .value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--accent);
}

.audio-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.04);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: var(--accent);
  font-size: 12px;
}

.audio-toggle-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.1);
}

.audio-toggle-btn.muted {
  border-color: rgba(255, 82, 82, 0.2);
  background: rgba(255, 82, 82, 0.04);
  color: var(--red);
}

/* Glassmorphic Card Styling */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 6px 24px 0 rgba(0, 242, 254, 0.02);
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-card h3 svg {
  color: var(--accent);
}

/* Panels switching */
.tab-panels {
  flex-grow: 1;
  position: relative;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: flex;
}

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

/* Unified Console Layout columns */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 16px;
}

.col-left, .col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ultra-Compressed Horizontal Parameters Control Card */
.config-card-horizontal-bar {
  padding: 10px 14px !important;
  overflow: visible;
  z-index: 20;
}

.horizontal-inputs-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  width: 100%;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group-compact label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.form-group-compact input[type="text"],
.form-group-compact input[type="number"],
.form-group-compact input[type="password"] {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  transition: all 0.2s ease;
  height: 28px;
  width: 100%;
}

.form-group-compact input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.005);
}

.form-group-compact input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.01);
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"] {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.01);
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.08);
}

/* Compressed widths */
.mon-asset-group { width: 150px; }
.mon-interval-group { width: 85px; }
.mon-window-group { width: 130px; }
.mon-profit-group { width: 120px; }
.mon-quiet-group { width: 140px; }
.mon-toggle-group { width: 105px; }

.price-window-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 4px;
}

.price-window-control select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  border-radius: 5px;
  font-size: 12px;
  height: 28px;
  padding: 5px 6px;
}

.range-inputs-compact {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.range-inputs-compact input {
  text-align: center;
  width: 45px !important;
  padding: 4px 6px !important;
}

.range-inputs-compact span {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Start/Pause button style */
.btn-mon-toggle {
  font-size: 11.5px;
  padding: 0 10px;
  height: 28px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--green);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mon-toggle:hover {
  background: rgba(0, 230, 118, 0.08);
}

.btn-mon-toggle.paused {
  background: rgba(255, 82, 82, 0.04);
  border-color: rgba(255, 82, 82, 0.2);
  color: var(--red);
}

.btn-mon-toggle.paused:hover {
  background: rgba(255, 82, 82, 0.08);
}

/* Dynamic range slider used in Settings page */
.volume-slider-container input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  outline: none;
  margin: 6px 0;
}

.volume-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent);
}

/* Metrics Grid */
.metrics-grid-combined {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-left: 3px solid var(--card-border);
}

.metric-card:nth-child(1) { border-left-color: var(--blue); }
.metric-card:nth-child(2) { border-left-color: var(--accent); }
.metric-card:nth-child(3) { border-left-color: var(--green); }

.metric-card.best-profit {
  background: linear-gradient(135deg, rgba(20, 27, 43, 0.65) 0%, rgba(0, 230, 118, 0.03) 100%);
  border-color: var(--green);
  box-shadow: 0 4px 20px 0 rgba(0, 230, 118, 0.02);
}

.metric-card.best-profit.positive {
  background: linear-gradient(135deg, rgba(20, 27, 43, 0.65) 0%, rgba(0, 230, 118, 0.08) 100%);
  border-color: rgba(0, 230, 118, 0.45);
  border-left-color: var(--green);
  box-shadow: 0 4px 20px 0 rgba(0, 230, 118, 0.08);
}

.metric-card.best-profit.negative {
  background: linear-gradient(135deg, rgba(20, 27, 43, 0.72) 0%, rgba(255, 82, 82, 0.1) 100%);
  border-color: rgba(255, 82, 82, 0.48);
  border-left-color: var(--red);
  box-shadow: 0 4px 20px 0 rgba(255, 82, 82, 0.1);
}

.metric-card.best-profit.neutral {
  background: rgba(16, 22, 38, 0.65);
  border-color: var(--card-border);
  border-left-color: var(--text-dim);
  box-shadow: none;
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
}

.metric-value .unit {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
}

.metric-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.metric-status.success { background-color: rgba(0, 230, 118, 0.08); color: var(--green); }
.metric-status.info { background-color: rgba(41, 121, 255, 0.08); color: var(--blue); }
.metric-status.warning { background-color: rgba(255, 179, 0, 0.08); color: var(--amber); }
.metric-status.danger { background-color: rgba(255, 82, 82, 0.1); color: var(--red); }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
}

.pulse {
  animation: pulse-green 1.5s infinite;
}

.pulse-amber {
  animation: pulse-orange 1.5s infinite;
}

.pulse-red {
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes pulse-orange {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255, 179, 0, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

@keyframes pulse-red {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.75); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255, 82, 82, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* Listings Table Card Styling */
.card-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-header-actions h3 {
  margin-bottom: 0;
}

.last-update {
  font-size: 11px;
  color: var(--text-secondary);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

th {
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-size: 12px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.profitable-row td {
  background: rgba(0, 230, 118, 0.01);
}

.profitable-row:hover td {
  background: rgba(0, 230, 118, 0.02) !important;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-bold { font-weight: 600; }

.badge {
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-rank {
  background-color: var(--accent);
  color: var(--bg-app);
}

.percent {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Button Custom Styling */
.btn {
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-app);
  box-shadow: 0 4px 8px rgba(0, 242, 254, 0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 242, 254, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}

.btn-huge {
  padding: 10px 20px;
  font-size: 13.5px;
  border-radius: 6px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.row-checkbox {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Terminal Log Console styling */
.terminal-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.04);
}

.terminal-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-dots {
  display: flex;
  gap: 4px;
  margin-right: 10px;
}

.terminal-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.terminal-dots .dot.red { background-color: var(--red); }
.terminal-dots .dot.yellow { background-color: var(--amber); }
.terminal-dots .dot.green { background-color: var(--green); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.btn-terminal-clear {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: 500;
}

.btn-terminal-clear:hover {
  color: var(--text-primary);
}

.terminal-body {
  height: 120px;
  overflow-y: auto;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.1);
}

.log-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-line.text-dim { color: var(--text-dim); }

/* Right Column: Dense form and columns align */
.sniper-config-card-combined {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Dense form grid system (10 columns grid) */
.sniper-dense-form-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  align-items: end;
  width: 100%;
}

.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-35 { grid-column: span 3.5; }
.grid-col-4 { grid-column: span 4; }
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-full { grid-column: span 10; }

.selected-quote-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
  color: var(--text-secondary);
  font-size: 12px;
}

.selected-quote-strip b {
  color: var(--accent);
  font-family: var(--font-mono);
}

.selected-quote-strip .btn-mini {
  margin-left: auto;
  padding: 4px 8px;
  min-height: 24px;
  font-size: 11px;
}

.border-top-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  margin-top: 0;
}

.toggle-container-dense {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  height: 28px;
}

/* Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 16px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.06);
  transition: .2s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .2s;
}

.switch input:checked + .slider {
  background-color: rgba(0, 230, 118, 0.16);
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
  background-color: var(--green);
  box-shadow: 0 0 5px var(--green);
}

.switch .slider.round {
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.switch .slider.round:before {
  border-radius: 50%;
}

.toggle-label {
  font-size: 11.5px;
}

.transition-fade {
  transition: all 0.3s ease;
  max-height: 150px;
  overflow: hidden;
}

.transition-fade.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Mode toggles small size */
.mode-toggles-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.mode-radio-small {
  cursor: pointer;
}

.mode-radio-small input[type="radio"] {
  display: none;
}

.radio-card-small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  padding: 6px 8px;
  border-radius: 5px;
  transition: all 0.15s ease;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.mode-radio-small input:checked + .radio-card-small {
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.04);
  color: var(--text-primary);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.06);
}

.radio-card-small:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Execution Action Panel */
.action-buttons-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.manual-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-action {
  font-size: 11px;
  padding: 8px 3px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  font-weight: 500;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.resume-execution-panel {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 9px;
}

.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.resume-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.resume-hint {
  color: var(--text-dim);
  font-size: 10.5px;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: end;
}

.resume-grid .btn-action {
  min-width: 78px;
  height: 28px;
  padding: 5px 8px;
  white-space: nowrap;
}

.trade-run-history {
  margin-top: 8px;
}

.trade-run-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 10.5px;
  margin-bottom: 5px;
}

.trade-run-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-dim);
  font-size: 10.5px;
  max-height: 118px;
  overflow-y: auto;
}

.trade-run-list-full {
  max-height: calc(100vh - 210px);
  gap: 8px;
}

.trade-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.015);
}

.trade-run-main {
  min-width: 0;
}

.trade-run-title,
.trade-run-txids {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-run-title {
  color: var(--text-primary);
  font-weight: 600;
}

.trade-run-txids {
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 2px;
}

.trade-run-fill-btn {
  height: 24px;
  padding: 4px 7px;
  font-size: 10px;
}

.trade-run-details {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}

.dot-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-status.blue { background-color: var(--blue); box-shadow: 0 0 3px var(--blue); }
.dot-status.orange { background-color: var(--amber); box-shadow: 0 0 3px var(--amber); }
.dot-status.purple { background-color: var(--purple); box-shadow: 0 0 3px var(--purple); }

/* Huge pulse button styling */
.btn-pulse {
  background: var(--accent-gradient);
  color: var(--bg-app);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.22);
  z-index: 1;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  transition: transform 0.25s ease;
}

.btn-pulse:hover {
  transform: scale(1.01);
}

.btn-pulse:active {
  transform: scale(0.99);
}

.btn-pulse.active-sniping {
  background: linear-gradient(135deg, var(--green) 0%, #00b0ff 100%);
  animation: giant-pulse 2s infinite;
}

@keyframes giant-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Combined progress stepper layout */
.pipeline-card-combined {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--bg-app);
  transition: width 0.3s ease;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 10px;
}

/* Vertical line behind steps */
.pipeline-steps::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 16px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 1;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  opacity: 0.35;
  transition: all 0.25s ease;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-sidebar);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.step-num {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-dim);
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.step-title {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Step status modifiers */
.step-item.processing {
  opacity: 1;
}

.step-item.processing .step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  background: rgba(0, 242, 254, 0.08);
  animation: dot-pulse 1.5s infinite;
}

.step-item.processing .step-num {
  color: var(--accent);
}

.step-item.completed {
  opacity: 1;
}

.step-item.completed .step-dot {
  border-color: var(--green);
  background: var(--green);
}

.step-item.completed .step-num {
  color: var(--bg-app);
}

.step-item.failed {
  opacity: 1;
}

.step-item.failed .step-dot {
  border-color: var(--red);
  background: var(--red);
}

.step-item.failed .step-num {
  color: var(--text-primary);
}

@keyframes dot-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.sniper-console-wrapper {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.console-output {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 5px;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  height: 80px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Tab 2: System Settings Layouts & Grid (Beautified 2-Column) */
.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
}

.settings-col-left,
.settings-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card-beautified {
  background: rgba(21, 27, 38, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.settings-card-beautified:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.card-header-beautified {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 14px;
}

.card-header-beautified .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--card-border);
  flex-shrink: 0;
}

.card-header-beautified .icon-circle.border-blue {
  border-color: rgba(41, 121, 255, 0.4);
  background: rgba(41, 121, 255, 0.05);
}

.card-header-beautified .icon-circle.border-green {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.05);
}

.card-header-beautified .icon-circle.border-cyan {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.05);
}

.card-header-beautified .icon-circle.border-purple {
  border-color: rgba(213, 0, 249, 0.4);
  background: rgba(213, 0, 249, 0.05);
}

.card-header-beautified .header-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-header-beautified .header-text p {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.password-group {
  position: relative;
}

.input-with-toggle {
  display: flex;
  position: relative;
  width: 100%;
}

.input-with-toggle input {
  padding-right: 36px !important;
}

.btn-toggle-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-visibility:hover {
  color: var(--text-primary);
}

.danger-warning {
  color: var(--red);
  font-size: 10px;
  margin-top: 3px;
  display: block;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-actions .btn {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11.5px;
  white-space: nowrap;
}

.address-derivations {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 14px;
}

.deriv-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.deriv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deriv-item-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 8px 10px;
}

.deriv-item-card .label {
  font-size: 9.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.address-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.address-copy-row .value {
  font-size: 10.5px;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
  font-family: var(--font-mono);
}

.address-copy-row .copy-badge {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.address-copy-row .copy-badge:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.select-all {
  user-select: all;
  cursor: pointer;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider-container input[type="range"] {
  flex-grow: 1;
}

.volume-slider-container span {
  font-family: var(--font-mono);
  font-weight: 600;
  min-width: 28px;
}

.sound-test-container {
  margin-top: 6px;
}

.info-card-beautified {
  background: rgba(21, 27, 38, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mempool-visual-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 12px;
}

.mempool-visual-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mempool-visual-stats .stat-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.mempool-visual-stats .stat-row .label {
  font-size: 11px;
  color: var(--text-secondary);
}

.mempool-visual-stats .stat-row .value {
  font-size: 11px;
  font-family: var(--font-mono);
}

/* Topbar Status Button Widget styling */
.monitor-status-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.monitor-status-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.monitor-status-btn.active {
  background: rgba(0, 230, 118, 0.05);
  border-color: rgba(0, 230, 118, 0.2);
}

.monitor-status-btn.active:hover {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.monitor-status-btn.paused {
  background: rgba(255, 82, 82, 0.05);
  border-color: rgba(255, 82, 82, 0.2);
}

.monitor-status-btn.paused:hover {
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.4);
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.15);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green {
  background-color: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.status-dot.red {
  background-color: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.status-dot.pulse {
  animation: dot-pulse-glow 1.5s infinite;
}

@keyframes dot-pulse-glow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

.monitor-status-btn .status-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.monitor-status-btn .action-text {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Listings Slot Grid styling (Beautified Left Column version) */
.slots-card-beautified {
  background: rgba(21, 27, 38, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.slots-card-beautified .card-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.slots-card-beautified .card-header-actions h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.slots-card-beautified .slots-info-text {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.listing-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 1200px) {
  .listing-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.slot-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: auto;
  min-height: 58px;
}

.slot-btn .slot-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

.slot-btn .slot-price {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.slot-btn .slot-qty {
  font-size: 9.5px;
  color: var(--text-secondary);
}

.slot-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.slot-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.slot-btn.active .slot-num {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent);
}

.slot-btn.active .slot-price {
  color: var(--accent);
}

.slot-btn.active .slot-qty {
  color: rgba(0, 242, 254, 0.8);
}

/* Custom Searchable Combobox Widget */
.custom-combobox {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.custom-combobox:focus-within {
  z-index: 30;
}

.custom-combobox input {
  padding-right: 30px !important;
  width: 100%;
}

.custom-combobox .combobox-arrow-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  z-index: 2;
  transition: color 0.2s ease;
}

.custom-combobox .combobox-arrow-btn:hover {
  color: var(--accent);
}

.custom-combobox .combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(15, 20, 30, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.custom-combobox .combobox-dropdown.hidden {
  display: none !important;
}

.custom-combobox .combobox-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.custom-combobox .combobox-item:last-child {
  border-bottom: none;
}

.custom-combobox .combobox-item:hover {
  background: rgba(0, 242, 254, 0.1);
}

.custom-combobox .combobox-item .item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.custom-combobox .combobox-item .item-id {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.custom-combobox .combobox-item:hover .item-id {
  color: var(--accent);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

/* Responsive Scaling */
@media (max-width: 1300px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
