/* ========================================
   MODALS & OVERLAYS
   ======================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: flex-end;
}

.modal-content {
  background: #1a1a2e;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.9);
}

.modal-content span {
  color: rgba(255, 255, 255, 0.9);
}

.modal-content label {
  color: rgba(255, 255, 255, 0.8);
}

.modal-content p {
  color: rgba(255, 255, 255, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(76, 111, 166, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.9);
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

/* ========================================
   UPGRADE MODAL SPECIFIC STYLES
   ======================================== */

.upgrade-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
  font-size: 14px;
}

.upgrade-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.upgrade-value {
  color: #d4af37;
  font-weight: bold;
}

#upgrade-cost-container {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.cost-row:last-child {
  margin-bottom: 0;
}

.cost-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 13px;
}

.cost-value {
  color: #d4af37;
  font-weight: bold;
  font-size: 14px;
}

.cost-value.insufficient {
  color: #ff6b6b;
}
