:root {
  --bg-app: #0e1013;
  --bg-surface: #14171d;
  --bg-surface-hover: #191c24;
  --bg-elevated: #1e222b;
  --bg-input: #0a0c0e;
  
  --border-color: #222630;
  --border-hover: #313745;
  
  --text-primary: #eceef2;
  --text-secondary: #9096a2;
  --text-muted: #5e6573;
  
  --accent: #d97706;
  --accent-hover: #b45309;
  
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  --color-danger-border: rgba(239, 68, 68, 0.25);
  
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-warning-border: rgba(245, 158, 11, 0.25);
  
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-success-border: rgba(16, 185, 129, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  
  --radius: 4px;
}

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

.hidden {
  display: none !important;
}

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

.main-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px;
  box-sizing: border-box;
}

.tab-view,
#auditHistoryView,
#auditView {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Auth Loading State & Gate View (Hides button on authorization window and pending state) */
body.auth-pending #mainHeaderNav,
body.auth-pending .tab-view,
body.auth-pending #userProfileBadge,
body.auth-pending #floatingBugReportBtn,
body.not-authenticated #floatingBugReportBtn,
body:has(#authGateView.active) #floatingBugReportBtn,
body:has(#authGateView:not(.hidden)) #floatingBugReportBtn {
  display: none !important;
}

/* Header */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-logo-img {
  transform: scale(1.1) rotate(-3deg);
}

.brand-title {
  color: #fff;
  font-size: 14px;
}

.brand-sep {
  color: var(--text-muted);
}

.brand-sub {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.brand-badge-beta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
  user-select: none;
  vertical-align: middle;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.brand-badge-beta:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.brand-badge-beta::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: betaPulse 2s infinite ease-in-out;
}

@keyframes betaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.auth-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.auth-beta-badge .beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: betaPulse 2s infinite ease-in-out;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-secondary);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.status-indicator.offline {
  background: var(--color-danger);
}

/* Centered Navigation */
.header-nav.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 6px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.header-nav.hidden {
  display: none !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  justify-content: flex-end;
}

