@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg-deep: #05070a;
  --bg-darker: #080c14;
  --bg-card: rgba(14, 20, 32, 0.85);
  --bg-card-hover: rgba(20, 28, 45, 0.95);
  --border-dim: #1e293b;
  --border-neon: #ff2a4b;
  --border-gold: #e5a93c;
  --border-cyan: #00f0ff;
  
  --mars-red: #ff2a4b;
  --mars-glow: rgba(255, 42, 75, 0.45);
  --gold: #ffd166;
  --gold-glow: rgba(255, 209, 102, 0.4);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --emerald: #06d6a0;
  --emerald-glow: rgba(6, 214, 160, 0.4);
  --purple: #b5179e;
  --purple-glow: rgba(181, 23, 158, 0.4);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-gold: #fde047;
  --text-cyan: #67e8f9;
  --text-red: #ff6b81;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 42, 75, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(181, 23, 158, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, #05070a, #080c14);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* CRT SCANLINES OVERLAY (Toggleable) */
.scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.scanlines-overlay.disabled {
  opacity: 0;
}

/* GLOBAL CONTAINER */
.cogitator-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   AUTHENTICATION GATE / SECURE TERMINAL
   ========================================================================== */
.terminal-auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #101626 0%, #05070a 80%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.terminal-auth-card {
  width: 100%;
  max-width: 520px;
  background: rgba(11, 16, 28, 0.95);
  border: 2px solid var(--mars-red);
  border-radius: 12px;
  box-shadow: 0 0 50px var(--mars-glow), inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.terminal-auth-banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-gold);
  filter: brightness(0.8) contrast(1.2);
}

.terminal-auth-body {
  padding: 28px 32px;
}

.terminal-header {
  text-align: center;
  margin-bottom: 24px;
}

.terminal-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--gold-glow);
}

.terminal-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* BIOMETRIC LASER SCANNER */
.bio-scanner {
  position: relative;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 22px;
}

.bio-laser {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35), transparent);
  animation: scanLaser 2.5s infinite linear;
}

@keyframes scanLaser {
  0% { left: -100%; }
  100% { left: 100%; }
}

.bio-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-cyan);
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.auth-input-group {
  margin-bottom: 18px;
}

.auth-input-group label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  background: #070a12;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: all 0.25s ease;
}

.auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.auth-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #c9182b, #ff2a4b);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--mars-glow);
  transition: all 0.25s ease;
  margin-top: 8px;
}

.auth-submit-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--mars-glow);
}

.auth-status-msg {
  min-height: 24px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  color: var(--text-gold);
}

.auth-hint-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
}

/* ==========================================================================
   TOP COMMANDER HUD & RESOURCE DECK
   ========================================================================== */
.commander-hud {
  background: rgba(11, 16, 28, 0.9);
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(229, 169, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  backdrop-filter: blur(8px);
}

.commander-profile-slot {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-cyber-frame {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--mars-red);
  box-shadow: 0 0 18px var(--mars-glow);
  overflow: hidden;
  flex-shrink: 0;
  animation: pulseAvatar 4s infinite ease-in-out;
}

@keyframes pulseAvatar {
  0%, 100% { border-color: var(--mars-red); box-shadow: 0 0 15px var(--mars-glow); }
  50% { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }
}

.avatar-cyber-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-badge-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--emerald);
  border: 2px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
}

.commander-meta h2 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 1px;
}

