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

:root {
  /* Fondo claro */
  --bg:       #f4f6fb;
  --bg2:      #edf0f7;
  --bg3:      #e2e7f2;
  --card:     #ffffff;
  --border:   rgba(99, 115, 190, 0.15);

  /* Azul oscuro principal */
  --navy:     #0f1535;
  --navy2:    #1a2352;
  --navy3:    #253066;

  /* Acentos */
  --accent:   #4f46e5;       /* índigo */
  --accent2:  #06b6d4;       /* cyan */
  --success:  #10b981;

  /* Texto */
  --text:     #0f1535;
  --text2:    #475380;
  --text3:    #8892b0;

  --radius: 16px;
  --shadow: 0 4px 24px rgba(14, 21, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(14, 21, 58, 0.14);
}

html { scroll-behavior: smooth; }

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

.hidden { display: none !important; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px;  margin: 0 auto; padding: 0 24px; }

/* ===== VISTAS SPA ===== */
.view {
  position: fixed; inset: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: var(--bg);
  z-index: 1;
}
#view-landing { background: var(--navy); }
.view--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}
.view--exit {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 20%, rgba(79,70,229,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(6,182,212,0.25) 0%, transparent 55%);
  z-index: 0;
}

/* Dot grid */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---- Navbar ---- */
.navbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; letter-spacing: -0.5px;
}
.logo-icon { display: flex; align-items: center; }
.logo-text { color: rgba(255,255,255,0.65); }
.logo-text strong { color: #fff; }

.nav-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.8); letter-spacing: 0.8px;
  text-transform: uppercase;
  animation: pulse-border 3s ease infinite;
}
@keyframes pulse-border {
  0%,100% { border-color: rgba(255,255,255,0.2); }
  50%      { border-color: rgba(255,255,255,0.5); }
}

/* ---- CTA Navbar ---- */
.btn-cta-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 100px;
  background: #fff; border: none;
  color: var(--navy); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-cta-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.cta-arrow { display: flex; align-items: center; }
.cta-arrow svg { width: 16px; height: 16px; color: var(--accent); animation: nudge 1.4s ease infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(4px); }
}

/* ---- CTA Hero ---- */
.btn-cta-hero {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 24px; padding: 14px 32px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border: none; border-radius: 100px;
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 32px rgba(79,70,229,0.5);
  position: relative; overflow: hidden;
}
.btn-cta-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  border-radius: inherit;
}
.btn-cta-hero:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 40px rgba(79,70,229,0.65); }
.cta-hero-arrows { display: flex; align-items: center; gap: 0; }
.cta-hero-arrows svg {
  width: 18px; height: 18px;
  animation: arrows-slide 1.2s ease infinite;
}
.cta-hero-arrows svg:nth-child(1) { opacity: 0.35; animation-delay: 0s; }
.cta-hero-arrows svg:nth-child(2) { opacity: 0.65; animation-delay: 0.15s; }
.cta-hero-arrows svg:nth-child(3) { opacity: 1;    animation-delay: 0.3s; }
@keyframes arrows-slide {
  0%, 100% { transform: translateX(0); opacity: inherit; }
  50%       { transform: translateX(4px); }
}

