/* ============================================================
   COMPONENTS — Cards, Tags, Timeline, Radar, Terminal
   T.M CORP — Cyberpunk CV
   ============================================================ */

/* --- Overview Grid --- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* --- Identity Card --- */
.identity-card {
  grid-column: 1 / 3;
  display: flex; gap: 30px; align-items: center;
}

/* Avatar Hologram */
.avatar-holo {
  width: 140px; height: 140px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.08), transparent);
  overflow: hidden;
}
.avatar-holo::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.15);
  animation: holoSpin 6s linear infinite;
}
@keyframes holoSpin {
  0%   { transform: rotate(0deg);   border-color: rgba(0, 245, 255, 0.2); }
  50%  { border-color: rgba(255, 0, 255, 0.2); }
  100% { transform: rotate(360deg); border-color: rgba(0, 245, 255, 0.2); }
}
.avatar-holo .initials {
  font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}
.avatar-holo img.avatar-photo {
  width: 100%;
  object-fit: contain;
  filter: grayscale(0.3) contrast(1.1) brightness(0.5);
  margin-top: 60px;
  mix-blend-mode: screen;
  position: relative; z-index: 1;
}
.avatar-holo .avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12), rgba(255, 0, 255, 0.06), transparent);
  mix-blend-mode: screen;
  z-index: 2; pointer-events: none;
}
.avatar-holo .avatar-scanline {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  z-index: 3; pointer-events: none;
}
.avatar-holo .avatar-scanline::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 245, 255, 0.04) 3px);
}
.avatar-scan {
  position: absolute; width: 100%; height: 5px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
  animation: scanDown 3s ease-in-out infinite;
}
@keyframes scanDown { 0%, 100% { top: 10%; } 50% { top: 85%; } }

/* Identity Info */
.identity-info h1 {
  font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 40px rgba(0, 245, 255, 0.2);
  background: none;
  margin-bottom: 4px;
}
.identity-info .tagline {
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
  color: rgba(200, 230, 255, 0.6); letter-spacing: 3px;
  margin-bottom: 12px; min-height: 1.4em;
}
.tagline-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink-cursor 0.6s step-end infinite;
}
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.identity-info .bio {
  font-size: 15px; line-height: 1.7;
  color: rgba(200, 230, 255, 0.75);
  max-width: 650px;
}

/* --- Status Widget --- */
.status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.status-item {
  padding: 12px;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-radius: 3px;
}
.status-item .label {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  color: rgba(200, 230, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}
.status-item .value {
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--cyan);
}
.status-item .value.magenta { color: var(--magenta); }
.status-item .value.green   { color: var(--neon-green); }
.status-item .value.amber   { color: var(--amber); }