.commander-rank-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.rank-lvl-pill {
  background: linear-gradient(135deg, #c9182b, #8b1119);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid var(--border-gold);
}

/* XP BAR */
.hud-xp-module {
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.hud-xp-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.xp-bar-container {
  position: relative;
  height: 14px;
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06d6a0, #00f0ff, #ffd166);
  border-radius: 8px;
  box-shadow: 0 0 12px var(--emerald-glow);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: width, transform;
}

/* RESOURCE BADGES */
.hud-currencies {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.currency-pill {
  background: #070a12;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-pill .icon {
  font-size: 18px;
}

.currency-pill .val {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.currency-pill .lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* HUD CONTROLS */
.hud-switches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-btn {
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.hud-btn.active {
  border-color: var(--emerald);
  color: var(--emerald);
}

.logout-btn {
  border-color: var(--border-red);
  color: var(--text-red);
}

.logout-btn:hover {
  background: var(--mars-red);
  color: #fff;
  border-color: var(--mars-red);
}

/* ==========================================================================
   DAILY CRUSADE HERO: D20 ALTAR & OBJECTIVES
   ========================================================================== */
.crusade-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .crusade-hero-grid {
    grid-template-columns: 1fr;
  }
}

.altar-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.altar-bg-relic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(2px) contrast(1.2);
  pointer-events: none;
}

#sparks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.altar-header-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 6;
}

/* 3D D20 DIE MOCKUP */
.d20-interactive-cube {
  width: 130px;
  height: 130px;
  position: relative;
  cursor: pointer;
  margin: 12px auto;
  z-index: 6;
  perspective: 600px;
  transition: transform 0.3s ease;
}

.d20-interactive-cube:hover {
  transform: scale(1.08);
}

.d20-face {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 35%, #ff2a4b 0%, #8b1119 60%, #30060a 100%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--mars-glow), inset 0 0 20px rgba(255, 209, 102, 0.4);
  animation: floatDie 4s ease-in-out infinite alternate;
}

@keyframes floatDie {
  0% { transform: translateY(-5px) rotate(-3deg); }
  100% { transform: translateY(5px) rotate(3deg); }
}

.d20-interactive-cube.rolling .d20-face {
  animation: rollDieAnimation 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes rollDieAnimation {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(180deg) scale(1.2); }
  50% { transform: rotate(450deg) scale(0.9); }
  75% { transform: rotate(700deg) scale(1.15); }
  100% { transform: rotate(720deg) scale(1); }
}

.d20-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px var(--gold-glow);
}

.d20-roll-btn {
  position: relative;
  z-index: 6;
  background: linear-gradient(135deg, #e5a93c, #b37e20);
  border: 1px solid #ffe89e;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #101626;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--gold-glow);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.d20-roll-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.d20-roll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.d20-blessing-result {
  position: relative;
  z-index: 6;
  margin-top: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--text-gold);
  min-height: 42px;
  line-height: 1.4;
}

/* OBJECTIVES CARD */
.crusade-tracker-card {
  background: var(--bg-card);
  border: 2px solid var(--border-dim);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crusade-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--text-gold);
  margin-bottom: 6px;
}

.crusade-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.crusade-progress-meter {
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

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

.meter-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald);
  text-shadow: 0 0 10px var(--emerald-glow);
}

.meter-bar {
  height: 16px;
  background: #0d131f;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2a4b, #ffd166, #06d6a0);
  border-radius: 8px;
  transition: width 0.5s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: width, transform;
}

.daily-buffs-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buff-chip {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   MISSION THEATERS (SECTOR TERRA & SEGMENTUM OBSCURUS)
   ========================================================================== */
.theaters-wrapper {
  margin-bottom: 35px;
}

.theater-header-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(20, 28, 48, 0.95), rgba(11, 16, 28, 0.7));
  border-left: 5px solid var(--mars-red);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 28px 0 18px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.theater-header-banner.obscurus {
  border-left-color: var(--cyan);
}

.theater-badge-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid var(--border-gold);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.theater-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.theater-info p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* QUEST CARDS GRID */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* 3D CYBER MISSION CARD */
.mission-cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mission-cyber-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.2);
}

.mission-cyber-card.completed {
  border-color: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.mission-cyber-card.mastered {
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow);
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.95), rgba(35, 28, 15, 0.85));
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.card-difficulty {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
}

.card-mission-target {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-spec-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.spec-tag {
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-cyan);
  padding: 2px 6px;
  font-family: 'Share Tech Mono', monospace;
}

/* 5-CELL ENERGY BATTERY (1..5 BIDS) */
.battery-stepper-box {
  background: #070a12;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 14px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.battery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.battery-gauge {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.battery-segment {
  flex: 1;
  height: 14px;
  background: #121929;
  border-radius: 3px;
  border: 1px solid #1e293b;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: background, box-shadow, transform;
}

.battery-segment.charged {
  background: var(--cyan);
  border-color: #67e8f9;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.battery-segment.charged.max {
  background: var(--gold);
  border-color: #fde047;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* 10-SEGMENT OVERCHARGE GAUGE */
.battery-gauge.gauge-10 {
  gap: 3px;
}

.battery-segment.overcharge {
  border: 1px dashed rgba(168, 85, 247, 0.5);
  background: #0d111d;
}

.battery-segment.overcharge.charged {
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  border: 1px solid #d8b4fe;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}

.battery-segment.overcharge.charged.max {
  background: linear-gradient(135deg, #ffd166, #ff2a4b);
  border: 1px solid #fca5a5;
  box-shadow: 0 0 16px rgba(255, 42, 75, 0.85);
}

.mission-cyber-card.overcharged {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3) !important;
}

/* OPERA & BLINK FORCE REPAINT & PULSE */
@keyframes batteryPulseGlow {
  0% { transform: translateZ(0) scale(1); filter: brightness(1); }
  50% { transform: translateZ(0) scale(1.05); filter: brightness(1.35); }
  100% { transform: translateZ(0) scale(1); filter: brightness(1); }
}

.battery-pulse-updated {
  animation: batteryPulseGlow 0.3s ease-out forwards;
}

/* PRICING COST BADGES (FREE // CONNECTS // PRO) */
.card-pricing-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-pricing-badge.free {
  background: rgba(6, 214, 160, 0.12);
  color: #06d6a0;
  border: 1px solid rgba(6, 214, 160, 0.35);
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.15);
}

.card-pricing-badge.quota {
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.15);
}

