.modal-backdrop {
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.modal {
  width: 100%;
  max-width: 720px;
  background: #0f0f0f;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  color: #fff;
}
@media (max-width:420px) {
  .modal { padding: 14px; max-width: calc(100% - 12px); border-radius: 10px; }
}

.styles-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-top:12px;
}
.style-card {
  background:#101010;
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  text-align:center;
  border:2px solid transparent;
  padding-bottom:8px;
  font-size:13px;
}
.style-card img { width:100%; height:72px; object-fit:cover; display:block; }
.style-card.selected { border-color:#ff93e9; box-shadow: 0 8px 30px rgba(155,124,255,0.06); }

.settings-row { display:flex; gap:12px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.settings-row label { font-size:14px; display:flex; gap:8px; align-items:center; color:#eaeaea; }
.settings-row input[type="number"], 
.settings-row select { background:#0c0c0c; border:1px solid rgba(255,255,255,0.04); color:#fff; padding:6px 8px; border-radius:8px; font-size:14px; min-width:80px; }

.modal-actions { margin-top:14px; display:flex; justify-content:flex-end; gap:10px; }
.modal-actions button {
  background:#1a1a1a;
  border-radius:10px;
  padding:9px 12px;
  font-size:14px;
  color:#fff;
  border:1px solid rgba(255,255,255,0.03);
  cursor:pointer;
}