/* --- Skill Tags --- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  padding: 7px 16px 7px 28px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: rgba(200, 230, 255, 0.55);
  background: transparent;
}
.skill-tag::before {
  content: "";
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tag-color, var(--cyan));
  opacity: 0.4;
  transition: all 0.3s ease;
}
.skill-tag:hover,
.skill-tag.active {
  color: #fff;
  border-color: var(--tag-color, var(--cyan));
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.08);
}
.skill-tag:hover::before,
.skill-tag.active::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--tag-color, var(--cyan));
}

/* Skills Columns */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* --- Experience Timeline --- */
.exp-timeline { position: relative; padding-left: 30px; }
.exp-item { margin-bottom: 30px; position: relative; }
.exp-item::before {
  content: ""; position: absolute; left: -29px; top: -2px;
  width: 12px; height: 12px;
  border: 2px solid var(--cyan);
  background: var(--bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.exp-item::after {
  content: ""; position: absolute; left: -22px; top: 14px;
  width: 1px; height: calc(100% + 16px);
  background: var(--cyan);
  opacity: 0.4;
}
/* Timeline color alternation */
.exp-item:nth-child(2)::before { border-color: var(--magenta); }
.exp-item:nth-child(2)::after  { background: var(--magenta); }
.exp-item:nth-child(3)::before { border-color: var(--neon-green); }
.exp-item:nth-child(3)::after  { background: var(--neon-green); }
.exp-item:nth-child(4)::before { border-color: var(--amber); }
.exp-item:nth-child(4)::after  { background: var(--amber); }
.exp-item:nth-child(5)::before { border-color: #61dafb; }
.exp-item:nth-child(5)::after  { background: #61dafb; }
.exp-item:nth-child(6)::before { border-color: #aa44ff; }
.exp-item:nth-child(6)::after  { background: #aa44ff; }
.exp-item:nth-child(7)::before { border-color: #ff8844; }
.exp-item:nth-child(7)::after  { background: #ff8844; }

.exp-item .exp-date {
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: var(--cyan); letter-spacing: 2px;
  margin-bottom: 2px;
}
.exp-item h3 {
  font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 1px;
  margin-bottom: 6px;
}
.exp-item p {
  font-size: 14px; color: rgba(200, 230, 255, 0.6); line-height: 1.6;
}
.exp-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.exp-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  color: rgba(200, 230, 255, 0.5);
  background: rgba(0, 245, 255, 0.03);
}

/* --- Education --- */
.edu-card {
  padding: 16px; margin-bottom: 12px;
  background: rgba(0, 245, 255, 0.02);
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-left: 3px solid var(--cyan);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.edu-card:hover {
  background: rgba(0, 245, 255, 0.05);
  transform: translateX(4px);
}
.edu-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 13px; letter-spacing: 1px;
  margin-bottom: 4px;
}
.edu-card p { font-size: 13px; color: rgba(200, 230, 255, 0.5); }

/* --- Projects --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: rgba(0, 245, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.08);
}
.project-card .project-status {
  position: absolute; bottom: 10px; right: 8px;
  font-family: 'Share Tech Mono', monospace; font-size: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--panel);
}
.project-card .project-status.live    { color: var(--neon-green); border: 1px solid var(--neon-green); }
.project-card .project-status.wip     { color: var(--amber);      border: 1px solid var(--amber); }
.project-card .project-status.concept { color: var(--magenta);     border: 1px solid var(--magenta); }
.project-card .project-status.old     { color: #888;              border: 1px solid #888; }
.project-card h3 {
  font-family: 'Orbitron', sans-serif; font-size: 14px;
  letter-spacing: 1px; margin-bottom: 8px; color: #fff;
}
.project-card p {
  font-size: 13px; color: rgba(200, 230, 255, 0.5);
  line-height: 1.5; margin-bottom: 12px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  color: rgba(200, 230, 255, 0.5);
}

/* --- Neural Map --- */
.neural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.neural-node {
  padding: 20px; text-align: center;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.02);
  transition: all 0.4s ease;
  cursor: default;
}
.neural-node:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}
.neural-node .node-icon {
  font-size: 28px; margin-bottom: 8px;
  filter: grayscale(0.3);
}
.neural-node .node-label {
  font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 2px;
  color: rgba(200, 230, 255, 0.7);
  text-transform: uppercase;
}

/* --- Contact --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.contact-item {
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.contact-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.contact-item:hover::before { transform: translateX(100%); }
.contact-item:hover {
  background: rgba(0, 245, 255, 0.05);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.08);
}
.contact-item:hover .contact-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
  color: var(--cyan);
}
.contact-item:hover .contact-value {
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}
.contact-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: all 0.3s ease;
}
.contact-label {
  font-family: 'Share Tech Mono', monospace; font-size: 10px;
  color: rgba(200, 230, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1px;
}
.contact-value {
  font-size: 13px; color: var(--cyan); margin-top: 2px;
}

/* --- Word Cloud --- */
.cloud-container {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  padding: 10px;
}
.cloud-tag {
  font-family: 'Share Tech Mono', monospace;
  padding: 6px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative; overflow: hidden;
}
.cloud-tag::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.cloud-tag:hover::before { transform: translateX(100%); }
.cloud-tag:hover {
  border-color: var(--cyan); color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* --- Data Stream Borders --- */
.data-stream {
  position: absolute; bottom: -20px; left: 0; right: 0;
  height: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(0, 245, 255, 0.12);
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

/* --- Floating Terminal --- */
#terminal {
  position: fixed; bottom: 35px; right: 3px; z-index: 200;
  width: 460px; min-width: 280px; min-height: 200px;
  display: flex; flex-direction: column;
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
  color: var(--cyan);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  overflow: hidden;
}
#terminal.hidden { display: none; }

/* Terminal resize handles */
.term-resize          { position: absolute; z-index: 10; }
.term-resize-left     { left: -3px; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.term-resize-top      { top: -3px; left: 0; right: 0; height: 6px; cursor: ns-resize; }
.term-resize-topleft  { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.term-resize-topright { top: -3px; right: -3px; width: 12px; height: 12px; cursor: nesw-resize; }

/* Terminal header */
.term-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: space-between;
  cursor: grab; user-select: none;
}
.term-header:active { cursor: grabbing; }
.term-close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(200, 230, 255, 0.4);
  font-size: 18px;
  transition: color 0.2s;
}
.term-close:hover { color: var(--red); }
.term-btns { display: flex; align-items: center; gap: 2px; }
.term-expand {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(200, 230, 255, 0.4);
  font-size: 14px;
  line-height: 1;
  transition: color .2s;
}
.term-expand:hover { color: var(--cyan); }
.term-header .dots { display: flex; gap: 6px; }
.term-header .dot  { width: 10px; height: 10px; border-radius: 50%; }
.term-header .dot.r { background: #ff5f57; }
.term-header .dot.y { background: #ffbd2e; }
.term-header .dot.g { background: #28c840; }
.term-logo {
  font-size: 10px; color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan); letter-spacing: 1px;
}
.term-title { font-size: 12px; letter-spacing: 2px; opacity: 0.6; }

/* Terminal output */
#termOutput {
  flex: 1; min-height: 0;
  height: 220px; overflow-y: auto; overflow-x: hidden;
  padding: 12px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--cyan) transparent;
}
#termOutput::-webkit-scrollbar       { width: 4px; }
#termOutput::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

#termOutput .line         { margin-bottom: 4px; font-size: 14px; white-space: pre-wrap; word-break: break-all; }
#termOutput .line.system  { color: var(--amber); }
#termOutput .line.success { color: var(--neon-green); }
#termOutput .line.error   { color: var(--red); }
#termOutput .line.info    { color: var(--magenta); }
#termOutput .line.cmd     { color: var(--neon-green); }

/* Terminal input */
.term-input-wrap {
  padding: 10px 16px;
  border-top: 1px solid var(--panel-border);
  display: flex; align-items: center; gap: 10px;
}
.term-input-wrap .prompt { color: var(--neon-green); flex-shrink: 0; font-size: 14px; }
#termInput {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--neon-green);
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
}

/* --- Alfred Concierge --- */
.alfred-hat-btn {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(0, 245, 255, 0.35);
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s, filter 0.3s;
}
.alfred-hat-btn:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}
.alfred-hat-btn.active {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  animation: alfredPulse 2s ease-in-out infinite;
}
@keyframes alfredPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.5) drop-shadow(0 0 6px var(--cyan)); }
}

.alfred-popup {
  position: absolute;
  bottom: 44px; right: 12px;
  padding: 5px 12px;
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(200, 230, 255, 0.7);
  display: flex; align-items: center; gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.alfred-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
.alfred-popup.hidden {
  opacity: 0;
  transform: translateY(4px);
}
.alfred-popup-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200, 230, 255, 0.3);
}
.alfred-popup-dot.green { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.alfred-popup-dot.red   { background: var(--red); box-shadow: 0 0 6px var(--red); }


/* Alfred message lines */
#termOutput .line.alfred {
  color: #ffffff;
}
#termOutput .line.alfred .alfred-prefix {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
}
#termOutput .line.alfred.banner {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.4);
  line-height: 1.2;
}
#termOutput .line.alfred.thinking {
  color: rgba(255, 255, 255, 0.35);
  animation: alfredThink 1s ease-in-out infinite;
}
@keyframes alfredThink {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.7; }
}