.card-pricing-badge.paid {
  background: rgba(255, 42, 75, 0.12);
  color: #ff5c75;
  border: 1px solid rgba(255, 42, 75, 0.35);
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.15);
}

.tactic-badge-pill.pricing.free {
  background: rgba(6, 214, 160, 0.2);
  color: #06d6a0;
  border: 1px solid #06d6a0;
}

.tactic-badge-pill.pricing.quota {
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
  border: 1px solid #ffd166;
}

.tactic-badge-pill.pricing.paid {
  background: rgba(255, 42, 75, 0.2);
  color: #ff5c75;
  border: 1px solid #ff5c75;
}

.overcharge-chip {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(255, 42, 75, 0.18)) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #e9d5ff !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.stepper-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}


.step-btn {
  background: #141c2c;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  width: 38px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.step-btn.add-btn {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.2), rgba(255, 42, 75, 0.4));
  border-color: var(--mars-red);
}

.step-btn.add-btn:hover {
  background: var(--mars-red);
  color: #fff;
  box-shadow: 0 0 15px var(--mars-glow);
}

.card-actions-row {
  display: flex;
  gap: 8px;
}

.action-launch-btn {
  flex: 2;
  background: #0e1726;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.action-launch-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.action-tactic-btn {
  flex: 1;
  background: #0e1726;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-gold);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-tactic-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   AUGMENTATIONS HUD & EXPANDED CRM BOUNTY BOARD
   ========================================================================== */
.secondary-deck-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 35px;
}

.augmentations-hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.implants-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1050px) {
  .implants-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .implants-grid-horizontal {
    grid-template-columns: 1fr;
  }
}

.cyber-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.crm-command-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.7), inset 0 0 25px rgba(0, 240, 255, 0.03);
}

.crm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.crm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  margin-bottom: 20px;
}

.crm-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-tab-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.crm-tab-btn:hover {
  border-color: var(--cyan);
  color: #fff;
}

.crm-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.crm-tab-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.crm-tab-btn.active .crm-tab-badge {
  background: var(--cyan);
  color: #000;
  font-weight: 900;
}

.crm-search-box {
  position: relative;
  min-width: 250px;
  flex-grow: 1;
  max-width: 380px;
}

.crm-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  background: rgba(13, 19, 33, 0.95);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.crm-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.crm-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.lead-bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 18px;
}

@media (max-width: 580px) {
  .lead-bounty-grid {
    grid-template-columns: 1fr;
  }
}

.cyber-panel-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* AUGMENTATIONS SLOTS */
.implants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.implant-slot {
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.implant-slot:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.implant-icon {
  font-size: 24px;
}

.implant-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.implant-bonus {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--emerald);
}

/* BOUNTY LEADS LIST */
.lead-bounty-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.bounty-item {
  background: #080c14;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bounty-info h4 {
  font-size: 14px;
  color: #fff;
}

.bounty-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.status-badge.negotiation {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.status-badge.escrow {
  background: rgba(6, 214, 160, 0.15);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

/* ARSENAL ACCORDION */
.arsenal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

.template-card {
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}

.template-text {
  background: #05070a;
  border: 1px solid #141c2c;
  border-radius: 6px;
  padding: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  margin: 10px 0;
}

.copy-arsenal-btn {
  background: #141c2c;
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-arsenal-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* ==========================================================================
   LEVEL UP CINEMATIC OVERLAY
   ========================================================================== */
.level-up-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.92);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.level-up-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.level-up-content {
  text-align: center;
  max-width: 500px;
  background: radial-gradient(circle at center, #1b253b 0%, #0b101c 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 0 60px var(--gold-glow);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-up-modal.active .level-up-content {
  transform: scale(1);
}

.level-up-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.level-up-rank-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 24px;
}

.level-up-close-btn {
  background: linear-gradient(135deg, #ffd166, #e5a93c);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ==========================================================================
   TACTICAL DOSSIER MODAL (CLASSIC WARHAMMER 40K / CYBER-ANIME DATAPAD)
   ========================================================================== */
.tactic-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.94);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.tactic-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tactic-dossier-card {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: rgba(11, 16, 28, 0.98);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 35px var(--gold-glow);
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.tactic-modal.active .tactic-dossier-card {
  transform: scale(1);
}

.tactic-banner-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-bottom: 2px solid var(--border-gold);
  overflow: hidden;
  flex-shrink: 0;
}

.tactic-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.15);
}

.tactic-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 16, 28, 0.98) 15%, rgba(11, 16, 28, 0.4) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.tactic-platform-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 1.5px;
  text-shadow: 0 0 15px var(--gold-glow);
}

.tactic-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tactic-badge-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-dim);
}

.tactic-badge-pill.lang {
  color: var(--cyan);
  border-color: var(--cyan);
}

.tactic-badge-pill.sector {
  color: var(--gold);
  border-color: var(--gold);
}

