@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 {
  --green: #25D366;
  --green-dark: #128C7E;
  --green-light: #34eb7a;
  --bg: #0a0f0a;
  --card-bg: rgba(10, 20, 12, 0.92);
  --border: rgba(37, 211, 102, 0.18);
  --text: #e8f5e9;
  --text-muted: #6b8f71;
  --red: #ff4444;
  --yellow: #ffd700;
  --cyan: #00ffcc;
  --orange: #ff8c00;
  --purple: #9d4edd;
  --pink: #ff006e;
}

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.35;
}

/* ── GLASS CARD (pantalla 1) ── */
.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(37, 211, 102, 0.08), 0 24px 64px rgba(0,0,0,0.6);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.wa-icon { width: 52px; height: 52px; flex-shrink: 0; }
.title-block { display: flex; flex-direction: column; }
.title-main {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  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(--green);
  padding-left: 12px;
}

.input-group {
  margin-bottom: 18px;
}
.input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 7px;
}
.input-group select,
.input-group input {
  width: 100%;
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input-group select:focus,
.input-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}
.input-group select option { background: #111; }

.phone-wrap {
  display: flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}
.phone-prefix {
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--green);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.phone-wrap input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
}

.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: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(37,211,102,0.08);
  transition: all 0.2s;
}
.check-label:hover { border-color: var(--border); color: var(--text); }
.check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.btn-extract {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  margin-bottom: 16px;
}
.btn-extract:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}
.btn-extract:active { transform: translateY(0); }

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: rgba(107, 143, 113, 0.6);
  line-height: 1.5;
}

/* ── EXTRACTION PANELS ── */
.extraction-panels {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.epanel {
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.4);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  animation: panel-slide-in 0.4s ease;
  box-shadow: 0 0 20px rgba(37,211,102,0.2);
}

@keyframes panel-slide-in {
  from {
    transform: translateX(300px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes panel-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(300px);
    opacity: 0;
  }
}

.ep-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 0.8s ease-in-out infinite;
  flex-shrink: 0;
}

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

.ep-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.epanel.ep-remove {
  animation: panel-slide-out 0.4s ease forwards;
}

/* Responsive panels */
@media (max-width: 768px) {
  .extraction-panels {
    top: 10px;
    right: 10px;
    gap: 8px;
  }
  .epanel {
    min-width: 150px;
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* ── FLOATING TERMINAL ── */
.floating-terminal {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 500px;
  height: 350px;
  background: #0a0e0a;
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(37,211,102,0.15), 0 20px 60px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  z-index: 200;
  animation: ft-appear 0.5s ease;
  cursor: grab;
}

@keyframes ft-appear {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.floating-terminal.minimized { height: auto; }
.floating-terminal.minimized .ft-body { display: none; }

.ft-header {
  background: #111612;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(37,211,102,0.12);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.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: #4a7a50; 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(37,211,102,0.2); color: var(--green); }
.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(--green); overflow-y: auto; background: #0a0e0a; }
.ft-body::-webkit-scrollbar { width: 4px; }
.ft-body::-webkit-scrollbar-thumb { background: rgba(37,211,102,0.3); border-radius: 2px; }

@media (max-width: 900px) {
  .floating-terminal { bottom: 20px; right: 20px; width: 400px; height: 300px; }
}

@media (max-width: 600px) {
  .floating-terminal { bottom: 10px; right: 10px; width: calc(100% - 20px); height: 250px; }
  .ft-title { display: none; }
}

#screen-loading {
  align-items: flex-start;
  padding: 24px 20px;
  min-height: 100vh;
}

.hack-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 980px;
  margin: auto;
  align-items: start;
}

/* ── Columna izquierda ── */
.hack-left {
  background: rgba(5, 14, 6, 0.93);
  border: 1px solid rgba(37,211,102,0.22);
  border-radius: 16px;
  padding: 24px 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(37,211,102,0.06), 0 20px 50px rgba(0,0,0,0.7);
}

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

.wa-pulse {
  position: relative;
  flex-shrink: 0;
}
.pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--green);
  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(--green);
  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(--green);
  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; }
}

/* Barra de progreso global */
.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(--green); font-weight: 700; }
.gp-track {
  height: 8px;
  background: rgba(37,211,102,0.08);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(37,211,102,0.12);
}
.gp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a3d2e, var(--green), #a8ffce);
  border-radius: 99px;
  transition: width 0.5s ease;
  box-shadow: 0 0 14px var(--green);
  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;
}