/* ============================================================
   FIXER CALL OVERLAY — Incoming Call
   ============================================================ */
#fixerCall {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(2, 5, 12, 0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 80px;
  animation: fixerCallFadeIn 0.4s ease;
}
#fixerCall.hidden { display: none; }
@keyframes fixerCallFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fixer-call-inner {
  display: flex; flex-direction: column; gap: 16px;
  animation: fixerCallSlideIn 0.5s ease;
}
@keyframes fixerCallSlideIn {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.fixer-call-signal {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fixerCallPulse 1.2s ease-in-out infinite;
}
@keyframes fixerCallPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.fixer-call-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 51, 68, 0.08);
  border: 1px solid var(--red);
  border-left: 3px solid var(--red);
}
.fixer-call-avatar {
  width: 56px; height: 56px;
  border: 1px solid rgba(255, 51, 68, 0.4);
  background: rgba(255, 51, 68, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 28px;
  color: var(--red);
  text-shadow: 0 0 12px var(--red);
  position: relative;
  overflow: hidden;
}
.fixer-call-avatar::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(255,51,68,0.08) 2px, rgba(255,51,68,0.08) 4px);
  pointer-events: none;
}
.fixer-call-info {
  display: flex; flex-direction: column; gap: 4px;
}
.fixer-call-phone {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  color: rgba(200, 230, 255, 0.4);
}
.fixer-call-name {
  font-family: 'Orbitron', monospace;
  font-size: 16px; font-weight: 600;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
  letter-spacing: 2px;
}
.fixer-call-answer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: rgba(255, 51, 68, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'Orbitron', monospace;
  font-size: 12px; letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  width: fit-content;
}
.fixer-call-answer:hover {
  background: rgba(255, 51, 68, 0.3);
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.3);
}
.fixer-call-answer-icon { font-size: 16px; }
.fixer-call-dismiss {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: rgba(200, 230, 255, 0.3);
  cursor: pointer;
  transition: color 0.2s;
  width: fit-content;
}
.fixer-call-dismiss:hover { color: var(--red); }