.tactic-dossier-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tactic-block {
  background: #080c14;
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 18px;
  position: relative;
}

.tactic-block.gold-accent {
  border-left: 4px solid var(--gold);
}

.tactic-block.cyan-accent {
  border-left: 4px solid var(--cyan);
}

.tactic-block.red-accent {
  border-left: 4px solid var(--mars-red);
}

.tactic-sec-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tactic-sec-header.gold { color: var(--gold); }
.tactic-sec-header.cyan { color: var(--cyan); }
.tactic-sec-header.red { color: var(--text-red); }

.tactic-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tactic-kw-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-cyan);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
}

.tactic-step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tactic-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.tactic-step-num {
  background: #121929;
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tactic-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tactic-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.tactic-check-row input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.tactic-template-container {
  background: #05070a;
  border: 1px solid #141c2c;
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
}

.tactic-template-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.6;
  padding-right: 8px;
}

.tactic-template-text::-webkit-scrollbar {
  width: 6px;
}

.tactic-template-text::-webkit-scrollbar-track {
  background: rgba(5, 7, 10, 0.8);
  border-radius: 4px;
}

.tactic-template-text::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}

.tactic-template-text::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.tactic-footer-actions {
  display: flex;
  gap: 14px;
  padding-top: 10px;
}

.tactic-launch-btn {
  flex: 2;
  background: linear-gradient(135deg, #06d6a0, #00f0ff);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px var(--cyan-glow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactic-launch-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.tactic-copy-btn {
  flex: 2;
  background: linear-gradient(135deg, #ffd166, #e5a93c);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 20px var(--gold-glow);
  transition: all 0.2s ease;
}

.tactic-copy-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.tactic-close-btn {
  flex: 1;
  background: #141c2c;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactic-close-btn:hover {
  border-color: var(--mars-red);
  color: var(--mars-red);
}

/* ==========================================================================
   ROGUELIKE CARD FX, PROGRESSIVE UNLOCKS & WARHAMMER AESTHETICS (TRACK-05)
   ========================================================================== */

/* 3D PERSPECTIVE CONTAINER & INTERACTIVE TILT */
.missions-grid {
  perspective: 1200px;
}

.mission-cyber-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  position: relative;
}

/* GOLO-FOIL (HOLOGRAM EFFECT НА КАРТАХ) */
.card-foil-sheen {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  contain: paint;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background: linear-gradient(
    var(--foil-angle, 125deg),
    transparent 15%,
    rgba(0, 240, 255, 0.12) 35%,
    rgba(255, 0, 128, 0.16) 50%,
    rgba(255, 215, 0, 0.20) 65%,
    rgba(0, 255, 136, 0.12) 80%,
    transparent 95%
  );
  background-size: 250% 250%;
  background-position: var(--foil-x, 50%) var(--foil-y, 50%);
  mix-blend-mode: color-dodge;
  transition: opacity 0.3s ease;
  will-change: opacity, background-position;
  z-index: 4;
}

.mission-cyber-card:not(.locked):hover .card-foil-sheen {
  opacity: 1;
}

/* ЗАБЛОКИРОВАННАЯ КАРТА */
.mission-cyber-card.locked {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 0 35px rgba(0, 0, 0, 0.85);
  background: linear-gradient(135deg, rgba(12, 16, 26, 0.95), rgba(20, 10, 15, 0.95));
}

.mission-cyber-card.locked:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

.mission-cyber-card.locked .action-launch-btn,
.mission-cyber-card.locked .stepper-controls .step-btn {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
  cursor: not-allowed;
}

.mission-cyber-card.locked .action-tactic-btn {
  /* Разведка тактики разрешена! */
  opacity: 1;
  pointer-events: auto;
  border-color: var(--amber);
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.mission-cyber-card.locked .action-tactic-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #ffd166;
}

/* ОВЕРЛЕЙ ЗАМКА И КИБЕР-ЦЕПЕЙ */
.card-lock-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(10, 14, 26, 0.88) 0%, rgba(5, 7, 15, 0.96) 85%);
  backdrop-filter: blur(2px);
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 16px;
  text-align: center;
}

.mission-cyber-card:not(.locked) .card-lock-overlay {
  display: none !important;
}

/* КИБЕР-ЦЕПИ ФОНОМ */
.lock-chains-backdrop {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.05) 0px, rgba(239, 68, 68, 0.05) 2px, transparent 2px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(239, 68, 68, 0.05) 0px, rgba(239, 68, 68, 0.05) 2px, transparent 2px, transparent 12px);
  opacity: 0.6;
}

/* ПЕЧАТЬ ОМНИССИИ И ЗАМОК */
.purity-seal-lock {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #8a1414 0%, #420808 70%, #1a0303 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65), inset 0 0 12px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  position: relative;
  animation: sealPulseGlow 3s infinite ease-in-out;
}

@keyframes sealPulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.85), inset 0 0 15px rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
  }
}

