:root {
  --bg: #061b33;
  --bg-2: #0a2d4e;
  --text: #eff8ff;
  --text-muted: #c6ddf4;
  --glass: rgba(255,255,255,0.12);
  --glass-strong: rgba(255,255,255,0.17);
  --border: rgba(255,255,255,0.26);
  --shadow: 0 20px 48px rgba(3, 14, 30, 0.38);
  --accent: #ffd15f;
  --accent-2: #42d6ad;
  --danger: #ff6278;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, #2f9fff40, transparent 28%),
    radial-gradient(circle at 92% 15%, #28d0a145, transparent 30%),
    radial-gradient(circle at 65% 92%, #ffd15f33, transparent 35%),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(44px); opacity: .38; animation: float 12s ease-in-out infinite; }
.b1 { width: 300px; height: 300px; background: #4dabff; top: -80px; right: -60px; }
.b2 { width: 360px; height: 360px; background: #31d4a5; left: -120px; top: 26%; animation-delay: -4s; }
.b3 { width: 340px; height: 340px; background: #ffd766; right: 14%; bottom: -130px; animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px) saturate(130%);
  -webkit-backdrop-filter: blur(13px) saturate(130%);
}

.topbar {
  width: min(1180px, calc(100% - 1rem));
  margin: .8rem auto 0;
  border-radius: 18px;
  padding: .7rem .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(145deg, #5db7ff, #43d4ac);
}
.brand h1 { margin: 0; font-size: 1rem; }
.brand p { margin: 0; font-size: .8rem; color: var(--text-muted); }
.badge {
  padding: .35rem .62rem; border-radius: 999px; font-weight: 800; font-size: .74rem;
  color: #0b3550; background: linear-gradient(120deg, #ffd86a, #9effd8);
}

.container {
  width: min(980px, calc(100% - 1rem));
  margin: 1rem auto 1.2rem;
  display: grid;
  gap: .95rem;
}

.hero {
  border-radius: var(--radius-xl);
  padding: 1.1rem;
}
.eyebrow {
  margin: 0 0 .45rem;
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border);
  padding: .3rem .6rem;
  border-radius: 999px;
}
.hero h2 {
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
}
.hero h2 span { color: #ffd96c; }
.subtitle { margin: .6rem 0 0; color: var(--text-muted); max-width: 65ch; }

.card {
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.card h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.muted { margin: 0 0 .8rem; color: var(--text-muted); }
.hidden { display: none; }

.dropzone {
  display: block;
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.dropzone.dragover {
  border-color: #fff;
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}
.dropzone input { display: none; }
.drop-content { text-align: center; }
.drop-icon { font-size: 2rem; display: block; margin-bottom: .35rem; }
.drop-content p { margin: 0; font-weight: 700; }
.drop-content small { color: var(--text-muted); }

.form-actions {
  margin-top: .8rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.btn.primary {
  color: #083149;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 20px rgba(33, 180, 141, .35);
}
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost {
  color: #f0f8ff;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
}
.selected-file { color: var(--text-muted); font-size: .9rem; }
.message { min-height: 1.3rem; font-size: .89rem; margin: .65rem 0 0; }
.message.error { color: #ffd2da; }
.message.ok { color: #c9ffea; }

.steps { display: grid; gap: .5rem; margin-bottom: .8rem; }
.step {
  padding: .5rem .7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
}
.step.active {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.18);
}
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}
.progress > span {
  display: block; width: 0%; height: 100%;
  transition: width .45s ease;
  background: linear-gradient(120deg, #20c997, #5cb6ff);
}

.actions-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }
.warning-box {
  margin-top: .8rem;
  border-radius: 12px;
  padding: .7rem;
  background: rgba(255,209,95,0.12);
  border: 1px solid rgba(255,209,95,0.35);
  color: #fff2cc;
}
.technical {
  margin-top: .7rem;
  background: rgba(0,0,0,0.22);
  border-radius: 12px;
  padding: .6rem;
}
.technical pre {
  margin: .6rem 0 0;
  white-space: pre-wrap;
  color: #c8e6ff;
}

@media (max-width: 700px) {
  .brand p { display: none; }
  .badge { display: none; }
}