/* ============================================================
   FIXER CHAT OVERLAY
   ============================================================ */
/* ── Chat container ─────────────────────────────────── */
#fixerChat {
  position: fixed;
  left: 60px; top: 50%; transform: translateY(-50%);
  z-index: 10001;
  width: 520px; max-height: 80vh;
  display: flex; flex-direction: column;
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  animation: fixerChatIn 0.3s ease;
}
#fixerChat.hidden { display: none; }
@keyframes fixerChatIn {
  from { transform: translateY(-50%) translateX(-20px); opacity: 0; }
  to { transform: translateY(-50%) translateX(0); opacity: 1; }
}

/* ── Top section: avatar + header ──────────────────── */
.fixer-chat-top {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--red);
}

/* ── Avatar card (ref.jpg style) ───────────────────── */
.fixer-avatar-card {
  flex-shrink: 0;
  width: 110px;
  display: flex; flex-direction: column;
  background: rgba(255, 51, 68, 0.05);
  border-right: 1px solid var(--panel-border);
}
.fixer-avatar-frame {
  position: relative;
  width: 100%; height: 100px;
  background: linear-gradient(180deg, rgba(255,51,68,0.12) 0%, rgba(255,51,68,0.04) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fixer-avatar-glyph {
  font-family: 'Share Tech Mono', monospace;
  font-size: 42px;
  color: rgba(255, 51, 68, 0.7);
  text-shadow: 0 0 20px rgba(255, 51, 68, 0.5), 0 0 40px rgba(255, 51, 68, 0.2);
  animation: fixerGlyphPulse 3s ease-in-out infinite;
  z-index: 1;
}
@keyframes fixerGlyphPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.fixer-avatar-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(255, 51, 68, 0.06) 2px, rgba(255, 51, 68, 0.06) 4px
  );
  pointer-events: none; z-index: 2;
}
.fixer-avatar-noise {
  position: absolute; inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 3;
  animation: fixerAvatarNoise 0.2s steps(4) infinite;
}
@keyframes fixerAvatarNoise {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, -1px); }
  100% { transform: translate(0, 0); }
}
/* Corner brackets (ref.jpg style) */
.fixer-avatar-corner {
  position: absolute; z-index: 4;
  width: 10px; height: 10px;
  border-color: rgba(0, 245, 255, 0.5);
  border-style: solid;
  border-width: 0;
}
.fixer-avatar-corner.tl { top: 4px; left: 4px; border-top-width: 1px; border-left-width: 1px; }
.fixer-avatar-corner.tr { top: 4px; right: 4px; border-top-width: 1px; border-right-width: 1px; }
.fixer-avatar-corner.bl { bottom: 4px; left: 4px; border-bottom-width: 1px; border-left-width: 1px; }
.fixer-avatar-corner.br { bottom: 4px; right: 4px; border-bottom-width: 1px; border-right-width: 1px; }