.purity-ribbon {
  position: absolute;
  bottom: -16px;
  width: 22px;
  height: 20px;
  background: #6e0c0c;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  border: 1px solid #ef4444;
  border-top: none;
}

.lock-condition-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fecaca;
  background: rgba(30, 8, 12, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: 6px;
  padding: 6px 14px;
  text-align: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  max-width: 90%;
  margin-bottom: 6px;
}

.lock-scout-hint {
  font-size: 10px;
  color: var(--amber);
  font-family: 'Share Tech Mono', monospace;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* АНИМАЦИЯ СРЫВА ПЕЧАТИ (UNLOCKED FANFARE) */
.mission-cyber-card.unlocked-fanfare {
  animation: cardUnlockShockwave 1.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  z-index: 25;
}

@keyframes cardUnlockShockwave {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
  }
  30% {
    transform: scale(1.06);
    border-color: #ffd166;
    box-shadow: 0 0 45px rgba(255, 209, 102, 0.95), 0 0 75px rgba(0, 240, 255, 0.7);
  }
  70% {
    transform: scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
  }
  100% {
    transform: scale(1);
  }
}

.mission-cyber-card.unlocked-fanfare .card-lock-overlay {
  animation: shatterChains 0.9s ease-out forwards;
}

@keyframes shatterChains {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15) rotate(2deg);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: scale(1.35) rotate(-4deg);
    filter: blur(10px);
    display: none !important;
  }
}

/* ДОРОЖНАЯ КАРТА КАМПАНИИ (DAILY CRUSADE ROADMAP) */
.daily-crusade-map {
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0 28px 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.05);
  backdrop-filter: blur(10px);
}

.crusade-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.crusade-map-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1.5px;
}

.crusade-map-reset-info {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

.crusade-tiers-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

@media (max-width: 900px) {
  .crusade-tiers-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .crusade-tiers-track {
    grid-template-columns: 1fr;
  }
}

.crusade-tier-node {
  background: rgba(15, 22, 40, 0.75);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  transition: all 0.3s ease;
}

.crusade-tier-node.active {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.crusade-tier-node.completed {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.crusade-tier-node.locked {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.1);
}

.tier-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tier-node-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.crusade-tier-node.completed .tier-node-badge { color: var(--emerald); }
.crusade-tier-node.active .tier-node-badge { color: var(--cyan); }
.crusade-tier-node.locked .tier-node-badge { color: var(--text-muted); }

.tier-node-status {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
}

.tier-node-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.tier-node-req {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* ВСПЛЫВАЮЩИЙ БАННЕР ДОСТИЖЕНИЙ (ACHIEVEMENT TOAST) */
.achievement-banner-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.achievement-card-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(22, 16, 35, 0.97) 0%, rgba(10, 14, 25, 0.98) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 209, 102, 0.45);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(120%);
  animation: slideInToast 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

@keyframes slideInToast {
  0% { transform: translateX(120%) scale(0.9); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

.achievement-card-toast.hiding {
  animation: slideOutToast 0.4s ease-in forwards;
}

@keyframes slideOutToast {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120%) scale(0.9); opacity: 0; }
}

.toast-gold-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 209, 102, 0.25) 50%, transparent 60%);
  animation: toastShimmer 2.5s infinite linear;
  pointer-events: none;
}

@keyframes toastShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.toast-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d2f08 0%, #191404 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.toast-body {
  flex-grow: 1;
}

.toast-pre-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.toast-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
  margin-bottom: 3px;
}

.toast-desc {
  font-size: 11px;
  color: #d0d7de;
  line-height: 1.3;
}

/* ==========================================================================
   CARD AURA TIERS (EVOLVING SKILL MASTERY GLOW)
   ========================================================================== */
.mission-cyber-card.tier-aura-0 {
  border-color: var(--border-dim);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* TIER 1: AWAKENED NEON CYAN (1-2 Bids) */
.mission-cyber-card.tier-aura-1 {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.12) !important;
  animation: auraPulseCyan 3s infinite ease-in-out;
}

@keyframes auraPulseCyan {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 240, 255, 0.3), inset 0 0 6px rgba(0, 240, 255, 0.08); }
  50% { box-shadow: 0 0 24px rgba(0, 240, 255, 0.6), inset 0 0 14px rgba(0, 240, 255, 0.22); }
}

/* TIER 2: OVERCHARGED PLASMA EMERALD (3-4 Bids) */
.mission-cyber-card.tier-aura-2 {
  border-color: var(--emerald) !important;
  box-shadow: 0 0 26px rgba(6, 214, 160, 0.55), inset 0 0 14px rgba(6, 214, 160, 0.2) !important;
  animation: auraPulseEmerald 2.4s infinite ease-in-out;
}

