:root{
  --bg1:#0f1020;
  --bg2:#1a1b3a;
  --card:#0f1220cc;
  --border:#2b2e55;
  --text:#e9ecff;
  --muted:#a6aed6;
  --accent:#7c5cff;
  --accent-2:#00d4ff;
  --success:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --shadow:0 10px 30px rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #1a1b3a 0%, #0b0c1a 50%, #05060e 100%), linear-gradient(135deg, #0b0c1a, #0f1020);
  overflow-x:hidden;
}

.background::before{
  content:"";
  position:fixed;
  inset:-10%;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(124,92,255,0.25), transparent 70%),
    radial-gradient(700px 400px at 10% 80%, rgba(0,212,255,0.2), transparent 70%);
  filter: blur(40px);
  z-index:-1;
  animation: floatBg 18s ease-in-out infinite alternate;
}
@keyframes floatBg{
  0%{transform: translate3d(0,0,0) scale(1)}
  100%{transform: translate3d(0,-20px,0) scale(1.02)}
}

.site-header{
  max-width:1200px;
  margin:32px auto 16px;
  padding:0 20px;
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
}
.logo{
  width:56px;height:56px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, #7c5cff, #00d4ff);
  box-shadow: var(--shadow);
  font-size:28px;
}
.titles h1{
  margin:0;
  font-family:Poppins,Inter,sans-serif;
  font-weight:700; letter-spacing:0.3px;
  font-size:28px;
}
.subtitle{ margin:4px 0 0; color:var(--muted) }

.stats{ display:flex; gap:16px; align-items:center; flex-wrap:wrap }
.stat{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border:1px solid var(--border);
  padding:10px 14px; border-radius:12px; min-width:110px;
  text-align:center;
  box-shadow: var(--shadow);
}
.stat .label{display:block; color:var(--muted); font-size:12px}
.stat .value{display:block; font-size:20px; font-weight:700; font-family:Poppins}

/* LAYOUT: single column; draw first, lists centered, import last */
.container{
  max-width:1200px;
  margin:0 auto 40px;
  padding:0 20px;
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.panel.card{
  background: linear-gradient(180deg, rgba(15,18,32,0.85), rgba(15,18,32,0.7));
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel h2{
  margin:0 0 10px;
  font-family:Poppins;
  font-weight:600;
}
.help-text{ margin:0 0 14px; color:var(--muted) }

/* Uploader */
.uploader .dropzone{
  display:block; cursor:pointer; user-select:none;
  border:2px dashed #3a3f75;
  border-radius:16px; padding:22px; transition: all .2s ease;
  background: rgba(124,92,255,0.05);
  outline:none;
}
.dropzone:focus-visible{ box-shadow:0 0 0 3px rgba(124,92,255,0.4) }
.dropzone:hover{ border-color:#7c5cff; background: rgba(124,92,255,0.08) }
.dropzone input{ display:none }
.dropzone-inner{
  display:flex; align-items:center; gap:16px; justify-content:center;
}
.dz-icon{ font-size:28px }
.dz-text{ text-align:center }
.dz-text .muted{ color:var(--muted) }

.file-list{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap }
.file-chip{
  background:#12142a; border:1px solid var(--border);
  padding:6px 10px; border-radius:999px; font-size:12px
}

.manual-input{ margin-top:16px }
#names-input{
  width:100%; min-height:120px; resize:vertical;
  color:var(--text); background:#0b0d1c;
  border:1px solid var(--border); border-radius:12px;
  padding:12px 14px; font-family:Inter,monospace; line-height:1.4;
}
.input-actions{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap }

.options{ margin-top:10px; display:flex; gap:18px; flex-wrap:wrap }
.toggle{ display:flex; gap:8px; align-items:center; color:var(--muted) }
.toggle input{ accent-color: var(--accent) }

/* DRAW PANEL — make picked name BIG and visible */
.action-panel .selected-name{
  margin:12px 0 18px;
  min-height: clamp(80px, 18vw, 220px);
  display:grid; place-items:center; text-align:center;
  font-family:Poppins; font-weight:800; letter-spacing:0.4px;
  font-size: clamp(42px, 10vw, 120px);
  line-height:1.05;
  background: linear-gradient(90deg, #fff, #cfe3ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 8px 30px rgba(124,92,255,0.35);
}
.action-buttons{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center }

.btn{
  background:#171936; color:var(--text);
  border:1px solid var(--border); border-radius:12px;
  padding:10px 14px; font-weight:600; cursor:pointer;
  transition: all .15s ease; box-shadow: var(--shadow);
}
.btn:hover{ transform: translateY(-1px); border-color:#4a4fa0 }
.btn:active{ transform: translateY(0) }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none }
.btn.primary{ background: linear-gradient(135deg, #7c5cff, #00d4ff); color:#0b0d1c; border:0 }
.btn.success{ background: linear-gradient(135deg, #22c55e, #16a34a); border:0; color:#07120b }
.btn.warn{ background: linear-gradient(135deg, #f59e0b, #f97316); border:0; color:#2b1500 }
.btn.danger{ background: linear-gradient(135deg, #ef4444, #b91c1c); border:0 }
.btn.subtle{ background:#0d1024 }
.btn.xl{ padding:16px 22px; font-size:18px; border-radius:14px }
.btn.sm{ padding:6px 10px; font-size:12px; border-radius:10px }

/* LISTS — centered presentation */
.list-panel .lists{
  display:flex; flex-direction:column; align-items:center; gap:16px;
}
.list-col{ width:100%; max-width:1000px }
.list-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:8px;
}
.list-actions{ display:flex; gap:8px; flex-wrap:wrap }
.name-list{
  min-height:160px;
  border:1px dashed #313765;
  border-radius:14px; padding:12px; background:#0b0d1c;
  display:flex; gap:8px; flex-wrap:wrap; align-content:flex-start;
}
.name-list.center{ margin:0 auto }
.badge{
  background: #12142a; border:1px solid var(--border);
  padding:6px 10px; border-radius:999px; font-size:12px; white-space:nowrap;
}
.badge.picked{
  background: linear-gradient(180deg, rgba(124,92,255,0.18), rgba(0,212,255,0.18));
  border-color:#3a3f75;
}

.site-footer{
  max-width:1200px; margin:20px auto 40px; padding:0 20px;
  color:var(--muted); display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.sep{ opacity:.6 }

.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

@keyframes popIn{
  0%{ transform: scale(0.7) rotate(-2deg); opacity:0 }
  60%{ transform: scale(1.08) rotate(1deg); opacity:1 }
  100%{ transform: scale(1) rotate(0) }
}
.pop{ animation: popIn .5s ease }

/* Responsive tweaks */
@media (max-width: 980px){
  .action-panel .selected-name{ font-size: clamp(38px, 12vw, 96px); min-height: clamp(80px, 22vw, 200px) }
}
@media (max-width: 560px){
  .site-header{ flex-direction:column; align-items:flex-start }
  .titles h1{ font-size:24px }
  .action-panel .selected-name{ font-size: clamp(32px, 13vw, 78px) }
}