:root{
  --bg:#0b0f19;
  --card:#121a2b;
  --card2:#0f1524;
  --text:#e9eefc;
  --muted:#b7c2e0;
  --line:rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% 0%, rgba(108,99,255,.25), transparent),
              radial-gradient(900px 500px at 100% 0%, rgba(0,212,255,.18), transparent),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.container{ max-width:1100px; margin:0 auto; padding:18px; }

.header{
  position:sticky; top:0; z-index:20;
  background: rgba(11,15,25,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header .container{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(108,99,255,.9), rgba(0,212,255,.85));
  box-shadow: var(--shadow);
  font-weight:800;
}
.brand h1{ margin:0; font-size:18px; line-height:1.1; }
.brand p{ margin:3px 0 0; font-size:12px; color:var(--muted); }

.nav{ display:flex; gap:14px; }
.nav a{ font-size:13px; color:var(--muted); padding:8px 10px; border-radius:10px; }
.nav a:hover{ background:rgba(255,255,255,.06); color:var(--text); }

.hero{ margin:18px 0 10px; }
.heroCard{
  padding:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.heroCard h2{ margin:0 0 6px; font-size:24px; }
.heroCard p{ margin:0 0 12px; color:var(--muted); }

.badges{ display:flex; flex-wrap:wrap; gap:10px; }
.badge{
  font-size:12px; color:var(--text);
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding:6px 10px; border-radius:999px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h3{ margin:0 0 12px; font-size:16px; }

.small{ font-size:12px; }
.muted{ color:var(--muted); }

.dropzone{
  position:relative;
  border:1px dashed rgba(255,255,255,.25);
  border-radius: 16px;
  padding:18px;
  background: rgba(255,255,255,.03);
  cursor:pointer;
  outline:none;
}
.dropzone:hover{ background: rgba(255,255,255,.05); }
.dropzone:focus{ box-shadow: 0 0 0 3px rgba(108,99,255,.35); }

.dropzone input{
  position:absolute; inset:0;
  opacity:0;
  width:100%; height:100%;
  cursor:pointer;
}
.dropText{ text-align:center; }
.linkish{ text-decoration:underline; }
.previewWrap{ margin-top:14px; }
.previewHeader{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.label{ font-size:12px; color:var(--muted); }
.preview{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: var(--card2);
  min-height:220px;
  display:grid; place-items:center;
}
.preview img{
  max-width:100%;
  max-height:320px;
  display:none;
}

.row{ display:flex; gap:12px; margin-bottom:12px; }
@media (max-width: 520px){
  .row{ flex-direction:column; }
}

.field{ flex:1; display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.field label{ font-size:12px; color:var(--muted); }
input, select{
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:10px 12px;
  outline:none;
}
input:focus, select:focus{ box-shadow: 0 0 0 3px rgba(0,212,255,.22); }

.check{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.check input{ width:16px; height:16px; }

.rangeRow{ display:flex; align-items:center; gap:10px; }
.pill{
  font-size:12px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.presetRow{ display:flex; flex-wrap:wrap; gap:8px; }

.actions{ display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }

.btn{
  border-radius: 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  transition: transform .06s ease, background .2s ease;
  font-weight:600;
}
.btn:hover{ background: rgba(255,255,255,.07); }
.btn:active{ transform: scale(.99); }
.btn.small{ padding:8px 10px; font-size:12px; }
.btn.primary{
  border: none;
  background: linear-gradient(135deg, rgba(108,99,255,.95), rgba(0,212,255,.9));
}
.btn.success{
  border:none;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.92));
  text-align:center;
}
.btn.ghost{ background: transparent; }

.disabled, button:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.outputCard{
  margin-top:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding:12px;
}
.info ul{ margin:0; padding-left:18px; color:var(--muted); }
.footer{ margin:18px 0 8px; text-align:center; }
