.buy-row { margin-top: 14px; display: flex; justify-content: flex-end; }
.btn-buy {
  appearance: none; cursor: pointer; font-family: Orbitron, sans-serif;
  border: 1px solid #39ff14;
  background: linear-gradient(90deg, rgba(57,255,20,0.85), rgba(0,229,255,0.55));
  color: #041018;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 0 22px rgba(57,255,20,0.4), 0 0 10px rgba(0,229,255,0.25);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.12s;
}
.btn-buy:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 0 30px rgba(57,255,20,0.55); }
.btn-buy:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; filter: grayscale(0.4); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  width: min(400px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12,18,28,0.98), rgba(6,10,16,1));
  border: 1px solid rgba(57,255,20,0.4);
  box-shadow: 0 0 40px rgba(57,255,20,0.15);
}
.modal-eyebrow { margin: 0; font-size: 0.68rem; letter-spacing: 0.2em; color: var(--cyan); font-weight: 700; }
.modal-title { margin: 8px 0; font-family: Orbitron, sans-serif; color: #39ff14; font-size: 1.1rem; }
.modal-body { color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-neon {
  appearance: none; cursor: pointer; font-family: Orbitron, sans-serif;
  border: 1px solid #39ff14;
  background: linear-gradient(90deg, rgba(57,255,20,0.2), rgba(0,229,255,0.12));
  color: #39ff14;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 0 20px rgba(57,255,20,0.25);
}
.btn-ghost {
  appearance: none; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-weight: 600; font-size: 0.85rem; padding: 10px 16px; border-radius: 999px;
}
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 1100;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
  background: rgba(12,18,28,0.95);
  border: 1px solid rgba(57,255,20,0.45);
  color: #39ff14;
  box-shadow: 0 0 24px rgba(57,255,20,0.25);
  max-width: 90vw;
}
.toast[hidden] { display: none !important; }
.toast-err { border-color: rgba(255,77,109,0.55); color: #ff4d6d; box-shadow: 0 0 24px rgba(255,77,109,0.25); }
.toast-ok { border-color: rgba(57,255,20,0.55); color: #39ff14; }

.buy-row { gap: 8px; flex-wrap: wrap; }
.btn-my-buy {
  appearance: none; cursor: pointer; font-family: Orbitron, sans-serif;
  border: 1px solid rgba(0,229,255,0.65);
  background: linear-gradient(90deg, rgba(0,229,255,0.18), rgba(57,255,20,0.1));
  color: #00e5ff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 0 18px rgba(0,229,255,0.28);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.12s;
}
.btn-my-buy:hover {
  filter: brightness(1.12); transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0,229,255,0.45);
  color: #39ff14; border-color: rgba(57,255,20,0.7);
}
.buy-price-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px;
}
.buy-price-field label {
  display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 6px;
}
.buy-price-field label .opt { opacity: 0.65; font-weight: 600; letter-spacing: 0.06em; }
.buy-price-field input {
  width: 100%; box-sizing: border-box;
  background: rgba(6,10,16,0.9); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
}
.buy-price-field input:focus {
  outline: none; border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 16px var(--neon-dim);
}
.buy-price-hint {
  margin: 0 0 16px; font-size: 0.72rem; color: var(--muted); line-height: 1.4;
}
@media (max-width: 480px) {
  .buy-price-fields { grid-template-columns: 1fr; }
}
