/* ==========================================================================
   GMR KIT v7.1 · AAA TACTICAL HUD & BENTO DESIGN SYSTEM (pro-clean.css)
   Optimized for 60FPS GPU rendering, zero visual clutter, and Tarkov/SCUM UI
   ========================================================================== */

:root {
  --bg-deep: #06080b;
  --bg-chassis: #0b0e14;
  --bg-card: rgba(16, 20, 28, 0.88);
  --bg-card-hover: rgba(22, 28, 39, 0.96);
  --bg-glass: rgba(11, 14, 20, 0.82);
  --tac-orange: #ff6a00;
  --tac-orange-bright: #ff8533;
  --tac-orange-glow: rgba(255, 106, 0, 0.18);
  --tac-pink: #ec4899;
  --tac-pink-bright: #f472b6;
  --tac-pink-glow: rgba(236, 72, 153, 0.18);
  --tac-green: #22c55e;
  --tac-amber: #f59e0b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 14px 32px -4px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 106, 0, 0.14);
}

/* GPU-Accelerated Overlays */
#ue-lumen-spotlight,
#hud-glitch-overlay {
  pointer-events: none !important;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ==========================================================================
   01. STREAMLINED TACTICAL HEADER (ZERO CLUTTER)
   ========================================================================== */
.clean-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 16, 0.88) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 18px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12) 0%, rgba(15, 20, 28, 0.9) 100%);
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-logo-badge:hover {
  border-color: var(--tac-orange-bright);
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.25);
}

/* Navigation Tabs with Vector SVGs */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 24, 0.9);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-tab-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.22) 0%, rgba(255, 106, 0, 0.08) 100%);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 10px rgba(255, 106, 0, 0.15);
}

.nav-tab-btn.active svg {
  stroke: var(--tac-orange-bright);
}

#tabWomenFashionBtn.active {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.08) 100%);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 10px rgba(236, 72, 153, 0.2);
}

#tabWomenFashionBtn.active svg {
  stroke: var(--tac-pink-bright);
}

.nav-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

/* Header Right Actions & Compact HUD Config Popover */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-settings-dropdown {
  position: relative;
}

.hud-settings-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(18, 23, 33, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.hud-settings-summary::-webkit-details-marker {
  display: none;
}

.hud-settings-summary:hover,
.hud-settings-dropdown[open] .hud-settings-summary {
  color: var(--text-main);
  border-color: rgba(255, 106, 0, 0.4);
  background: rgba(25, 32, 44, 0.95);
}

.hud-settings-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  padding: 10px;
  background: rgba(12, 16, 23, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1200;
}

.hud-popover-title {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 2px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-settings-popover button {
  width: 100%;
  justify-content: flex-start !important;
  text-align: left;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
}

/* ==========================================================================
   02. BENTO SEARCH CARDS & QUICK CHIPS
   ========================================================================== */
.search-card {
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.92) 0%, rgba(11, 14, 20, 0.96) 100%) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 16px !important;
  box-shadow: var(--shadow-card) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.female-search-card {
  border-color: rgba(236, 72, 153, 0.25) !important;
  background: linear-gradient(180deg, rgba(28, 15, 26, 0.88) 0%, rgba(12, 14, 20, 0.96) 100%) !important;
}

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #06080c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box-wrap:focus-within {
  border-color: var(--tac-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15) !important;
}

.female-search-card .search-box-wrap:focus-within {
  border-color: var(--tac-pink) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
}

.btn-quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.btn-quick-tag:hover {
  color: #fff;
  border-color: rgba(255, 106, 0, 0.5) !important;
  background: rgba(255, 106, 0, 0.12) !important;
  transform: translateY(-1px);
}

.quick-tag-female:hover {
  border-color: rgba(236, 72, 153, 0.55) !important;
  background: rgba(236, 72, 153, 0.15) !important;
}

/* Metrics Bar */
.view-metrics-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 2px 6px;
}

/* ==========================================================================
   03. AAA ITEM, WEAPON & OUTFIT CARDS (DEPTH + CORNER BRACKETS)
   ========================================================================== */
.full-equip-card,
.catalog-item-card,
.outfit-card,
.item-card {
  background: linear-gradient(165deg, rgba(20, 25, 34, 0.9) 0%, rgba(10, 13, 18, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease !important;
  position: relative;
  overflow: hidden;
}

.full-equip-card:hover,
.catalog-item-card:hover,
.outfit-card:hover,
.item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.48) !important;
  box-shadow: var(--shadow-hover) !important;
}

/* Tactical Corner Reticle on Hover */
.full-equip-card::after,
.catalog-item-card::after,
.outfit-card::after,
.item-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--tac-orange);
  border-right: 2px solid var(--tac-orange);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.full-equip-card:hover::after,
.catalog-item-card:hover::after,
.outfit-card:hover::after,
.item-card:hover::after {
  opacity: 1;
}

/* Subtle Radial Spotlight Behind Item Icons */
.full-equip-card img,
.catalog-item-card img,
.outfit-card img,
.item-card img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.full-equip-card:hover img,
.catalog-item-card:hover img,
.outfit-card:hover img,
.item-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   04. RIGHT COLUMN: DELIVERY PREPARATION & DIEGETIC CONSOLE
   ========================================================================== */
.cart-sticky-panel {
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.95) 0%, rgba(8, 10, 15, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65) !important;
}

.command-code-box,
.command-box {
  background: #040609 !important;
  border: 1px solid rgba(255, 106, 0, 0.28) !important;
  border-left: 3px solid var(--tac-orange) !important;
  border-radius: 6px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  color: #f8fafc !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.85) !important;
}

.btn-copy-command {
  background: linear-gradient(135deg, #ff7700 0%, #e65c00 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  transition: all 0.16s ease !important;
}

.btn-copy-command:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 106, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Fast-Bypass Button on Wire Lock Screen for Returning Admins */
.btn-fast-bypass {
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 106, 0, 0.45);
  color: var(--tac-orange-bright);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-fast-bypass:hover {
  background: var(--tac-orange);
  color: #000;
}