/* ---- Hero content ---- */
.hero-content {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 28px 24px 20px;
  position: relative; z-index: 5;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.73rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px; letter-spacing: 0.4px;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 12px;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.92rem; color: rgba(255,255,255,0.6);
  max-width: 480px; margin: 0 auto 16px; line-height: 1.6;
}

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 32px; border-radius: 100px;
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; }
.stat-lbl  { font-size: 0.62rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1.2px; }
.stat-sep  { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* ===== PASOS INTEGRADOS EN EL HERO ===== */
.hero-steps {
  position: relative; z-index: 5;
  padding: 10px 0 28px;
}
.hero-steps-label {
  text-align: center;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
/* Steps dentro del hero — mayor especificidad para sobreescribir .step base */
.hero-steps .step {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(10px);
}
.hero-steps .step:hover {
  transform: translateY(-4px);
  border-color: rgba(129,140,248,0.55) !important;
  box-shadow: 0 8px 32px rgba(79,70,229,0.25) !important;
  background: rgba(255,255,255,0.06) !important;
}
.hero-steps .step::before { background: linear-gradient(90deg, #818cf8, #22d3ee); }
.hero-steps .step h3     { color: #fff; }
.hero-steps .step p      { color: rgba(255,255,255,0.48); }
.hero-steps .step .step-num { color: #818cf8; }
.hero-steps .step .step-icon {
  background: rgba(129,140,248,0.12);
  border-color: rgba(129,140,248,0.22);
}
.hero-steps .step .step-icon svg { color: #a5b4fc; }
.hero-steps .step-arrow { color: rgba(255,255,255,0.25); }




/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 88px 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center; font-size: 2rem;
  font-weight: 800; margin-bottom: 8px;
  letter-spacing: -0.5px; color: var(--navy);
}
.section-sub {
  text-align: center; color: var(--text2);
  font-size: 0.95rem; margin-bottom: 52px;
}

.steps {
  display: flex; align-items: center;
  justify-content: center; gap: 12px;
  flex-wrap: wrap;
}

.step {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  text-align: center; flex: 1; min-width: 160px; max-width: 230px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.3);
}
.step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.3s;
}
.step:hover::before { opacity: 1; }

.step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.08));
  border: 1.5px solid rgba(79,70,229,0.15);
}
.step-icon svg { width: 20px; height: 20px; color: var(--accent); }

.step-num {
  font-size: 0.62rem; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 6px; text-transform: uppercase;
}
.step h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.step p  { font-size: 0.76rem; color: var(--text2); line-height: 1.4; }

.step-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; color: var(--text3);
}
.step-arrow svg { width: 18px; height: 18px; }

/* ===== UPLOAD SECTION ===== */
.upload-section { padding: 36px 0; background: var(--bg); }

/* ===== NAVBAR RESULTADOS ===== */
.navbar--light {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.logo--dark .logo-text { color: var(--text2); }
.logo--dark .logo-text strong { color: var(--navy); }

.logo-text--dark { color: var(--text2); }
.logo-text--dark strong { color: var(--navy); }

.btn-back {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 10px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-back svg { width: 16px; height: 16px; }
.btn-back:hover {
  background: var(--navy); border-color: var(--navy);
  color: #fff;
}
.btn-back:hover svg { color: #fff; }

.upload-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 24px; padding: 28px 36px;
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.08));
  border: 1.5px solid rgba(79,70,229,0.2);
}
.card-icon svg { width: 26px; height: 26px; color: var(--accent); }
.card-header h2 { font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.card-header p  { color: var(--text2); font-size: 0.88rem; }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(79,70,229,0.25);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; cursor: pointer;
  transition: all 0.25s; margin-bottom: 16px;
  background: rgba(79,70,229,0.02);
}
.dropzone:hover, .dropzone.dragging {
  border-color: rgba(79,70,229,0.55);
  background: rgba(79,70,229,0.05);
}
.dropzone.has-file {
  border-style: solid; border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.04);
}

.drop-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.drop-icon svg { width: 48px; height: 48px; color: var(--accent); opacity: 0.6; }
.drop-text { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.drop-text strong { color: var(--accent); }
.drop-text span   { color: var(--text2); font-size: 0.88rem; }
.drop-hint        { font-size: 0.73rem; color: var(--text3); margin-top: 6px; }

.file-preview {
  margin-top: 16px; padding: 12px 18px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  display: flex; align-items: center; gap: 12px; font-size: 0.88rem;
}
.file-preview .fp-icon { font-size: 1.2rem; }
.file-preview .fp-name { font-weight: 600; flex: 1; text-align: left; color: var(--navy); }
.file-preview .fp-size { color: var(--text3); font-size: 0.78rem; }

/* Form */
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.6px;
}

input[type="text"], textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
input[type="text"]::placeholder, textarea::placeholder { color: var(--text3); }
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: rgba(79,70,229,0.55);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
textarea { resize: vertical; }

