/* CSS Reset & Variable System */
:root {
  --bg-color: #050608;
  --panel-bg: rgba(13, 17, 23, 0.7);
  --panel-bg-solid: #0d1117;
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-hover: rgba(255, 255, 255, 0.15);
  --text-color: #f0f3f6;
  --text-muted: #8b949e;
  --text-dark: #484f58;
  
  /* Mode Colors (will switch dynamically) */
  --accent-color: hsl(20, 100%, 50%); /* Multiplayer default */
  --accent-glow: hsla(20, 100%, 50%, 0.3);
  --accent-hover: hsl(20, 100%, 55%);
  
  --mp-color: hsl(20, 100%, 50%);
  --mp-glow: hsla(20, 100%, 50%, 0.3);
  --zm-color: hsl(280, 85%, 60%);
  --zm-glow: hsla(280, 85%, 60%, 0.3);
  --wz-color: hsl(180, 80%, 45%);
  --wz-glow: hsla(180, 80%, 45%, 0.3);
  --cp-color: hsl(45, 100%, 50%);
  --cp-glow: hsla(45, 100%, 50%, 0.3);

  --font-headers: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition-speed: 0.25s;
}

body.mode-multiplayer {
  --accent-color: var(--mp-color);
  --accent-glow: var(--mp-glow);
  --accent-hover: hsl(20, 100%, 55%);
}

body.mode-zombies {
  --accent-color: var(--zm-color);
  --accent-glow: var(--zm-glow);
  --accent-hover: hsl(280, 85%, 65%);
}

body.mode-warzone {
  --accent-color: var(--wz-color);
  --accent-glow: var(--wz-glow);
  --accent-hover: hsl(180, 80%, 50%);
}

body.mode-campaign {
  --accent-color: var(--cp-color);
  --accent-glow: var(--cp-glow);
  --accent-hover: hsl(45, 100%, 55%);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at 50% 20%, rgba(20, 24, 33, 0.4), transparent 60%);
}

/* Scanline / Military Console Grid Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

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

/* Glassmorphism Panel Common Styles */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.glass-panel:hover {
  border-color: var(--panel-border-hover);
}

/* BUTTONS */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-headers);
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
}

.orange-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 15px var(--accent-glow);
}
.orange-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-color);
}

/* AUTH OVERLAY & MODAL */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

.auth-brand {
  margin-bottom: 30px;
}

.brand-logo {
  display: inline-flex;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  color: var(--accent-color);
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.auth-brand h2 {
  font-family: var(--font-headers);
  font-size: 2rem;
  letter-spacing: 2px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 5px;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border-radius: 4px;
}
.auth-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.auth-form.active {
  display: flex;
}

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

.form-group label {
  font-family: var(--font-headers);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  transition: all var(--transition-speed);
}
.input-wrapper input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  outline: none;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 6px;
  margin-top: 10px;
}

.error-msg {
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.2);
  color: #ff5566;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* APP MAIN CONTAINER */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  position: relative;
  z-index: 10;
}

/* HEADER STYLE */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-radius: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-logo h1 {
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.logo-accent {
  color: var(--text-muted);
  font-weight: 400;
}

.glow-icon {
  color: var(--accent-color);
  filter: drop-shadow(0 0 8px var(--accent-color));
  animation: pulse-glow 2.5s infinite alternate;
}

.game-select-container {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}

.game-btn {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
}
.game-btn.active {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Mode tabs in header */
.mode-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.15);
  padding: 4px;
  border-radius: 8px;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  border: 1px solid transparent;
}
.mode-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}
.mode-tab.active {
  color: #fff;
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-bottom: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

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

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-headers);
}
.user-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.user-val {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-glow);
}

.logout-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logout-btn:hover {
  background: rgba(255, 51, 68, 0.1);
  color: #ff3344;
  border-color: rgba(255, 51, 68, 0.3);
}

/* DASHBOARD OVERVIEW */
.dashboard-section {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
}

.dash-card {
  padding: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel-bg);
}

.main-progress-card {
  justify-content: center;
  position: relative;
}
.main-progress-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  box-shadow: 0 0 10px var(--accent-color);
}

.circle-progress-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.4s ease;
  stroke-dasharray: 263.89; /* 2 * PI * 42 */
  stroke-dashoffset: 263.89;
  stroke-linecap: round;
}

.progress-percent-text {
  position: absolute;
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 700;
}

.progress-meta h3 {
  font-family: var(--font-headers);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.progress-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.dash-grid .dash-card {
  flex-direction: row;
}

.card-icon {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 16px;
  border-radius: 8px;
  color: var(--accent-color);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.card-stats {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}

/* CONTENT TABS VIEW SWITCHER */
.content-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
}

.content-tabs {
  display: flex;
  gap: 10px;
}

.view-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
}
.view-tab.active {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent-color);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}
.search-box input {
  padding: 10px 15px 10px 35px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 250px;
  transition: all var(--transition-speed);
}
.search-box input:focus {
  width: 320px;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  outline: none;
}

