/* ============================
   STREETS OF LA: INTERNAL AFFAIRS
   styles.css — AAA Cinematic UI
   happystoner5420 Games!
   ============================ */

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

:root {
  --color-bg: #0a0a0f;
  --color-dark: #12121a;
  --color-panel: rgba(8,8,16,0.92);
  --color-gold: #c9a227;
  --color-gold-light: #f0c040;
  --color-red: #c0392b;
  --color-red-bright: #e74c3c;
  --color-blue: #1a4a7a;
  --color-blue-light: #2980b9;
  --color-cyan: #00c8d4;
  --color-green: #27ae60;
  --color-text: #e8e0d0;
  --color-muted: #7a7060;
  --color-warning: #e67e22;
  --color-border: rgba(201,162,39,0.3);
  --font-display: 'Oswald', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  user-select: none;
}

#app { width: 100vw; height: 100vh; position: relative; }

/* ===========================
   SCREENS
   =========================== */
.screen {
  position: absolute;
  inset: 0;
  display: none;
}
.screen.active { display: flex; }

/* ===========================
   MAIN MENU
   =========================== */
#main-menu {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#menu-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.menu-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.title-block {
  text-align: center;
  position: relative;
}

.title-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--color-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  opacity: 0.8;
}

.game-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 6px;
  color: #ffffff;
  text-shadow:
    0 0 30px rgba(201,162,39,0.6),
    0 0 60px rgba(201,162,39,0.3),
    0 4px 8px rgba(0,0,0,0.9);
  text-transform: uppercase;
}

.game-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 12px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(201,162,39,0.8);
}

.title-tagline {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--color-muted);
  margin-top: 16px;
  text-transform: uppercase;
}

.rating-badge {
  position: absolute;
  top: -10px;
  right: -50px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--color-red-bright);
  color: var(--color-red-bright);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 320px;
}

.menu-btn {
  width: 100%;
  padding: 14px 40px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: rgba(20,20,30,0.8);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.menu-btn::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.15), transparent);
  transition: left 0.4s;
}

.menu-btn:hover::before { left: 100%; }

.menu-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(40,30,10,0.9);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--color-gold), 0 0 20px rgba(201,162,39,0.2);
}

.menu-btn.primary {
  background: rgba(180,120,0,0.25);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.menu-btn.danger {
  border-color: rgba(192,57,43,0.4);
  color: var(--color-text);
}

.menu-btn.danger:hover {
  border-color: var(--color-red-bright);
  color: var(--color-red-bright);
  background: rgba(30,10,10,0.9);
  box-shadow: -4px 0 0 var(--color-red-bright), 0 0 20px rgba(231,76,60,0.2);
}

.menu-footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* ===========================
   MODAL SCREENS
   =========================== */
.modal-screen {
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.modal-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  padding: 40px;
  max-width: 900px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,0.8), inset 0 0 30px rgba(201,162,39,0.03);
}

.modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.modal-panel h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 6px;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* HOW TO PLAY */
.htp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.htp-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,162,39,0.15);
  padding: 20px;
}

.htp-section h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.htp-section p, .htp-section ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  opacity: 0.85;
}

.htp-section ul { list-style: none; }
.htp-section li { padding: 2px 0; }
kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-cyan);
}

/* CREDITS */
.credits-panel { text-align: center; }
.credits-studio {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-gold);
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.credits-tagline {
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 32px;
}
.credits-divider {
  height: 1px;
  background: var(--color-border);
  margin: 24px 0;
}
.credits-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 16px;
}
.credits-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: 1px;
}
.credits-disclaimer {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 20px;
}
.credits-rating {
  margin-top: 12px;
  color: var(--color-red-bright);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* PAUSE PANEL */
.pause-panel {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pause-panel h2 { margin-bottom: 8px; }
.pause-panel .menu-btn { min-width: 280px; }
.pause-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 1px;
}

/* ===========================
   GAME SCREEN
   =========================== */
#game-screen { display: none; flex-direction: column; }
#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===========================
   HUD
   =========================== */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

#hud-rank-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

#hud-rank-badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-gold);
  text-transform: uppercase;
}