.nav-tab {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-tab.active {
  color: #fff;
  background: var(--bg-elevated);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Protected Admin Settings Dropdown */
.admin-menu-wrap {
  position: relative;
}

.btn-admin-gear {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-admin-gear:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.admin-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease;
}

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

.admin-dropdown-header {
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-dropdown-items {
  padding: 4px;
}

.admin-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s ease;
}

.admin-item:hover {
  background: var(--bg-elevated);
}

.admin-item-icon {
  font-size: 15px;
}

.admin-item-text {
  display: flex;
  flex-direction: column;
}

.admin-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.admin-item-sub {
  font-size: 10px;
  color: var(--text-muted);
}

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

/* Main Container */
.main-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 24px;
}

.tab-view.hidden {
  display: none !important;
}

/* Panels */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

/* Audit Meta Panel (Admin Tools match) */
.audit-meta-panel {
  padding: 14px 20px 16px 20px;
}

.audit-header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.audit-breadcrumb {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.faction-display-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.target-items-line {
  display: flex;
  gap: 8px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 6px 12px;
  margin-bottom: 14px;
  align-items: baseline;
}

.target-items-label {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.target-items-list {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Audit Informational Bar (Clean Read-Only Header) */
.audit-info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  background: rgba(14, 17, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 4px;
}

.audit-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.audit-info-label {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  font-size: 11px;
}

.audit-info-val {
  font-weight: 700;
  color: #fff;
}

.audit-info-val.badge-faction {
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.35);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.audit-info-val.badge-period {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

.audit-info-val.badge-player {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

.audit-info-params {
  flex: 1 1 auto;
}

.audit-badges-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.param-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.filter-toggles-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.toggle-chip input[type="checkbox"] {
  display: none;
}

.toggle-chip .chk-mark {
  font-weight: 700;
  font-size: 10px;
}

.toggle-chip.active {
  border-color: var(--color-success-border);
  color: var(--text-primary);
  background: var(--color-success-bg);
}

.toggle-chip.active .chk-mark {
  color: var(--color-success);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Presets */
.quick-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}

.preset-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* Form Controls */
.control-grid {
  display: grid;
  grid-template-columns: 240px 140px 140px 180px;
  gap: 12px;
  align-items: flex-end;
}

#twinksForm.control-grid {
  grid-template-columns: 160px 220px 140px 140px 180px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--accent);
}

.form-control.mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Buttons */
.btn {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  height: 33px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* Progress bar */
.progress-container {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-container.hidden {
  display: none !important;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: indeterminate 1.5s infinite linear;
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* KPI Summary Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.kpi-block {
  padding: 14px 20px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-block:last-child {
  border-right: none;
}

.kpi-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.kpi-number {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.kpi-split {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.text-danger {
  color: var(--color-danger) !important;
}

/* Toolbar */
.toolbar-panel {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}

.search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.filter-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  color: #fff;
  font-weight: 600;
}

.filter-btn.danger.active {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: #fca5a5;
}

.filter-btn.warning.active {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: #fde68a;
}

/* Data Table */
.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
  gap: 8px;
}

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

.table-bar-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.table-container {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.data-table th {
  background: #0f1115;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.1s;
}

.data-table tbody tr:hover {
  background: var(--bg-surface-hover);
}

.empty-row {
  text-align: center;
  padding: 48px 16px !important;
  color: var(--text-muted);
  font-size: 13px;
}

/* Player Column */
.player-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.player-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copyable-player-name {
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -2px;
  display: inline-block;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.copyable-player-name:hover {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.15);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.copyable-player-name:active {
  transform: scale(0.97);
}

.copyable-player-static {
  color: #94a3b8;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -2px;
  display: inline-block;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.copyable-player-static:hover {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.15);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.copyable-player-static:active {
  transform: scale(0.97);
}

.dossier-v2-player-title .copyable-player-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.dossier-v2-player-title .copyable-player-static {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
}

.player-alias-tag {
  font-size: 10px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 500;
  cursor: help;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-alias-badge {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 6px;
  font-style: italic;
}

.static-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  padding: 1px 5px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}

.static-tag:hover {
  border-color: var(--border-hover);
  color: #fff;
}

.player-period {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Item Badges */
.badge-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 580px;
}

.item-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.item-pill-qty {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.item-pill.weapon {
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.item-pill.armor {
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.item-pill.ammo {
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.item-pill.med {
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Status Indicators */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pill.critical {
  background: var(--color-danger-bg);
  color: #f87171;
  border: 1px solid var(--color-danger-border);
}

.status-pill.suspicious {
  background: var(--color-warning-bg);
  color: #fbbf24;
  border: 1px solid var(--color-warning-border);
}

.status-pill.normal {
  background: var(--color-success-bg);
  color: #34d399;
  border: 1px solid var(--color-success-border);
}

/* Status & Verification Buttons */
.btn-verification {
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-verification:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fff;
}

.btn-verification.verified {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.btn-verification.verified:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.7);
  color: #fff;
}

.btn-verification.punished {
  background: rgba(126, 34, 206, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.btn-verification.punished:hover {
  background: rgba(126, 34, 206, 0.3);
  border-color: rgba(168, 85, 247, 0.7);
  color: #fff;
}

/* Punishment Icon */
.btn-punish {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-punish:hover {
  color: #ef4444;
  transform: scale(1.15);
}

/* Player Column & Links */
.player-name {
  font-weight: 500;
  color: var(--text-primary);
}

.player-name-link {
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s;
}

.player-name-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.copy-icon {
  color: #64748b;
  cursor: pointer;
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.6;
  transition: all 0.15s;
}

.copy-icon:hover {
  opacity: 1;
  color: #cbd5e1;
}

.period-col {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.period-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

.period-line {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.period-line-to {
  color: var(--text-secondary);
}

/* Target Items List in Table Cell */
.items-list-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.items-list-link {
  cursor: pointer;
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  width: fit-content;
}

.items-list-link:hover {
  background: rgba(248, 113, 113, 0.14);
}

.items-list-link:hover .item-line-name {
  text-decoration: underline;
  color: #fca5a5;
}

.items-list-link:hover .item-line-qty {
  color: #fff;
}

.target-item-line {
  font-size: 12px;
  color: #f87171;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.35;
}

.item-line-name {
  color: #f87171;
  font-weight: 400;
}

.item-line-qty {
  color: #fca5a5;
  font-size: 11px;
  font-family: var(--font-mono);
}

.target-item-more {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 600;
  margin-top: 2px;
  cursor: pointer;
}

/* Monospace Values */
.val-mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.text-darknet-bold {
  color: #fbbf24;
  font-weight: 600;
}

.text-cost-bold {
  color: #f87171;
  font-weight: 600;
}

.text-mats-bold {
  color: #cbd5e1;
  font-weight: 600;
}

.text-zero {
  color: #475569;
}

/* Table Header Icons */
.sort-icon {
  font-size: 10px;
  color: #64748b;
  margin-right: 2px;
}

.header-icon {
  font-size: 10px;
  color: #64748b;
  margin-left: 2px;
  opacity: 0.7;
}

.table-search-box {
  position: relative;
}

.table-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-family: inherit;
  width: 150px;
  outline: none;
  transition: all 0.15s;
}

.table-search-input:focus {
  border-color: var(--accent);
  width: 180px;
}

.table-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: #fff;
}

.btn-icon {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s;
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dossier-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.btn-close,
.btn-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 15px;
  line-height: 1;
}

.btn-close:hover,
.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  transform: scale(1.05);
}

.btn-close:active,
.btn-modal-close:active {
  transform: scale(0.95);
}

.btn-close svg,
.btn-modal-close svg {
  display: block;
  pointer-events: none;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.dossier-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.d-metric {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.d-metric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.d-metric-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.dossier-block {
  margin-bottom: 16px;
}

.block-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-app);
  padding: 6px;
}

.timeline-item {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.timeline-item.give .timeline-text {
  color: #86efac;
}

.timeline-item.craft .timeline-text {
  color: #38bdf8;
}

.timeline-item.dismiss {
  background: var(--color-danger-bg);
}

.timeline-text {
  color: var(--text-primary);
}

.timeline-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg-app);
}

/* ======================================================== */
/* DOSSIER MODAL V2 (Admin Tools Layout matching Screenshot 2) */
/* ======================================================== */
.modal-window.dossier-v2-window {
  width: 96vw;
  max-width: 1440px;
  height: 90vh;
  max-height: 920px;
  background: #14171d;
  border: 1px solid #232732;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Header */
.dossier-v2-header {
  padding: 14px 20px 10px 20px;
  border-bottom: 1px solid #222631;
  background: #14171d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-v2-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-v2-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-v2-player-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--font-sans);
}

.btn-dossier-copy,
.btn-dossier-discord {
  background: transparent;
  border: none;
  color: #717d96;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-dossier-copy:hover {
  color: #cbd5e1;
  background: #1e2430;
}

.btn-dossier-discord:hover {
  color: #5865f2;
  background: #1e2430;
}

.dossier-v2-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  gap: 16px;
}

.dossier-v2-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dossier-v2-meta-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-v2-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.dossier-v2-meta-stat {
  font-weight: 600;
  color: #cbd5e1;
}

/* Toolbar */
.dossier-v2-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  gap: 16px;
}

.dossier-v2-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dossier-filter-label {
  font-size: 11px;
  color: #7d879c;
  font-weight: 500;
  white-space: nowrap;
}

.dossier-filter-checkboxes {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.dossier-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.dossier-filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid #3c4456;
  border-radius: 2px;
  background: #0f1217;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.dossier-filter-item input[type="checkbox"]:checked {
  background: #d97706;
  border-color: #d97706;
}

.dossier-filter-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 1px;
  font-size: 10px;
  color: #ffffff;
  font-weight: 700;
}

.dossier-v2-toggles-group {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.dossier-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.dossier-toggle-label input[type="checkbox"] {
  display: none;
}

.dossier-toggle-slider {
  width: 28px;
  height: 15px;
  background: #232733;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s ease;
}

.dossier-toggle-slider::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
}

.dossier-toggle-label input[type="checkbox"]:checked + .dossier-toggle-slider {
  background: #d97706;
}

.dossier-toggle-label input[type="checkbox"]:checked + .dossier-toggle-slider::after {
  transform: translateX(13px);
  background: #ffffff;
}

/* Body / Tables Area */
.dossier-v2-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0e1116;
}

.dossier-v2-columns-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dossier-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dossier-col-header {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
}

.dossier-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.dossier-col-subtitle {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dossier-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #1e222d;
  border-radius: 4px;
  background: #12151b;
}

.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.dossier-table thead th {
  position: sticky;
  top: 0;
  background: #181c24;
  color: #8b95a5;
  font-weight: 600;
  padding: 7px 10px;
  border-bottom: 1px solid #232733;
  z-index: 2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.dossier-table thead th:hover {
  color: #f1f5f9;
}

.dossier-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dossier-table tbody tr:hover {
  background: #171b23;
}

.dossier-table td {
  padding: 6px 10px;
  color: #cbd5e1;
  line-height: 1.4;
}

.dossier-table td.col-date {
  font-family: var(--font-mono);
  color: #8892a0;
  white-space: nowrap;
  width: 135px;
}

.dossier-table td.col-type {
  color: #e2e8f0;
  white-space: nowrap;
  width: 115px;
}

.dossier-table td.col-action {
  color: #cbd5e1;
  word-break: break-word;
}

.dossier-empty-state {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

/* Footer */
.dossier-v2-footer {
  padding: 10px 20px;
  border-top: 1px solid #222631;
  background: #12151c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-v2-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.dossier-page-btn {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #8590a2;
  font-size: 11px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dossier-page-btn:hover:not(:disabled) {
  background: #232733;
  color: #f8fafc;
}

.dossier-page-btn.active {
  background: #b45309;
  color: #ffffff;
  font-weight: 700;
}

.dossier-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dossier-page-dots {
  color: #64748b;
  font-size: 11px;
  padding: 0 4px;
}

.dossier-v2-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dossier-csv {
  background: #1c202a;
  border: 1px solid #2d3342;
  border-radius: 4px;
  color: #cbd5e1;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dossier-csv:hover {
  background: #252b38;
  border-color: #3e4659;
  color: #ffffff;
}

.btn-dossier-verify {
  background: transparent;
  border: 1px solid #059669;
  border-radius: 4px;
  color: #10b981;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dossier-verify:hover {
  background: rgba(16, 185, 129, 0.12);
}

.btn-dossier-verify.is-verified {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* Manual & Config views */
.manual-area textarea {
  width: 100%;
  margin-bottom: 10px;
}

.form-actions-inline {
  display: flex;
  gap: 8px;
}

.settings-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ====================================================
   HIPPO STAGE STYLES (Mega Begemot Mascot)
   ==================================================== */
.hippo-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 480px;
  max-height: 720px;
  background: radial-gradient(ellipse at 50% 65%, #161b24 0%, #0d0f14 75%, #080a0d 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hippo-ambient-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: radial-gradient(ellipse at 50% 100%, rgba(217, 119, 6, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hippo-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  pointer-events: none;
}

.hippo-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Floor */
.hippo-floor {
  position: relative;
  width: 100%;
  height: 70px;
  background: linear-gradient(180deg, #12151b 0%, #090b0e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hippo-floor-line {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(217, 119, 6, 0.45) 30%, rgba(255, 255, 255, 0.25) 50%, rgba(217, 119, 6, 0.45) 70%, transparent 95%);
}

.hippo-floor-ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

/* Walking Track and Patrol Animation */
.hippo-walker-track {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
}

.hippo-character {
  position: absolute;
  bottom: 0;
  width: 210px;
  height: 135px;
  cursor: pointer;
  pointer-events: auto;
  animation: hippoPatrol 22s infinite ease-in-out;
  transform-origin: center bottom;
  transition: filter 0.2s ease;
}

.hippo-character:hover {
  filter: drop-shadow(0 0 14px rgba(217, 119, 6, 0.35));
}

.hippo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Speech Bubble */
.hippo-bubble {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.hippo-bubble-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent);
}

/* Status Hint Badge */
.hippo-hint-badge {
  position: absolute;
  bottom: 14px;
  right: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius);
  pointer-events: none;
}

/* Animations */
@keyframes hippoPatrol {
  0% {
    left: 4%;
    transform: scaleX(1);
  }
  43% {
    left: 80%;
    transform: scaleX(1);
  }
  46% {
    left: 80%;
    transform: scaleX(1);
  }
  49% {
    left: 80%;
    transform: scaleX(-1);
  }
  52% {
    left: 80%;
    transform: scaleX(-1);
  }
  93% {
    left: 4%;
    transform: scaleX(-1);
  }
  96% {
    left: 4%;
    transform: scaleX(-1);
  }
  100% {
    left: 4%;
    transform: scaleX(1);
  }
}

.hippo-leg-back-near {
  transform-origin: 65px 75px;
  animation: hippoLegSwingNear 0.85s infinite ease-in-out;
}

.hippo-leg-front-near {
  transform-origin: 117px 75px;
  animation: hippoLegSwingFar 0.85s infinite ease-in-out;
}

.hippo-leg-back-far {
  transform-origin: 48px 75px;
  animation: hippoLegSwingFar 0.85s infinite ease-in-out;
}

.hippo-leg-front-far {
  transform-origin: 130px 75px;
  animation: hippoLegSwingNear 0.85s infinite ease-in-out;
}

@keyframes hippoLegSwingNear {
  0%   { transform: rotate(-18deg); }
  50%  { transform: rotate(18deg); }
  100% { transform: rotate(-18deg); }
}

@keyframes hippoLegSwingFar {
  0%   { transform: rotate(18deg); }
  50%  { transform: rotate(-18deg); }
  100% { transform: rotate(18deg); }
}

.hippo-body {
  animation: hippoBodyWalk 0.425s infinite ease-in-out;
}

@keyframes hippoBodyWalk {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3.5px); }
}

.hippo-head-group {
  transform-origin: 140px 70px;
  animation: hippoHeadWalk 0.425s infinite ease-in-out;
}

@keyframes hippoHeadWalk {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(1deg); }
}

.hippo-tail {
  transform-origin: 32px 70px;
  animation: hippoTailWag 0.6s infinite ease-in-out;
}

@keyframes hippoTailWag {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-16deg); }
}

.hippo-ear {
  transform-origin: 145px 30px;
  animation: hippoEarTwitch 3.5s infinite ease-in-out;
}

@keyframes hippoEarTwitch {
  0%, 88%, 100% { transform: rotate(0deg); }
  91%           { transform: rotate(15deg); }
  94%           { transform: rotate(-10deg); }
  97%           { transform: rotate(8deg); }
}

.hippo-eyelid {
  transform-origin: 160px 42px;
  transform: scaleY(0);
  animation: hippoEyeBlink 4s infinite ease;
}

@keyframes hippoEyeBlink {
  0%, 94%, 98%, 100% { transform: scaleY(0); }
  96%                { transform: scaleY(1); }
}

.hippo-character.yawning #hippoJaw {
  transform-origin: 152px 75px;
  animation: hippoJawOpen 1.2s ease-in-out;
}

@keyframes hippoJawOpen {
  0%, 100% { transform: rotate(0deg); }
  35%, 65% { transform: rotate(26deg); }
}

/* ====================================================
   TWINKS VIEW STYLES
   ==================================================== */
.twinks-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.twinks-alert-icon {
  font-size: 22px;
  line-height: 1;
}

.twinks-alert-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 4px;
}

.twinks-alert-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.twinks-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ====================================================
   AUDIT HISTORY GRID STYLES (MATCHING GTA 5 RP ADMIN TOOLS)
   ==================================================== */
.audit-history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.history-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.history-subnav {
  display: flex;
  gap: 16px;
}

.btn-subnav {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
}

.btn-subnav:hover {
  color: #fff;
}

.btn-subnav.active {
  color: #ff6b00;
}

.btn-subnav.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff6b00;
  border-radius: 2px;
}

.history-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-select {
  background: #0f1217;
  border: 1px solid #232a36;
  color: #ced6e2;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  min-width: 190px;
  outline: none;
}

.btn-start-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #ff6b00;
  color: #ff6b00;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-start-check:hover {
  background: #ff6b00;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
}

.btn-start-icon {
  font-size: 14px;
}

.btn-audit-rules {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-audit-rules * {
  pointer-events: none;
}

.btn-audit-rules:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.btn-rules-icon {
  font-size: 14px;
}

/* History Meta Bar */
.history-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(15, 18, 23, 0.6);
  border: 1px solid #1a202c;
  border-radius: 6px;
  font-size: 12px;
}

.select-compact {
  background: #111419;
  border: 1px solid #232a36;
  color: #9aa7b8;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none;
}

.history-page-indicator {
  color: #8b98a8;
  font-size: 12px;
}

.history-page-indicator strong {
  color: #fff;
}

.history-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pag-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #8593a6;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 26px;
  text-align: center;
  transition: all 0.15s;
}

.pag-btn:hover:not(:disabled) {
  color: #fff;
  border-color: #2b3342;
  background: #151a22;
}

.pag-btn.active {
  background: #ff6b00;
  color: #fff;
  font-weight: 700;
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 4-Column Audit Cards Grid (Responsive, fits in viewport, flows downwards) */
.audit-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
}

@media (max-width: 1550px) {
  .audit-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 700px) {
  .audit-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Audit History Card */
.audit-history-card {
  background: #111419;
  border: 1px solid #1f2632;
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.audit-history-card:hover {
  transform: translateY(-2px);
  border-color: #ff6b00;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 107, 0, 0.15);
}

.card-id-row {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1c222c;
  min-width: 0;
  overflow: hidden;
}

.card-id-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  min-width: 0;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.meta-icon {
  font-size: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}

.meta-label {
  color: #7d8c9e;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.meta-val {
  color: #ced6e2;
  font-weight: 500;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-val.text-faction {
  color: #ff8c2b;
  font-weight: 700;
}

.admin-avatar {
  margin-right: 2px;
}

.card-admin-avatar-img {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Items Preview within Card */
.card-items-block {
  margin-top: 6px;
  min-width: 0;
}

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

.card-items-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-item-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff8c2b;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.card-item-pill.pill-more {
  background: #1a202c;
  border-color: #2d3748;
  color: #a0aec0;
}

/* Card Rules Checklist */
.card-rules-divider {
  border-top: 1px solid #1c222c;
  margin: 12px 0 10px 0;
}

.card-rules-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  min-width: 0;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  line-height: 1.3;
}

.rule-label {
  color: #7d8c9e;
  word-break: break-word;
  overflow-wrap: break-word;
}

.rule-status {
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  margin-left: 6px;
}

.rule-status.rule-check {
  color: #00e676;
}

.rule-status.rule-cross {
  color: #ff5252;
}

/* Back to History Button */
.btn-back-history {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ====================================================
   DISCORD AUTH GATE & USER PROFILE
   ==================================================== */

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px 10px 4px 6px;
  transition: all 0.2s ease;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #5865F2;
  background: #1e232d;
}

.user-info-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-id-badge {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: #7d8c9e;
  letter-spacing: 0.2px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f9ba8;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.btn-logout:hover {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.1);
}

/* Auth Gate View Container */
.auth-gate-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 60px 20px 40px;
}



.auth-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(160deg, #151922 0%, #0c0e14 100%);
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(88, 101, 242, 0.12);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5865F2, transparent);
}

.auth-discord-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}

.auth-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 13px;
  color: #8b97a7;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  transition: all 0.2s ease;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
  color: #fff;
}

.auth-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: #64748b;
}

/* Denied error callout */
.auth-denied-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  text-align: left;
}

.auth-denied-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.auth-denied-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 12px;
}

.auth-id-copy-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-id-copy-box code {
  font-family: 'JetBrains Mono', monospace;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.auth-hint {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-hint pre {
  margin: 6px 0 0 0;
  background: rgba(0,0,0,0.3);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #e2e8f0;
}

.auth-dev-fallback {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ====================================================
   TWINKS MODULE STYLES (ВЫЯВЛЕНИЕ ТВИНКОВ ВО ФРАКЦИЯХ)
   ==================================================== */
.twinks-container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
}

.twinks-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.twinks-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.twinks-main-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.twinks-freshness-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
}

.twinks-freshness-pill:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
}

.freshness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseFresh 2.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseFresh {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.freshness-label {
  color: #64748b;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.freshness-val {
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.freshness-rel {
  color: #34d399;
  font-weight: 500;
  font-size: 11px;
}

.twinks-freshness-pill.archive-mode {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.twinks-freshness-pill.archive-mode .freshness-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65) !important;
}

.twinks-freshness-pill.archive-mode .freshness-val {
  color: #fbbf24 !important;
}

/* Verification Status Pill in Top Header */
.twinks-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500;
}

.twinks-verified-pill.fully-verified {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #a7f3d0;
}

.twinks-verified-pill.fully-verified .verified-pill-icon {
  color: #34d399;
  font-weight: 800;
  font-size: 13px;
}

.twinks-verified-pill.fully-verified .verified-pill-val {
  color: #34d399;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.twinks-verified-pill.partially-verified {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.twinks-verified-pill.partially-verified .verified-pill-icon {
  color: #38bdf8;
  font-size: 12px;
}

.twinks-verified-pill.partially-verified .verified-pill-val {
  color: #38bdf8;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.twinks-verified-pill.unverified {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.twinks-verified-pill.unverified .verified-pill-icon {
  color: #f59e0b;
  font-size: 12px;
}

.twinks-verified-pill.unverified .verified-pill-val {
  color: #fbbf24;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.verified-pill-label {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.verified-pill-pct {
  font-size: 11px;
  opacity: 0.85;
}

.twinks-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Unified Glassmorphism Dumps Selector Bar */
.twinks-dumps-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.twinks-dumps-bar:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dumps-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  padding: 0 4px 0 6px;
  user-select: none;
  white-space: nowrap;
}

.dumps-bar-label svg {
  color: #94a3b8;
  opacity: 0.85;
}

.dumps-pills-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dumps-loading-ghost {
  font-size: 11px;
  color: #64748b;
  padding: 4px 8px;
  font-style: italic;
}

.dumps-empty-hint {
  font-size: 11px;
  color: #64748b;
  padding: 4px 8px;
}

/* 1-Click Day Tab Pill */
button.twinks-day-tab,
.twinks-day-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  white-space: nowrap !important;
}

