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

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

:root {
  --ig1: #f09433;
  --ig2: #e6683c;
  --ig3: #dc2743;
  --ig4: #cc2366;
  --ig5: #bc1888;
  --ig6: #833ab4;
  --ig7: #5851db;
  --accent: #bc1888;
  --accent2: #833ab4;
  --bg: #0a080f;
  --card-bg: rgba(12, 8, 20, 0.94);
  --border: rgba(188, 24, 136, 0.22);
  --text: #f0e8f5;
  --text-muted: #7a5f8a;
  --red: #ff4444;
  --yellow: #ffd700;
  --cyan: #d600ff;
  --green: #bc1888;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCREENS ── */
.screen {
  display: none;
  min-height: 100vh;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.screen.active { display: flex; }

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ── GLASS CARD ── */
.glass-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 60px rgba(188,24,136,0.1), 0 24px 64px rgba(0,0,0,0.7);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ig-icon { width: 52px; height: 52px; flex-shrink: 0; }
.title-block { display: flex; flex-direction: column; }
.title-main {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--ig1), var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1;
}
.title-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

.desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.input-group { margin-bottom: 18px; }
.input-group label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.user-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(188,24,136,0.05);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.user-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(188,24,136,0.15);
}
.user-prefix {
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.user-wrap input {
  flex: 1;
  padding: 0 16px;
  height: 52px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.user-wrap input::placeholder { color: var(--text-muted); font-size: 14px; }

/* Options */
.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(188,24,136,0.1);
  background: rgba(188,24,136,0.03);
  transition: all 0.2s;
}
.check-label:hover { border-color: rgba(188,24,136,0.3); color: var(--text); }
.check-label input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }

/* Button */
.btn-extract {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ig3) 0%, var(--ig6) 50%, var(--ig7) 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(188,24,136,0.4);
}
.btn-extract:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(188,24,136,0.5);
}
.btn-extract:active { transform: translateY(0); }

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: rgba(122,95,138,0.5);
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

/* ── PROFILE SETUP (pantalla 1) ── */
.profile-setup {
  border: 1px solid rgba(188,24,136,0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
  background: rgba(188,24,136,0.03);
}
.profile-setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.profile-setup-header:hover { background: rgba(188,24,136,0.07); }
.profile-setup-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(90deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-setup-toggle {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.profile-setup-toggle.open { transform: rotate(180deg); }

.profile-setup-body {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(188,24,136,0.1);
}
.profile-setup-body.open { display: flex; }

.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1.5px dashed rgba(188,24,136,0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(188,24,136,0.03);
}
.photo-upload-area:hover {
  border-color: var(--accent);
  background: rgba(188,24,136,0.07);
}
.photo-upload-area canvas,
#previewCanvas {
  position: static !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0;
  border: 2px solid rgba(188,24,136,0.3);
}
.photo-upload-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-upload-icon {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.photo-upload-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.photo-upload-text.has-photo { color: var(--accent); }

.setup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.setup-field { display: flex; flex-direction: column; gap: 5px; }
.setup-field label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.setup-field input {
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(188,24,136,0.15);
  border-radius: 7px;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.setup-field input:focus { border-color: var(--accent); }
.setup-field input::placeholder { color: var(--text-muted); font-size: 11px; }

@media (max-width: 500px) {
  .setup-fields { grid-template-columns: 1fr; }
}

/* ── LOADING SCREEN ── */
#screen-loading {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px;
}

.extraction-panels {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.epanel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 8, 20, 0.92);
  border: 1px solid rgba(188,24,136,0.35);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(188,24,136,0.2);
  animation: slide-in-ep 0.4s ease;
  white-space: nowrap;
}
@keyframes slide-in-ep {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ep-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ep-blink 0.8s ease-in-out infinite;
}
@keyframes ep-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ep-text { color: var(--accent); font-weight: 600; }

/* Hack layout */
.hack-layout {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  margin: 100px auto 0;
  padding-bottom: 320px;
}

.hack-left {
  background: rgba(12, 8, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(188,24,136,0.08);
}

.hack-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(188,24,136,0.12);
}

.ig-pulse { position: relative; flex-shrink: 0; }
.pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hack-target-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.hack-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.hack-status-text {
  font-size: 11px;
  color: var(--accent);
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  animation: blink-text 1.2s ease-in-out infinite;
}
@keyframes blink-text { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Progress bar */
.global-progress { margin-bottom: 22px; }
.gp-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gp-pct { color: var(--accent); font-weight: 700; }
.gp-track {
  height: 8px;
  background: rgba(188,24,136,0.08);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(188,24,136,0.12);
}
.gp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ig7), var(--ig4), var(--ig1));
  border-radius: 99px;
  transition: width 0.5s ease;
  box-shadow: 0 0 14px var(--accent);
  position: relative;
}
.gp-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  border-radius: 99px;
}

/* Steps */
.numbered-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}
.ns-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(188,24,136,0.06);
  opacity: 0.35;
  transition: opacity 0.4s, transform 0.3s;
}
.ns-item:last-child { border-bottom: none; }
.ns-item.ns-active { opacity: 1; }
.ns-item.ns-done { opacity: 0.75; }

