/* styles.css — Call Center Hacker — AAA CSS */
/* Windows 11 photo-real UI + dark hacker shell */

/* ── RESET & GLOBALS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:     #050508;
  --bg-dark:     #0a0a12;
  --bg-panel:    #0f0f1a;
  --bg-surface:  #151520;
  --border:      #1e1e30;
  --border-glow: #00ff8844;
  --neon-green:  #00ff88;
  --neon-red:    #ff0044;
  --neon-cyan:   #00ccff;
  --neon-orange: #ff8800;
  --neon-purple: #cc44ff;
  --gold:        #ffd700;
  --text-bright: #e8e8f0;
  --text-mid:    #9090a0;
  --text-dim:    #505060;
  --win11-bg:    rgba(32,32,32,0.85);
  --win11-border: rgba(255,255,255,0.12);
  --win11-glass:  rgba(255,255,255,0.08);
  --win11-title-h: 28px;
  --win11-taskbar-h: 36px;
  --panel-w: 680px;
  --panel-h: 480px;
  --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', 'Consolas', monospace;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-bright);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ── SCANLINE OVERLAY ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 9998;
}

/* ── MAIN MENU ───────────────────────────────────────────── */
#main-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,255,136,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(255,0,68,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #050508 0%, #0a0518 50%, #050508 100%);
  z-index: 100;
  gap: 0;
  overflow: hidden;
}

/* Animated background grid */
#main-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPan 20s linear infinite;
  pointer-events: none;
}

@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

.menu-logo-area {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.menu-pre-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-green);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.7;
}

.menu-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #00ff88 0%, #00ccff 40%, #ff0044 80%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,255,136,0.4));
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0,255,136,0.4)); }
  50%       { filter: drop-shadow(0 0 50px rgba(0,255,136,0.7)) drop-shadow(0 0 80px rgba(0,204,255,0.3)); }
}

.menu-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-red);
  letter-spacing: 3px;
  margin-top: 10px;
  opacity: 0.8;
  text-transform: uppercase;
}

.menu-tagline {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  font-style: italic;
}

/* Decorative scammer silhouettes in menu */
.menu-decor {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  opacity: 0.15;
  font-size: 24px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03));
  pointer-events: none;
}

.menu-btn:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(0,255,136,0.05);
  box-shadow: 0 0 20px rgba(0,255,136,0.15), inset 0 0 20px rgba(0,255,136,0.03);
  transform: translateX(3px);
}

.menu-btn.primary {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(0,255,136,0.08);
  font-size: 16px;
  padding: 18px 30px;
}

.menu-btn.primary:hover {
  background: rgba(0,255,136,0.15);
  box-shadow: 0 0 40px rgba(0,255,136,0.3);
}

.menu-btn.danger {
  border-color: var(--neon-red);
  color: var(--neon-red);
}

.menu-btn.danger:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255,0,68,0.08);
  box-shadow: 0 0 20px rgba(255,0,68,0.2);
}

.menu-footer {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ── OVERLAY SCREENS (HOW TO PLAY, CREDITS) ──────────────── */
#how-to-screen, #credits-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(5,5,8,0.97);
  z-index: 200;
  padding: 40px 40px 60px;
  overflow-y: auto;
}

.overlay-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.overlay-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 900;
  color: var(--neon-green);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0,255,136,0.5);
}

.how-to-section {
  margin-bottom: 20px;
}

.how-to-section h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-left: 2px solid var(--neon-cyan);
  padding-left: 8px;
}

.how-to-section p, .how-to-section li {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 4px;
}

.how-to-section ul { padding-left: 18px; }

.credits-name {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--neon-green);
  text-align: center;
  text-shadow: 0 0 30px rgba(0,255,136,0.6);
  letter-spacing: 2px;
  margin: 15px 0;
}

