/* ============================================
   JAVACOIN — Modal CSS
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #141414;
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,197,24,0.08);
  animation: modal-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F5C518, transparent);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #F0F0F0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #777;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.08); color: #F0F0F0; border-color: rgba(255,255,255,0.2); }

.modal-body { padding: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: #888; margin-bottom: 7px; font-weight: 500; }

.form-group input, .form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 14px;
  color: #F0F0F0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.22s;
}

.form-group input::placeholder { color: #444; }

.form-group input:focus, .form-group select:focus {
  border-color: #F5C518;
  background: rgba(245,197,24,0.05);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}

.modal-submit {
  width: 100%;
  background: linear-gradient(135deg, #F5C518, #D4A017);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: all 0.22s;
  font-family: 'Inter', sans-serif;
  margin-top: 16px;
}

.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.4);
}

/* Order result */
.order-result-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.status-success { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-pending { background: rgba(245,197,24,0.15); color: #F5C518; }
.status-failed  { background: rgba(239,68,68,0.15); color: #ef4444; }

.result-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.result-label { color: #666; }
.result-value { color: #F0F0F0; font-weight: 600; }

/* Leaderboard table */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.lb-table tr:last-child { border-bottom: none; }
.lb-table td { padding: 10px 8px; font-size: 13px; }
.lb-rank { font-size: 18px; width: 40px; text-align: center; }
.lb-user { font-weight: 600; color: #F0F0F0; }
.lb-amount { text-align: right; font-weight: 700; color: #F5C518; font-family: 'Orbitron', monospace; font-size: 12px; white-space: nowrap; }
.lb-rank.gold, .lb-rank.silver, .lb-rank.bronze { font-size: 20px; }