button.twinks-day-tab:hover,
.twinks-day-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
  transform: translateY(-1px) !important;
}

.day-tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  display: inline-block;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

button.twinks-day-tab.active,
.twinks-day-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1)) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(16, 185, 129, 0.2) !important;
}

button.twinks-day-tab.active .day-tab-indicator,
.twinks-day-tab.active .day-tab-indicator {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

button.twinks-day-tab.active.is-archive,
.twinks-day-tab.active.is-archive {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1)) !important;
  border-color: rgba(245, 158, 11, 0.55) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(245, 158, 11, 0.2) !important;
}

button.twinks-day-tab.active.is-archive .day-tab-indicator,
.twinks-day-tab.active.is-archive .day-tab-indicator {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.day-tab-date {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.day-tab-time {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.twinks-day-tab.active .day-tab-time {
  color: rgba(255, 255, 255, 0.85);
}

.day-tab-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.day-tab-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.day-tab-badge-verified.full {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.day-tab-badge-verified.partial {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.dumps-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
}

/* History Button */
button.btn-twinks-history,
.btn-twinks-history {
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  white-space: nowrap !important;
}

button.btn-twinks-history:hover,
.btn-twinks-history:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35) !important;
}

button.btn-twinks-history:active,
.btn-twinks-history:active {
  transform: translateY(0) !important;
}

.history-btn-svg {
  color: #94a3b8;
  transition: color 0.18s ease;
}

.btn-twinks-history:hover .history-btn-svg {
  color: #38bdf8;
}

.dumps-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.18s ease;
}

.btn-twinks-history:hover .dumps-counter-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* Archive warning banner */
.twinks-archive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.14), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 16px;
  color: #fde68a;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.archive-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-banner-icon {
  font-size: 18px;
}