@keyframes auraPulseEmerald {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 214, 160, 0.45), inset 0 0 10px rgba(6, 214, 160, 0.15); }
  50% { box-shadow: 0 0 35px rgba(6, 214, 160, 0.8), inset 0 0 20px rgba(6, 214, 160, 0.3); }
}

/* TIER 3: HOLY RELIC OMNISSIAH GOLD (5 Bids / Standard Max) */
.mission-cyber-card.tier-aura-3 {
  border-color: var(--gold) !important;
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.75), inset 0 0 22px rgba(255, 209, 102, 0.28) !important;
  background: linear-gradient(135deg, rgba(22, 30, 52, 0.95), rgba(42, 32, 14, 0.9)) !important;
  animation: auraPulseGold 2s infinite ease-in-out;
}

@keyframes auraPulseGold {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 209, 102, 0.65), inset 0 0 16px rgba(255, 209, 102, 0.22); }
  50% { box-shadow: 0 0 50px rgba(255, 209, 102, 0.98), inset 0 0 28px rgba(255, 209, 102, 0.4); }
}

/* TIER GOD: WARP SINGULARITY / ARCH-MAGOS (6-10 Overcharge Bids) */
.mission-cyber-card.tier-aura-god {
  border-color: #d946ef !important;
  box-shadow: 0 0 50px rgba(217, 70, 239, 0.8), 0 0 25px rgba(255, 42, 75, 0.55), inset 0 0 28px rgba(217, 70, 239, 0.35) !important;
  background: radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.28) 0%, rgba(14, 20, 32, 0.95) 75%) !important;
  animation: warpSingularityPulse 1.8s infinite alternate ease-in-out;
}

@keyframes warpSingularityPulse {
  0% {
    box-shadow: 0 0 38px rgba(217, 70, 239, 0.7), 0 0 18px rgba(255, 42, 75, 0.45), inset 0 0 20px rgba(217, 70, 239, 0.28);
    border-color: #c026d3 !important;
  }
  100% {
    box-shadow: 0 0 60px rgba(217, 70, 239, 0.98), 0 0 35px rgba(0, 240, 255, 0.65), inset 0 0 32px rgba(255, 42, 75, 0.45);
    border-color: #f43f5e !important;
  }
}

/* ==========================================================================
   SECTOR CLEARED MODAL (FULLSCREEN TRIUMPH CELEBRATION)
   ========================================================================== */
.sector-cleared-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 11, 0.94);
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.sector-cleared-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sector-triumph-card {
  max-width: 600px;
  width: 100%;
  background: radial-gradient(circle at center, #1b2742 0%, #080d1a 100%);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255, 209, 102, 0.55), inset 0 0 40px rgba(255, 209, 102, 0.22);
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sector-cleared-modal.active .sector-triumph-card {
  transform: scale(1);
}

.triumph-cog-halo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border: 4px dashed var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  animation: rotateCogHalo 12s infinite linear;
  box-shadow: 0 0 35px var(--gold-glow);
  background: rgba(255, 209, 102, 0.1);
}

@keyframes rotateCogHalo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.triumph-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  pointer-events: none;
  animation: triumphShockwaveAnim 2s infinite ease-out;
  opacity: 0;
}

@keyframes triumphShockwaveAnim {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

.triumph-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text-gold);
  letter-spacing: 2.5px;
  text-shadow: 0 0 25px var(--gold-glow);
  margin-bottom: 6px;
}

.triumph-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.triumph-desc {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.triumph-platform-pill {
  display: inline-block;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid var(--gold);
  padding: 6px 20px;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

.triumph-btn {
  background: linear-gradient(135deg, #ffd166, #f59e0b);
  border: none;
  border-radius: 10px;
  padding: 14px 38px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #0b101c;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.6);
  transition: all 0.2s ease;
}

.triumph-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 209, 102, 0.95);
}

/* ==========================================================================
   DAY DEBRIEF MODAL (INQUISITION PENANCE VS OMNISSIAH TRIUMPH)
   ========================================================================== */
.day-debrief-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 4, 8, 0.96);
  z-index: 10025;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.day-debrief-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.day-debrief-card {
  max-width: 580px;
  width: 100%;
  border-radius: 18px;
  padding: 38px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.day-debrief-modal.active .day-debrief-card {
  transform: scale(1);
}

/* Penance style (Кара за 0 откликов) */
.day-debrief-card.penance {
  background: radial-gradient(circle at center, #2a0b11 0%, #0d0205 100%);
  border: 3px solid #ff2a4b;
  box-shadow: 0 0 70px rgba(255, 42, 75, 0.65), inset 0 0 35px rgba(255, 42, 75, 0.3);
}

.day-debrief-card.penance .debrief-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 42, 75, 0.15);
  border: 2px solid #ff2a4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  animation: pulsePenanceIcon 1.5s infinite alternate;
}

@keyframes pulsePenanceIcon {
  from { box-shadow: 0 0 15px rgba(255, 42, 75, 0.4); }
  to { box-shadow: 0 0 35px rgba(255, 42, 75, 0.8); }
}