.credits-role {
  font-size: 13px;
  color: var(--text-mid);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.credits-section {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
}

.overlay-back-btn {
  margin-top: 25px;
  padding: 10px 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.overlay-back-btn:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* ── GAME SCREEN ─────────────────────────────────────────── */
#game-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-deep);
}

/* ── TOP HUD BAR ─────────────────────────────────────────── */
#game-hud {
  flex-shrink: 0;
  height: 44px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 20px;
  z-index: 50;
}

.hud-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--neon-green);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
  flex-shrink: 0;
}

.hud-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.hud-stat-label {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-stat-value {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

#total-scammed {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-mono);
  text-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.hud-spacer { flex: 1; }

.hud-back-btn {
  padding: 5px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.hud-back-btn:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
}

/* ── MAIN GAME LAYOUT ────────────────────────────────────── */
#game-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ── LEFT SIDEBAR (Virus Arsenal) ───────────────────────── */
#game-sidebar-left {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-green);
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

#virus-panel {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#virus-panel::-webkit-scrollbar { width: 4px; }
#virus-panel::-webkit-scrollbar-track { background: transparent; }
#virus-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.tool-section-header {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 4px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

/* Virus buttons */
.virus-btn {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--virus-color, #ff0044);
  color: var(--text-bright);
  text-align: left;
  padding: 7px 8px 3px;
  margin-bottom: 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.virus-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.05);
  border-color: var(--virus-color, #ff0044);
  box-shadow: 0 0 12px rgba(255,0,68,0.15), inset 0 0 12px rgba(255,0,68,0.03);
}

.virus-btn.selected {
  background: rgba(255,0,68,0.08);
  border-color: var(--virus-color, #ff0044);
  box-shadow: 0 0 15px rgba(255,0,68,0.2);
}

.virus-btn:disabled, .virus-btn.on-cooldown {
  opacity: 0.45;
  cursor: not-allowed;
}

.virus-btn-inner {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.virus-emoji {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.virus-info { flex: 1; min-width: 0; }

.virus-name {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.virus-desc {
  font-size: 8px;
  color: var(--text-dim);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.virus-cooldown-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  margin-top: 4px;
  overflow: hidden;
}

.virus-cooldown-fill {
  height: 100%;
  background: var(--virus-color, #ff0044);
  border-radius: 1px;
  transition: width 0.1s linear;
}

/* Tool buttons */
.tool-btn {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-mid);
  text-align: left;
  padding: 6px 8px;
  margin-bottom: 3px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.tool-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0,204,255,0.05);
}

.tool-emoji { font-size: 14px; }
.tool-name { font-family: var(--font-mono); font-size: 10px; }

/* ── SCAMMER GRID ────────────────────────────────────────── */
#game-center {
  flex: 1;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,255,136,0.03) 0%, transparent 60%),
    var(--bg-deep);
}

#scammer-grid {
  position: absolute;
  inset: 0;
}

/* ── SCAMMER PANEL ───────────────────────────────────────── */
.scammer-panel {
  position: absolute;
  width: var(--panel-w);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

/* ── PANEL DRAG BAR ──────────────────────────────────────── */
.panel-drag-bar {
  height: 22px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.panel-drag-bar:active { cursor: grabbing; }

.panel-drag-bar-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.panel-drag-bar-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.5;
  display: block;
}

.panel-drag-bar-title {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
}

.scammer-panel.focused .panel-drag-bar {
  background: rgba(0,255,136,0.06);
  border-color: rgba(0,255,136,0.2);
}

.scammer-panel.focused .panel-drag-bar-dots span { background: var(--neon-green); opacity: 0.7; }

.scammer-panel:hover {
  border-color: rgba(0,255,136,0.3);
  box-shadow: 0 0 20px rgba(0,255,136,0.05);
}

.scammer-panel.focused {
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0,255,136,0.15);
}

.scammer-panel[data-state="ALARMED"] { border-color: rgba(255,102,0,0.5); }
.scammer-panel[data-state="PANICKING"] { border-color: rgba(255,0,68,0.7); animation: panicFlash 0.5s infinite; }
.scammer-panel[data-state="CRASHED"] { border-color: rgba(136,136,136,0.5); }
.scammer-panel[data-state="SHUTDOWN"] { border-color: #333; opacity: 0.6; }

@keyframes panicFlash {
  0%, 100% { box-shadow: 0 0 10px rgba(255,0,68,0.3); }
  50%       { box-shadow: 0 0 30px rgba(255,0,68,0.6); }
}

/* ── WINDOWS 11 DESKTOP ──────────────────────────────────── */
.scammer-screen {
  position: relative;
  width: 100%;
  height: var(--panel-h);
  overflow: hidden;
  background: #1e1e2e;
  font-family: var(--font-ui);
}

/* ── WIN11 DESKTOP ICONS ─────────────────────────────────── */
.win11-desktop-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desktop-icon {
  position: absolute;
  text-align: center;
  width: 55px;
  cursor: pointer;
  pointer-events: auto;
}

.icon-glyph { font-size: 20px; line-height: 1; }

.icon-label {
  font-size: 8px;
  color: #fff;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  word-break: break-word;
  line-height: 1.2;
}

/* ── WIN11 TASKBAR ───────────────────────────────────────── */
.win11-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--win11-taskbar-h);
  background: rgba(20,20,30,0.92);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 0;
  z-index: 20;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.taskbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.taskbar-start {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.taskbar-start:hover { background: rgba(255,255,255,0.12); }
.taskbar-start:active { background: rgba(255,255,255,0.2); transform: scale(0.93); }

/* ── WIN11 POWER MENU ─────────────────────────────────────── */
.win11-power-menu {
  background: rgba(24, 24, 32, 0.97);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 6px;
  min-width: 168px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  animation: powerMenuIn 0.12s ease;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
@keyframes powerMenuIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.power-menu-header {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}
.power-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-family: inherit;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.power-menu-item:hover:not(.disabled) { background: rgba(255,255,255,0.1); }
.power-menu-item:active:not(.disabled) { background: rgba(255,255,255,0.18); }
.power-menu-item--danger { color: #ff6b6b; }
.power-menu-item--danger:hover:not(.disabled) { background: rgba(220,38,38,0.18); }
.power-menu-item.disabled { opacity: 0.38; cursor: not-allowed; }
.power-menu-icon { font-size: 14px; min-width: 20px; text-align: center; }
.power-menu-sub {
  font-size: 8.5px;
  color: rgba(255,255,255,0.32);
  margin-left: auto;
  white-space: nowrap;
}
.power-menu-item--danger .power-menu-sub { color: rgba(255,107,107,0.5); }

.taskbar-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.taskbar-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.taskbar-app {
  width: 36px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 4px;
  position: relative;
  transition: background 0.15s;
}

.taskbar-app:hover { background: rgba(255,255,255,0.08); }

.taskbar-app.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: 1.5px;
  background: var(--neon-cyan);
}

.taskbar-icons {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.taskbar-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  cursor: pointer;
}

.clock-time {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1;
}

.clock-date {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}

.taskbar-action-center {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}

.taskbar-action-center:hover { background: rgba(255,255,255,0.1); }

/* ── WIN11 WINDOWS ───────────────────────────────────────── */
.win11-windows-container {
  position: absolute;
  inset: 0;
  bottom: var(--win11-taskbar-h);
  pointer-events: auto;
  z-index: 10;
}

.win11-window {
  position: absolute;
  background: rgba(28,28,38,0.95);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 0 0 0.5px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

/* ── Window open animation ──────────────────────────────── */
.win11-window.win-opening {
  animation: winOpen 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes winOpen {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Closing flash — applied briefly before removal */
.win11-window.win-closing {
  animation: winClose 0.18s ease-in both;
  pointer-events: none;
}

@keyframes winClose {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.88) translateY(-6px); }
}

/* Clickable close button — glow red on hover to make it obvious */
.clickable-close {
  cursor: pointer !important;
  transition: background 0.1s, color 0.1s, box-shadow 0.1s !important;
}

.clickable-close:hover {
  background: #c42b1c !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(196,43,28,0.6) !important;
}

/* Subtle pulsing outline on close buttons to hint they're clickable */
.win11-titlebar:hover .clickable-close {
  box-shadow: 0 0 0 1px rgba(255,80,80,0.5);
}

.win11-titlebar {
  height: var(--win11-title-h);
  background: rgba(40,40,55,0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  user-select: none;
  cursor: grab;
}

.win11-titlebar:active { cursor: grabbing; }
.win11-titlebar .win11-titlebar-controls { cursor: default; }

.victim-titlebar { background: rgba(20,0,0,0.95); }

.win11-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.win11-title-icon { font-size: 12px; flex-shrink: 0; }

.win11-title-text {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win11-titlebar-controls {
  display: flex;
  flex-shrink: 0;
}

.win-btn {
  width: 36px;
  height: var(--win11-title-h);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}

.win-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.win-close:hover { background: #c42b1c !important; color: #fff !important; }

.win11-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 9px;
}

/* ── BROWSER CHROME ──────────────────────────────────────── */
.browser-chrome {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #202025;
}

.browser-tabs {
  display: flex;
  align-items: flex-end;
  height: 26px;
  padding: 0 4px;
  background: #1a1a1f;
  gap: 1px;
  flex-shrink: 0;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  min-width: 80px;
  max-width: 140px;
  height: 22px;
  font-size: 8px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  flex-shrink: 0;
}

.browser-tab.active {
  background: #202025;
  color: rgba(255,255,255,0.85);
}

.browser-tab.inactive {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
}

.browser-favicon { font-size: 10px; flex-shrink: 0; }
.browser-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.browser-tab-close { flex-shrink: 0; opacity: 0.5; font-size: 8px; }
.browser-new-tab { background: transparent; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 2px 6px; font-size: 12px; }

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #2a2a30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.browser-nav-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.browser-nav-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.browser-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2px 8px;
  height: 18px;
  font-size: 8px;
}

.browser-lock { font-size: 8px; }
.browser-url { color: rgba(255,255,255,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-family: monospace; }

.browser-body { flex: 1; overflow: auto; background: #f5f5f5; }
.browser-page-content { min-height: 100%; }

/* ── NOTEPAD ─────────────────────────────────────────────── */
.notepad-chrome { display: flex; flex-direction: column; height: 100%; background: #1c1c1c; }

.notepad-menubar {
  display: flex;
  gap: 0;
  padding: 2px 5px;
  background: #2a2a2a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.notepad-menu-item {
  padding: 2px 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  border-radius: 2px;
}

.notepad-menu-item:hover { background: rgba(255,255,255,0.08); }

.notepad-content {
  flex: 1;
  padding: 8px;
  font-family: 'Courier New', monospace;
  font-size: 8.5px;
  color: #d0d0d0;
  line-height: 1.5;
  overflow: auto;
  background: #1c1c1c;
  white-space: pre-wrap;
}

/* ── EXCEL-LIKE ──────────────────────────────────────────── */
.excel-chrome { display: flex; flex-direction: column; height: 100%; background: #1a2a1a; }

.excel-toolbar {
  padding: 3px 6px;
  background: #1d3a1d;
  border-bottom: 1px solid rgba(0,255,0,0.1);
  flex-shrink: 0;
  font-size: 8px;
  color: rgba(255,255,255,0.5);
}

.excel-grid { flex: 1; overflow: auto; background: #fff; }

.excel-table {
  border-collapse: collapse;
  font-size: 8px;
  width: 100%;
  color: #000;
}

.excel-table td {
  border: 1px solid #ccc;
  padding: 2px 5px;
  min-width: 50px;
  white-space: nowrap;
}

.excel-table .excel-header-row td { background: #e0e0e0; font-weight: bold; text-align: center; }

/* ── VICTIM WINDOW ───────────────────────────────────────── */
.victim-window { border: 1px solid rgba(255,0,68,0.3); }
.victim-window .win11-title-text { color: rgba(255,150,150,0.8); font-size: 9px; }

.victim-screen { position: relative; flex: 1; }
.victim-cursor { position: absolute; font-size: 10px; pointer-events: none; transition: left 0.8s ease, top 0.8s ease; }

/* ── CURSOR ──────────────────────────────────────────────── */
.win11-cursor {
  position: absolute;
  font-size: 14px;
  pointer-events: none;
  z-index: 100;
  transition: left 0.3s ease, top 0.3s ease;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* ── SPEECH BUBBLE ───────────────────────────────────────── */
.speech-bubble {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0,0,0,0.88);
  border: 1px solid var(--neon-orange);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon-orange);
  z-index: 90;
  line-height: 1.4;
  word-break: break-word;
  max-height: 55px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255,136,0,0.2);
  animation: bubbleFade 0.2s ease;
}

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

/* ── PANEL HEADER ────────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 42px;
}

.panel-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Real photo avatar in panel header */
.panel-photo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-avatar-fallback {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Legacy emoji fallback */
.panel-avatar { font-size: 20px; }

/* ── FACE-CAM PIP (bottom-left of scammer screen) ────────── */
.scammer-facecam {
  position: absolute;
  bottom: calc(var(--win11-taskbar-h) + 6px);
  left: 8px;
  z-index: 30;
  border: 2px solid #00cc44;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
  transition: border-color 0.4s;
}

.facecam-inner {
  position: relative;
  width: 80px;
  height: 70px;
}

.facecam-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facecam-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg-surface);
}

.facecam-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 7px;
  text-align: center;
  padding: 1px 3px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facecam-rec {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 6px;
  color: #f00;
  font-family: var(--font-mono);
  font-weight: bold;
  animation: recBlink 1s step-end infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes facecamPanic {
  0%, 100% { box-shadow: 0 0 0 2px #ff0000; transform: scale(1); }
  50%       { box-shadow: 0 0 12px 3px #ff0000; transform: scale(1.04); }
}

@keyframes facecamAlarm {
  0%, 100% { box-shadow: 0 0 0 2px #ff6600; }
  50%       { box-shadow: 0 0 10px 2px #ff6600; }
}

.panel-scammer-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-bright);
  font-family: var(--font-mono);
}

.panel-role {
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.panel-status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ── STATS BAR ───────────────────────────────────────────── */
.panel-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 10px;
  background: var(--bg-panel);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  font-family: var(--font-mono);
}

.stat-icon { font-size: 11px; }

.stat-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-bright);
}

[data-stat-money] { color: var(--gold); }

.suspicion-item { flex: 1.5; }

.suspicion-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.suspicion-bar-fill {
  height: 100%;
  background: var(--neon-green);
  border-radius: 2px;
  transition: width 0.5s ease, background 0.5s ease;
}

/* ── RIGHT SIDEBAR (Terminal) ────────────────────────────── */
#game-sidebar-right {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.terminal-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  color: var(--neon-green);
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  background: rgba(0,255,136,0.03);
}

#terminal-log {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  font-size: 9px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#terminal-log::-webkit-scrollbar { width: 3px; }
#terminal-log::-webkit-scrollbar-thumb { background: var(--border); }

.log-entry {
  padding: 1px 0;
  word-break: break-word;
}

.log-time { color: var(--text-dim); }
.log-msg { margin-left: 4px; }

.log-info .log-msg   { color: var(--text-mid); }
.log-system .log-msg { color: var(--neon-cyan); }
.log-player .log-msg { color: var(--neon-green); }
.log-scammer .log-msg{ color: var(--neon-orange); }
.log-attack .log-msg { color: var(--neon-red); font-weight: 700; }
.log-success .log-msg{ color: #00ff44; }
.log-error .log-msg  { color: #ff4444; }

.terminal-bottom {
  flex-shrink: 0;
  padding: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-target-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.target-label {
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#target-select {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 4px 6px;
  border-radius: 3px;
  outline: none;
}

#target-select:focus { border-color: var(--neon-green); }

.terminal-input-row {
  display: flex;
  gap: 5px;
}

#terminal-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  outline: none;
  caret-color: var(--neon-green);
}

#terminal-input:focus { border-color: var(--neon-green); box-shadow: 0 0 8px rgba(0,255,136,0.15); }
#terminal-input::placeholder { color: var(--text-dim); }

#terminal-send {
  padding: 6px 10px;
  background: rgba(0,255,136,0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}

#terminal-send:hover {
  background: rgba(0,255,136,0.2);
  box-shadow: 0 0 10px rgba(0,255,136,0.2);
}

/* ── WINDOWS 11 NOTIFICATION TOAST ──────────────────────── */
.win11-toast {
  position: absolute;
  bottom: calc(var(--win11-taskbar-h) + 5px);
  right: 5px;
  width: 250px;
  background: rgba(32,32,42,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  z-index: 500;
  overflow: hidden;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
}

.toast-icon { font-size: 12px; }
.toast-title { flex: 1; font-size: 9px; color: rgba(255,255,255,0.75); font-weight: 600; }
.toast-close { cursor: pointer; color: rgba(255,255,255,0.4); font-size: 9px; }
.toast-close:hover { color: #fff; }

.toast-body { padding: 6px 10px; font-size: 8.5px; color: rgba(255,255,255,0.65); line-height: 1.4; }

.toast-warning .toast-header { background: rgba(255,136,0,0.1); }
.toast-error .toast-header { background: rgba(255,0,0,0.1); }
.toast-info .toast-header { background: rgba(0,150,255,0.08); }

/* ── VIRUS OVERLAY (shown inside scammer screen) ─────────── */
.virus-overlay {
  animation: virusIn 0.15s ease;
}

@keyframes virusIn {
  from { opacity: 0; filter: blur(5px); }
  to   { opacity: 1; filter: blur(0); }
}

/* Keylogger scramble effect */
.keylogger-scrambled {
  animation: scrambleText 0.1s infinite;
  color: rgba(255,0,255,0.8) !important;
}

@keyframes scrambleText {
  0%   { letter-spacing: 0; }
  33%  { letter-spacing: 3px; }
  66%  { letter-spacing: -1px; }
  100% { letter-spacing: 0; }
}

/* ── CRASH OVERLAY ───────────────────────────────────────── */
.crash-overlay {
  animation: bsodIn 0.3s ease;
}

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

/* Generic content area */
.generic-content {
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #ccc;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Fake site styles */
.fake-site { height: 100%; }
.fake-chat { height: 100%; }
.fake-site.irs-site, .fake-site.msft-site { height: 100%; }

/* ── POPUP SPAM ──────────────────────────────────────────── */
.popup-spam { animation: popIn 0.2s ease; }

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── VOLUME BLAST ────────────────────────────────────────── */
.volume-blast-overlay {
  flex-direction: column;
  gap: 10px;
}

@keyframes volumePulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* ── WIN11 INSTALL ANIMATION ─────────────────────────────── */
@keyframes win11StageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Indeterminate progress bar shimmer on the setup loading screen */
@keyframes win11Progress {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Disk format fill bar — grows left to right over 4s */
@keyframes win11FillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Spinner used on reboot and desktop-loading stages */
@keyframes win11Spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Five-dot pulsing loader (OOBE / boot screens) */
@keyframes win11DotPulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40%            { transform: scale(1.0); opacity: 1;   }
}

/* HDD destruction header flicker */
@keyframes win11FryFlicker {
  0%, 100% { opacity: 1; }
  45%       { opacity: 0.6; }
  50%       { opacity: 1; }
  80%       { opacity: 0.4; }
}

/* ── SCROLLBARS (game-wide) ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333345; }

/* ── UTILITY ─────────────────────────────────────────────── */
.visually-hidden { display: none !important; }