.btn-return-latest {
  background: #d97706;
  border: none;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-return-latest:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

/* Modal styles for twinks-history-modal */
.twinks-history-modal {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 95%;
  background: #0f1218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  border-radius: 14px;
}

.twinks-history-body {
  padding: 20px 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.twinks-history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: #94a3b8;
  font-size: 14px;
}

.twinks-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.twinks-history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.twinks-history-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.twinks-history-card.active-dump {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
}

.dump-card-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dump-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dump-card-date {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.dump-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.dump-badge.latest {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dump-badge.archive {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dump-card-time {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.dump-card-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dump-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.dump-chip.danger {
  color: #f87171;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.3);
  font-weight: 700;
}

.btn-open-dump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d97706;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-open-dump:hover {
  background: #f59e0b;
}

.btn-open-dump.active-btn {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: default;
}

.twinks-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.history-footer-meta {
  font-size: 12px;
  color: #64748b;
}

.twinks-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.twinks-controls-left,
.twinks-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.twinks-select-wrap {
  position: relative;
}

.twinks-select {
  background: #14171d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 170px;
}

.twinks-select:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.twinks-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.count-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
}

.twinks-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-twink-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-twink-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-twink-pill.active {
  background: #d97706;
  color: #ffffff;
  font-weight: 600;
}

.btn-twink-pill.danger {
  color: #f87171;
}

.btn-twink-pill.danger:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

.btn-twink-pill.danger.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.btn-twink-pill.warning {
  color: #fbbf24;
}

.btn-twink-pill.warning:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.btn-twink-pill.warning.active {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.btn-twink-pill.success {
  color: #34d399;
}

.btn-twink-pill.success:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.btn-twink-pill.success.active {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.pill-cnt {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.twinks-admin-wrap {
  display: flex;
  align-items: center;
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 8px;
  height: 38px;
  gap: 6px;
  transition: all 0.15s ease;
}

.twinks-admin-wrap.disabled-by {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(20, 23, 29, 0.6);
}

.twinks-admin-wrap.disabled-by .admin-by-prefix {
  text-decoration: line-through;
  color: #64748b;
}

.btn-toggle-by {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-toggle-by:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.4);
}

.btn-toggle-by.active-off {
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

.admin-by-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.twinks-admin-input {
  background: transparent !important;
  border: none !important;
  color: #fef08a !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  width: 90px !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: opacity 0.15s ease;
}

.btn-bulk-offwarn {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-bulk-offwarn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.5);
}

.btn-bulk-verify {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-bulk-verify:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #10b981, #34d399);
}

.btn-bulk-verify:active {
  transform: translateY(0);
}

.verify-check-icon {
  font-weight: 900;
  font-size: 13px;
}

.btn-bulk-unverify {
  background: linear-gradient(135deg, #b45309, #d97706);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-bulk-unverify:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.55);
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.btn-bulk-unverify:active {
  transform: translateY(0);
}

.unverify-icon {
  font-size: 12px;
}

.btn-twinks-settings {
  background: #14171d;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-twinks-settings:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.settings-icon {
  font-size: 14px;
}

/* Twinks Rules & Thresholds Modal */
.twinks-rules-modal {
  max-width: 820px !important;
  width: 95% !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.twinks-rules-body {
  overflow-y: auto;
  max-height: calc(88vh - 130px);
  padding: 20px 24px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Audit Rules & Logic Modal */
.audit-rules-modal {
  max-width: 860px !important;
  width: 95% !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.audit-rules-body {
  overflow-y: auto;
  max-height: calc(88vh - 130px);
  padding: 22px 26px !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-formula-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.22) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 10px;
}

.audit-formula-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #93c5fd;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audit-formula-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  word-break: break-word;
}

.audit-cards-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.audit-summary-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
}

.audit-summary-card.highlight {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.audit-summary-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audit-summary-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.rules-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
}

.rules-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.rules-badge-info {
  font-size: 10px;
  font-weight: 600;
  background: rgba(234, 88, 12, 0.2);
  color: #fed7aa;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.rules-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Thresholds Grid */
.thresholds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
}

.threshold-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.15s ease;
}

.threshold-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.threshold-card.crime {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.05);
}

.threshold-card .t-name {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.threshold-card .t-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
}

.threshold-card.crime .t-val {
  color: #f87171;
}

.threshold-card .t-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* Rules Table */
.rules-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rules-table th {
  background: rgba(0, 0, 0, 0.4);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  vertical-align: middle;
}

.rules-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Faction Categories Columns */
.faction-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.f-cat-col {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.f-cat-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.f-cat-title.gang { color: #facc15; }
.f-cat-title.mafia { color: #f87171; }
.f-cat-title.gov { color: #60a5fa; }

.f-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-cat-list li {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-cat-list li::before {
  content: '•';
  color: rgba(255, 255, 255, 0.3);
}

/* Command Examples Box */
.cmd-example-box {
  background: #090b0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.cmd-example-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #fbbf24;
}

.cmd-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-sample-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-type {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.cmd-sample-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Verdict Badges & Reasons in Twinks Table */
.twink-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.twink-verdict-badge.warn {
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.twink-verdict-badge.warn.xp {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.3), rgba(220, 38, 38, 0.35));
  color: #ffedd5;
  border: 1px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.3);
}

.twink-verdict-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.twink-violation-reason {
  font-size: 10px;
  color: #fca5a5;
  margin-top: 3px;
  line-height: 1.3;
  text-align: center;
  max-width: 170px;
}

.twink-violation-reason.muted {
  color: #64748b;
}

.btn-offwarn-group {
  margin-top: 4px;
  background: rgba(220, 38, 38, 0.15) !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  color: #fca5a5 !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-offwarn-group:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.btn-offwarn-char {
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: #fed7aa;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.btn-offwarn-char:hover {
  background: #ea580c;
  color: #ffffff;
}

.senior-rank-tag {
  color: #f97316;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.twinks-search-wrap {
  position: relative;
}

.twinks-search {
  background: #14171d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  width: 240px;
}

.twinks-search:focus {
  border-color: #d97706 !important;
}

.twinks-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
}

.twinks-calendar-icon {
  font-size: 13px;
  opacity: 0.8;
}

.twinks-date-select {
  background: transparent !important;
  border: none !important;
  color: #f1f5f9 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
  cursor: pointer;
}

.btn-twinks-scan {
  background: #d97706;
  color: #ffffff;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-twinks-scan:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-twinks-scan:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Twinks Table */
.twinks-table-wrap {
  background: #111419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.twinks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.twinks-table th {
  background: rgba(0, 0, 0, 0.45);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.th-status-filter {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 6px;
  cursor: pointer;
}

.th-status-filter option {
  background: #14171d;
  color: #fff;
}

.twinks-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  vertical-align: middle;
  transition: background-color 0.14s ease, color 0.14s ease;
}

/* Разделительные неприметные поля между аккаунтами */
.twinks-table tbody.twink-account-group {
  border-top: 2px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.twinks-table tbody.twink-account-group tr.twink-group-first td {
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding-top: 13px;
}

.twinks-table tbody.twink-account-group tr.twink-group-last td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding-bottom: 13px;
}

.twinks-table tbody.twink-account-group tr:not(.twink-group-first) td {
  border-top: 1px dashed rgba(255, 255, 255, 0.04);
}

.twinks-table tr.twink-row,
.twinks-table tbody.twink-account-group {
  cursor: pointer;
}

/* Синхронная нативная и JS-подсветка всей группы аккаунта при наведении (как на втором скриншоте) */
.twinks-table tbody.twink-account-group:hover tr td,
.twinks-table tbody.twink-account-group:hover td,
.twinks-table tbody.twink-account-group.twink-group-hover tr td,
.twinks-table tbody.twink-account-group.twink-group-hover td {
  background-color: #382420 !important; /* Тёплый красновато-бордовый оттенок в точности как на втором скрине */
}

.twinks-table tbody.twink-account-group:hover tr.twink-group-first td:first-child,
.twinks-table tbody.twink-account-group.twink-group-hover tr.twink-group-first td:first-child {
  border-left: 3px solid #ea580c !important;
}

.twinks-table tbody.twink-account-group:hover td.twink-account-cell,
.twinks-table tbody.twink-account-group.twink-group-hover td.twink-account-cell {
  background-color: #382420 !important;
  color: #fef08a !important;
}

.twinks-table tbody.twink-account-group:hover td.twink-status-cell,
.twinks-table tbody.twink-account-group.twink-group-hover td.twink-status-cell {
  background-color: #382420 !important;
}

/* Account Column */
.twink-account-cell {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.25) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.twink-account-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-acc-copy {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.btn-acc-copy:hover {
  color: #fbbf24;
}

/* Status Column */
.twink-status-cell {
  text-align: center;
  background: rgba(0, 0, 0, 0.18) !important;
  vertical-align: middle;
}

.twink-status-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.twink-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
}

.twink-status-badge.unverified {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.twink-status-badge.verified {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.twink-status-badge.punished {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.twink-status-badge:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
}

.twink-status-admin-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.twink-status-admin-meta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.admin-shield-icon {
  color: #34d399;
  flex-shrink: 0;
}

/* Character cell */
.twink-char-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.twink-char-name {
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.twink-char-name:hover {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.12);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.twink-char-name:active {
  transform: scale(0.97);
}

.twink-char-static {
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -2px;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.twink-char-static:hover {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.12);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.twink-char-static:active {
  transform: scale(0.97);
}

/* Faction cell */
.twink-faction-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.conflict-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.conflict-badge.danger {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.conflict-badge.warning {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.twinks-loading-row,
.twinks-empty-row {
  text-align: center;
  padding: 40px !important;
  color: #94a3b8;
  font-size: 14px;
}

.twinks-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(217, 119, 6, 0.2);
  border-top-color: #d97706;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

/* ========================================================
   Redesigned Warehouse Audit Parameters Modal (Screenshots 2-4)
   ======================================================== */
.audit-params-modal {
  max-width: 900px !important;
  width: 95% !important;
  max-height: 96vh !important;
  background: #181b20 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  display: flex;
  flex-direction: column;
}

.audit-params-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.audit-params-body {
  padding: 20px 24px 24px 24px !important;
  overflow-y: auto;
  max-height: calc(96vh - 75px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* Presets Section */
.presets-section {
  margin-bottom: 20px;
}

.presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.presets-select-wrap {
  flex: 1.2;
}

.preset-select {
  height: 38px;
  background: #13161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
}

.btn-preset-action {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c2028;
  transition: all 0.15s ease;
}

.btn-preset-apply {
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.4);
}

.btn-preset-apply:hover {
  background: rgba(234, 88, 12, 0.15);
  color: #ffffff;
}

.btn-preset-delete {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-preset-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
}

.preset-name-input {
  flex: 1.5;
  height: 38px;
  background: #13161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-preset-save {
  height: 38px;
  background: transparent;
  border: 1px solid #ea580c;
  color: #ea580c;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-preset-save:hover {
  background: rgba(234, 88, 12, 0.15);
  color: #ffffff;
  border-color: #f97316;
}

/* 2-Column Layout */
.audit-params-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.audit-params-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.param-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.req-star {
  color: #ef4444;
  margin-left: 2px;
}

.relative-field {
  position: relative;
}

/* Period Trigger */
.period-picker-trigger {
  height: 38px;
  background: #13161c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}

.period-picker-trigger:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.period-trigger-icon {
  margin-right: 8px;
  font-size: 14px;
}

.period-display-text {
  flex: 1;
  font-size: 13px;
  color: #ffffff;
}

.period-trigger-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

/* Period Picker Popover (Screenshot 4) */
.period-picker-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2500;
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  gap: 16px;
  padding: 14px;
  min-width: 490px;
}

.period-popover-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 145px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}

.quick-period-btn {
  background: transparent;
  border: none;
  text-align: left;
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-period-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.quick-period-btn.active {
  background: rgba(234, 88, 12, 0.2);
  color: #ea580c;
  font-weight: 600;
}

.period-popover-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.cal-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cal-month-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 2px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-cell {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  color: #e2e8f0;
  transition: background 0.1s ease;
}

.cal-day-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}

.cal-day-cell.other-month {
  color: #475569;
}

.cal-day-cell:hover:not(.other-month):not(.range-start):not(.range-end):not(.in-range) .cal-day-num {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cal-day-cell.range-start,
.cal-day-cell.range-end {
  background: transparent !important;
  color: #ffffff !important;
}

.cal-day-cell.range-start .cal-day-num,
.cal-day-cell.range-end .cal-day-num {
  background: #ea580c !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.45);
}

.cal-day-cell.in-range {
  background: rgba(234, 88, 12, 0.22);
  color: #ffffff;
  border-radius: 0;
}

.cal-day-cell.has-range-start:not(:nth-child(7n))::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  background: rgba(234, 88, 12, 0.22);
  z-index: 1;
}

.cal-day-cell.has-range-end:not(:nth-child(7n + 1))::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: rgba(234, 88, 12, 0.22);
  z-index: 1;
}

.cal-warning-box {
  border: 1px solid rgba(234, 88, 12, 0.4);
  background: rgba(234, 88, 12, 0.08);
  color: #fed7aa;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.cal-warning-icon {
  font-size: 12px;
}

/* Faction Select Row */
.faction-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faction-select-wrap {
  flex: 1;
}

.btn-faction-clear {
  width: 36px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-faction-clear:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Switches Section */
.switches-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.switches-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.param-switch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  min-width: 36px;
  height: 20px;
  margin-top: 1px;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #272b34;
  transition: 0.2s ease;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s ease;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: #ea580c;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.switch-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-title {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.35;
  user-select: none;
}

.switch-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Right Column: Items */
.audit-params-right {
  display: flex;
  flex-direction: column;
}

.items-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-add-item-link {
  background: none;
  border: none;
  color: #ea580c;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-add-item-link:hover {
  color: #f97316;
  text-decoration: underline;
}

.items-empty-notice {
  border: 1px solid #7c2d12;
  background: rgba(124, 45, 18, 0.12);
  border-radius: 8px;
  padding: 16px;
  color: #fb923c;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}

.items-list-container {
  background: #111419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  max-height: none;
  overflow-y: visible;
  padding: 4px 8px;
  margin-top: 6px;
}

.items-list-rows {
  display: flex;
  flex-direction: column;
}

.item-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: #e2e8f0;
}

.item-list-row:last-child {
  border-bottom: none;
}

.item-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.item-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-faction-select {
  height: 26px;
  padding: 0 16px 0 8px;
  background: #1a1e26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* Footer Buttons */
.audit-params-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-param-reset {
  background: #191c23;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-param-reset:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ffffff;
  border-color: #ef4444;
}

.btn-param-submit {
  background: #ea580c;
  border: 1px solid #f97316;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: all 0.15s ease;
}

.btn-param-submit:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.footer-btn-icon {
  font-size: 13px;
}

/* ========================================================
   FLOATING BUG REPORT BUTTON & MODAL
   ======================================================== */
.floating-bug-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9990; /* Floats above all modals and page views so the user can report bugs anytime */
  background: rgba(15, 18, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 107, 0, 0.45);
  border-radius: 9999px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 107, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Hide floating button when explicitly marked hidden, unauthenticated, on auth gate, or while bug report modal itself is open */
.floating-bug-btn.hidden,
body.bug-modal-open .floating-bug-btn,
body.not-authenticated .floating-bug-btn,
body.auth-pending .floating-bug-btn {
  display: none !important;
}

#bugReportModal {
  z-index: 10000;
}

.floating-bug-btn:hover {
  background: rgba(22, 27, 38, 0.98);
  border-color: #ff6b00;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 107, 0, 0.35);
}

.floating-bug-btn:active {
  transform: translateY(0);
}

.bug-btn-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b00;
  box-shadow: 0 0 8px #ff6b00;
  display: inline-block;
  animation: bugBtnPulseAnim 2.2s infinite ease-in-out;
}

@keyframes bugBtnPulseAnim {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.bug-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b00;
}

.bug-btn-label {
  letter-spacing: 0.2px;
}

/* Bug Report Modal */
.bug-report-modal {
  max-width: 580px;
  width: 100%;
  background: #0f1218;
  border: 1px solid rgba(255, 107, 0, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.88), 0 0 40px rgba(255, 107, 0, 0.14);
}

.bug-modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bug-report-body {
  padding: 20px 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.bug-context-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12px;
}

.bug-ctx-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bug-ctx-label {
  color: var(--text-muted, #94a3b8);
}

.bug-ctx-val {
  color: #f8fafc;
  font-weight: 600;
}

.bug-form-group {
  margin-bottom: 18px;
}

.bug-form-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.bug-textarea {
  width: 100%;
  background: rgba(10, 13, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.bug-textarea:focus {
  border-color: #ff6b00;
  background: rgba(13, 17, 24, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.bug-drop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bug-hint-ctrlv {
  font-size: 11px;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: 6px;
  padding: 2px 8px;
}

/* Drag & Drop / Paste Zone */
.bug-paste-zone {
  border: 2px dashed rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.03);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.bug-paste-zone:hover,
.bug-paste-zone.dragover {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.15);
}

.bug-paste-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bug-paste-icon {
  font-size: 26px;
  margin-bottom: 2px;
}

.bug-paste-text {
  font-size: 13px;
  color: #cbd5e1;
}

.bug-paste-sub {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

/* Screenshot Preview Box */
.bug-preview-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: left;
}

.bug-preview-thumb {
  max-height: 110px;
  max-width: 170px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0b0e14;
}

.bug-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bug-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bug-preview-info {
  font-size: 11px;
  color: #94a3b8;
}

.btn-remove-screenshot {
  align-self: flex-start;
  margin-top: 6px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-screenshot:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Error message inside modal */
.bug-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 12px;
}

/* Footer buttons */
.bug-report-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-submit-bug {
  background: #ea580c;
  border: 1px solid #f97316;
  color: #ffffff;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: all 0.18s ease;
}

.btn-submit-bug:hover:not(:disabled) {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

.btn-submit-bug:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bug-send-icon {
  font-size: 14px;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(16, 185, 129, 0.22);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(239, 68, 68, 0.22);
}

/* ========================================================
   Audit Development Banner Notification
   ======================================================== */
.audit-dev-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 32px);
  max-width: 680px;
  background: rgba(20, 23, 29, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 158, 11, 0.18);
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: devBannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.audit-dev-banner.fade-out {
  opacity: 0;
  transform: translate(-50%, -15px);
  pointer-events: none;
}

@keyframes devBannerSlideDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.audit-dev-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.audit-dev-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 22px;
  flex-shrink: 0;
}

.audit-dev-text {
  flex: 1;
  min-width: 0;
}

.audit-dev-title {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.audit-dev-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-audit-dev-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f59e0b;
  color: #0e1013;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-audit-dev-ok:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.btn-audit-dev-ok:active {
  transform: translateY(0);
}

.audit-dev-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  opacity: 0.85;
}

.audit-dev-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.audit-dev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  width: 100%;
  transition: width 0.1s linear;
}

/* ========================================================
   UNDER 150 MATERIALS AUDIT & RESULTS.TXT EXPORT
   ======================================================== */
.filter-btn.under150-chip {
  border-color: rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.filter-btn.under150-chip:hover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
}

.filter-btn.under150-chip.active {
  background: #0891b2;
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.btn-under150 {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  padding: 6px 12px;
  cursor: pointer;
}

.btn-under150:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: #22d3ee;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-under150:active {
  transform: translateY(0);
}

.under150-modal {
  max-width: 680px;
  width: 95%;
  background: #11141a;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.under150-modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.under150-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.under150-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.under150-param-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.under150-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.under150-input-num {
  width: 80px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #22d3ee;
  background: #0a0c0e;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 4px;
  text-align: center;
}

.under150-input-num:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.under150-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.under150-stat-pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: #1a1e26;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.under150-stat-pill b {
  color: #22d3ee;
  font-family: var(--font-mono);
}

.under150-preview-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.under150-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.under150-preview-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.under150-textarea {
  width: 100%;
  height: 280px;
  background: #080a0d;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.under150-textarea:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.under150-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1218;
}

.btn-under150-download {
  background: #0891b2;
  border-color: #06b6d4;
  color: #ffffff;
  font-weight: 600;
}

.btn-under150-download:hover {
  background: #06b6d4;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

/* ========================================================
   PUNISHMENT COMMAND SCALE & SETTINGS MODAL STYLES
   ======================================================== */

/* Table Toolbar Buttons */
.btn-punish-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-punish-settings:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
  color: #ffffff;
}

.btn-copy-punish-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.btn-copy-punish-all:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-copy-punish-all:active {
  transform: translateY(0);
}

.btn-copy-punish-all.copied {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}

.punish-count-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.35);
  line-height: 1.3;
}

.btn-copy-punish-all.copied .punish-count-pill {
  background: rgba(16, 185, 129, 0.25);
  color: #d1fae5;
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-bulk-punish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-weight: 600;
  margin-left: 8px;
  animation: pulseBulkPunish 2s infinite;
  transition: all 0.2s ease;
}

.btn-bulk-punish:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

@keyframes pulseBulkPunish {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Table Row Punishment Cell */
.btn-punish-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.punish-badge-prison {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
}

.punish-badge-prison:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  color: #ffffff;
}

.punish-badge-ban {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #f87171;
}

.punish-badge-ban:hover {
  background: rgba(239, 68, 68, 0.26);
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

.btn-punish-cell.copied {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
}

.punish-copy-icon {
  font-size: 10px;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.btn-punish-cell:hover .punish-copy-icon {
  opacity: 1;
}

/* Dossier Modal Header Punishment Button */
.btn-dossier-punish {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

/* Punishment Settings Modal */
.punish-settings-modal {
  max-width: 860px;
  width: 96%;
  background: #11141b;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.punish-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.punish-modal-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(88vh - 140px);
  overflow-y: auto;
}

/* Global Config Grid */
.punish-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.punish-param-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.punish-param-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.punish-toggle-field {
  justify-content: flex-end;
  padding-bottom: 4px;
}

.punish-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.punish-checkbox-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: #a855f7;
}

/* Tiers Table */
.punish-tiers-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.punish-tiers-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.punish-tiers-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.punish-tiers-table-container {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(10, 12, 16, 0.6);
  position: relative;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.45) rgba(0, 0, 0, 0.3);
}

.punish-tiers-table-container::-webkit-scrollbar {
  width: 7px;
}

.punish-tiers-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.punish-tiers-table-container::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.45);
  border-radius: 4px;
}

.punish-tiers-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.75);
}

.punish-tiers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.punish-tiers-table th {
  background: #11141b;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.punish-tiers-table input[type=number] {
  -moz-appearance: textfield;
}

.punish-tiers-table input[type=number]::-webkit-inner-spin-button,
.punish-tiers-table input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.punish-tiers-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.punish-tiers-table tr:last-child td {
  border-bottom: none;
}

.punish-rule-min,
.punish-rule-max {
  width: 100%;
  text-align: center;
  padding: 5px 6px;
  font-size: 12px;
  color: #38bdf8;
  background: #090c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.punish-rule-type {
  width: 100%;
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 500;
  background: #090c10;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.punish-dur-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.punish-rule-duration {
  width: 60px;
  text-align: center;
  padding: 5px 6px;
  font-size: 12px;
  color: #fbbf24;
  background: #090c10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.punish-dur-unit {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.punish-rule-note {
  width: 100%;
  padding: 5px 8px;
  font-size: 11.5px;
  background: #090c10;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.btn-tier-del {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-tier-del:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

.btn-xs {
  height: 28px !important;
  padding: 4px 11px !important;
  font-size: 11.5px !important;
}

.btn-accent {
  background: #9333ea !important;
  color: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 2px 6px rgba(147, 51, 234, 0.25);
  font-weight: 600;
  border-radius: 4px;
}

.btn-accent:hover {
  background: #a855f7 !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.btn-accent:active {
  transform: translateY(0);
}

@keyframes rowHighlightFlash {
  0% { background: rgba(168, 85, 247, 0.45); }
  50% { background: rgba(168, 85, 247, 0.2); }
  100% { background: transparent; }
}

.row-highlight-flash {
  animation: rowHighlightFlash 1.2s ease forwards;
}

/* Live Preview Box */
.punish-preview-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #090b0f;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 8px;
}

.punish-preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.punish-preview-title {
  font-size: 12px;
  color: #c084fc;
  font-weight: 600;
}

.punish-preview-code {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}

/* Modal Footer */
.punish-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1017;
}

/* Trade Colleague & Admin Badges */
.badge-trade-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.3;
}

.badge-trade-admin {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.badge-trade-colleague {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.badge-trade-sender {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

/* ======================================================== */
/* ADD ITEMS MODAL (Калибры и предметы других фракций)      */
/* ======================================================== */
.add-items-modal-window {
  max-width: 720px;
  background: #14171f;
  border: 1px solid #2b3242;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(217, 119, 6, 0.18);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  animation: modalFadeIn 0.15s ease-out;
}

.add-items-modal-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
}

.add-items-search-bar input {
  width: 100%;
  background: #0d1016;
  border: 1px solid #293142;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.add-items-search-bar input:focus {
  border-color: #d97706;
  outline: none;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.add-items-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.add-items-tab {
  background: #1b202a;
  border: 1px solid #2d3546;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-items-tab:hover {
  background: #242b38;
  color: #f1f5f9;
  border-color: #3b455b;
}

.add-items-tab.active {
  background: rgba(217, 119, 6, 0.18);
  border-color: #d97706;
  color: #f59e0b;
}

.add-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.add-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181d27;
  border: 1px solid #283040;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.add-item-card:hover {
  background: #202735;
  border-color: #3e4a63;
  transform: translateY(-1px);
}

.add-item-card.is-added {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.add-item-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.add-item-card-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.add-item-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.add-item-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-item-card-tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.add-item-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #232a38;
  color: #94a3b8;
  border: 1px solid #333c4f;
  line-height: 1.2;
}

.add-item-card-btn {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #f59e0b;
  transition: all 0.15s ease;
  margin-left: 8px;
}

.add-item-card:hover .add-item-card-btn {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.add-item-card.is-added .add-item-card-btn {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.add-item-card.is-added:hover .add-item-card-btn {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.add-custom-item-bar {
  background: #0f1218;
  border: 1px solid #232a38;
  border-radius: 8px;
  padding: 11px 13px;
  margin-top: 4px;
}

.add-custom-label {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 7px;
  font-weight: 500;
}

.add-custom-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-custom-inputs-row input[type="text"] {
  flex: 1;
  background: #141720;
  border: 1px solid #2b3345;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: #fff;
}

.custom-item-numbered-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
}

.add-items-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid #232a38;
  background: #11141c;
}

.add-items-selected-count {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* ========================================================
   SECTIONS: МП & МП ГОС (Мероприятия)
   ======================================================== */
.mp-container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
}

.mp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mp-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mp-main-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.mp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #93c5fd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.mp-status-pill-gos {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.mp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  flex-shrink: 0;
}

.mp-status-dot-gos {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.mp-placeholder-card {
  background: var(--bg-surface);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 60px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mp-placeholder-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(20, 23, 29, 0.7);
}

.mp-placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.mp-placeholder-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.mp-placeholder-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
}

/* ========================================================
   МП ГОС: Grid & Event Cards (4 Cards)
   ======================================================== */
.mp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.mp-event-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  min-height: 190px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
}

.mp-event-card:hover {
  transform: translateY(-4px);
  background: rgba(22, 26, 33, 0.95);
}

.mp-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mp-event-card:hover .mp-card-glow {
  opacity: 1;
}

/* Card 1: Rampage */
.mp-card-rampage:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(239, 68, 68, 0.12);
}
.mp-card-rampage .mp-card-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, transparent 70%);
}
.rampage-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Card 2: Федеральные припасы */
.mp-card-fedsupplies:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.12);
}
.mp-card-fedsupplies .mp-card-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
}
.fedsupplies-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Card 3: Мышеловка */
.mp-card-mousetrap:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(59, 130, 246, 0.12);
}
.mp-card-mousetrap .mp-card-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}
.mousetrap-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Card 4: Supply War */
.mp-card-supplywar:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.12);
}
.mp-card-supplywar .mp-card-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
}
.supplywar-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Card Internal Layout */
.mp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mp-card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.mp-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.mp-tag-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.mp-tag-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.mp-tag-info {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.mp-tag-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.mp-card-content {
  flex: 1;
  margin: 16px 0 18px 0;
}

.mp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.mp-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.mp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.mp-card-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.mp-event-card:hover .mp-card-footer {
  color: #ffffff;
}

.mp-event-card:hover .mp-card-arrow {
  transform: translateX(4px);
}

/* ========================================================
   МП ГОС: Detail View (Dedicated Sub-pages)
   ======================================================== */
.mp-detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.mp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.mp-breadcrumb-parent {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.mp-breadcrumb-parent:hover {
  color: #ffffff;
  text-decoration: underline;
}

.mp-breadcrumb-sep {
  color: var(--text-muted);
}

.mp-breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* Page Hero */
.mp-page-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.mp-hero-rampage {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-surface) 60%);
}