.fixer-avatar-bar {
  padding: 4px 6px;
  background: rgba(255, 51, 68, 0.08);
  border-top: 1px solid rgba(255, 51, 68, 0.15);
  text-align: center;
}
.fixer-avatar-id {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px; letter-spacing: 1px;
  color: rgba(200, 230, 255, 0.25);
}

/* ── Header (ref.webp style) ──────────────────────── */
.fixer-chat-header {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 10px 16px;
  background: rgba(0, 245, 255, 0.02);
}
.fixer-chat-header-top {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
}
.fixer-chat-ref, .fixer-chat-ver {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px; letter-spacing: 1px;
  color: rgba(200, 230, 255, 0.2);
}
.fixer-chat-header-title {
  display: flex; align-items: center; justify-content: space-between;
}
.fixer-chat-label {
  font-family: 'Orbitron', monospace;
  font-size: 13px; letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
.fixer-chat-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(200, 230, 255, 0.4);
  font-size: 20px;
  transition: color 0.2s;
}
.fixer-chat-close:hover { color: var(--red); }
.fixer-chat-header-bar {
  margin-top: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 60%, transparent 60%, transparent 62%, rgba(0,245,255,0.3) 62%, rgba(0,245,255,0.3) 100%);
}

/* ── Chat body ────────────────────────────────────── */
.fixer-chat-body {
  flex: 1; min-height: 200px; max-height: 50vh;
  overflow-y: auto; overflow-x: hidden;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: var(--cyan) transparent;
}
.fixer-chat-body::-webkit-scrollbar { width: 4px; }
.fixer-chat-body::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ── Message bubbles ──────────────────────────────── */
.fixer-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.fixer-msg.alfred {
  align-self: flex-start;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 2px 8px 8px 8px;
  color: #c8e6ff;
}
.fixer-msg.user {
  align-self: flex-end;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 8px 2px 8px 8px;
  color: var(--cyan);
}
.fixer-msg.thinking {
  color: rgba(200, 230, 255, 0.35);
  animation: fixerThink 1s ease-in-out infinite;
}
@keyframes fixerThink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
.fixer-msg.error {
  align-self: center;
  color: var(--red);
  border-color: rgba(255, 51, 68, 0.3);
  background: rgba(255, 51, 68, 0.08);
  font-size: 11px;
}

/* ── Footer (red line + input) ────────────────────── */
.fixer-chat-footer {
  border-top: 1px solid var(--panel-border);
}
.fixer-chat-footer-line {
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}
.fixer-chat-input-wrap {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
#fixerChatInput {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace; font-size: 13px;
}
#fixerChatInput::placeholder { color: rgba(0, 245, 255, 0.25); }
.fixer-chat-send-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.fixer-chat-send-btn:hover {
  background: rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* --- Space Invader Game --- */
#invaderGame {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(2, 5, 12, 0.95);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
#invaderGame.active { display: flex; }
#invaderGame canvas {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}
#invaderHud {
  width: 480px; max-width: 90vw;
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
}
#invaderHud .score { color: var(--cyan); }
#invaderHud .lives { color: var(--red); }
#invaderClose {
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace; font-size: 11px;
  color: rgba(200, 230, 255, 0.4); letter-spacing: 2px;
}

/* --- Shimmer Skeleton --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-line {
  height: 12px; margin: 8px 0; border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(0, 245, 255, 0.03) 25%,
    rgba(0, 245, 255, 0.08) 50%,
    rgba(0, 245, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}