.utility-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.utility-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* WORKSPACE LAYOUT */
.workspace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar-panel {
  padding: 20px;
  border-radius: 8px;
}

.panel-title {
  font-family: var(--font-headers);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.class-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  border-radius: 6px;
  border-left: 2px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.class-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.class-btn.active {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-left-color: var(--accent-color);
  font-weight: 600;
  box-shadow: inset 8px 0 16px -8px var(--accent-glow);
}

.class-btn-badge {
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}
.class-btn.active .class-btn-badge {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* MAIN WORKSPACE REGION */
.main-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.workspace-header h2 {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.class-completion-badge {
  font-family: var(--font-headers);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

/* WEAPONS GRID */
.weapons-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.weapon-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 20px;
  border-radius: 8px;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.weapon-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: rgba(255,255,255,0.05);
  transition: all var(--transition-speed);
}
.weapon-card.weapon-completed::before {
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.weapon-info-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weapon-title {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.weapon-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.weapon-progress-nums {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weapon-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
}

.weapon-progress-bar-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* CAMO TRACKER TIERS */
.weapon-camos-sec {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.camo-tier-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.camo-tier-label {
  font-family: var(--font-headers);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.camo-slots-container {
  display: flex;
  gap: 6px;
}

/* CAMO SLOT ITEM */
.camo-slot {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--panel-border);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: all var(--transition-speed);
}
.camo-slot:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.camo-slot.checked {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.camo-slot-asset,
.camo-slot-check {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.camo-slot-asset {
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  display: block;
  background: rgba(0, 0, 0, 0.15);
  position: relative;
}

.camo-slot-asset[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.camo-slot-asset i {
  color: rgba(255, 255, 255, 0.75);
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: color var(--transition-speed), opacity var(--transition-speed);
}

.camo-slot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  image-rendering: auto;
  background-color: transparent;
}

.camo-slot.checked .camo-slot-asset i {
  color: #000;
  opacity: 1;
}

.camo-slot-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity var(--transition-speed);
}
.camo-slot-check i {
  width: 16px;
  height: 16px;
  color: #000;
}
.camo-slot.checked .camo-slot-check {
  opacity: 1;
}

/* Special styling for Mastery Camo slots (glowing borders) */
.camo-slot[data-type="mastery"] {
  border-color: rgba(255, 255, 255, 0.15);
}
.camo-slot[data-type="mastery"]:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* TOOLTIP ON HOVER */
.camo-slot::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.camo-slot:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CALLING CARDS LAYOUT */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calling-card-section {
  padding: 16px;
  border-radius: 10px;
}

.calling-card-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.calling-card-section-title {
  font-family: var(--font-headers);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-color);
}

.calling-card-section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calling-card-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

/* Premium Calling Card slot design */
.card-slot {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--panel-border);
  background: var(--panel-bg-solid);
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
}
.card-slot:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Mock beautiful graphic bar of Calling Card */
.card-visual-bar {
  height: 50px;
  background: linear-gradient(135deg, #181c25, #0a0b0e);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background-size: cover;
  background-position: center;
}

/* Call of duty style aesthetic patterns for calling cards */
.card-visual-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 2px, transparent 2px, transparent 10px);
  pointer-events: none;
}

.card-visual-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.card-slot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-slot.card-checked .card-visual-bar {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}
.card-slot.card-checked .card-visual-bar::before {
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 10px);
}

.card-status-badge {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 24px;
  height: 24px;
}
.card-slot.card-checked .card-status-badge {
  background: #000;
  color: var(--accent-color);
  border-color: transparent;
}

.card-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.card-meta-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-category-lbl {
  font-family: var(--font-headers);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  text-transform: uppercase;
}
.card-mode-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}
.card-slot.card-checked .card-title {
  text-shadow: 0 0 10px var(--accent-glow);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* APP FOOTER */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--panel-border);
  font-size: 0.75rem;
  color: var(--text-dark);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec-text {
  color: var(--text-muted);
  font-weight: 600;
}

/* ANIMATIONS */
@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 4px var(--accent-color));
  }
  100% {
    filter: drop-shadow(0 0 12px var(--accent-color));
  }
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .dashboard-section {
    grid-template-columns: 1fr;
  }
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-panel {
    position: sticky;
    top: 10px;
    z-index: 100;
  }
  .class-buttons {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .class-btn {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
  }
  .header-left {
    justify-content: space-between;
  }
  .mode-tabs {
    overflow-x: auto;
  }
  .mode-tab {
    white-space: nowrap;
  }
  .header-right {
    justify-content: space-between;
    border-top: 1px solid var(--panel-border);
    padding-top: 10px;
  }
  .content-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box input {
    width: 100%;
  }
  .search-box input:focus {
    width: 100%;
  }
  .weapon-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ======================================================
   ADMIN CONSOLE STYLES
   ====================================================== */

/* Admin nav button in header */
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.1);
  color: hsl(0, 85%, 65%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}