.mp-hero-fedsupplies {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-surface) 60%);
}

.mp-hero-mousetrap {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-surface) 60%);
}

.mp-hero-supplywar {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-surface) 60%);
}

.mp-hero-icon {
  font-size: 44px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mp-hero-info {
  flex: 1;
}

.mp-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mp-hero-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.mp-hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.mp-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}

/* Admin Sections Grid */
.mp-admin-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .mp-admin-sections-grid {
    grid-template-columns: 1fr;
  }
}

.mp-panel-full {
  grid-column: 1 / -1;
}

.mp-admin-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mp-admin-panel .panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.mp-admin-panel .panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-empty-slot {
  padding: 44px 24px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(10, 12, 16, 0.3);
}

.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 440px;
}

.slot-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.slot-placeholder p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.btn-copy-audit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-copy-audit-link:hover {
  border-color: rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

/* ========================================================
   Audit Animated Cloud Loader (Uiverse / Cyber Theme)
   ======================================================== */
.audit-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.audit-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.audit-loading-card {
  background: rgba(18, 22, 29, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  padding: 34px 44px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(59, 130, 246, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  max-width: 90vw;
  animation: auditCardPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.audit-cloud-loader {
  --cloud-color: #3b82f6;
  --arrows-color: #93c5fd;
  --time-animation: 1s;
  transform: scale(1.1);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 4px 18px rgba(59, 130, 246, 0.4));
}

.audit-cloud-loader .cloud-svg {
  width: 100px;
  height: 100px;
}

.audit-cloud-loader .cloud-svg rect {
  fill: var(--cloud-color);
}

.audit-cloud-loader .cloud-svg .cloud-arrows {
  transform-origin: 50% 72.8938%;
  fill: var(--arrows-color);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
  animation: cloudRotation var(--time-animation) linear infinite;
}

.audit-cloud-loader .cloud-svg mask g g circle {
  animation: cloudShapeMorph calc(var(--time-animation) * 2) linear infinite;
}

.audit-cloud-loader .cloud-svg mask g g circle:nth-child(2) {
  animation-delay: calc((var(--time-animation) * 2) / -3);
}

.audit-cloud-loader .cloud-svg mask g g circle:nth-child(3) {
  animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.audit-cloud-loader .cloud-svg .cloud-lines g line {
  stroke-width: 5;
  transform-origin: 50% 50%;
  rotate: -65deg;
  animation: cloudLinesMove calc(var(--time-animation) / 1.33) linear infinite;
}

@keyframes cloudRotation {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cloudLinesMove {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(8px); }
}

@keyframes cloudShapeMorph {
  0% { cx: 20; cy: 60; r: 15; }
  50% { cx: 50; cy: 45; r: 20; }
  100% { cx: 80; cy: 60; r: 15; }
}

.audit-loading-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.audit-loading-subtitle {
  font-size: 12px;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.45;
}












.audit-link-input {
  width: 300px;
  max-width: 38vw;
  padding: 8px 12px;
  background: rgba(10, 13, 18, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  color: #93c5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  cursor: text;
}
.audit-link-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }


/* ====================================================
   PLAYER FACTION HOVER PREVIEW & TOOLTIP (ДОСЬЕ / ТРЕЙДЫ)
   ==================================================== */
.player-trade-target {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(147, 197, 253, 0.5);
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 4px;
  transition: all 0.18s ease;
  display: inline-block;
  background: rgba(59, 130, 246, 0.08);
}
.player-trade-target:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #ffffff;
  border-bottom-color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.player-faction-tooltip {
  position: fixed;
  z-index: 999999;
  width: 320px;
  max-width: 92vw;
  background: rgba(15, 19, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  color: #f1f5f9;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.player-faction-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}
.player-faction-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.player-faction-tooltip-name {
  font-weight: 700;
  font-size: 13px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-faction-tooltip-admin {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.player-faction-tooltip-card {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.player-faction-tooltip-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.player-faction-tooltip-card-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}
.player-faction-tooltip-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.player-faction-tooltip-rank {
  font-weight: 500;
  font-size: 12px;
  color: #cbd5e1;
}
.player-faction-tooltip-card-note {
  font-size: 10px;
  color: #64748b;
  margin-top: 5px;
}
.player-faction-tooltip-history-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
}
.player-faction-tooltip-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-faction-tooltip-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.player-faction-tooltip-history-item .hist-date {
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.player-faction-tooltip-history-item .hist-name {
  font-weight: 600;
}
.player-faction-tooltip-history-item .hist-rank {
  color: #94a3b8;
  font-size: 10px;
}
.player-faction-tooltip-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
  padding: 10px 0;
}
.player-faction-tooltip-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ======================================================== */
/* INTERACTIVE MOVEMENT FLOW MAP (КАРТА ДВИЖЕНИЙ ИМУЩЕСТВА) */
/* ======================================================== */

.btn-dossier-flow-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
  white-space: nowrap;
}

.btn-dossier-flow-map .brand-badge-beta {
  font-size: 9px;
  padding: 1px 5px;
  gap: 3.5px;
  margin-left: 2px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.btn-dossier-flow-map:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(6, 182, 212, 0.25));
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-dossier-flow-map svg {
  color: #c084fc;
  transition: transform 0.2s ease;
}

.btn-dossier-flow-map:hover svg {
  transform: scale(1.1);
  color: #e9d5ff;
}

#movementMapModal {
  z-index: 2600;
}

.movement-map-window {
  width: 95vw;
  max-width: 1440px;
  height: 90vh;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(168, 85, 247, 0.18);
  overflow: hidden;
  position: relative;
}

/* Modal Header */
.movement-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.movement-map-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.movement-map-icon {
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.movement-map-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-player-name {
  color: #c084fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
}

.movement-map-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.movement-map-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-item-filter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-filter-label {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.flow-item-select {
  background: #111827;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  min-width: 170px;
  outline: none;
  cursor: pointer;
}

.flow-item-select:focus {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.flow-layout-btn-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 2px;
}

.btn-flow-control {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-flow-control:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-flow-control.active {
  background: rgba(168, 85, 247, 0.3);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Quick Metrics Ribbon */
.movement-map-metrics-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(15, 20, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.flow-metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.flow-metric-card.in { border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.06); }
.flow-metric-card.veh { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.flow-metric-card.house { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.06); }
.flow-metric-card.trade { border-color: rgba(236, 72, 153, 0.35); background: rgba(236, 72, 153, 0.06); }
.flow-metric-card.cost { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }

.flow-metric-card .metric-icon {
  font-size: 16px;
}

.flow-metric-card .metric-info {
  display: flex;
  flex-direction: column;
}

.flow-metric-card .metric-lbl {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.flow-metric-card .metric-val {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
}

/* Modal Body */
.movement-map-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.movement-map-canvas-container {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #111622 0%, #080b11 100%);
  overflow: hidden;
}

.movement-map-canvas {
  width: 100%;
  height: 100%;
  flex: 1;
}

/* Bottom Legend */
.movement-map-legend {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  z-index: 10;
  font-size: 11px;
  color: #cbd5e1;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color-dot.src-bot { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.legend-color-dot.src-wh { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.legend-color-dot.center-player { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.legend-color-dot.dst-veh { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.legend-color-dot.dst-house { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-color-dot.dst-apt { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.legend-color-dot.dst-fam { background: #8b5cf6; box-shadow: 0 0 6px #8b5cf6; }
.legend-color-dot.dst-trade { background: #ec4899; box-shadow: 0 0 6px #ec4899; }
.legend-color-dot.dst-dark { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.flow-map-empty-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 23, 0.85);
  color: #94a3b8;
  font-size: 14px;
}

/* Detail Sidebar */
.movement-map-sidebar {
  width: 380px;
  max-width: 35%;
  background: rgba(15, 20, 30, 0.88);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.movement-map-sidebar .sidebar-header {
  padding: 14px 18px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.sidebar-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  color: #d8b4fe;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-subtitle-text {
  font-size: 11px;
  color: #64748b;
  padding: 8px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.4;
}

.sidebar-events-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) rgba(0, 0, 0, 0.2);
}

.sidebar-events-list::-webkit-scrollbar {
  width: 6px;
}
.sidebar-events-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
}

.flow-event-card {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.flow-event-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateX(2px);
}

.flow-event-card .ev-time {
  font-size: 10.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 3px;
}

.flow-event-card .ev-action {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.35;
  word-break: break-word;
}

.flow-event-card .ev-item-highlight {
  font-weight: 600;
  color: #67e8f9;
}

.flow-event-card .ev-qty-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.movement-map-sidebar .sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 23, 0.6);
}

.btn-copy-flow-log {
  width: 100%;
  padding: 8px 14px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 7px;
  color: #f3e8ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-copy-flow-log:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.8);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