#hud-rank-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

#hud-xp-bar-wrap {
  width: 160px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

#hud-xp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

#hud-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#hud-call-ticker {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--color-border);
  padding: 6px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-cyan);
  letter-spacing: 1px;
  min-width: 300px;
  text-align: center;
  min-height: 28px;
}

#hud-stats-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-left: 2px solid var(--color-border);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-muted);
}

.hud-stat span:last-child {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

#hud-bottom {
  display: none !important; /* REMOVED - All actions in dialog */
}

#equipment-bar {
  display: none !important; /* REMOVED - All actions in dialog */
}

.equip-slot {
  display: none !important; /* REMOVED - All actions in dialog */
}

#hud-action-hints {
  display: none !important; /* REMOVED - All actions in dialog */
}
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
}

/* ===========================
   ENCOUNTER PANEL - FULL FEATURED
   =========================== */
#encounter-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 900px;
  max-width: 95vw;
  max-height: 90vh;
  background: rgba(10,10,20,0.98);
  border: 3px solid var(--color-gold);
  display: none; /* Hidden by default - NO !important so .active can override */
  flex-direction: row;
  gap: 0;
  z-index: 99999 !important;
  pointer-events: all !important;
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 100px rgba(201,162,39,0.3);
  overflow: hidden;
}

#encounter-panel.active {
  display: flex !important; /* Show when active */
}

#encounter-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  z-index: 1;
}

#encounter-npc-portrait {
  width: 280px;
  min-width: 280px;
  height: 100%;
  background: #0a0a14;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  border-right: 2px solid var(--color-gold);
}

#encounter-npc-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 2px solid rgba(201,162,39,0.3);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#encounter-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  max-height: 90vh;
}

#encounter-npc-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(201,162,39,0.5);
}

#encounter-npc-status {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
}

#encounter-dialogue {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  min-height: 100px;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  border-left: 4px solid var(--color-gold);
  font-style: italic;
  margin: 15px 0;
}

#encounter-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.action-btn {
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(20,20,30,0.8);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}

.action-btn:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.action-btn.force {
  border-color: rgba(192,57,43,0.3);
  color: #e88;
}

.action-btn.force:hover {
  background: rgba(192,57,43,0.15);
  border-color: var(--color-red-bright);
  color: var(--color-red-bright);
}

.action-btn.leave {
  border-color: rgba(100,100,100,0.3);
}

/* ===========================
   NOTEBOOK PANEL
   =========================== */
#notebook-panel {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 340px;
  background: rgba(5,5,10,0.95);
  border: 1px solid var(--color-border);
  z-index: 25;
  pointer-events: all;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(201,162,39,0.1);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-gold);
}

.panel-header button {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.panel-header button:hover { color: var(--color-red-bright); }

#notebook-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}

#notebook-evidence {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--color-cyan);
}

#notebook-log {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

/* ===========================
   NOTIFICATIONS
   =========================== */
#notification-area {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  pointer-events: none;
  min-width: 400px;
}

.notification {
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  animation: notif-in 0.3s ease, notif-out 0.4s ease 2.6s forwards;
  border: 1px solid;
}

.notification.info { background: rgba(26,74,122,0.9); border-color: var(--color-blue-light); color: #adf; }
.notification.warn { background: rgba(180,90,0,0.9); border-color: var(--color-warning); color: #fda; }
.notification.danger { background: rgba(100,10,10,0.9); border-color: var(--color-red-bright); color: #faa; }
.notification.good { background: rgba(10,60,20,0.9); border-color: var(--color-green); color: #afa; }

@keyframes notif-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notif-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* ===========================
   IA OVERLAY
   =========================== */
#ia-overlay {
  position: absolute;
  inset: 0;
  background: rgba(80,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#ia-panel {
  background: rgba(10,0,0,0.97);
  border: 2px solid var(--color-red-bright);
  padding: 40px;
  max-width: 600px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 0 60px rgba(231,76,60,0.4);
}

#ia-header {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--color-red-bright);
  margin-bottom: 24px;
}

#ia-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 2px; }

/* ===========================
   ID CARD MODAL
   =========================== */
#id-card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 40px 20px;
  overflow-y: auto;
}

#id-card-modal.active {
  display: flex !important;
}

.id-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  width: 100%;
}

