:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: rgba(255,255,255,0.075);
  --panel-strong: rgba(255,255,255,0.12);
  --text: #f4f7fb;
  --muted: #aab4c3;
  --border: rgba(255,255,255,0.15);
  --accent: #6ee7f9;
  --accent-2: #a78bfa;
  --danger: #ff7a7a;
  --ok: #72f7a1;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(110,231,249,0.18), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(167,139,250,0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; }
.hero { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 800; }
h1 { margin: 0; font-size: clamp(2.3rem, 7vw, 5rem); letter-spacing: -0.08em; line-height: .9; }
h2 { margin: 0; font-size: 1.3rem; }
.subtitle { color: var(--muted); font-size: 1.05rem; max-width: 760px; line-height: 1.6; }
.panel, .server-card, .log {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.04));
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.panel { padding: 24px; margin-bottom: 18px; }
.small-panel { display: grid; gap: 8px; max-width: 460px; }
.server-card { padding: 20px; min-width: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.dot { width: 12px; height: 12px; display: inline-block; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 6px rgba(255,255,255,0.06); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--danger); }
button, input, select { font: inherit; }
button, .download {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
  color: #071018;
  background: #fff;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform .15s ease, opacity .15s ease;
}
button:hover, .download:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-top: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(110,231,249,.18); color: var(--accent); font-weight: 900; margin: 0 0 8px; }
.dropzone {
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed rgba(255,255,255,.24);
  border-radius: 24px;
  padding: 42px 20px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.dragover { border-color: var(--accent); background: rgba(110,231,249,.08); }
.dropzone input { display: none; }
.upload-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.12); font-size: 1.7rem; margin-bottom: 14px; }
.dropzone small, .hint, .muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
label { display: block; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
select, input[type="password"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,.26);
  color: var(--text);
  outline: none;
}
.file-box { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-height: 52px; color: var(--muted); background: rgba(0,0,0,.18); display: flex; align-items: center; }
.progress-wrap { margin-top: 18px; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.progress { height: 12px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.progress div { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .2s ease; }
.badge { border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; color: var(--muted); }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.format-tile {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  min-height: 122px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.format-tile.active { outline: 2px solid var(--accent); background: rgba(110,231,249,.1); }
.format-ext { font-size: 1.45rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; }
.format-note { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.result-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.log { padding: 16px 18px; min-height: 48px; color: var(--muted); white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.log .ok { color: var(--ok); }
.log .bad { color: var(--danger); }
@media (max-width: 800px) {
  .hero, .grid-2, .result-panel { grid-template-columns: 1fr; flex-direction: column; }
  .server-card { width: 100%; }
  .panel-header { align-items: flex-start; flex-direction: column; }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
.mode-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