/* Triumph style (Награда) */
.day-debrief-card.triumph {
  background: radial-gradient(circle at center, #132b21 0%, #06110c 100%);
  border: 3px solid var(--emerald);
  box-shadow: 0 0 70px rgba(6, 214, 160, 0.55), inset 0 0 35px rgba(6, 214, 160, 0.25);
}

.day-debrief-card.triumph .debrief-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(6, 214, 160, 0.15);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.debrief-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.day-debrief-card.penance .debrief-title {
  color: #ff2a4b;
  text-shadow: 0 0 20px rgba(255, 42, 75, 0.8);
}

.day-debrief-card.triumph .debrief-title {
  color: var(--emerald);
  text-shadow: 0 0 20px rgba(6, 214, 160, 0.8);
}

.debrief-xp-delta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}

.debrief-msg-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 24px;
  text-align: left;
}

.debrief-btn {
  width: 100%;
  padding: 15px 24px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #000;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.6);
  transition: all 0.2s ease;
}

.day-debrief-card.penance .debrief-btn {
  background: #ff2a4b;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 42, 75, 0.6);
}

.day-debrief-card.triumph .debrief-btn {
  background: var(--emerald);
  color: #000;
  box-shadow: 0 0 25px rgba(6, 214, 160, 0.6);
}

/* ==========================================================================
   LEAD CRM MODAL & BOUNTY BOARD V2
   ========================================================================== */
.lead-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.94);
  z-index: 10015;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.lead-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-modal-card {
  width: 100%;
  max-width: 640px;
  background: rgba(13, 19, 33, 0.98);
  border: 2px solid var(--cyan);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.35), inset 0 0 25px rgba(0, 240, 255, 0.08);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lead-modal.active .lead-modal-card {
  transform: scale(1);
}

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

.lead-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 1px;
}

.lead-form-group {
  margin-bottom: 16px;
}

.lead-form-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead-form-input,
.lead-form-select,
.lead-form-textarea {
  width: 100%;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form-input:focus,
.lead-form-select:focus,
.lead-form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

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

.lead-submit-btn {
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #05070a;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}

.lead-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

.lead-cancel-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

/* BOUNTY BOARD V2 LEAD CARDS */
.bounty-card-v2 {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  position: relative;
}

.bounty-card-v2:hover {
  border-color: var(--border-cyan);
  background: rgba(20, 30, 55, 0.9);
}

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

.bounty-v2-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bounty-v2-platform-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.bounty-client-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-gold);
}

.bounty-pipeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipeline-step-node {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-muted);
}

.pipeline-step-node.completed {
  color: var(--emerald);
}

.pipeline-step-node.current {
  color: var(--gold);
  font-weight: 700;
}

.pipeline-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.pipeline-step-node.completed .pipeline-step-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald-glow);
}

.pipeline-step-node.current .pipeline-step-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.bounty-v2-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.bounty-action-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bounty-action-btn.escrow {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.2), rgba(6, 214, 160, 0.4));
  border: 1px solid var(--emerald);
  color: #06d6a0;
}

.bounty-action-btn.escrow:hover {
  background: var(--emerald);
  color: #000;
  box-shadow: 0 0 12px var(--emerald-glow);
}

.bounty-action-btn.complete {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.4));
  border: 1px solid var(--gold);
  color: var(--gold);
}

.bounty-action-btn.complete:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 12px var(--gold-glow);
}

.bounty-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
  margin-left: auto;
}

.bounty-link-btn:hover {
  text-decoration: underline;
}

.bounty-action-btn.dossier {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.bounty-action-btn.dossier:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.bounty-comments-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: var(--text-gold);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bounty-comments-badge:hover {
  background: rgba(255, 209, 102, 0.25);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

/* ==========================================================================
   LEAD DOSSIER & CRM MODAL
   ========================================================================== */
.lead-dossier-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.94);
  z-index: 10018;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.lead-dossier-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-dossier-card {
  width: 100%;
  max-width: 1040px;
  background: rgba(11, 16, 28, 0.98);
  border: 2px solid var(--cyan);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.35), inset 0 0 25px rgba(0, 240, 255, 0.05);
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.lead-dossier-modal.active .lead-dossier-card {
  transform: scale(1);
}

.lead-dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 12px;
}

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

.dossier-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.dossier-x-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.dossier-x-btn:hover {
  color: #ff2a4b;
}

.lead-dossier-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .lead-dossier-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-sec-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-left-col {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 16px;
}