.id-card-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-height: 420px;
  background: linear-gradient(145deg, #e8e8e8 0%, #f5f5f5 50%, #e0e0e0 100%);
  border-radius: 12px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  overflow: visible;
  animation: cardSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardSlideIn {
  from { 
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ID Card Header Bar */
.id-card-header {
  background: linear-gradient(180deg, #1a3a6e 0%, #0d2648 100%);
  padding: 18px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-bottom: 3px solid #c9a227;
}

.id-card-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #c9a227, #f0c040);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0d2648;
  font-weight: bold;
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border: 3px solid #0d2648;
}

.id-card-dept {
  flex: 1;
}

.id-card-dept-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 2px;
}

.id-card-dept-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: #c9a227;
  text-transform: uppercase;
}

/* ID Card Body */
.id-card-body {
  display: flex;
  padding: 30px 25px 25px 25px;
  gap: 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
  min-height: 280px;
}

/* Photo Section */
.id-card-photo-section {
  flex-shrink: 0;
}

.id-card-photo-frame {
  width: 180px;
  height: 220px;
  background: #ffffff;
  border: 4px solid #1a3a6e;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
}

.id-card-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.id-card-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.1) 0%,
    transparent 50%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}

/* Info Section */
.id-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.id-field {
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 6px;
}

.id-field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.id-field-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.id-field-value.name {
  font-size: 24px;
  color: #0d2648;
  text-transform: uppercase;
}

.id-field-value.id-number {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #c9a227;
  letter-spacing: 3px;
}

/* Status Badges in ID */
.id-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.id-status-badge {
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.id-status-badge.criminal {
  background: linear-gradient(145deg, #c93030, #a02020);
  color: #ffffff;
}

.id-status-badge.civilian {
  background: linear-gradient(145deg, #27ae60, #1e8449);
  color: #ffffff;
}

.id-status-badge.armed {
  background: linear-gradient(145deg, #8b0000, #5a0000);
  color: #ffffff;
}

.id-status-badge.felony {
  background: linear-gradient(145deg, #c9a227, #a08020);
  color: #000000;
}

/* ID Card Footer */
.id-card-footer {
  padding: 15px 25px;
  background: linear-gradient(180deg, #0d2648 0%, #1a3a6e 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #c9a227;
}

.id-card-issued {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #c9a227;
  text-transform: uppercase;
}

.id-card-barcode {
  height: 30px;
  display: flex;
  gap: 1px;
  align-items: flex-end;
}

.id-card-barcode-bar {
  width: 2px;
  background: #c9a227;
  opacity: 0.8;
}

/* Close Button */
.id-card-close-btn {
  padding: 15px 50px;
  background: linear-gradient(145deg, #c9a227, #f0c040);
  border: none;
  border-radius: 6px;
  color: #0d2648;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.id-card-close-btn:hover {
  background: linear-gradient(145deg, #f0c040, #c9a227);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.id-card-close-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Security Features */
.id-card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 120px;
  font-weight: bold;
  color: rgba(26,58,110,0.03);
  pointer-events: none;
  font-family: var(--font-display);
  letter-spacing: 10px;
  user-select: none;
}

.id-card-hologram {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201,162,39,0.1) 0%,
    rgba(201,162,39,0.05) 50%,
    transparent 100%
  );
  border: 2px dashed rgba(201,162,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(26,58,110,0.3);
  font-weight: bold;
  pointer-events: none;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.85; }
  96% { opacity: 1; }
  98% { opacity: 0.9; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.pulse-gold { animation: pulse-gold 2s infinite; }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 8px rgba(201,162,39,0.3); }
  50% { box-shadow: 0 0 24px rgba(201,162,39,0.7); }
}
