#stitch-font-generator * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#stitch-font-generator {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  color: #fff;
  padding: 25px;
  border-radius: 20px;
  max-width: 1400px;
  margin: auto;
}

#stitch-font-generator .wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
}

#stitch-font-generator .controls,
#stitch-font-generator .preview-area {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.1);
}

#stitch-font-generator h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #38bdf8;
}

#stitch-font-generator label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

#stitch-font-generator input,
#stitch-font-generator button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  margin-bottom: 12px;
}

#stitch-font-generator button {
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(90deg,#06b6d4,#3b82f6);
  color: white;
  transition: .3s;
}

#stitch-font-generator button:hover {
  transform: translateY(-2px);
  opacity: .9;
}

#stitch-font-generator .preview-box {
  min-height: 300px;
  background: #111827;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

#stitch-font-generator #previewText {
  font-size: 60px;
  font-weight: 700;
  transition: all .3s ease;
}

#stitch-font-generator .styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 12px;
  margin-top: 20px;
  max-height: 500px;
  overflow-y: auto;
}

#stitch-font-generator .style-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: .3s;
}

#stitch-font-generator .style-card:hover {
  background: #0ea5e9;
  transform: scale(1.03);
}

@media(max-width:900px){
  #stitch-font-generator .wrapper{
    grid-template-columns: 1fr;
  }

  #stitch-font-generator #previewText{
    font-size: 40px;
  }
}