:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --muted: #555;
  --text: #222;
  --accent: #7c5cff;
  --accent-2: #16b3ff;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border: 1px solid rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Inter", sans-serif; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }

.container { width: min(1100px, 92%); margin: 0 auto; padding: 0 0 50px; flex: 1; }

header { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--text); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: grid; place-items: center; font-weight: 800; color: #fff; }

nav { display: flex; gap: 16px; }
nav a { text-decoration: none; font-weight: 500; color: var(--text); }
nav a:hover { color: var(--accent); }

.btn { padding: 10px 16px; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; transition: .2s ease; }
.btn.primary { background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; }
.btn:hover { opacity: 0.9; }

.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 16px; }
.hero p { color: var(--muted); max-width: 720px; margin: 0 auto 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; border: var(--border); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; }

.dropzone { position: relative; border: 2px dashed rgba(0, 0, 0, 0.1); border-radius: 14px; padding: 24px; text-align: center; background: rgba(0,0,0,.02); cursor: pointer; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .title { font-weight: 700; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 4px; }

.file-list { margin-top: 10px; padding-left: 16px; text-align: left; font-size: 0.9rem; color: var(--muted); }
.file-list li { margin-bottom: 4px; }

footer { margin-top: auto; padding: 20px; text-align: center; background: var(--surface); border-top: var(--border); color: var(--muted); }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
  nav { display: none; flex-direction: column; background: var(--surface); position: absolute; top: 60px; right: 0; width: 200px; box-shadow: var(--shadow); padding: 10px; }
  nav.active { display: flex; }
  .menu-toggle { display: block; cursor: pointer; font-size: 24px; }
}

.menu-toggle { display: none; }
.progress {
  margin-top: 1rem;
  width: 100%;
  background: #ddd;
  border-radius: 8px;
  position: relative;
  height: 25px;
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.3s;
}
.progress span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}
.btn.success {
  background: #2ecc71;
  color: white;
  margin-top: 1rem;
  display: inline-block;
}
.file-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}
.file-list li {
  background: var(--surface);
  border: var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}
.file-list li.dragging {
  opacity: 0.5;
}
.file-list li span {
  font-size: 0.9rem;
}
.file-list li {
  background: var(--surface);
  border: var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.file-list li .remove {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 10px;
}
.file-list li .remove:hover {
  background: #c0392b;
}
details { margin-top:12px; padding:12px; border:var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
details summary { cursor:pointer; font-weight:600; }