.ns-bubble {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(188,24,136,0.1);
  border: 1.5px solid rgba(188,24,136,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  transition: all 0.3s;
}
.ns-item.ns-active .ns-bubble {
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(188,24,136,0.6);
  animation: bubble-pulse 1s ease-in-out infinite;
}
.ns-item.ns-done .ns-bubble {
  background: rgba(188,24,136,0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.ns-item.ns-done .ns-bubble::before { content: '✓'; }
.ns-item.ns-active .ns-bubble { font-size: 0; }
.ns-item.ns-active .ns-bubble::before { content: ''; font-size: 0; }

@keyframes bubble-pulse {
  0%,100% { box-shadow: 0 0 8px rgba(188,24,136,0.5); }
  50%      { box-shadow: 0 0 20px rgba(188,24,136,0.9); }
}

.ns-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ns-main { font-size: 12.5px; color: var(--text); font-weight: 500; }
.ns-url  { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.ns-spinner { width: 16px; height: 16px; flex-shrink: 0; }

/* Live stats */
.live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ls-item {
  background: rgba(188,24,136,0.06);
  border: 1px solid rgba(188,24,136,0.12);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.ls-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.ls-lbl {
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  display: block;
}

/* Terminal */
.floating-terminal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 480px;
  height: 320px;
  background: #0a080f;
  border: 1px solid rgba(188,24,136,0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(188,24,136,0.2), 0 0 0 1px rgba(188,24,136,0.05);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ft-appear 0.5s ease;
}
@keyframes ft-appear {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.floating-terminal.minimized .ft-body { display: none; }

.ft-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(188,24,136,0.08);
  border-bottom: 1px solid rgba(188,24,136,0.15);
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}
.ft-header:active { cursor: grabbing; }

.ft-dots { display: flex; gap: 6px; flex-shrink: 0; }
.ft-dot { width: 11px; height: 11px; border-radius: 50%; }
.ft-dot.red { background: #ff5f57; }
.ft-dot.yellow { background: #febc2e; }
.ft-dot.green { background: #28c840; }

.ft-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7a4a8a; flex: 1; }
.ft-controls { display: flex; gap: 8px; flex-shrink: 0; }
.ft-btn { width: 24px; height: 24px; border-radius: 50%; border: none; background: transparent; color: #666; font-size: 13px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.ft-btn:hover { background: rgba(188,24,136,0.2); color: var(--accent); }
.ft-minimize:hover { background: rgba(255,215,0,0.2); color: var(--yellow); }
.ft-close:hover { background: rgba(255,68,68,0.2); color: var(--red); }

.ft-body {
  flex: 1;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--accent);
  overflow-y: auto;
  background: #0a080f;
}
.ft-body::-webkit-scrollbar { width: 4px; }
.ft-body::-webkit-scrollbar-thumb { background: rgba(188,24,136,0.3); border-radius: 2px; }

/* Terminal line colors */
.tl-green  { color: #e040fb; }
.tl-yellow { color: #ffd700; }
.tl-red    { color: #ff4444; }
.tl-cyan   { color: #ce93d8; }
.tl-orange { color: #ff8c00; }
.tl-white  { color: #f0e8f5; }
.tl-muted  { color: #3a2845; }

/* ── PROFILE CARD ── */
.profile-card {
  background: rgba(12, 8, 20, 0.92);
  border: 1px solid rgba(188,24,136,0.22);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 0 30px rgba(188,24,136,0.08);
}
.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(188,24,136,0.06);
  border-bottom: 1px solid rgba(188,24,136,0.1);
}
.profile-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.profile-card-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.25);
  border-radius: 99px;
  padding: 2px 10px;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}
.profile-card-body {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 24px;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}
.profile-avatar-div {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a0a22;
  border: 3px solid transparent;
  box-shadow: 0 0 0 3px rgba(188,24,136,0.5);
  flex-shrink: 0;
}
.profile-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#0a080f, #0a080f) padding-box,
              linear-gradient(135deg, var(--ig1), var(--ig3), var(--ig6)) border-box;
  animation: ring-spin 4s linear infinite;
  pointer-events: none;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.profile-verified {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.profile-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 7px;
  border: 1px solid rgba(188,24,136,0.07);
}
.pi-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 80px;
  flex-shrink: 0;
}
.pi-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.pi-accent {
  background: linear-gradient(90deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.pi-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #c8b8d8;
}
.pi-pass {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--red);
  opacity: 0.8;
}

/* ── RESULTS SCREEN ── */
#screen-results {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}

.results-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 780px;
}

.results-top {
  text-align: center;
  margin-bottom: 32px;
}
.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(188,24,136,0.5);
}
.results-main-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--ig1), var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.results-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.results-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats grid */
.stats-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-pro {
  background: rgba(12, 8, 20, 0.85);
  border: 1px solid rgba(188,24,136,0.15);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.2s;
}
.stat-pro:hover {
  border-color: rgba(188,24,136,0.4);
  box-shadow: 0 4px 20px rgba(188,24,136,0.1);
  transform: translateY(-2px);
}
.stat-pro-icon {
  font-size: 16px;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.stat-pro-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ig2), var(--ig5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-pro-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* Sections */
.extract-section {
  background: rgba(12, 8, 20, 0.85);
  border: 1px solid rgba(188,24,136,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.extract-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(188,24,136,0.08);
  background: rgba(188,24,136,0.04);
}
.extract-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.extract-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--ig6);
  background: rgba(131,58,180,0.15);
  border: 1px solid rgba(131,58,180,0.3);
  border-radius: 99px;
  padding: 2px 10px;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}
.extract-badge-deleted {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.25);
  border-radius: 99px;
  padding: 2px 10px;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* DM / chat items */
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(12, 8, 20, 0.6);
  border-bottom: 1px solid rgba(188,24,136,0.06);
  transition: all 0.2s;
  border-left: 4px solid var(--ig6);
}
.chat-item:last-child { border-bottom: none; }
.chat-item:hover {
  background: rgba(188,24,136,0.07);
  border-left-color: var(--accent);
}
.chat-item.hidden-chat { border-left-color: var(--red); }
.chat-item.hidden-chat:hover { background: rgba(255,68,68,0.06); border-left-color: #ff6666; }

.chat-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ig3) 0%, var(--ig6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(188,24,136,0.3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}
.chat-item.hidden-chat .chat-avatar {
  background: linear-gradient(135deg, var(--red) 0%, rgba(255,68,68,0.5) 100%);
  box-shadow: 0 0 12px rgba(255,68,68,0.3);
}

.chat-info { flex: 1; min-width: 0; }
.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.chat-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-time { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.chat-count {
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}
.lock-icon {
  font-size: 12px;
  color: var(--red);
  flex-shrink: 0;
}

/* Deleted items */
.deleted-item {
  padding: 13px 18px;
  background: rgba(255,68,68,0.03);
  border-bottom: 1px solid rgba(255,68,68,0.06);
  border-left: 3px solid var(--red);
  transition: all 0.2s;
}
.deleted-item:last-child { border-bottom: none; }
.deleted-item:hover { background: rgba(255,68,68,0.07); }
.deleted-sender {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 3px;
}
.deleted-msg {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}
.deleted-time {
  font-size: 10px;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
}

/* Action buttons */
.results-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.btn-action {
  height: 48px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.btn-download {
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  color: white;
  box-shadow: 0 4px 14px rgba(188,24,136,0.3);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(188,24,136,0.4); }
.btn-email {
  background: rgba(188,24,136,0.1);
  color: var(--accent);
  border: 1px solid rgba(188,24,136,0.3);
}
.btn-email:hover { background: rgba(188,24,136,0.2); transform: translateY(-2px); }
.btn-new {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-new:hover { background: rgba(255,255,255,0.08); color: var(--text); transform: translateY(-2px); }

/* Email modal */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.email-modal.active { display: flex; }
.email-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.email-box {
  position: relative;
  z-index: 1;
  background: rgba(12, 8, 20, 0.97);
  border: 1px solid rgba(188,24,136,0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(188,24,136,0.2);
}
.email-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(188,24,136,0.12);
}
.email-header h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.email-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}
.email-close:hover { color: var(--red); }
.email-content, .email-loading, .email-success { padding: 24px 22px; }
.email-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.email-input-group label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.email-input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(188,24,136,0.05);
  border: 1px solid rgba(188,24,136,0.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.email-input-group input:focus { border-color: var(--accent); }
.email-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-email-send {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-email-send:hover { opacity: 0.9; }
.btn-email-cancel {
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.btn-email-cancel:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.email-loading { text-align: center; }
.email-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(188,24,136,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.email-loading p { font-size: 13px; color: var(--text-muted); }

.email-success { text-align: center; }
.email-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin: 0 auto 14px;
}
.email-success h4 { font-size: 16px; margin-bottom: 8px; }
.email-success p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.email-confirm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}
.btn-email-close-ok {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--ig3), var(--ig6));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-grid-pro { grid-template-columns: repeat(2, 1fr); }
  .floating-terminal { bottom: 20px; right: 20px; width: 400px; height: 300px; }
}
@media (max-width: 600px) {
  .glass-card { padding: 28px 20px; }
  .options-row { grid-template-columns: 1fr; }
  .stats-grid-pro { grid-template-columns: repeat(2, 1fr); }
  .results-actions { grid-template-columns: 1fr; }
  .floating-terminal { bottom: 10px; right: 10px; width: calc(100% - 20px); height: 250px; }
  .ft-title { display: none; }
  .hack-layout { margin-top: 80px; padding-bottom: 280px; }
  .chat-avatar { width: 40px; height: 40px; font-size: 14px; }
  .profile-card-body { flex-direction: column; align-items: center; gap: 16px; padding: 18px; }
  .profile-avatar-wrap { width: 80px; height: 80px; }
  .profile-avatar-wrap canvas { width: 80px !important; height: 80px !important; }
  .pi-label { width: 70px; font-size: 9px; }
}
