:root {
  --bg: #0b0f14;
  --surface: #141a22;
  --surface2: #1c2432;
  --accent: #e02020;
  --accent2: #ff4444;
  --text: #f0f4f8;
  --muted: #8a9ab0;
  --border: #2a3545;
  --radius: 14px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.logo { font-size: 2rem; }
header h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.tagline {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* MAIN */
main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(224,32,32,0.06);
}
.upload-icon { font-size: 2.8rem; margin-bottom: 16px; }
.upload-zone h2 { font-size: 1.3rem; margin-bottom: 6px; }
.upload-zone p { color: var(--muted); font-size: 0.9rem; }
.formats { margin-top: 10px; font-size: 0.78rem !important; color: #5a6a80 !important; }

.hint {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* STEPS */
.card h2 { margin-bottom: 24px; font-size: 1.2rem; }
.filename { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}
.step.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(224,32,32,0.08);
}
.step.active .step-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.2s infinite;
}
.step.done { color: #4ade80; border-color: transparent; }
.step.done .step-dot { background: #4ade80; }

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

/* PROGRESS BAR */
.progress-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s ease;
}
.progress-label {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}

/* RESULT */
.result-card {}
.result-badge {
  display: inline-block;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  border: 1px solid #4ade80;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.result-card h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}
.res-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.res-razon {
  font-size: 0.8rem;
  color: #5a6a80;
  border-left: 3px solid var(--border);
  padding-left: 10px;
  margin-bottom: 20px;
  font-style: italic;
}
video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  max-height: 400px;
  margin-bottom: 20px;
}
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ERROR */
.error-card { text-align: center; padding: 48px 32px; }
.error-icon { font-size: 2.5rem; margin-bottom: 16px; }
.error-card h2 { margin-bottom: 10px; }
.error-card p { color: var(--muted); margin-bottom: 24px; font-size: 0.9rem; }

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

@media (max-width: 600px) {
  .upload-zone { padding: 40px 20px; }
  .card { padding: 20px; }
}
