/* ════════════════════════════════════════════════════════════════════════ */
/* Modal Styles                                                            */
/* ════════════════════════════════════════════════════════════════════════ */

/* ── Payment Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.45);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 28px 28px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: #ede8e0;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.modal-card p {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.copy-box {
  background: #fdf6ee;
  border: 1.5px solid #f0e0c0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.copy-text {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  word-break: break-word;
}

.copy-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}

.copy-btn.copied {
  background: #3aaa7a;
}

.modal-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  font-family: inherit;
  transition: background 0.18s;
}

.modal-btn:hover {
  background: #333;
}

.modal-cancel {
  background: none;
  border: none;
  color: #b0a090;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

#modal-step-b input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8ddd0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s;
}

#modal-step-b input[type="number"]:focus {
  border-color: #c0a880;
}

#modal-step-b input[type="number"].error {
  border-color: #e05050;
}

/* ── Rules Modal ── */
.rules-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.rules-card {
  background: white;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

.rules-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.rules-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.rule-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rules-close {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