.dossier-right-col {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.dossier-url-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  padding: 0 14px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.dossier-url-btn:hover {
  background: var(--cyan);
  color: #000;
}

/* TIMELINE STREAM */
.dossier-timeline-stream {
  flex-grow: 1;
  max-height: 380px;
  min-height: 180px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  background: rgba(13, 19, 33, 0.85);
  border-left: 3px solid var(--cyan);
  border-radius: 4px 8px 8px 4px;
  padding: 10px 14px;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.timeline-item:hover {
  border-left-color: var(--gold);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.timeline-author {
  color: var(--text-gold);
  font-weight: 700;
}

.timeline-text {
  color: #e2e8f0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.dossier-add-comment-box {
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 12px;
}

.dossier-comment-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

.dossier-comment-textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.lead-dossier-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-dim);
  padding-top: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   COOLDOWN & ANTI-CHEAT HUD BAR & BUTTON STATES
   ========================================================================== */
.cooldown-hud-bar {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95), rgba(10, 16, 30, 0.98));
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-left: 5px solid var(--cyan);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.12), inset 0 0 16px rgba(0, 240, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: cooldownSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cooldown-hud-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cooldown-status-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.cooldown-radar-pulse {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
  position: relative;
  flex-shrink: 0;
  animation: radarPulse 1.5s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.cooldown-title {
  font-family: 'Orbitron', 'Share Tech Mono', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.cooldown-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cooldown-timer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.cooldown-timer-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffd166;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.5);
}

.cooldown-progress-track {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.cooldown-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd166, #00f0ff);
  border-radius: 3px;
  transition: width 1s linear;
}

/* Кнопки в состоянии блокировки кулдауна */
.step-btn.cooldown-locked {
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.8), rgba(15, 20, 30, 0.9)) !important;
  color: rgba(255, 209, 102, 0.8) !important;
  border: 1px solid rgba(255, 209, 102, 0.4) !important;
  cursor: not-allowed !important;
  position: relative;
  box-shadow: none !important;
  opacity: 0.9;
}

.step-btn.cooldown-locked:hover {
  border-color: #ffd166 !important;
  color: #ffd166 !important;
}

.step-btn.cooldown-locked::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 209, 102, 0.04),
    rgba(255, 209, 102, 0.04) 6px,
    transparent 6px,
    transparent 12px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* ==========================================================================
   ONBOARDING / TACTICAL GUIDE ANIME MODAL
   ========================================================================== */
.hud-btn.guide-btn {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.18), rgba(0, 240, 255, 0.18));
  border: 1px solid #ff2a6d;
  color: #ff90b3;
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.25);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-btn.guide-btn:hover {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.35), rgba(0, 240, 255, 0.35));
  color: #fff;
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 15px rgba(255, 42, 109, 0.4);
  transform: translateY(-1px);
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.onboarding-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onboarding-card {
  background: linear-gradient(135deg, rgba(10, 16, 30, 0.98), rgba(8, 12, 22, 0.99));
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.18), 0 0 40px rgba(255, 42, 109, 0.12), inset 0 0 20px rgba(0, 240, 255, 0.05);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-modal.active .onboarding-card {
  transform: scale(1) translateY(0);
}

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(14, 23, 42, 0.6);
}

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

.onboarding-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ff2a6d;
  background: rgba(255, 42, 109, 0.15);
  border: 1px solid #ff2a6d;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.onboarding-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.guide-x-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.guide-x-btn:hover {
  color: #ff2a6d;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.onboarding-waifu-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waifu-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 109, 0.4);
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.2), 0 0 15px rgba(0, 240, 255, 0.15);
}

.waifu-portrait-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.waifu-overlay-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06d6a0;
  box-shadow: 0 0 8px #06d6a0;
  animation: radarPulse 1.4s infinite;
  flex-shrink: 0;
}

.waifu-badge-text strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: #00f0ff;
  letter-spacing: 0.5px;
}

.waifu-badge-text span {
  font-size: 10px;
  color: var(--text-muted);
}

.waifu-quote-box {
  background: rgba(255, 42, 109, 0.08);
  border-left: 3px solid #ff2a6d;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #f1f5f9;
  font-style: italic;
  box-shadow: inset 0 0 12px rgba(255, 42, 109, 0.05);
}

.waifu-quote-box p {
  margin: 0;
}

.onboarding-content-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
}

.guide-scroll-container {
  overflow-y: auto;
  max-height: 440px;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.guide-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.guide-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2a6d, #00f0ff);
  border-radius: 3px;
}

.guide-step-card {
  background: rgba(14, 22, 38, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.guide-step-card:hover {
  border-color: var(--cyan);
  background: rgba(16, 28, 50, 0.85);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.12);
  transform: translateX(3px);
}

.guide-step-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 900;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-body h4 {
  font-family: 'Orbitron', 'Share Tech Mono', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffd166;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.guide-step-body p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.onboarding-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dim);
}

.guide-start-btn {
  background: linear-gradient(135deg, #00f0ff, #06d6a0);
  color: #020c18;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-start-btn:hover {
  background: linear-gradient(135deg, #ffd166, #ff2a6d);
  color: #fff;
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .onboarding-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
  }
  .waifu-portrait-img {
    height: 220px;
  }
  .guide-scroll-container {
    max-height: none;
  }
}



