/* Software.css — CyberHive Software Download Page */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  background: #000;
  overflow-x: hidden;
}

.background {
  min-height: 100vh;
  background: linear-gradient(to bottom, #000, #111);
  position: relative;
}

.content {
  margin: 0 auto;
  width: 85%;
  max-width: 1200px;
  padding: 280px 40px 120px;
  text-align: center;
  box-sizing: border-box;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 44px;
  margin: 0 0 25px;
  color: #ff9900;
  font-family: "CyberDyne", Arial, sans-serif;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

h2:first-of-type {
  font-size: 22px;
  margin: 0 0 60px;
  line-height: 1.6;
  max-width: 900px;
  color: #ffffff;
}

/* ── Software Grid ─────────────────────────────── */

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.software-card {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ff9900;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.15);
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255, 153, 0, 0.35);
}

.card-icon {
  font-size: 64px;
  margin-bottom: 15px;
}

.product-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.3));
}

.card-note {
  font-size: 13px;
  color: #ff9966;
  margin: 0 0 15px;
  font-style: italic;
}

.software-disclaimer {
  margin-top: 50px;
  padding: 20px 30px;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.25);
  border-radius: 12px;
  max-width: 700px;
}

.software-disclaimer p {
  font-size: 14px;
  color: #bbb;
  margin: 0;
  line-height: 1.5;
}

.software-card h3 {
  font-size: 28px;
  color: #ff9900;
  font-family: "Orbitron", Arial, sans-serif;
  margin: 0 0 15px;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
  margin: 0 0 20px;
}

.card-platforms {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.platform-tag {
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  color: #ffcc66;
}

.card-price {
  margin-bottom: 20px;
}

.price-sats {
  font-size: 22px;
  color: #ffcc66;
  font-weight: bold;
}

/* ── Buy Button ─────────────────────────────── */

.buy-btn {
  padding: 14px 36px;
  font-size: 18px;
  background: #ff9900;
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.buy-btn:hover {
  transform: scale(1.05);
  background: #ffcc66;
}

/* ── Download Links (shown after payment) ─────── */

.download-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-links.hidden { display: none; }

.dl-btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 255, 100, 0.15);
  border: 1px solid rgba(0, 255, 100, 0.4);
  color: #66ff88;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.dl-btn:hover {
  background: rgba(0, 255, 100, 0.25);
}

/* ── Payment Modal ──────────────────────────── */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.hidden { display: none; }

.modal-content {
  background: #111;
  border: 2px solid #ff9900;
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(255, 153, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover { color: #fff; }

.modal-content h3 {
  font-size: 24px;
  color: #ff9900;
  font-family: "Orbitron", Arial, sans-serif;
  margin: 0 0 20px;
}

.qr-container {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 15px;
}

.qr-container canvas {
  display: block;
  width: 220px;
  height: 220px;
}

.invoice-amount {
  font-size: 20px;
  color: #ffcc66;
  font-weight: bold;
  margin: 10px 0 5px;
}

.invoice-label {
  font-size: 14px;
  color: #888;
  margin: 0 0 15px;
}

.invoice-string-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.invoice-string-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  color: #aaa;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
}

.copy-btn {
  background: #ff9900;
  color: black;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.copy-btn:hover { background: #ffcc66; }

.payment-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #888;
  font-size: 14px;
}

.payment-status.paid {
  color: #66ff88;
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid #333;
  border-top-color: #ff9900;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.payment-status.paid .spinner { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 480px) {
  .content { padding: 140px 15px 80px; }
  h1 { font-size: 32px; }
  h2:first-of-type { font-size: 18px; }
  .software-grid { grid-template-columns: 1fr; gap: 25px; }
  .software-card { padding: 30px 20px; }
  .card-icon { font-size: 48px; }
  .software-card h3 { font-size: 24px; }
  .modal-content { padding: 25px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .content { padding: 180px 20px 100px; }
  .software-grid { grid-template-columns: 1fr; max-width: 500px; }
}

@media (min-width: 1441px) {
  .content { max-width: 1200px; padding: 300px 60px 140px; }
}