/* Pasos numerados */
.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(37,211,102,0.06);
  position: relative;
  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(37,211,102,0.1);
  border: 1.5px solid rgba(37,211,102,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  transition: all 0.3s;
}
.ns-item.ns-active .ns-bubble {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(37,211,102,0.6);
  animation: bubble-pulse 1s ease-in-out infinite;
}
.ns-item.ns-done .ns-bubble {
  background: rgba(37,211,102,0.2);
  border-color: var(--green);
  color: var(--green);
}
.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(37,211,102,0.5); }
  50%      { box-shadow: 0 0 20px rgba(37,211,102,0.9); }
}

.ns-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 4px;
}
.ns-main {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.ns-item.ns-active .ns-main { color: #fff; }
.ns-url {
  font-size: 11px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

.ns-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 6px;
}
.ns-item.ns-active .ns-spinner {
  border: 2px solid rgba(37,211,102,0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.ns-item.ns-done .ns-spinner {
  content: '';
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Live stats */
.live-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.ls-item {
  background: rgba(37,211,102,0.05);
  border: 1px solid rgba(37,211,102,0.1);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.ls-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}
.ls-lbl {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ── Columna derecha: terminal ── */
.hack-right {
  background: #0a0e0a;
  border: 1px solid rgba(37,211,102,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(37,211,102,0.06), 0 20px 50px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.hterm-bar {
  background: #111612;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(37,211,102,0.12);
  flex-shrink: 0;
}
.hterm-dots { display: flex; gap: 5px; }
.ht-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.ht-dot.red    { background: #ff5f57; }
.ht-dot.yellow { background: #febc2e; }
.ht-dot.green  { background: #28c840; }
.hterm-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #4a7a50;
  margin-left: 6px;
  flex: 1;
}
.hterm-blink {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--green);
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hterm-body {
  flex: 1;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  overflow-y: auto;
  color: var(--green);
}
.hterm-body::-webkit-scrollbar { width: 4px; }
.hterm-body::-webkit-scrollbar-thumb { background: rgba(37,211,102,0.3); border-radius: 2px; }

/* Colores de líneas terminal */
.tl-green  { color: #25D366; }
.tl-red    { color: #ff4444; }
.tl-yellow { color: #ffd700; }
.tl-orange { color: #ff8c00; }
.tl-white  { color: #e8f5e9; }
.tl-muted  { color: #2d5c33; }
.tl-cyan   { color: #00ffcc; }

/* ── LOADING CARD (mantener por si se usa) ── */
.loading-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 560px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 60px rgba(37, 211, 102, 0.08), 0 24px 64px rgba(0,0,0,0.6);
}


/* ── RESULTS CONTAINER PRO ── */
#screen-results {
  padding: 20px 16px;
  align-items: flex-start;
}

.results-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Header resultados */
.results-top {
  text-align: center;
  margin-bottom: 32px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(37,211,102,0.08) 0%, rgba(37,211,102,0.02) 100%);
  border: 1px solid rgba(37,211,102,0.15);
  border-radius: 16px;
}

.success-check {
  width: 60px;
  height: 60px;
  background: rgba(37,211,102,0.15);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  animation: check-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes check-bounce {
  0%   { transform: scale(0) rotateZ(-45deg); }
  50%  { transform: scale(1.1) rotateZ(10deg); }
  100% { transform: scale(1) rotateZ(0); }
}

.results-main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
}

.results-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.results-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(37,211,102,0.3);
}

/* Stats Grid Pro 4x2 */
.stats-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat-pro {
  background: rgba(15, 25, 18, 0.8);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.stat-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,211,102,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-pro:hover {
  border-color: rgba(37,211,102,0.4);
  background: rgba(37,211,102,0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.15);
}
.stat-pro:hover::before { opacity: 1; }

/* Colores diferentes por stat */
#stat-chats { border-left: 3px solid var(--green); }
#stat-hidden { border-left: 3px solid var(--cyan); }
#stat-deleted { border-left: 3px solid var(--red); }
#stat-photos { border-left: 3px solid var(--orange); }
#stat-videos { border-left: 3px solid var(--purple); }
#stat-audios { border-left: 3px solid var(--yellow); }
#stat-docs { border-left: 3px solid var(--pink); }
#stat-contacts { border-left: 3px solid var(--green-light); }

.stat-pro-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.stat-pro-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1;
}
#stat-hidden .stat-pro-value { color: var(--cyan); }
#stat-deleted .stat-pro-value { color: var(--red); }
#stat-photos .stat-pro-value { color: var(--orange); }
#stat-videos .stat-pro-value { color: var(--purple); }
#stat-audios .stat-pro-value { color: var(--yellow); }
#stat-docs .stat-pro-value { color: var(--pink); }
#stat-contacts .stat-pro-value { color: var(--green-light); }

.stat-pro-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Secciones de extracción */
.extract-section {
  margin-bottom: 24px;
}

.extract-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.extract-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.extract-badge {
  font-size: 9px;
  background: rgba(37,211,102,0.2);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.extract-badge-deleted {
  font-size: 9px;
  background: rgba(255,68,68,0.2);
  color: var(--red);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.extract-list {
  border: 1px solid rgba(37,211,102,0.15);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.extract-list-deleted {
  border: 1px solid rgba(255,68,68,0.15);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Chat items profesional */
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 25, 18, 0.6);
  border-bottom: 1px solid rgba(37,211,102,0.08);
  transition: all 0.2s;
  border-left: 4px solid var(--green);
}
.chat-item:last-child { border-bottom: none; }
.chat-item:hover {
  background: rgba(37,211,102,0.1);
  border-left-color: rgba(37,211,102,0.8);
}
.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(--green-dark) 0%, #0a3d2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(37,211,102,0.2);
  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.4) 100%);
  box-shadow: 0 0 12px rgba(255,68,68,0.2);
}

.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: 11px;
  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: #555;
  font-family: 'JetBrains Mono', monospace;
}

.chat-count {
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Deleted items */
.deleted-item {
  padding: 13px 16px;
  background: rgba(255,68,68,0.03);
  border-bottom: 1px solid rgba(255,68,68,0.08);
  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.08); }

.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;
}

/* Botones de acciones */
.results-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(37,211,102,0.1);
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-action.btn-download {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-action.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

.btn-action.btn-email {
  background: transparent;
  border: 1.5px solid rgba(0,255,204,0.4);
  color: var(--cyan);
}
.btn-action.btn-email:hover {
  background: rgba(0,255,204,0.1);
  border-color: rgba(0,255,204,0.7);
}

.btn-action.btn-new {
  background: transparent;
  border: 1.5px solid rgba(37,211,102,0.3);
  color: var(--green);
}
.btn-action.btn-new:hover {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.6);
}

/* Responsive */
@media (max-width: 780px) {
  .stats-grid-pro { grid-template-columns: repeat(2, 1fr); }
  .results-actions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .results-top { padding: 20px 16px; }
  .results-main-title { font-size: 22px; }
  .results-phone { font-size: 18px; }
  .stats-grid-pro { grid-template-columns: 1fr; gap: 10px; }
  .stat-pro-value { font-size: 22px; }
  .chat-avatar { width: 40px; height: 40px; font-size: 16px; }
}


/* Scrollbar global */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(37,211,102,0.3); border-radius: 3px; }

/* ── EMAIL MODAL ── */
.email-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: modal-fade-in 0.3s ease;
}
.email-modal.active {
  display: flex;
}
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

.email-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.email-box {
  position: relative;
  z-index: 1000;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8), 0 0 40px rgba(37,211,102,0.1);
  animation: box-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes box-pop {
  0%   { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.email-header {
  background: linear-gradient(135deg, rgba(37,211,102,0.12) 0%, rgba(37,211,102,0.06) 100%);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.email-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.email-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
}
.email-close:hover { color: var(--text); }

.email-content {
  padding: 24px 20px;
}
.email-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  border-left: 2px solid var(--green);
  padding-left: 12px;
}

.email-input-group {
  margin-bottom: 20px;
}
.email-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.email-input-group input {
  width: 100%;
  background: rgba(37,211,102,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-input-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}

.email-actions {
  display: flex;
  gap: 10px;
}
.btn-email-send {
  flex: 1;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-email-send:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,211,102,0.4); }

.btn-email-cancel {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-email-cancel:hover { background: rgba(37,211,102,0.05); color: var(--text); }

/* Loading state */
.email-loading {
  text-align: center;
  padding: 40px 20px;
}
.email-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(37,211,102,0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
#emailStatus {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

/* Success state */
.email-success {
  text-align: center;
  padding: 32px 20px;
}
.email-check {
  width: 60px;
  height: 60px;
  background: rgba(37,211,102,0.15);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--green);
  margin: 0 auto 16px;
  animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes check-pop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.email-success h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
}
.email-success p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}
.email-confirm {
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--green);
  word-break: break-all;
}
.btn-email-close-ok {
  width: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-email-close-ok:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .email-box { max-width: 95%; }
}
  .hack-layout { grid-template-columns: 1fr; }
  .hack-right { min-height: 320px; }
}
@media (max-width: 480px) {
  .glass-card, .loading-card, .results-card { padding: 24px 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .options-row { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: repeat(2,1fr); }
}