.btn-primary {
  width: 100%; padding: 15px 32px;
  background: #0f1535;
  border: none; border-radius: 12px;
  color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: all 0.25s; letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 18px rgba(15,21,53,0.35);
}
.btn-primary:hover   { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,21,53,0.5); background: #1a2352; }
.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled{ opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-icon { display: flex; align-items: center; }
.btn-icon svg { width: 18px; height: 18px; color: #fff; }

/* ===== RESULTS ===== */
.results-section { padding: 40px 0 80px; background: var(--bg); }

.results-header { text-align: center; margin-bottom: 40px; }
.results-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 16px;
}
.results-badge.success {
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
}
.results-badge svg { width: 14px; height: 14px; }
.results-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.results-header p  { color: var(--text2); }

/* Notas — card en Resumen */
.notas-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border: 1.5px solid rgba(79,70,229,0.18);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 20px;
}
.notas-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(79,70,229,0.08); border-radius: 10px;
}
.notas-card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.notas-card-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.notas-card-text { font-size: 0.9rem; color: var(--text2); line-height: 1.5; }

/* Notas — chip en Tabla */
.notas-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(79,70,229,0.06);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: 8px; padding: 6px 14px;
  font-size: 0.8rem; color: var(--text2);
  margin-bottom: 12px;
}
.notas-chip svg { color: var(--accent); flex-shrink: 0; }

/* Tabs */
.tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px; padding: 5px;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1; padding: 10px 16px; border: none;
  background: transparent; color: var(--text2);
  border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 500;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--navy); background: var(--bg2); }
.tab.active {
  background: var(--navy);
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px rgba(15,21,53,0.2);
}
.tab.active svg { color: rgba(255,255,255,0.8); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Summary Cards */
.summary-cards {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.s-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.s-card--highlight {
  border-color: rgba(79,70,229,0.25);
  background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(6,182,212,0.02));
}
.s-card:hover {
  border-color: rgba(79,70,229,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.s-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(79,70,229,0.15);
  margin-bottom: 12px;
}
.s-card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.s-card-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); margin-bottom: 6px;
}
.s-card-value { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.s-card-sub   { font-size: 0.78rem; color: var(--text2); margin-top: 4px; }

/* Table */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.table-search {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.87rem;
  min-width: 200px;
}
.table-search:focus { outline: none; border-color: rgba(79,70,229,0.5); }

.export-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-export {
  padding: 9px 16px; border-radius: 9px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.81rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-export svg { width: 14px; height: 14px; }
.btn-export:hover {
  background: var(--navy); border-color: var(--navy);
  color: #fff;
}
.btn-export:hover svg { color: #fff; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: var(--navy); }
th {
  padding: 13px 18px; text-align: left;
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:hover   { background: var(--bg2); }
tbody tr:last-child td { border-bottom: none; }

/* JSON Viewer */
.json-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.json-viewer {
  background: var(--navy);
  border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 24px;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.75;
  color: #93c5fd;
  font-family: 'Fira Code', 'Courier New', monospace;
  max-height: 500px; overflow-y: auto;
}

.results-footer { text-align: center; margin-top: 40px; }
.btn-secondary {
  padding: 13px 32px; border-radius: 12px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text2); font-family: 'Inter', sans-serif;
  font-size: 0.93rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(79,70,229,0.05);
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #fff;
  border: 1.5px solid rgba(239,68,68,0.3);
  border-radius: 12px; padding: 15px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text);
  box-shadow: 0 8px 32px rgba(14,21,58,0.12);
  z-index: 1000; max-width: 380px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.toast-icon svg { width: 18px; height: 18px; color: #ef4444; }
.toast button { background: none; border: none; color: var(--text3); cursor: pointer; margin-left: auto; display: flex; }
.toast button svg { width: 16px; height: 16px; }

/* Loading overlay */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(15,21,53,0.7); backdrop-filter: blur(6px);
  z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.loading-overlay .big-spinner {
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #818cf8;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.loading-overlay p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
@keyframes spin  { to { transform: rotate(360deg); } }

/* Responsive */
@media(max-width: 640px) {
  .navbar      { padding: 20px; }
  .hero-stats  { flex-direction: column; border-radius: 20px; gap: 16px; padding: 24px; }
  .stat-sep    { width: 40px; height: 1px; }
  .form-row    { grid-template-columns: 1fr; }
  .upload-card { padding: 24px 18px; }
  .steps       { flex-direction: column; align-items: center; }
  .step-arrow  { transform: rotate(90deg); }
  .table-toolbar { flex-direction: column; align-items: stretch; }
}
