body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f5;
}
.main-container {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
#app {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
}
button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: .5rem 0;
  border: none;
  border-radius: 6px;
  background: #0070f3;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#result {
  margin-top: 1rem;
}
#result button {
  background: #eaeaea;
  color: #000;
}
input {
  width: 100%;
  padding: .75rem;
  margin: .5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.history-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto;
  padding: 0.5rem;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.trade-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  margin-top: 1rem;
}
.trade-table th,
.trade-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #eaeaea;
}
.trade-table th {
  font-weight: 600;
  background: #f4f4f5;
}
.trade-table tr {
  cursor: pointer;
}
.trade-table tr:hover {
  background: #f9f9f9;
}
.trade-detail {
  text-align: left;
  background: #f4f4f5;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  overflow-x: auto;
}
.trade-detail pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.back-btn {
  background: #eaeaea;
  color: #000;
  margin-bottom: 1rem;
}

.status-btn {
  background: #0070f3;
  color: #fff;
  margin-bottom: 0.5rem;
}

.status-btn:hover {
  background: #0051cc;
}

.install-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: auto;
  background: #999;  /* Grayer background */
  color: #fff;  /* White text for better contrast */
  font-size: 1.05rem;  /* Smaller font */
  padding: 0.3rem 0.6rem;  /* Smaller padding */
  margin: 0;
  border-radius: 20px;  /* Slightly smaller radius */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 9999;  /* Much higher z-index */
  display: inline-block;
  pointer-events: auto;  /* Ensure it's clickable */
  cursor: pointer;
}

.install-btn:hover {
  background: #777;
}

@media (max-width: 768px) {
  .install-btn {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .main-container {
    padding-bottom: 3rem;
  }
}
