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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a202c;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  text-align: center;
}

.logo { margin-bottom: 1rem; }

h1 { font-size: 1.5rem; font-weight: 700; color: #1a5276; margin-bottom: .4rem; }

.subtitle { font-size: .9rem; color: #555; margin-bottom: 1.8rem; line-height: 1.5; }

.drop-zone {
  display: block;
  border: 2px dashed #a9c4d8;
  border-radius: 12px;
  padding: 2rem 1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  margin-bottom: 1.2rem;
}
.drop-zone:hover, .drop-zone.drag { background: #eaf3fb; border-color: #1a5276; }
.drop-zone.has-file { border-color: #1a5276; background: #eaf3fb; }

.drop-content { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.drop-content svg { opacity: .7; }
#dropLabel, #dropLabelCubo { font-size: .9rem; font-weight: 500; color: #1a5276; word-break: break-all; }
.drop-content small { font-size: .78rem; color: #888; }

/* ── Two-column upload layout ──────────────────────────────────────────────── */

.uploads-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.upload-group { flex: 1; }
.upload-group-label {
  font-size: .78rem;
  font-weight: 600;
  color: #445;
  text-align: left;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.badge-req {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #1a5276;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
}
.badge-opt {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #e2eef5;
  color: #6694ae;
  border-radius: 4px;
  padding: 1px 5px;
}
/* drop zone inside upload-group has no bottom margin (row handles spacing) */
.upload-group .drop-zone { margin-bottom: 0; }

@media (max-width: 560px) {
  .uploads-row { flex-direction: column; }
  .card { max-width: 100%; }
}

.btn {
  width: 100%;
  padding: .85rem;
  background: #1a5276;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s, opacity .2s;
}
.btn:hover:not(:disabled) { background: #154360; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.error {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #c0392b;
  font-size: .85rem;
  text-align: left;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.ov-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e8eef3;
}

.ov-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ov-footer-copy {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ov-powered-label {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9ab4c4;
}

.ov-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.ov-nav-logo-icon {
  opacity: .9;
  transition: opacity .2s;
}
.ov-nav-logo:hover .ov-nav-logo-icon { opacity: 1; }

.ov-nav-brand {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -.02em;
}
.ov-nav-brand strong {
  font-weight: 700;
  color: #2B9DE4;
}

.ov-footer-links {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.ov-footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #aabfcc;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.ov-footer-links a svg {
  width: 15px;
  height: 15px;
}
.ov-footer-links a:hover {
  color: #29ABE2;
  background: #eaf5fb;
}
