#instances {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.instance-card {
  background: #1c2128;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.instance-card:hover { border-color: #3b82f6; }

.instance-card p { margin: 4px 0; color: #8b949e; font-size: 14px; line-height: 1.6; }
.instance-card strong { color: #e6edf3; }

.instance-card span[style*="color"] {
  display: inline-block;
  padding: 2px 10px;
  background: #21262d;
  border-radius: 10px;
  font-size: 0.85em;
  border: 1px solid #30363d;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  background: #21262d;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #30363d;
}

.qr-code-img {
  border-radius: 8px;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn-bubble {
  display: inline-block;
  padding: 9px 18px;
  margin: 4px 4px 4px 0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-bubble:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: #22c55e; color: #0d1117; }
.btn-primary:hover { color: #0d1117; }
.btn-secondary { background: #21262d; color: #e6edf3; border: 1px solid #30363d; }
.btn-secondary:hover { background: #2d333b; color: #e6edf3; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #30363d;
}

form div { margin-bottom: 18px; }
form label { color: #8b949e; font-weight: 600; margin-bottom: 6px; font-size: 0.85rem; display: block; text-transform: uppercase; letter-spacing: 0.4px; }

form input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #21262d;
  font-size: 15px;
  color: #e6edf3;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

form input[type="text"]:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }

form input[type="submit"] {
  padding: 10px 22px;
  background: #22c55e;
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

form input[type="submit"]:hover { opacity: 0.88; }