.admin-nav-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
  border-color: hsl(0, 85%, 55%);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

/* Admin Workspace Layout */
.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 10px;
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

.admin-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-glow-icon {
  color: hsl(0, 85%, 60%);
  filter: drop-shadow(0 0 10px hsl(0, 85%, 55%));
  animation: pulse-glow-red 2.5s infinite alternate;
  width: 32px;
  height: 32px;
}

.admin-title-row h2 {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: hsl(0, 85%, 65%);
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.admin-subtitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: rgba(220, 38, 38, 0.6);
  margin-top: 2px;
  text-transform: uppercase;
}

/* Stats cards grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(220, 38, 38, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed);
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: hsl(0, 85%, 55%);
  box-shadow: 0 0 10px hsl(0, 85%, 55%);
  opacity: 0.6;
}
.admin-stat-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
}

.astat-icon {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  padding: 14px;
  border-radius: 8px;
  color: hsl(0, 85%, 60%);
  filter: drop-shadow(0 0 4px rgba(220, 38, 38, 0.4));
  flex-shrink: 0;
}

.astat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.astat-label {
  font-family: var(--font-headers);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.astat-value {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Memory Utilization Gauges */
.admin-gauges {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gauge-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 12px;
}

.gauge-label {
  font-family: var(--font-headers);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gauge-bar-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.gauge-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, hsl(0, 85%, 40%), hsl(0, 85%, 60%));
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.gauge-pct {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  color: hsl(0, 85%, 65%);
  text-align: right;
}

/* Operator Registry Panel */
.admin-users-panel {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead tr {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.admin-table th {
  padding: 12px 16px;
  font-family: var(--font-headers);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #fff;
  white-space: nowrap;
}

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

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Role badge pills */
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-family: var(--font-headers);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.role-badge.admin {
  background: rgba(220, 38, 38, 0.15);
  color: hsl(0, 85%, 65%);
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.role-badge.user {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}

/* Reset keycode action button in table */
.reset-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(220, 38, 38, 0.08);
  color: hsl(0, 85%, 65%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.reset-key-btn:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #fff;
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
}

/* Inline password reset panel */
.password-reset-panel {
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(220, 38, 38, 0.04) !important;
}

.reset-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(220, 38, 38, 0.08);
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
  font-family: var(--font-headers);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: hsl(0, 85%, 70%);
}

.reset-panel-body {
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.reset-panel-body .input-wrapper {
  flex: 1;
}

/* Admin submit button override */
.admin-btn {
  background: linear-gradient(135deg, hsl(0, 85%, 45%), hsl(0, 85%, 55%));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  padding: 14px 22px;
}
.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.5);
}

/* Success feedback override */
.success-msg {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: hsl(142, 71%, 55%);
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

@keyframes pulse-glow-red {
  0% { filter: drop-shadow(0 0 4px hsl(0, 85%, 55%)); }
  100% { filter: drop-shadow(0 0 14px hsl(0, 85%, 55%)); }
}

/* Responsive Design (Mobile Friendly) */
@media (max-width: 768px) {
  /* App Container & Typography */
  .app-container {
    padding: 10px;
    gap: 15px;
  }
  
  .auth-card {
    padding: 20px;
    margin: 15px;
    width: auto;
  }
  
  /* Header */
  .main-header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  .header-left, .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .app-logo h1 {
    font-size: 1.2rem;
  }
  
  .mode-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
  }
  
  .mode-tab {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  /* Dashboard */
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  /* Content Tabs */
  .content-nav {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .content-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .view-tab {
    white-space: nowrap;
  }
  
  .filter-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .search-box, .search-box input {
    width: 100%;
  }
  
  .search-box input:focus {
    width: 100%;
  }
  
  .utility-btn {
    width: 100%;
    justify-content: center;
  }

  /* Workspaces */
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  
  /* Weapons Grid & Camos */
  .weapon-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }
  
  .weapon-camos-sec {
    justify-content: center;
  }
  
  .camo-slots-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Calling Cards Grid */
  .calling-card-section-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .workspace-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .workspace-header h2 {
    font-size: 1.4rem;
  }
  
  /* Admin responsive */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gauge-row {
    grid-template-columns: 80px 1fr 44px;
  }
  .reset-panel-body {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-btn {
    width: 100%;
  }
  
  /* Footer */
  .app-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
}
